создание стен как информации, ещё не обьекты

This commit is contained in:
vladislove committed 2026-10-11 19:07:55 +03:00
1 parent 650af515e9
commit bb8db47ecc
5 files changed
+174 -7

No files matched your search

@@ -56,7 +56,7 @@ namespace _Project.Scripts.LevelGenerating
this.rt = rt;
}
public Room(Vector2Int position, int width, int length, RoomType rt, bool isWallable,
public Room(Vector2Int position, int width, int length, RoomType rt, bool isClipped,
EntranceToRoomType entrance, List<ExitsInRoomType> exits)
{
Position = position;
@@ -64,7 +64,7 @@ namespace _Project.Scripts.LevelGenerating
Length = length;
this.rt = rt;
this.entrance = entrance;
this.isWallable = isWallable;
this.isClipped = isClipped;
this.exits = exits;
}
@@ -73,7 +73,7 @@ namespace _Project.Scripts.LevelGenerating
public Vector2Int Position; // левый нижний угол, в модулях
public RoomType rt { get; set; }
public EntranceToRoomType entrance { get; set; }
public bool isWallable { get; set; } // по факту: комнату ужали об границу карты (стоит переименовать)
public bool isClipped { get; set; }
public List<ExitsInRoomType> exits { get; set; }
public Vector2 Center => new Vector2(Position.x + Length / 2f, Position.y + Width / 2f);