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:
+8
-5
@@ -4,17 +4,20 @@ using ShrinkEventBus;
|
||||
|
||||
namespace ShrinkCommand.Integration
|
||||
{
|
||||
[Cancelable]
|
||||
public sealed class ShrinkCommandExecuteRequestEvent : EventBase
|
||||
public sealed class ShrinkCommandExecuteRequestEvent : IShrinkCancelableEvent
|
||||
{
|
||||
private bool _isCanceled;
|
||||
|
||||
public string ServiceName { get; set; } = ShrinkCommandConstants.DefaultServiceName;
|
||||
public string RawInput { get; set; } = string.Empty;
|
||||
public IShrinkCommandSource? Source { get; set; }
|
||||
public bool IsHandled { get; set; }
|
||||
public ShrinkCommandExecutionResult? ExecutionResult { get; set; }
|
||||
public bool IsCanceled => _isCanceled;
|
||||
public void SetCanceled(bool value) => _isCanceled = value;
|
||||
}
|
||||
|
||||
public sealed class ShrinkCommandExecutingEvent : EventBase
|
||||
public sealed class ShrinkCommandExecutingEvent : IShrinkEvent
|
||||
{
|
||||
public string ServiceName { get; set; } = ShrinkCommandConstants.DefaultServiceName;
|
||||
public string RawInput { get; set; } = string.Empty;
|
||||
@@ -24,7 +27,7 @@ namespace ShrinkCommand.Integration
|
||||
public Dictionary<string, string> Arguments { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class ShrinkCommandExecutedEvent : EventBase
|
||||
public sealed class ShrinkCommandExecutedEvent : IShrinkEvent
|
||||
{
|
||||
public string ServiceName { get; set; } = ShrinkCommandConstants.DefaultServiceName;
|
||||
public string RawInput { get; set; } = string.Empty;
|
||||
@@ -36,7 +39,7 @@ namespace ShrinkCommand.Integration
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class ShrinkCommandFailedEvent : EventBase
|
||||
public sealed class ShrinkCommandFailedEvent : IShrinkEvent
|
||||
{
|
||||
public string ServiceName { get; set; } = ShrinkCommandConstants.DefaultServiceName;
|
||||
public string RawInput { get; set; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user