Пример #1
0
        public Door createDoor(DoorData data)
        {
            if (data == null)
            {
                return(null);
            }
            var door = createDoor();

            door.Locked = data.locked;
            return(door);
        }
Пример #2
0
 public WallData(bool vertical = false, DoorData doorData = null, WallType type = WallType.Default)
 {
     this.vertical = vertical;
     this.doorData = doorData;
     this.type     = type;
 }