Начал делать генерацию комнат после первого коридора, до ии функций.

This commit is contained in:
vladislove committed 2026-10-01 18:01:16 +03:00
1 parent 3a73877096
commit 3a3f1ea763
3 files changed
+71 -11

No files matched your search

@@ -35,10 +35,22 @@ namespace _Project.Scripts.LevelGenerating
this.rt = rt;
}
public Room(Vector2 position, int wigth, int length, RoomType rt, bool isWalling, EntranceToRoomType entrance, List<ExitsInRoomType> exits)
{
Position = position;
Wigth = wigth;
Length = length;
this.rt = rt;
this.isWalling = isWalling;
this.entrance = entrance;
this.exits = exits;
}
public int Wigth { get; set; }
public int Length { get; set; }
public Vector2 Position;
public RoomType rt { get; set; }
public bool isWalling {get; set;} //примыкает ли комната к стене
public EntranceToRoomType entrance { get; set; }
public List<ExitsInRoomType> exits { get; set; }