示例#1
0
        void AddTranslate()
        {
            StringProto recipeName  = new StringProto();
            StringProto desc        = new StringProto();
            StringProto recipe2Name = new StringProto();
            StringProto desc2       = new StringProto();
            StringProto recipe3Name = new StringProto();
            StringProto desc3       = new StringProto();


            recipeName.ID   = 10553;
            recipeName.Name = "宇宙对撞机";
            recipeName.name = "宇宙对撞机";
            recipeName.ZHCN = "宇宙对撞机";
            recipeName.ENUS = "Universe collider";
            recipeName.FRFR = "Universe collider";

            desc.ID   = 10554;
            desc.Name = "宇宙对撞机描述";
            desc.name = "宇宙对撞机描述";
            desc.ZHCN = "如果用恒星级的能量探究宇宙矩阵的奥秘呢?";
            desc.ENUS = "What if we use the energy of stars to explore the mystery of the universe matrix?";
            desc.FRFR = "What if we use the energy of stars to explore the mystery of the universe matrix?";


            recipe2Name.ID   = 10555;
            recipe2Name.Name = "真理矩阵";
            recipe2Name.name = "真理矩阵";
            recipe2Name.ZHCN = "真理矩阵";
            recipe2Name.ENUS = "Truth matrix";
            recipe2Name.FRFR = "Truth matrix";

            desc2.ID   = 10556;
            desc2.Name = "真理矩阵描述";
            desc2.name = "真理矩阵描述";
            desc2.ZHCN = "这个美妙的方块中包含着宇*的真理和万物的法则。面对着真**阵,仿佛一切***都****了,但**********吗?";
            desc2.ENUS = "This wonderful square contains the truth of the univ**se and the law of everything. Facing the tr*** **trix, everything seems to ** ***********. But is ** ***** **?";
            desc2.FRFR = "This wonderful square contains the truth of the univ**se and the law of everything. Facing the tr*** **trix, everything seems to ** ***********. But is ** ***** **?";

            recipe3Name.ID   = 10557;
            recipe3Name.Name = "探知真理";
            recipe3Name.name = "探知真理";
            recipe3Name.ZHCN = "探知真理";
            recipe3Name.ENUS = "Exploring the truth";
            recipe3Name.FRFR = "Exploring the truth";

            desc3.ID   = 10558;
            desc3.Name = "探知真理描述";
            desc3.name = "探知真理描述";
            desc3.ZHCN = "触摸造*主。";
            desc3.ENUS = "Touch the Crea*or.";
            desc3.FRFR = "Touch the Crea*or";

            LDBTool.PreAddProto(ProtoType.String, recipeName);
            LDBTool.PreAddProto(ProtoType.String, desc);
            LDBTool.PreAddProto(ProtoType.String, recipe2Name);
            LDBTool.PreAddProto(ProtoType.String, desc2);
            LDBTool.PreAddProto(ProtoType.String, recipe3Name);
            LDBTool.PreAddProto(ProtoType.String, desc3);
        }
示例#2
0
        public static int registerBuilding(String name, String description, String iconPath, int gridIndex, int modelIndex)
        {
            int id = findAvailableID(2000, LDB.items, items);

            ItemProto proto = new ItemProto
            {
                Type        = EItemType.Production,
                StackSize   = 50,
                IconPath    = iconPath,
                Name        = name,
                Description = description,
                GridIndex   = gridIndex,
                DescFields  = new [] { 22, 11, 12, 1 },
                ID          = id,
                ModelIndex  = modelIndex,
                ModelCount  = 1,
                BuildIndex  = 703,
                BuildMode   = 1,
                IsEntity    = true,
                CanBuild    = true
            };

            LDBTool.PreAddProto(ProtoType.Item, proto);

            items.Add(proto.ID, proto);
            itemLookup.Add(name, proto.ID);
            return(proto.ID);
        }
