22 lines
649 B
C#
22 lines
649 B
C#
#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();
|
|
}
|
|
}
|
|
}
|