Exemple #1
0
        public Node()
        {
            Sides = SideStruct.GetSides();

            Adjacents = new Dictionary <Side, Node>();
            Adjacents.Add(Sides.North, null);
            Adjacents.Add(Sides.South, null);
            Adjacents.Add(Sides.West, null);
            Adjacents.Add(Sides.East, null);
        }
Exemple #2
0
        public Node(Vector2 position, GameLocation location, StardewValley.Object obj)
        {
            if (obj != null)
            {
                Name = obj.name;
                ID   = obj.ParentSheetIndex;
            }
            Position = position;
            Location = location;
            Obj      = obj;

            Sides = SideStruct.GetSides();

            Adjacents = new Dictionary <Side, Node>();
            Adjacents.Add(Sides.North, null);
            Adjacents.Add(Sides.South, null);
            Adjacents.Add(Sides.West, null);
            Adjacents.Add(Sides.East, null);

            ParentNetwork = null;
        }