2026-09-25 23:49:29 +03:00
|
|
|
using System.Collections.Generic;
|
2026-09-25 19:50:57 +03:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace _Project.Scripts.LevelGenerating
|
|
|
|
|
{
|
|
|
|
|
public class Room
|
|
|
|
|
{
|
2026-09-25 23:49:29 +03:00
|
|
|
public Room(Vector2 position, int wigth, int length, RoomType rt):this()
|
2026-09-25 19:50:57 +03:00
|
|
|
{
|
|
|
|
|
Position = position;
|
|
|
|
|
Wigth = wigth;
|
|
|
|
|
Length = length;
|
|
|
|
|
this.rt = rt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Room()
|
|
|
|
|
{
|
2026-09-25 23:49:29 +03:00
|
|
|
exits = new List<ExitsInRoomType>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Room(Vector2 position, int wigth, int length, RoomType rt, EntranceToRoomType entrance):this()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
Position = position;
|
|
|
|
|
Wigth = wigth;
|
|
|
|
|
Length = length;
|
|
|
|
|
this.rt = rt;
|
|
|
|
|
this.entrance = entrance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Room(int wigth, int length, RoomType rt):this()
|
|
|
|
|
{
|
|
|
|
|
Wigth = wigth;
|
|
|
|
|
Length = length;
|
|
|
|
|
this.rt = rt;
|
2026-09-25 19:50:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Wigth { get; set; }
|
|
|
|
|
public int Length { get; set; }
|
|
|
|
|
public Vector2 Position;
|
|
|
|
|
public RoomType rt { get; set; }
|
2026-09-25 23:49:29 +03:00
|
|
|
public EntranceToRoomType entrance { get; set; }
|
|
|
|
|
public List<ExitsInRoomType> exits { get; set; }
|
|
|
|
|
|
2026-09-25 19:50:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|