/// <summary> /// Call with your mod to get the ModSettings /// </summary> /// <param name="mod"></param> /// <param name="modSetting"></param> /// <returns></returns> public static bool TryGetModSetting(Mod mod, out ModSetting modSetting) { modSetting = TModSettings.GetModSetting(mod); if (modSetting != null) { return(true); } return(false); }
/// <summary> /// Call with your mod to get the ModSettings /// </summary> /// <param name="mod"></param> /// <returns></returns> public static ModSetting GetModSettingOrNull(Mod mod) { return(TModSettings.GetModSetting(mod)); }