-почти доделал базовую генерацию
This commit is contained in:
1 parent
6f0520f9a0
commit
47f59350c8
4 files changed
+182
-60
No files matched your search
@@ -5,10 +5,10 @@ namespace _Project.Scripts.LevelGenerating
|
||||
{
|
||||
public class Room
|
||||
{
|
||||
public Room(Vector2 position, int wigth, int length, RoomType rt):this()
|
||||
public Room(Vector2 position, int width, int length, RoomType rt):this()
|
||||
{
|
||||
Position = position;
|
||||
Wigth = wigth;
|
||||
Width = width;
|
||||
Length = length;
|
||||
this.rt = rt;
|
||||
}
|
||||
@@ -18,27 +18,27 @@ namespace _Project.Scripts.LevelGenerating
|
||||
exits = new List<ExitsInRoomType>();
|
||||
}
|
||||
|
||||
public Room(Vector2 position, int wigth, int length, RoomType rt, EntranceToRoomType entrance):this()
|
||||
public Room(Vector2 position, int width, int length, RoomType rt, EntranceToRoomType entrance):this()
|
||||
{
|
||||
|
||||
Position = position;
|
||||
Wigth = wigth;
|
||||
Width = width;
|
||||
Length = length;
|
||||
this.rt = rt;
|
||||
this.entrance = entrance;
|
||||
}
|
||||
|
||||
public Room(int wigth, int length, RoomType rt):this()
|
||||
public Room(int width, int length, RoomType rt):this()
|
||||
{
|
||||
Wigth = wigth;
|
||||
Width = width;
|
||||
Length = length;
|
||||
this.rt = rt;
|
||||
}
|
||||
|
||||
public Room(Vector2 position, int wigth, int length, RoomType rt, bool isWallable, EntranceToRoomType entrance, List<ExitsInRoomType> exits)
|
||||
public Room(Vector2 position, int width, int length, RoomType rt, bool isWallable, EntranceToRoomType entrance, List<ExitsInRoomType> exits)
|
||||
{
|
||||
Position = position;
|
||||
Wigth = wigth;
|
||||
Width = width;
|
||||
Length = length;
|
||||
this.rt = rt;
|
||||
this.entrance = entrance;
|
||||
@@ -46,8 +46,8 @@ namespace _Project.Scripts.LevelGenerating
|
||||
this.exits = exits;
|
||||
}
|
||||
|
||||
public int Wigth { get; set; }
|
||||
public int Length { get; set; }
|
||||
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; }
|
||||
|
||||
Reference in new issue
Block a user