2024-06-03 14:58:59 +00:00
|
|
|
|
using System;
|
|
|
|
|
using ColdMint.scripts.map.events;
|
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts;
|
|
|
|
|
|
2024-06-05 13:38:45 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>EventManager</para>
|
|
|
|
|
/// <para>事件管理器</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class EventManager
|
2024-06-03 14:58:59 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Event when the AI character is generated</para>
|
|
|
|
|
/// <para>AI角色生成事件</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static Action<AiCharacterGenerateEvent>? AiCharacterGenerateEvent;
|
|
|
|
|
|
2024-06-04 14:23:06 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Game Over Event</para>
|
|
|
|
|
/// <para>游戏结束事件</para>
|
|
|
|
|
/// </summary>
|
2024-06-03 14:58:59 +00:00
|
|
|
|
public static Action<GameOverEvent>? GameOverEvent;
|
|
|
|
|
|
2024-06-04 14:23:06 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Events when the game is replayed</para>
|
|
|
|
|
/// <para>游戏重玩时的事件</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static Action<GameReplayEvent>? GameReplayEvent;
|
|
|
|
|
|
2024-06-03 14:58:59 +00:00
|
|
|
|
/// <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;
|
2024-06-12 15:42:35 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Player Instance Change Event</para>
|
|
|
|
|
/// <para>玩家实例改变事件</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static Action<PlayerInstanceChangeEvent>? PlayerInstanceChangeEvent;
|
2024-06-03 14:58:59 +00:00
|
|
|
|
}
|