示例#3
0
        /// <summary>
        /// Registers a RecipeProto
        /// </summary>
        /// <param name="id">UNIQUE id of your recipe</param>
        /// <param name="type">Recipe type</param>
        /// <param name="time">Time in ingame ticks. How long item is being made</param>
        /// <param name="input">Array of input IDs</param>
        /// <param name="inCounts">Array of input COUNTS</param>
        /// <param name="output">Array of output IDs</param>
        /// <param name="outCounts">Array of output COUNTS</param>
        /// <param name="description">LocalizedKey of description of this item</param>
        /// <param name="techID">Tech id, which unlock this recipe</param>
        public static void registerRecipe(int id, ERecipeType type, int time, int[] input, int[] inCounts,
                                          int[] output,
                                          int[] outCounts, string description, int techID = 1)
        {
            if (output.Length > 0)
            {
                ItemProto first = items[output[0]];
                TechProto tech  = LDB.techs.Select(techID);

                RecipeProto proto = new RecipeProto
                {
                    Type         = type,
                    Handcraft    = true,
                    TimeSpend    = time,
                    Items        = input,
                    ItemCounts   = inCounts,
                    Results      = output,
                    ResultCounts = outCounts,
                    Description  = description,
                    GridIndex    = first.GridIndex,
                    IconPath     = first.IconPath,
                    Name         = first.Name + "Recipe",
                    preTech      = tech,
                    ID           = id
                };

                LDBTool.PreAddProto(ProtoType.Recipe, proto);
                recipes.Add(id, proto);
            }
        }
示例#4
0
 private void SetStringProto(StringProto proto, int id, String strCN, String strEN)
 {
     proto.ID   = id;
     proto.Name = strCN;
     proto.name = strCN;
     proto.ZHCN = strCN;
     proto.ENUS = strEN;
     proto.FRFR = strEN;
     LDBTool.PreAddProto(ProtoType.String, proto);
 }
示例#5
0
        void AddTranslation()
        {
            StringProto mk1Name = new StringProto();

            mk1Name.ID   = 10500;
            mk1Name.Name = "Smelter MK. I";
            mk1Name.name = "Smelter MK. I";
            mk1Name.ZHCN = "冶炼厂MK。 I";
            mk1Name.ENUS = "Smelter MK. I";
            mk1Name.FRFR = "Smelter MK. I";

            StringProto mk2Name = new StringProto();

            mk2Name.ID   = 10501;
            mk2Name.Name = "Smelter MK. II";
            mk2Name.name = "Smelter MK. II";
            mk2Name.ZHCN = "冶炼厂MK。 II";
            mk2Name.ENUS = "Smelter MK. II";
            mk2Name.FRFR = "Smelter MK. II";

            StringProto mk3Name = new StringProto();

            mk3Name.ID   = 10503;
            mk3Name.Name = "Smelter MK. III";
            mk3Name.name = "Smelter MK. III";
            mk3Name.ZHCN = "冶炼厂MK。 III";
            mk3Name.ENUS = "Smelter MK. III";
            mk3Name.FRFR = "Smelter MK. III";

            StringProto mk2Desc = new StringProto();

            mk2Desc.ID   = 10502;
            mk2Desc.Name = "1.5x the speed of a Smelter MK. I";
            mk2Desc.name = "1.5x the speed of a Smelter MK. I";
            mk2Desc.ZHCN = "冶炼厂速度的1.5倍";
            mk2Desc.ENUS = "1.5x the speed of a Smelter MK. I";
            mk2Desc.FRFR = "1.5x the speed of a Smelter MK. I";

            StringProto mk3Desc = new StringProto();

            mk3Desc.ID   = 10504;
            mk3Desc.Name = "2x the speed of a Smelter MK. I";
            mk3Desc.name = "2x the speed of a Smelter MK. I";
            mk3Desc.ZHCN = "速度是冶炼厂MK的2倍。一世";
            mk3Desc.ENUS = "2x the speed of a Smelter MK. I";
            mk3Desc.FRFR = "2x the speed of a Smelter MK. I";

            LDBTool.PreAddProto(ProtoType.String, mk1Name);
            LDBTool.PreAddProto(ProtoType.String, mk2Name);
            LDBTool.PreAddProto(ProtoType.String, mk3Name);
            LDBTool.PreAddProto(ProtoType.String, mk2Desc);
            LDBTool.PreAddProto(ProtoType.String, mk3Desc);
        }
