demo
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "ExampleGreedMod.Unity",
|
||||
"rootNamespace": "ExampleGreedMod",
|
||||
"references": ["ExampleGreedMod.Rules", "ReplacedPerson.Core", "ReplacedPerson.Runtime", "ShrinkModFramework.Runtime"],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 16ac024bec35a9143a014e25d8b5f634
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b6c3206fd5108243b0e11bc7d4f0194
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user