Revert "Начал делать генерацию комнат после первого коридора, до ии функций."

This reverts commit 3a3f1ea7
This commit is contained in:
vladislove 2026-10-01 20:16:38 +03:00
parent 40dbba050c
commit b4e619a93e
2 changed files with 0 additions and 18 deletions

View File

@ -1,5 +1,4 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using _Project.Scripts.Utilities; using _Project.Scripts.Utilities;
using NUnit.Framework; using NUnit.Framework;
using UnityEngine; using UnityEngine;
@ -15,10 +14,5 @@ namespace _Project.Scripts.LevelGenerating
{ {
Rooms.Add(room); Rooms.Add(room);
} }
public Room GetLastRoom()
{
return Rooms.LastOrDefault();
}
} }
} }

View File

@ -35,22 +35,10 @@ namespace _Project.Scripts.LevelGenerating
this.rt = rt; 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 Wigth { get; set; }
public int Length { get; set; } public int Length { get; set; }
public Vector2 Position; public Vector2 Position;
public RoomType rt { get; set; } public RoomType rt { get; set; }
public bool isWalling {get; set;} //примыкает ли комната к стене
public EntranceToRoomType entrance { get; set; } public EntranceToRoomType entrance { get; set; }
public List<ExitsInRoomType> exits { get; set; } public List<ExitsInRoomType> exits { get; set; }