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; }
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; }