Пример #1
0
        public Map(MapBorder b)
        {
            Border = b;
            nodes  = new Node[b.y, b.x];

            for (int x = 0; x < b.x; x++)
            {
                for (int y = 0; y < b.y; y++)
                {
                    this[x, y] = new Node(x, y);
                }
            }
        }
Пример #2
0
 public Map(Node[,] nodes)
 {
     this.nodes = nodes;
     Border     = new MapBorder(nodes.GetLength(1), nodes.GetLength(0));
 }