public static SkillWrapper Parse(string str)
        {
            //TODO 这里是自定义格式解析的地方
            SkillWrapper wrapper = new SkillWrapper();

            wrapper.Params = MotionEngine.IO.StringConvert.StringToParams(str);
            return(wrapper);
        }
Beispiel #2
0
 public CfgHeroTab(int id, bool isLeader, ERaceType race, string name, string model, int age, long power, float speed, double hp, List <int> someIntParams, List <long> someLongParams, List <float> someFloatParams, List <double> someDoubleParams, List <string> someStringParams, List <string> someLanguageParams, SkillWrapper skillWrapper)
 {
     Id                 = id;
     IsLeader           = isLeader;
     Race               = race;
     Name               = name;
     Model              = model;
     Age                = age;
     Power              = power;
     Speed              = speed;
     Hp                 = hp;
     SomeIntParams      = someIntParams;
     SomeLongParams     = someLongParams;
     SomeFloatParams    = someFloatParams;
     SomeDoubleParams   = someDoubleParams;
     SomeStringParams   = someStringParams;
     SomeLanguageParams = someLanguageParams;
     SkillWrapper       = skillWrapper;
 }
Beispiel #3
0
 public void Create()
 {
     AddElement(1001, new CfgHeroTab(1001, true, (ERaceType)1, LANG.Convert(-565198022), "Model/model1", 30, 99999, 7.654f, 9876543.123, new List <int>()
     {
         1, 2, 3
     }, new List <long>()
     {
         9999, 8888, 7777
     }, new List <float>()
     {
         1.1f, 2.2f, 3.3f
     }, new List <double>()
     {
         9876543.123, 9876543.123
     }, new List <string>()
     {
         "hello", "nihao", "anning"
     }, new List <string>()
     {
         LANG.Convert(-842349938), LANG.Convert(-842334729), LANG.Convert(-842334793)
     }, SkillWrapper.Parse("对周围{5}米范围内敌人,造成{100}点伤害")));
     AddElement(1002, new CfgHeroTab(1002, false, (ERaceType)2, LANG.Convert(-1396438525), "Model/model2", 999, 99999, 7.654f, 9876543.123, new List <int>()
     {
         1, 2, 3
     }, new List <long>()
     {
         9999, 8888, 7777
     }, new List <float>()
     {
         1.1f, 2.2f, 3.3f
     }, new List <double>()
     {
         9876543.123, 9876543.123
     }, new List <string>()
     {
         "hello", "nihao", "anning"
     }, new List <string>()
     {
         LANG.Convert(-842349938), LANG.Convert(-842334729), LANG.Convert(-842334793)
     }, SkillWrapper.Parse("对周围{5}米范围内敌人,造成{100}点伤害")));
 }