demo
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#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.GetRegistry<IReplacedPersonMod>(ReplacedPersonModBridge.RegistryName)
|
||||
.Register(context.ModInfo.ModId, context.ModInfo.ModId, new ExampleGreedRules());
|
||||
}
|
||||
|
||||
public override void OnReady(ShrinkModContext context)
|
||||
{
|
||||
context.Log("Formal registry integration ready; no Harmony patching used.");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user