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.
This commit is contained in:
2026-08-26 01:15:48 +08:00
parent 67d32795c4
commit ad5a7b68a3
129 changed files with 5071 additions and 5584 deletions
@@ -5,7 +5,7 @@ using ShrinkEventBus;
namespace ReplacedPerson.Runtime
{
public sealed class ReplacedMatchPhaseEvent : EventBase
public sealed class ReplacedMatchPhaseEvent : IShrinkEvent
{
public int Round { get; set; }
public ReplacedMatchPhase MatchPhase { get; set; }
@@ -13,39 +13,39 @@ namespace ReplacedPerson.Runtime
public string StateHash { get; set; } = string.Empty;
}
public sealed class ReplacedCardsCommittedEvent : EventBase
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 : EventBase
public sealed class ReplacedDiceEvent : IShrinkEvent
{
public int Slot { get; set; }
public int PlayerOneRoll { get; set; }
public int PlayerTwoRoll { get; set; }
}
public sealed class ReplacedDamageEvent : EventBase
public sealed class ReplacedDamageEvent : IShrinkEvent
{
public int TargetPlayer { get; set; }
public int Amount { get; set; }
public int RemainingHealth { get; set; }
}
public sealed class ReplacedRewardEvent : EventBase
public sealed class ReplacedRewardEvent : IShrinkEvent
{
public string RewardId { get; set; } = string.Empty;
}
public sealed class ReplacedSaveEvent : EventBase
public sealed class ReplacedSaveEvent : IShrinkEvent
{
public string Operation { get; set; } = string.Empty;
public bool Success { get; set; }
}
public sealed class ReplacedNetworkStatusEvent : EventBase
public sealed class ReplacedNetworkStatusEvent : IShrinkEvent
{
public string Status { get; set; } = string.Empty;
public string Detail { get; set; } = string.Empty;