Esempio n. 1
0
    private static HexNodeMarker CreateMarker(HexNodeType nodeType)
    {
        HexNodeMarker node = new HexNodeMarker();

        node.nodeType = nodeType;
        MARKERS.Add(node);
        return(node);
    }
Esempio n. 2
0
    public List <HexNode> GetNodesByType(HexNodeType type)
    {
        List <HexNode> nodes = new List <HexNode>();

        TraversalNodes((node) =>
        {
            if (node.marker.nodeType == type)
            {
                nodes.Add(node);
            }
        });
        return(nodes);
    }