Exemplo n.º 1
0
            public IMod Get(ModType type)
            {
                var  sysType = type.Type;
                IMod mod;

                if (loadedMods.TryGetValue(sysType, out mod))
                {
                    return(mod);
                }
                mod = loadedMods[sysType] = (IMod)Activator.CreateInstance(sysType);
                return(mod);
            }
Exemplo n.º 2
0
 public bool Has(ModType type)
 {
     return(loadedMods.ContainsKey(type.Type));
 }