示例#6
0
        /// <summary>
        /// Registers a LocalizedKey
        /// </summary>
        /// <param name="key">UNIQUE key of your localizedKey</param>
        /// <param name="enTrans">English translation for this key</param>
        public static void registerString(string key, string enTrans)
        {
            int id = findAvailableID(100, LDB.strings, strings);

            StringProto proto = new StringProto
            {
                Name = key,
                ENUS = enTrans,
                ID   = id
            };

            LDBTool.PreAddProto(ProtoType.String, proto);
            strings.Add(id, proto);
        }
示例#7
0
        //All of these register a specified proto in LDBTool
        public static int registerModel(String prefabPath)
        {
            int id = findAvailableID(100, LDB.models, models);

            ModelProto proto = new ModelProto
            {
                Name       = id.ToString(),
                PrefabPath = prefabPath,
                ID         = id
            };

            LDBTool.PreAddProto(ProtoType.Model, proto);
            models.Add(proto.ID, proto);
            return(proto.ID);
        }
示例#8
0
        private void AddTranslate()
        {
            stringSapling         = new StringProtoJP(28500, "sapling", "Sapling", "苗木");
            stringPlantRecipe     = new StringProtoJP(28501, "plantRecipe", "Log (original)", "木材(原始的)");
            stringPlantRecipeDesc = new StringProtoJP(28502, "plantRecipeDesc", "Growing trees.", "木を育てる。");
            stringCharcoal        = new StringProtoJP(28503, "charcoal", "Charcoal", "木炭");
            stringCharcoalDesc    = new StringProtoJP(28504, "charcoalDesc",
                                                      "Ordinary fuel. obtained by smelting wood, has the same energy as coal.",
                                                      "平凡な燃料です。木を製錬することで得られ、石炭と同等のエネルギーを有します。");

            LDBTool.PreAddProto(ProtoType.String, stringSapling);
            LDBTool.PreAddProto(ProtoType.String, stringPlantRecipe);
            LDBTool.PreAddProto(ProtoType.String, stringPlantRecipeDesc);
            LDBTool.PreAddProto(ProtoType.String, stringCharcoal);
            LDBTool.PreAddProto(ProtoType.String, stringCharcoalDesc);
        }
示例#9
0
        //All of these register a specified proto in LDBTool

        /// <summary>
        /// Registers a ModelProto
        /// </summary>
        /// <param name="id">UNIQUE id of your model</param>
        /// <param name="prefabPath">Path to the prefab, starting from asset folder in your unity project</param>
        /// <param name="mats">List of materials to use</param>
        public static ModelProto registerModel(int id, string prefabPath, Material[] mats)
        {
            //int id = findAvailableID(100, LDB.models, models);

            ModelProto proto = new ModelProto
            {
                Name       = id.ToString(),
                PrefabPath = prefabPath,
                ID         = id
            };

            LDBTool.PreAddProto(ProtoType.Model, proto);
            models.Add(proto.ID, proto);
            modelMats.Add(prefabPath, mats);

            return(proto);
        }
