Traveller/scripts/map/room/ISpawnMarker.cs
Cold-Mint d80c49ab02
Adjust the time of spawns of items and enemies in the map to when the player first enters the room.
将地图中物品,敌人生成的时机调整到玩家首次进入房间时。
2024-10-08 16:11:51 +08:00

33 lines
846 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Godot;
namespace ColdMint.scripts.map.room;
/// <summary>
/// <para>The tag of the generated entity</para>
/// <para>生成实体的标记</para>
/// </summary>
public interface ISpawnMarker
{
/// <summary>
/// <para>Generating entity</para>
/// <para>生成实体</para>
/// </summary>
/// <remarks>
///<para>Return the result of the generation. If null is returned, the generation fails.</para>
///<para>返回生成结果为null则生成失败。</para>
/// </remarks>
Node2D? Spawn();
/// <summary>
/// <para>Can Queue Free</para>
/// <para>可释放节点吗</para>
/// </summary>
/// <returns></returns>
bool CanQueueFree();
/// <summary>
/// <para>Execute Queue Free</para>
/// <para>执行释放节点</para>
/// </summary>
void DoQueueFree();
}