示例#1
0
        public int?GetOrder(ToggleableModProxy mod)
        {
            var name = mod.GetSerializationString().ToLower();

            return(Orders.ContainsKey(name)
                ? (int?)Orders[name]
                : null);
        }
示例#2
0
        void MakeRequired(ToggleableModProxy mod)
        {
            var serializationString = mod.GetSerializationString();

            RequiredMods.AddWhenMissing(serializationString);
            OptionalMods.RemoveLocked(serializationString);
            mod.IsRequired = true;
        }
示例#3
0
        public Dependency GetDesiredModVersion(ToggleableModProxy mod)
        {
            var name = mod.GetSerializationString().ToLower();

            return(Versions.ContainsKey(name)
                ? new Dependency(name, Versions[name])
                : new GlobalDependency(name));
        }