Traveller/scripts/EventBus.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

35 lines
999 B
C#

using System;
using ColdMint.scripts.map.events;
namespace ColdMint.scripts;
/// <summary>
/// <para>EventBus</para>
/// <para>事件总线</para>
/// </summary>
public static class EventBus
{
/// <summary>
/// <para>Game Over Event</para>
/// <para>游戏结束事件</para>
/// </summary>
public static Action<GameOverEvent>? GameOverEvent;
/// <summary>
/// <para>Events when the game is replayed</para>
/// <para>游戏重玩时的事件</para>
/// </summary>
public static Action<GameReplayEvent>? GameReplayEvent;
/// <summary>
/// <para>Map starts generating events</para>
/// <para>地图开始生成的事件</para>
/// </summary>
public static Action<MapGenerationStartEvent>? MapGenerationStartEvent;
/// <summary>
/// <para>Map generation completion event</para>
/// <para>地图生成完成事件</para>
/// </summary>
public static Action<MapGenerationCompleteEvent>? MapGenerationCompleteEvent;
}