示例#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
 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);
 }
示例#3
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);
        }
示例#4
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);
        }
示例#5
0
        public void GetTextFromStringProtoTest()
        {
            var settings = new LanguageSettings();

            settings.OriginalLanguage = "ENUS";
            var val = new StringProto()
            {
                ENUS = "ENUS",
                FRFR = "FRFR",
                ZHCN = "ZHCN",
            };

            var translationDelegate = LanguageData.GetOriginalTextDelegate <StringProto>(settings);

            Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual("ENUS", translationDelegate(val));
        }
示例#6
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);
        }
        /// <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);
        }
        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);
        }
示例#9
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);
        }
示例#10
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);
        }
示例#11
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);
        }
示例#13
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);
        }
示例#14
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);
        }
示例#15
0
 public static void RegisterString(StringProto proto)
 {
     BindConfig(proto);
     AddStringProtos.Add(proto);
 }