mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-15 01:12:05 +07:00
move grid logic from screen solver to IsoGrid.cs
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
return this;
|
||||
}
|
||||
|
||||
public Node Clear(IsoIPool<Node> node_pool, IsoIPool<Item> item_pool) {
|
||||
public Node Clear(IsoIPool<Node> node_pool, IsoIPool<Item> item_pool) {
|
||||
ClearChildren(node_pool, item_pool);
|
||||
ClearContents(item_pool);
|
||||
return Init(null, IsoRect.zero);
|
||||
@@ -158,19 +158,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// NodePool
|
||||
//
|
||||
|
||||
class NodePool : IsoPool<Node> {
|
||||
public NodePool(int capacity) : base(capacity) {
|
||||
}
|
||||
|
||||
public override Node CreateItem() {
|
||||
return new Node();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// ItemPool
|
||||
//
|
||||
@@ -184,6 +171,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// NodePool
|
||||
//
|
||||
|
||||
class NodePool : IsoPool<Node> {
|
||||
public NodePool(int capacity) : base(capacity) {
|
||||
}
|
||||
|
||||
public override Node CreateItem() {
|
||||
return new Node();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Members
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user