예제 #1
0
        public void ParseInfo(System.Collections.Hashtable info)
        {
            rawHash       = info;
            this.id       = info.GetValue <string>((int)SPC.Id, string.Empty);
            this.template = info.GetValue <string>((int)SPC.Template, string.Empty);
            this.level    = info.GetValue <int>((int)SPC.Level, 0);
            this.damage   = info.Value <float>((int)SPC.Damage);

            this.optimalDistance = info.GetValue <float>((int)SPC.OptimalDistance, 0f);

            this.color          = (ObjectColor)(byte)info.GetValue <int>((int)SPC.Color, (int)(byte)ObjectColor.white);
            this.damageType     = (WeaponDamageType)(byte)info.Value <byte>((int)SPC.DamageType);
            this.baseCritChance = (float)info.GetValue <float>((int)SPC.CritChance, 0f);
            workshop            = (Workshop)(byte)(int)info.GetValue <int>((int)SPC.Workshop, (int)Workshop.DarthTribe);
            binded = info.GetValue <bool>((int)SPC.Binded, binded);
        }