2024-05-28 14:14:35 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2024-05-30 14:49:54 +00:00
|
|
|
|
using Godot;
|
2024-05-28 14:14:35 +00:00
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts.map.interfaces;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Room injection processor</para>
|
|
|
|
|
/// <para>房间注入处理器</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IRoomInjectionProcessor
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>The room injection processor has an ID</para>
|
|
|
|
|
/// <para>房间注入处理器有一个ID</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string GetId();
|
2024-05-30 14:49:54 +00:00
|
|
|
|
|
2024-05-28 14:14:35 +00:00
|
|
|
|
/// <summary>
|
2024-05-30 14:49:54 +00:00
|
|
|
|
/// <para>Whether it can be placed on the map</para>
|
|
|
|
|
/// <para>是否能够被放置到地图内</para>
|
2024-05-28 14:14:35 +00:00
|
|
|
|
/// </summary>
|
2024-05-30 14:49:54 +00:00
|
|
|
|
/// <param name="randomNumberGenerator">
|
|
|
|
|
///<para>Random probability generator based on world seed</para>
|
|
|
|
|
///<para>根据世界种子确定的随机概率生成器</para>
|
|
|
|
|
/// </param>
|
2024-06-16 14:44:50 +00:00
|
|
|
|
/// <param name="yamlConfigData">
|
2024-05-30 14:49:54 +00:00
|
|
|
|
///<para>Inject data into the processor</para>
|
|
|
|
|
///<para>注入处理器的数据</para>
|
|
|
|
|
/// </param>
|
2024-05-28 14:14:35 +00:00
|
|
|
|
/// <returns></returns>
|
2024-06-16 14:44:50 +00:00
|
|
|
|
public Task<bool> CanBePlaced(RandomNumberGenerator randomNumberGenerator, string? yamlConfigData);
|
2024-05-28 14:14:35 +00:00
|
|
|
|
}
|