private static HexNodeMarker CreateMarker(HexNodeType nodeType) { HexNodeMarker node = new HexNodeMarker(); node.nodeType = nodeType; MARKERS.Add(node); return(node); }
public List <HexNode> GetNodesByType(HexNodeType type) { List <HexNode> nodes = new List <HexNode>(); TraversalNodes((node) => { if (node.marker.nodeType == type) { nodes.Add(node); } }); return(nodes); }