This commit is contained in:
2026-08-17 18:18:13 +08:00
parent 5765f411e9
commit d2cd3b9fa8
188 changed files with 32929 additions and 2 deletions
@@ -0,0 +1,21 @@
#nullable enable
using ReplacedPerson.Core;
using ShrinkModFramework;
namespace ReplacedPerson.Runtime
{
public static class ReplacedPersonModBridge
{
public const string RegistryName = "replaced-person.mods";
public static ReplacedContentCatalog BuildCatalogSnapshot()
{
var registry = new ReplacedPersonRegistry(ReplacedBuiltInContent.Create());
var mods = ShrinkModLoader.GetOrCreateRegistry<IReplacedPersonMod>(RegistryName);
foreach (var entry in mods.Entries)
entry.Value.Register(registry);
return registry.CreateSnapshot();
}
}
}