示例#10
0
        //All of these register a specified proto in LDBTool

        /// <summary>
        /// Registers a ModelProto
        /// </summary>
        /// <param name="id">UNIQUE id of your model</param>
        /// <param name="proto">ItemProto which will be turned into building</param>
        /// <param name="prefabPath">Path to the prefab, starting from asset folder in your unity project</param>
        /// <param name="mats">List of materials to use</param>
        /// <param name="descFields">int Array of used description fields</param>
        /// <param name="buildIndex">Index in build Toolbar, FSS, F - first submenu, S - second submenu</param>
        /// <param name="grade">Grade of the building, used to add upgrading</param>
        /// <param name="upgradesIDs">List of buildings ids, that are upgradable to this one. You need to include all of them here in order. ID of this building should be zero</param>
        public static ModelProto registerModel(int id, ItemProto proto, string prefabPath, Material[] mats,
                                               int[] descFields, int buildIndex, int grade = 0, int[] upgradesIDs = null)
        {
            ModelProto model = new ModelProto
            {
                Name       = id.ToString(),
                PrefabPath = prefabPath,
                ID         = id
            };

            proto.Type       = EItemType.Production;
            proto.ModelIndex = id;
            proto.ModelCount = 1;
            proto.BuildIndex = buildIndex;
            proto.BuildMode  = 1;
            proto.IsEntity   = true;
            proto.CanBuild   = true;
            proto.DescFields = descFields;
            if (grade != 0 && upgradesIDs != null)
            {
                proto.Grade = grade;
                for (int i = 0; i < upgradesIDs.Length; i++)
                {
                    int itemID = upgradesIDs[i];
                    if (itemID == 0)
                    {
                        continue;
                    }

                    itemUpgradeList.Add(itemID, i + 1);
                }

                upgradesIDs[grade - 1] = proto.ID;
                proto.Upgrades         = upgradesIDs;
            }

            LDBTool.PreAddProto(ProtoType.Model, model);
            models.Add(model.ID, model);
            modelMats.Add(prefabPath, mats);

            return(model);
        }
示例#11
0
        /// <summary>
        /// Registers a TechProto for a technology.
        /// Total amount of each jello is calculated like this: N = H*C/3600, where H - total hash count, C - items per minute of jello.
        /// </summary>
        /// <param name="id"> UNIQUE ID of the technology</param>
        /// <param name="name">LocalizedKey of name of the tech</param>
        /// <param name="description">LocalizedKey of description of the tech</param>
        /// <param name="conclusion">LocalizedKey of conclusion of the tech upon completion</param>
        /// <param name="PreTechs">Techs which lead to this tech</param>
        /// <param name="Jellos">Items required to research the tech</param>
        /// <param name="ItemPoints">Amount of items per minute required to research the tech</param>
        /// <param name="HashNeeded">Number of hashes needed required to research the tech</param>
        /// <param name="UnlockRecipes">Once the technology has completed, what recipes are unlocked</param>
        /// <param name="position">Vector2 position of the technology on the technology screen</param>

        public static TechProto registerTech(int id, String name, String description, String conclusion, int[] PreTechs, int[] Jellos, int[] ItemPoints, long HashNeeded,
                                             int[] UnlockRecipes, Vector2 position)

        {
            RecipeProto first = recipes.ContainsKey(UnlockRecipes[0]) ? recipes[UnlockRecipes[0]] : LDB.recipes.Select(UnlockRecipes[0]);

            bool isLabTech = Jellos.Any(itemId => LabComponent.matrixIds.Contains(itemId));


            TechProto proto = new TechProto
            {
                ID               = id,
                Name             = name,
                Desc             = description,
                Published        = true,
                Conclusion       = conclusion,
                IconPath         = first.IconPath,
                IsLabTech        = isLabTech,
                PreTechs         = PreTechs,
                Items            = Jellos,
                ItemPoints       = ItemPoints,
                HashNeeded       = HashNeeded,
                UnlockRecipes    = UnlockRecipes,
                AddItems         = new int[] { }, // what items to gift after research is done
                AddItemCounts    = new int[] { },
                Position         = position,
                PreTechsImplicit = new int[] { }, //Those funky implicit requirements
                UnlockFunctions  = new int[] { }, //Upgrades.
                UnlockValues     = new double[] { },
            };

            for (int i = 0; i < proto.PreTechs.Length; i++)
            {
                TechProto OldTech = LDB.techs.Select(PreTechs[i]);
                techUpdateList.Add(OldTech, proto); //OldTech = Tech whose PostTechArray needs editing
            }

            LDBTool.PreAddProto(ProtoType.Tech, proto);
            techs.Add(id, proto);

            return(proto);
        }
