Revert "Начал делать генерацию комнат после первого коридора, до ии функций."
This reverts commit 3a3f1ea7
This commit is contained in:
parent
40dbba050c
commit
b4e619a93e
@ -1,5 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using _Project.Scripts.Utilities;
|
||||
using NUnit.Framework;
|
||||
using UnityEngine;
|
||||
@ -15,10 +14,5 @@ namespace _Project.Scripts.LevelGenerating
|
||||
{
|
||||
Rooms.Add(room);
|
||||
}
|
||||
|
||||
public Room GetLastRoom()
|
||||
{
|
||||
return Rooms.LastOrDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -35,22 +35,10 @@ namespace _Project.Scripts.LevelGenerating
|
||||
this.rt = rt;
|
||||
}
|
||||
|
||||
public Room(Vector2 position, int wigth, int length, RoomType rt, bool isWalling, EntranceToRoomType entrance, List<ExitsInRoomType> exits)
|
||||
{
|
||||
Position = position;
|
||||
Wigth = wigth;
|
||||
Length = length;
|
||||
this.rt = rt;
|
||||
this.isWalling = isWalling;
|
||||
this.entrance = entrance;
|
||||
this.exits = exits;
|
||||
}
|
||||
|
||||
public int Wigth { get; set; }
|
||||
public int Length { get; set; }
|
||||
public Vector2 Position;
|
||||
public RoomType rt { get; set; }
|
||||
public bool isWalling {get; set;} //примыкает ли комната к стене
|
||||
public EntranceToRoomType entrance { get; set; }
|
||||
public List<ExitsInRoomType> exits { get; set; }
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user