public Door createDoor(DoorData data) { if (data == null) { return(null); } var door = createDoor(); door.Locked = data.locked; return(door); }
public WallData(bool vertical = false, DoorData doorData = null, WallType type = WallType.Default) { this.vertical = vertical; this.doorData = doorData; this.type = type; }