Files
cneicy ad5a7b68a3 feat(sdk): migrate to EventBus 2.0
Replace the legacy EventBase runtime with generated multi-bus bindings and explicit scheduling. Migrate app, data, network, demo, and mod consumers; add generated network-event registration and owner-scoped mod content overrides.
2026-08-26 01:15:48 +08:00

54 lines
1.5 KiB
C#

#nullable enable
using ReplacedPerson.Core;
using ShrinkEventBus;
namespace ReplacedPerson.Runtime
{
public sealed class ReplacedMatchPhaseEvent : IShrinkEvent
{
public int Round { get; set; }
public ReplacedMatchPhase MatchPhase { get; set; }
public int LeadPlayer { get; set; }
public string StateHash { get; set; } = string.Empty;
}
public sealed class ReplacedCardsCommittedEvent : IShrinkEvent
{
public int PlayerIndex { get; set; }
public string[] NormalCardIds { get; set; } = System.Array.Empty<string>();
public string[] EndCardIds { get; set; } = System.Array.Empty<string>();
}
public sealed class ReplacedDiceEvent : IShrinkEvent
{
public int Slot { get; set; }
public int PlayerOneRoll { get; set; }
public int PlayerTwoRoll { get; set; }
}
public sealed class ReplacedDamageEvent : IShrinkEvent
{
public int TargetPlayer { get; set; }
public int Amount { get; set; }
public int RemainingHealth { get; set; }
}
public sealed class ReplacedRewardEvent : IShrinkEvent
{
public string RewardId { get; set; } = string.Empty;
}
public sealed class ReplacedSaveEvent : IShrinkEvent
{
public string Operation { get; set; } = string.Empty;
public bool Success { get; set; }
}
public sealed class ReplacedNetworkStatusEvent : IShrinkEvent
{
public string Status { get; set; } = string.Empty;
public string Detail { get; set; } = string.Empty;
}
}