示例#12
0
        /// <summary>
        /// Registers a TechProto for a technology.
        /// Total amount of each jello is calculated like this: N = H*C/3600, where H - total hash count, C - items per minute of jello.
        /// </summary>
        /// <param name="id"> UNIQUE ID of the technology. Note that if id > 2000 tech will be on upgrades page.</param>
        /// <param name="name">LocalizedKey of name of the tech</param>
        /// <param name="description">LocalizedKey of description of the tech</param>
        /// <param name="conclusion">LocalizedKey of conclusion of the tech upon completion</param>
        /// <param name="iconPath">Path to icon, starting from assets folder of your unity project</param>
        /// <param name="preTechs">Techs which lead to this tech</param>
        /// <param name="jellos">Items required to research the tech</param>
        /// <param name="jelloRate">Amount of items per minute required to research the tech</param>
        /// <param name="hashNeeded">Number of hashes needed required to research the tech</param>
        /// <param name="unlockRecipes">Once the technology has completed, what recipes are unlocked</param>
        /// <param name="position">Vector2 position of the technology on the technology screen</param>
        public static TechProto registerTech(int id, string name, string description, string conclusion,
                                             string iconPath, int[] preTechs, int[] jellos, int[] jelloRate, long hashNeeded,
                                             int[] unlockRecipes, Vector2 position)

        {
            bool isLabTech = jellos.Any(itemId => LabComponent.matrixIds.Contains(itemId));


            TechProto proto = new TechProto
            {
                ID               = id,
                Name             = name,
                Desc             = description,
                Published        = true,
                Conclusion       = conclusion,
                IconPath         = iconPath,
                IsLabTech        = isLabTech,
                PreTechs         = preTechs,
                Items            = jellos,
                ItemPoints       = jelloRate,
                HashNeeded       = hashNeeded,
                UnlockRecipes    = unlockRecipes,
                AddItems         = new int[] { }, // what items to gift after research is done
                AddItemCounts    = new int[] { },
                Position         = position,
                PreTechsImplicit = new int[] { }, //Those funky implicit requirements
                UnlockFunctions  = new int[] { }, //Upgrades.
                UnlockValues     = new double[] { },
            };

            foreach (int tech in preTechs)
            {
                //Do not do LDB.techs.Select here, proto could be not added yet.
                techUpdateList.Add(tech, proto);
            }

            LDBTool.PreAddProto(ProtoType.Tech, proto);
            techs.Add(id, proto);

            return(proto);
        }
        /// <summary>
        /// 添加翻译
        /// </summary>
        void AddTranslate()
        {
            // 添加翻译
            StringProto nameString = new StringProto();

            nameString.ID   = 10001;
            nameString.Name = "超级传送带MKI";
            nameString.name = "超级传送带MKI";
            nameString.ZHCN = "超级传送带 MK.I";
            nameString.ENUS = "Super Belt MK.I";
            nameString.FRFR = "Super Belt MK.I";
            StringProto descString = new StringProto();

            descString.ID   = 10002;
            descString.Name = "超级传送带MKI描述";
            descString.name = "超级传送带MKI描述";
            descString.ZHCN = "比极速传送带更强力!";
            descString.ENUS = "It can transport items at 60/s!";
            descString.FRFR = "It can transport items at 60/s!";
            StringProto nameString2 = new StringProto();

            nameString2.ID   = 10003;
            nameString2.Name = "超级传送带MKII";
            nameString2.name = "超级传送带MKII";
            nameString2.ZHCN = "超级传送带 MK.II";
            nameString2.ENUS = "Super Belt MK.II";
            nameString2.FRFR = "Super Belt MK.II";
            StringProto descString2 = new StringProto();

            descString2.ID   = 10004;
            descString2.Name = "超级传送带MKII描述";
            descString2.name = "超级传送带MKII描述";
            descString2.ZHCN = "要不要来跑一圈赤道?";
            descString2.ENUS = "It can transport items at 120/s!";
            descString2.FRFR = "It can transport items at 120/s!";
            LDBTool.PreAddProto(ProtoType.String, nameString);
            LDBTool.PreAddProto(ProtoType.String, descString);
            LDBTool.PreAddProto(ProtoType.String, nameString2);
            LDBTool.PreAddProto(ProtoType.String, descString2);
        }
