59 lines
1.6 KiB
C#
59 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace _Project.Scripts.LevelGenerating
|
|
{
|
|
public class Room
|
|
{
|
|
public Room(Vector2 position, int wigth, int length, RoomType rt):this()
|
|
{
|
|
Position = position;
|
|
Wigth = wigth;
|
|
Length = length;
|
|
this.rt = rt;
|
|
}
|
|
|
|
public Room()
|
|
{
|
|
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;
|
|
}
|
|
|
|
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; }
|
|
|
|
}
|
|
|
|
} |