예제 #1
0
 public M2Unit() : base(8)
 {
     primaryWeapon    = new M2StatWeapons();
     stat_ter         = new M2StatWeapons();
     stat_ter_ex      = null;
     stat_ter_attr    = Stat_pri_attr.no;
     armour_ug_levels = new List <string>();
     armour_ug_models = new List <string>();
     era0             = new List <string>();
     era1             = new List <string>();
     era2             = new List <string>();
 }
예제 #2
0
        private void HandleStatPriAttr(ref Stat_pri_attr stat_Pri_, string[] data)
        {
            LookUpTables lu = new LookUpTables();

            Stat_pri_attr temp = Stat_pri_attr.no;

            stat_Pri_ = temp;

            if (data[0] == lu.LookUpString <Stat_pri_attr>(Stat_pri_attr.no))
            {
                return;
            }

            foreach (string str in data)
            {
                stat_Pri_ |= lu.LookUpKey <Stat_pri_attr>(str.Trim());
            }

            stat_Pri_ &= ~Stat_pri_attr.no;
        }