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.
26 lines
734 B
C#
26 lines
734 B
C#
#nullable enable
|
|
|
|
using ReplacedPerson.Core;
|
|
using ReplacedPerson.Runtime;
|
|
using ShrinkModFramework;
|
|
|
|
namespace ExampleGreedMod
|
|
{
|
|
[ShrinkMod("example.greedy-training", "贪婪训练 Mod", "1.0.0", AutoApplyHarmonyPatches = false)]
|
|
public sealed class ExampleGreedUnityMod : ShrinkModBase
|
|
{
|
|
public override void OnRegisterContent(ShrinkModContext context)
|
|
{
|
|
context.RegisterContent(
|
|
ReplacedPersonModBridge.RegistryName,
|
|
"rules",
|
|
new ExampleGreedRules());
|
|
}
|
|
|
|
public override void OnReady(ShrinkModContext context)
|
|
{
|
|
context.Log("Formal registry integration ready; no Harmony patching used.");
|
|
}
|
|
}
|
|
}
|