Beispiel #1
0
        private static string checkForVariationPointer(string s)
        {
            if (ClassCreationEngine.ItemRemakeHash == null)
            {
                ClassCreationEngine.CreateRemakeUtil(false);
            }
            if (ClassCreationEngine.ItemRemakePointer == null)
            {
                ClassCreationEngine.CreateRemakeInfoData(false);
            }

            if (ClassCreationEngine.ItemRemakeHash.ContainsKey(s))
            {
                string varId     = ClassCreationEngine.ItemRemakeHash[s];
                string pointerID = ClassCreationEngine.ItemRemakePointer[varId];

                if (pointerID == s) // don't return self
                {
                    return(string.Empty);
                }
                else
                {
                    return(pointerID);
                }
            }

            return(string.Empty);
        }
Beispiel #2
0
        static void DoEverything()
        {
            foreach (string k in PathHelper.Languages.Keys)
            {
                ItemCreationEngine.CreateItemList(k);
                ItemCreationEngine.CreateVillagerList(k);
                ItemCreationEngine.CreateBodyFabricColorPartsList(k);
                ItemCreationEngine.CreateVillagerPhraseList(k);
            }

            ClassCreationEngine.CreateItemKind();
            ClassCreationEngine.CreateCustomColor();
            ClassCreationEngine.CreateRCP();
            ClassCreationEngine.CreateRCPC();
            ClassCreationEngine.CreateRemakeInfoData();
            ClassCreationEngine.CreateRemakeUtil();
            ClassCreationEngine.CreateRecipeUtil();
            ClassCreationEngine.CreateMenuIcon();
        }