Пример #1
0
        private void InsertDoor(byte x, byte y, bool open, bool isLeftRight, bool triggerCollision = true)
        {
            var door = new Objects.Door(x, y, open, isLeftRight, triggerCollision);

            World.Insert(door);
            Insert(door, door.X, door.Y);
            Doors[new Tuple <byte, byte>(door.X, door.Y)] = door;
        }
Пример #2
0
 private void InsertDoor(byte x, byte y, bool open, bool isLeftRight, bool triggerCollision = true)
 {
     var door = new Objects.Door(x, y, open, isLeftRight, triggerCollision);
     World.Insert(door);
     Insert(door, door.X, door.Y);
     Doors[new Tuple<byte, byte>(door.X, door.Y)] = door;
 }