using Verse;
namespace BlaxCastes
{
///
/// 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.
///
public static class Compat
{
public const string BlaxSlaves = "blax.slaves";
public const string BlaxZones = "blax.zones";
///
/// 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.
///
public static bool IsActive(string packageId) => ModLister.GetActiveModWithIdentifier(packageId, ignorePostfix: true) != null;
}
}