Функция для выбора расположения стартовой комнаты
This commit is contained in:
1 parent
458e0cc98b
commit
236fd9d9f6
10 files changed
+641
-577
No files matched your search
@@ -1,10 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Scripts.LevelGenerating
|
||||
{
|
||||
public class Room
|
||||
{
|
||||
public Room(Vector2 position, int wigth, int length, RoomType rt)
|
||||
public Room(Vector2 position, int wigth, int length, RoomType rt):this()
|
||||
{
|
||||
Position = position;
|
||||
Wigth = wigth;
|
||||
@@ -14,12 +15,33 @@ namespace _Project.Scripts.LevelGenerating
|
||||
|
||||
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 int Wigth { get; set; }
|
||||
public int Length { get; set; }
|
||||
public Vector2 Position;
|
||||
public RoomType rt { get; set; }
|
||||
public EntranceToRoomType entrance { get; set; }
|
||||
public List<ExitsInRoomType> exits { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user