using System.Collections.Generic; using UnityEngine; namespace _Project.Scripts.LevelGenerating { public class Room { public Room(Vector2 position, int width, int length, RoomType rt):this() { Position = position; Width = width; Length = length; this.rt = rt; } public Room() { exits = new List(); } public Room(Vector2 position, int width, int length, RoomType rt, EntranceToRoomType entrance):this() { Position = position; Width = width; Length = length; this.rt = rt; this.entrance = entrance; } public Room(int width, int length, RoomType rt):this() { Width = width; Length = length; this.rt = rt; } public Room(Vector2 position, int width, int length, RoomType rt, bool isWallable, EntranceToRoomType entrance, List exits) { Position = position; Width = width; Length = length; this.rt = rt; this.entrance = entrance; this.isWallable = isWallable; this.exits = exits; } public int Width { get; set; }//width - по оси z public int Length { get; set; }//length- по оси x public Vector2 Position; public RoomType rt { get; set; } public EntranceToRoomType entrance { get; set; } public bool isWallable { get; set; } public List exits { get; set; } } }