示例#14
0
        void AddTranslate2()
        {
            StringProto recipe2Name = new StringProto();
            StringProto desc2       = new StringProto();

            recipe2Name.ID   = 10549;
            recipe2Name.Name = "熔炉采矿机B型";
            recipe2Name.name = "熔炉采矿机B型";
            recipe2Name.ZHCN = "熔炉采矿机 B型";
            recipe2Name.ENUS = "Smelter Mining Machine B";
            recipe2Name.FRFR = "Smelter Mining Machine B";

            desc2.ID   = 10550;
            desc2.Name = "熔炉采矿机B型描述";
            desc2.name = "熔炉采矿机B型描述";
            desc2.ZHCN = "在完成对矿产的采集后,自动将矿物熔炼为一级产物(磁铁、玻璃、铜块等)输出。";
            desc2.ENUS = "Mine minerals then automatically smelt the minerals into primary products (magnet, glass, copper ingot, etc.) and output them.";
            desc2.FRFR = "Mine minerals then automatically smelt the minerals into primary products (magnet, glass, copper ingot, etc.) and output them.";

            LDBTool.PreAddProto(ProtoType.String, recipe2Name);
            LDBTool.PreAddProto(ProtoType.String, desc2);
        }
示例#15
0
        void AddTranslate()
        {
            StringProto recipeName = new StringProto();
            StringProto desc       = new StringProto();

            recipeName.ID   = 28001;
            recipeName.Name = "催化电解";
            recipeName.name = "催化电解";
            recipeName.ZHCN = "催化电解";
            recipeName.ENUS = "Water Electrolysis";
            recipeName.FRFR = "Water Electrolysis";

            desc.ID   = 28002;
            desc.Name = "催化电解描述";
            desc.name = "催化电解描述";
            desc.ZHCN = "电解水并获取氢气。";
            desc.ENUS = "Electrolysis of water to produce hydrogen.";
            desc.FRFR = "Electrolysis of water to produce hydrogen.";

            LDBTool.PreAddProto(ProtoType.String, recipeName);
            LDBTool.PreAddProto(ProtoType.String, desc);
        }
示例#16
0
        /// <summary>
        /// Registers a RecipeProto
        /// </summary>
        /// <param name="id">UNIQUE id of your recipe</param>
        /// <param name="type">Recipe type</param>
        /// <param name="time">Time in ingame ticks. How long item is being made</param>
        /// <param name="input">Array of input IDs</param>
        /// <param name="inCounts">Array of input COUNTS</param>
        /// <param name="output">Array of output IDs</param>
        /// <param name="outCounts">Array of output COUNTS</param>
        /// <param name="description">LocalizedKey of description of this item</param>
        /// <param name="techID">Tech id, which unlock this recipe</param>
        public static RecipeProto registerRecipe(int id, ERecipeType type, int time, int[] input, int[] inCounts,
                                                 int[] output,
                                                 int[] outCounts, string description, int techID = 0)
        {
            if (output.Length > 0)
            {
                ItemProto first = items.ContainsKey(output[0]) ? items[output[0]] : LDB.items.Select(output[0]);

                TechProto tech = null;
                if (techID != 0 && LDB.techs.Exist(techID))
                {
                    tech = LDB.techs.Select(techID);
                }

                RecipeProto proto = new RecipeProto
                {
                    Type         = type,
                    Handcraft    = true,
                    TimeSpend    = time,
                    Items        = input,
                    ItemCounts   = inCounts,
                    Results      = output,
                    ResultCounts = outCounts,
                    Description  = description,
                    GridIndex    = first.GridIndex,
                    IconPath     = first.IconPath,
                    Name         = first.Name + "Recipe",
                    preTech      = tech,
                    ID           = id
                };

                LDBTool.PreAddProto(ProtoType.Recipe, proto);
                recipes.Add(id, proto);

                return(proto);
            }

            throw new ArgumentException("Output array must not be empty");
        }
