Ejemplo n.º 1
0
    /// <summary>
    /// 특정무기의 현재강화레벨 대한 능력치 반환
    /// </summary>
    public Infos_Weapon Get_ReinfWeapon(uint weaponIdx, byte RefLv)
    {
        Infos_Weapon _weapon = new Infos_Weapon(TableDataManager.instance.Infos_weapons[weaponIdx]);

        _weapon.AtkMin   = (int)StaticMethod.Get_nextSpec(_weapon.AtkMin, RefLv, true);
        _weapon.AtkMax   = (int)StaticMethod.Get_nextSpec(_weapon.AtkMax, RefLv, true);
        _weapon.Critical = (float)StaticMethod.Get_nextSpec(_weapon.Critical, RefLv, false);

        return(_weapon);
    }
    void Applydata_weaponInfos(List <object> lstData)
    {
        for (int i = 0; i < lstData.Count; i++)
        {
            List <object> _weapon      = (List <object>)lstData[i];
            Infos_Weapon  _infosWeapon = new Infos_Weapon();
            for (int j = 0; j < _weapon.Count; j++)
            {
                switch (j)
                {
                case 0: _infosWeapon.WpnIdx = Convert.ToUInt32(_weapon[j]); break;

                case 1: _infosWeapon.WpnName = (_weapon[j].ToString()); break;

                case 2: _infosWeapon.WpnType = (WEAPONE_TYPE)Convert.ToByte(_weapon[j]); break;

                case 3: _infosWeapon.WpnPart = (EQUIPPART_TYPE)Convert.ToByte(_weapon[j]); break;

                case 4: _infosWeapon.AtkMin = Convert.ToInt32(_weapon[j]); break;

                case 5: _infosWeapon.AtkMax = Convert.ToInt32(_weapon[j]); break;

                case 6: _infosWeapon.AtkRange = Convert.ToInt32(_weapon[j]); break;

                case 7: _infosWeapon.AtkSpeed = Convert.ToInt32(_weapon[j]); break;

                case 8: _infosWeapon.AimInit = Convert.ToInt32(_weapon[j]); break;

                case 9: _infosWeapon.AimCtrl = Convert.ToInt32(_weapon[j]); break;

                case 10: _infosWeapon.Magazine = Convert.ToInt32(_weapon[j]); break;

                case 11: _infosWeapon.Critical = Convert.ToSingle(_weapon[j]); break;

                case 12: _infosWeapon.GunReload = Convert.ToUInt16(_weapon[j]); break;

                case 13: _infosWeapon.SellItTp = (ITEMTYPE)Convert.ToByte(_weapon[j]); break;

                case 14: _infosWeapon.SellItNum = Convert.ToUInt32(_weapon[j]); break;

                case 15: _infosWeapon.ZoomScale = Convert.ToByte(_weapon[j]); break;

                case 16: _infosWeapon.SortIdx = Convert.ToByte(_weapon[j]); break;

                case 17: _infosWeapon.NewFlg = Convert.ToByte(_weapon[j]); break;
                }
            }
            Infos_weapons[_infosWeapon.WpnIdx] = _infosWeapon;
        }
    }
Ejemplo n.º 3
0
 public Infos_Weapon(Infos_Weapon _Infos_Weapon)
 {
     WpnIdx    = _Infos_Weapon.WpnIdx;
     WpnName   = _Infos_Weapon.WpnName;
     WpnType   = _Infos_Weapon.WpnType;
     WpnPart   = _Infos_Weapon.WpnPart;
     AtkMin    = _Infos_Weapon.AtkMin;
     AtkMax    = _Infos_Weapon.AtkMax;
     AtkRange  = _Infos_Weapon.AtkRange;
     AimInit   = _Infos_Weapon.AimInit;
     AtkSpeed  = _Infos_Weapon.AtkSpeed;
     AimCtrl   = _Infos_Weapon.AimCtrl;
     Magazine  = _Infos_Weapon.Magazine;
     Critical  = _Infos_Weapon.Critical;
     GunReload = _Infos_Weapon.GunReload;
     ZoomScale = _Infos_Weapon.ZoomScale;
     mtime     = _Infos_Weapon.mtime;
     ctime     = _Infos_Weapon.ctime;
     SellItTp  = _Infos_Weapon.SellItTp;
     SellItNum = _Infos_Weapon.SellItNum;
 }