2024-04-28 13:55:19 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using ColdMint.scripts.map.dateBean;
|
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts.map.interfaces;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>IRoomSlotsMatcher</para>
|
|
|
|
|
/// <para>房间插槽匹配器</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IRoomSlotsMatcher
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Whether the slots of the two rooms can be matched</para>
|
|
|
|
|
/// <para>两个房间的插槽是否可匹配</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="mainRoom"></param>
|
|
|
|
|
/// <param name="newRoom"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-05-08 10:22:04 +00:00
|
|
|
|
Task<bool> IsMatch(IRoom? mainRoom, IRoom newRoom);
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>LastMatchedMainSlot</para>
|
|
|
|
|
/// <para>最后匹配的主要插槽</para>
|
|
|
|
|
/// </summary>
|
2024-05-08 10:22:04 +00:00
|
|
|
|
RoomSlot? LastMatchedMainSlot { get; }
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>LastMatchedMinorSlot</para>
|
|
|
|
|
/// <para>最后匹配的次要插槽</para>
|
|
|
|
|
/// </summary>
|
2024-05-08 10:22:04 +00:00
|
|
|
|
RoomSlot? LastMatchedMinorSlot { get; }
|
2024-04-28 13:55:19 +00:00
|
|
|
|
}
|