Traveller/scripts/map/room/IEnterRoomEventHandler.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

29 lines
867 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>Enter the event handler in the room</para>
/// <para>进入房间的事件处理器</para>
/// </summary>
public interface IEnterRoomEventHandler
{
/// <summary>
/// <para>Get ID</para>
/// <para>获取ID</para>
/// </summary>
/// <returns></returns>
string GetId();
/// <summary>
/// <para>When entering the room</para>
/// <para>当进入房间时</para>
/// </summary>
/// <param name="playerRoomVisitCount">
///<para>The number of times the player visits the room, 1 is the first visit.</para>
///<para>玩家访问房间的次数为1则代表首次访问。</para>
/// </param>
/// <param name="node"></param>
/// <param name="room"></param>
void OnEnterRoom(int playerRoomVisitCount,Node node,Room room);
}