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"); }
private TPMC(IModRegistry registry) { this.CustomKissing = new CustomKissingModProxy(registry); }
public CustomKissingModProxy(IModRegistry registry) { this.api = registry.GetApi <ICustomKissingModApi>("Digus.CustomKissingMod"); }