示例#1
0
        public CustomKissingModProxy(IModRegistry registry, IMonitor monitor)
        {
            IModInfo modInfo = registry.Get("Digus.CustomKissingMod");

            if (modInfo != null && modInfo.Manifest.Version.IsOlderThan(MINIMUM_VERSION))
            {
                monitor.Log($"Couldn't work correctly with Custom Kissing Mod version {modInfo.Manifest.Version} (requires >= {MINIMUM_VERSION}). Don't worry, this issue doesn't affect stability, but update is recommended :)", LogLevel.Warn);
            }

            this.api = registry.GetApi <ICustomKissingModApi>("Digus.CustomKissingMod");
        }
示例#2
0
 private TPMC(IModRegistry registry)
 {
     this.CustomKissing = new CustomKissingModProxy(registry);
 }
 public CustomKissingModProxy(IModRegistry registry)
 {
     this.api = registry.GetApi <ICustomKissingModApi>("Digus.CustomKissingMod");
 }