-добавил проверку на размер для сгенерированной комнаты

This commit is contained in:
vladislove committed 2026-10-02 16:19:34 +03:00
1 parent b4e619a93e
commit e84940b8fe
3 files changed
+134 -115

No files matched your search

@@ -35,11 +35,23 @@ namespace _Project.Scripts.LevelGenerating
this.rt = rt;
}
public Room(Vector2 position, int wigth, int length, RoomType rt, bool isWallable, EntranceToRoomType entrance, List<ExitsInRoomType> exits)
{
Position = position;
Wigth = wigth;
Length = length;
this.rt = rt;
this.entrance = entrance;
this.isWallable = isWallable;
this.exits = exits;
}
public int Wigth { get; set; }
public int Length { get; set; }
public Vector2 Position;
public RoomType rt { get; set; }
public EntranceToRoomType entrance { get; set; }
public bool isWallable { get; set; }
public List<ExitsInRoomType> exits { get; set; }
}