Пример #1
0
        /// <summary>
        /// Adds a new <see cref="TechCategory" /> into the game.
        /// </summary>
        /// <param name="techCatagoryName">The name of the TechCategory. Should not contain special characters.</param>
        /// <param name="displayName">The display name of the TechCategory. Can be anything.</param>
        /// <returns>
        /// The new <see cref="TechCategory" /> that is created.
        /// </returns>
        public TechCategory AddTechCategory(string techCatagoryName, string displayName)
        {
            TechCategory techCategory = TechCategoryPatcher.AddTechCategory(techCatagoryName);

            LanguageHandler.SetLanguageLine("TechCategory" + techCatagoryName, displayName);

            return(techCategory);
        }
Пример #2
0
        /// <summary>
        /// Adds a new <see cref="TechCategory" /> into the game.
        /// </summary>
        /// <param name="techCatagoryName">The name of the TechCategory. Should not contain special characters.</param>
        /// <param name="displayName">The display name of the TechCategory. Can be anything.</param>
        /// <returns>
        /// The new <see cref="TechCategory" /> that is created.
        /// </returns>
        public TechCategory AddTechCategory(string techCatagoryName, string displayName)
        {
            TechCategory techCategory = TechCategoryPatcher.AddTechCategory(techCatagoryName);

            Dictionary <TechCategory, string> valueToString = uGUI_BlueprintsTab.techCategoryStrings.valueToString;

            valueToString[techCategory] = "TechCategory" + techCatagoryName;


            LanguageHandler.SetLanguageLine("TechCategory" + techCatagoryName, displayName);

            return(techCategory);
        }