Exemplo n.º 1
0
 ///	<param name="key">the key used for this category</param>
 /// <param name="icon">the icon to be used for the research category tab</param>
 public static void RegisterCategory(Mod mod, string key, string icon)
 {
     if (!researchCategories.ContainsKey(key))
     {
         ResearchCategory category = new ResearchCategory(mod, key, icon);
         researchCategories[key] = category;
     }
 }
Exemplo n.º 2
0
        public static void AddResearch(ModResearch item)
        {
            ResearchCategory category = GetCategory(item.category);

            if (category != null && !category.research.ContainsKey(item.Name))
            {
                category.research[item.Name] = item;
            }
        }