21 lines
789 B
C#
21 lines
789 B
C#
|
|
using Verse;
|
||
|
|
|
||
|
|
namespace BlaxCastes
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Shared mod detection. Castes has no hard dependency on any other mod and calls nothing in the
|
||
|
|
/// sibling Blax mods; they reach Castes, never the other way round.
|
||
|
|
/// </summary>
|
||
|
|
public static class Compat
|
||
|
|
{
|
||
|
|
public const string BlaxSlaves = "blax.slaves";
|
||
|
|
public const string BlaxZones = "blax.zones";
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Active by packageId, local or Steam copy. ModsConfig.IsActive misses a mod that is installed
|
||
|
|
/// both ways (the Steam copy gets a "_steam" postfix), so nothing in Blax Castes uses it.
|
||
|
|
/// </summary>
|
||
|
|
public static bool IsActive(string packageId) => ModLister.GetActiveModWithIdentifier(packageId, ignorePostfix: true) != null;
|
||
|
|
}
|
||
|
|
}
|