public int?GetOrder(ToggleableModProxy mod) { var name = mod.GetSerializationString().ToLower(); return(Orders.ContainsKey(name) ? (int?)Orders[name] : null); }
void MakeRequired(ToggleableModProxy mod) { var serializationString = mod.GetSerializationString(); RequiredMods.AddWhenMissing(serializationString); OptionalMods.RemoveLocked(serializationString); mod.IsRequired = true; }
public Dependency GetDesiredModVersion(ToggleableModProxy mod) { var name = mod.GetSerializationString().ToLower(); return(Versions.ContainsKey(name) ? new Dependency(name, Versions[name]) : new GlobalDependency(name)); }