예제 #1
0
파일: Unit.cs 프로젝트: yanggs07/IntelliCG
        //C|0|0|驯兽湿泛|19F25|0|9|A5|133|32|78|8000005|0|0|5|水龙蜥8D|18D59|0|9|4B|15A|9C|9C|6000009|0|0|A|哥布林|18DA8|0|1|67|67|46|46|3000001|0|0|
        //C|0|0|驯兽湿泛|19F25|0|9|A5|133|32|78|8000005|0|0|5|水龙蜥8D|18D59|0|9|4B|15A|9C|9C|6000009|0|0|A|哥布林|18DA8|0|2|7A|7A|4B|4B|3000001|0|0|F|哥布林|18DA8|0|2|71|71|48|48|3000001|0|0|

        public Unit(IReadOnlyList <string> dataList, UnitList units)
        {
            Position = dataList[0];
            Index    = Convert.ToInt32(dataList[0], 16);
            Name     = dataList[1];
            Hp       = Convert.ToInt32(dataList[5], 16);
            HpMax    = Convert.ToInt32(dataList[6], 16);
            Mp       = Convert.ToInt32(dataList[7], 16);
            MpMax    = Convert.ToInt32(dataList[8], 16);
            Level    = Convert.ToInt32(dataList[4], 16);
            _units   = units;

            //Console.WriteLine($@"敌人,Index:{Index},Name:{Name},Hp:{Hp}/{HpMax},Mp:{Mp}/{MpMax},Position:{Position}");
        }
예제 #2
0
 public Combat(CrossGate cg) : base(cg)
 {
     Units = new UnitList(cg.Memo);
 }