示例#17
0
        void AddTranslate3()
        {
            StringProto recipe3Name = new StringProto();
            StringProto desc3       = new StringProto();

            recipe3Name.ID   = 10551;
            recipe3Name.Name = "化工采矿机C型";
            recipe3Name.name = "化工采矿机C型";
            recipe3Name.ZHCN = "化工采矿机 C型";
            recipe3Name.ENUS = "Chemical Mining Machine C";
            recipe3Name.FRFR = "Chemical Mining Machine C";

            desc3.ID   = 10552;
            desc3.Name = "化工采矿机C型描述";
            desc3.name = "化工采矿机C型描述";
            desc3.ZHCN = "采集可燃冰输出石墨烯(氢气会被浪费),采集刺笋晶体输出碳纳米管。";
            desc3.ENUS = "Mine fire ice, output graphene. Mine spiniform stalagmite crystal, output carbon nanotube.";
            desc3.FRFR = "Mine fire ice, output graphene. Mine spiniform stalagmite crystal, output carbon nanotube.";

            LDBTool.PreAddProto(ProtoType.String, recipe3Name);
            LDBTool.PreAddProto(ProtoType.String, desc3);
        }
示例#18
0
        void AddTranslate2()
        {
            StringProto recipe2Name = new StringProto();
            StringProto desc2       = new StringProto();

            recipe2Name.ID   = 10545;
            recipe2Name.Name = "轨道精炼器";
            recipe2Name.name = "轨道精炼器";
            recipe2Name.ZHCN = "超级轨道精炼器";
            recipe2Name.ENUS = "Oribital Refined Collector";
            recipe2Name.FRFR = "Oribital Refined Collector";

            desc2.ID   = 10546;
            desc2.Name = "轨道精炼器描述";
            desc2.name = "轨道精炼器描述";
            desc2.ZHCN = "以极快的速度采集巨星的副产物(冰巨星-氢气;气态巨星-重氢),但不再采集首要资源。";
            desc2.ENUS = "Collect by-products of gas giants (ice giant: Hydrogen;  gas giant: Deuterium) at super high speed, but it won't collect the primary resource.";
            desc2.FRFR = "Collect by-products of gas giants (ice giant: Hydrogen;  gas giant: Deuterium) at super high speed, but it won't collect the primary resource.";

            LDBTool.PreAddProto(ProtoType.String, recipe2Name);
            LDBTool.PreAddProto(ProtoType.String, desc2);
        }
        //void Update()
        //{
        //    if (LDB._items != null)
        //    {
        //        foreach (var itemData in LDB._items.dataArray)
        //        {
        //            if (itemData.ID == 9011)
        //            {
        //                LDB._
        //            }
        //        }

        //    }
        //}
        void AddLanguage()
        {
            StringProto PenroseBallName = new StringProto();
            StringProto PenroseBallDesc = new StringProto();

            PenroseBallName.ID   = 10012;
            PenroseBallName.Name = "人造黑洞";
            PenroseBallName.name = "人造黑洞";
            PenroseBallName.ZHCN = "人造黑洞";
            PenroseBallName.ENUS = "Artificial black holes";
            PenroseBallName.FRFR = "Artificial black holes";

            PenroseBallDesc.ID   = 10013;
            PenroseBallDesc.Name = "人造黑洞描述";
            PenroseBallDesc.name = "人造黑洞描述";
            PenroseBallDesc.ZHCN = "建立于人造黑洞上的彭罗斯球体,利用黑洞能层加速电磁波,使得电磁波强度呈指数倍增长,是通过超辐射散射收集能量的装置,不过小心,它可能会爆炸!(注意时刻向黑洞内投送物质维持其稳定,好在它不挑食)";
            PenroseBallDesc.ENUS = "The Penrose sphere, built on a man-made black hole, uses the black hole's ergosphere to accelerate electromagnetic waves, making them exponentially stronger, a device that collects energy through hyperradiation scattering, but watch out, it could explode! (Pay attention to throwing matter into the black hole at all times to keep it stable, but it's not a picky eater.).";
            PenroseBallDesc.FRFR = "The Penrose sphere, built on a man-made black hole, uses the black hole's ergosphere to accelerate electromagnetic waves, making them exponentially stronger, a device that collects energy through hyperradiation scattering, but watch out, it could explode! (Pay attention to throwing matter into the black hole at all times to keep it stable, but it's not a picky eater.).";

            LDBTool.PreAddProto(ProtoType.String, PenroseBallName);
            LDBTool.PreAddProto(ProtoType.String, PenroseBallDesc);
        }
