chore: initial commit

This commit is contained in:
2026-05-08 11:04:00 +08:00
commit f55d2a57c3
6278 changed files with 866081 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
namespace BaseGames.Core.Events
{
/// <summary>
/// 液体区域事件负载。用于玩家进入/离开液体区域时传递区域信息。
/// </summary>
public readonly struct LiquidEvent
{
/// <summary>液体区域标识符(对应 LiquidZone SO 的 zoneId。</summary>
public readonly string ZoneId;
/// <summary>液体类型(如 "Water" / "Acid" / "Lava")。</summary>
public readonly string LiquidType;
public LiquidEvent(string zoneId, string liquidType)
{
ZoneId = zoneId;
LiquidType = liquidType;
}
public override string ToString() => $"LiquidEvent(Zone={ZoneId}, Type={LiquidType})";
}
/// <summary>
/// 液体进出事件频道EVT_LiquidEntered / EVT_LiquidExited
/// 发布LiquidZoneOnTriggerEnter2D / OnTriggerExit2D
/// 订阅PlayerController切换游泳状态、DrownSystem、AudioManager
/// </summary>
[UnityEngine.CreateAssetMenu(menuName = "Events/LiquidEvent")]
public class LiquidEventChannelSO : BaseEventChannelSO<LiquidEvent> { }
}