2024-05-20 14:38:41 +00:00
|
|
|
|
using ColdMint.scripts.map.room;
|
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts.map.interfaces;
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
2024-05-10 14:56:27 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Room holder</para>
|
|
|
|
|
/// <para>房间持有者</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
///<para>This class holds all generated and placed rooms.</para>
|
|
|
|
|
///<para>该类保存所有已生成且已放置的房间。</para>
|
|
|
|
|
/// </remarks>
|
2024-04-28 13:55:19 +00:00
|
|
|
|
public interface IRoomHolder
|
|
|
|
|
{
|
2024-05-20 14:38:41 +00:00
|
|
|
|
bool AddRoom(Room room);
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>LastRoom</para>
|
|
|
|
|
/// <para>最后添加的房间</para>
|
|
|
|
|
/// </summary>
|
2024-05-20 14:38:41 +00:00
|
|
|
|
Room? LastRoom { get; }
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Number of rooms that have been placed</para>
|
|
|
|
|
/// <para>已放置的房间数量</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
int PlacedRoomNumber { get; }
|
|
|
|
|
}
|