示例#20
0
        /// <summary>
        /// Registers a ItemProto
        /// </summary>
        /// <param name="id">UNIQUE id of your item</param>
        /// <param name="name">LocalizedKey of name of the item</param>
        /// <param name="description">LocalizedKey of description of the item</param>
        /// <param name="iconPath">Path to icon, starting from assets folder of your unity project</param>
        /// <param name="gridIndex">Index in craft menu, format : PYXX, P - page</param>
        /// <param name="stackSize">Stack size of the item</param>
        public static ItemProto registerItem(int id, string name, string description, string iconPath,
                                             int gridIndex, int stackSize = 50)
        {
            //int id = findAvailableID(1001, LDB.items, items);

            ItemProto proto = new ItemProto
            {
                Type        = EItemType.Material,
                StackSize   = stackSize,
                FuelType    = 0,
                IconPath    = iconPath,
                Name        = name,
                Description = description,
                GridIndex   = gridIndex,
                DescFields  = new[] { 1 },
                ID          = id
            };

            LDBTool.PreAddProto(ProtoType.Item, proto);

            items.Add(proto.ID, proto);
            return(proto);
        }
示例#21
0
        void AddTranslate()
        {
            StringProto recipeName = new StringProto();
            StringProto desc       = new StringProto();

            recipeName.ID   = 10547;
            recipeName.Name = "熔炉采矿机A型";
            recipeName.name = "熔炉采矿机A型";
            recipeName.ZHCN = "熔炉采矿机 A型";
            recipeName.ENUS = "Smelter Mining Machine A";
            recipeName.FRFR = "Smelter Mining Machine A";

            desc.ID   = 10548;
            desc.Name = "熔炉采矿机A型描述";
            desc.name = "熔炉采矿机A型描述";
            desc.ZHCN = "在完成对矿产的采集后,自动将矿物熔炼为一级产物(铁块、石材、铜块等)输出。";
            desc.ENUS = "Mine minerals then automatically smelt the minerals into primary products (iron ingot, stone brick, copper ingot, etc.) and output them.";
            desc.FRFR = "Mine minerals then automatically smelt the minerals into primary products (iron ingot, stone brick, copper ingot, etc.) and output them.";


            LDBTool.PreAddProto(ProtoType.String, recipeName);
            LDBTool.PreAddProto(ProtoType.String, desc);
        }
示例#22
0
        void AddTranslate()
        {
            StringProto recipeName = new StringProto();
            StringProto desc       = new StringProto();

            recipeName.ID   = 10543;
            recipeName.Name = "轨道采集器MkII";
            recipeName.name = "轨道采集器MkII";
            recipeName.ZHCN = "轨道采集器 Mk.II";
            recipeName.ENUS = "Oribital Collector Mk.II";
            recipeName.FRFR = "Oribital Collector Mk.II";

            desc.ID   = 10544;
            desc.Name = "轨道采集器mk2描述";
            desc.name = "轨道采集器mk2描述";
            desc.ZHCN = "更快速地采集巨星产出物,且具有更大的容量。";
            desc.ENUS = "Collect the resources of the gas gaints faster with a geart storge space.";
            desc.FRFR = "Collect the resources of the gas gaints faster with a geart storge space.";


            LDBTool.PreAddProto(ProtoType.String, recipeName);
            LDBTool.PreAddProto(ProtoType.String, desc);
        }