Esempio n. 1
0
    /// <summary>
    /// 특정 치장(코스튬) 능력치들 반환
    /// </summary>
    public float Get_DecoAbillity(int decoIdx, DECOABL_TYPE _Abillity)
    {
        Array typeArray = Enum.GetValues(typeof(DECOABL_TYPE));

        byte[] abls = new byte[typeArray.Length];

        for (int i = 0; i < typeArray.Length; i++)
        {
            abls[i] = 0;
        }

        if (TableDataManager.instance.Infos_Decos.ContainsKey((uint)decoIdx))
        {
            Infos_Deco _deco = TableDataManager.instance.Infos_Decos[(uint)decoIdx];
            abls[0] = _deco.GrdPwr;
            abls[1] = _deco.RspSpd;
            abls[2] = _deco.SklChgTm;
        }

        return((float)abls[(int)_Abillity]);
    }
    void Applydata_decoInfos(List <object> lstData)
    {
        for (int i = 0; i < lstData.Count; i++)
        {
            List <object> _deco      = (List <object>)lstData[i];
            Infos_Deco    _infosDeco = new Infos_Deco();
            for (int j = 0; j < _deco.Count; j++)
            {
                switch (j)
                {
                case 0: _infosDeco.DecoIdx = Convert.ToUInt32(_deco[j]); break;

                case 1: _infosDeco.DecoName = (_deco[j].ToString()); break;

                case 2: _infosDeco.DecoPart = (DECOPART_TYPE)Convert.ToByte(_deco[j]); break;

                case 3: _infosDeco.GrdPwr = Convert.ToByte(_deco[j]); break;

                case 4: _infosDeco.RspSpd = Convert.ToByte(_deco[j]); break;

                case 5: _infosDeco.SklChgTm = Convert.ToByte(_deco[j]); break;

                case 6: _infosDeco.SellItTp = (ITEMTYPE)Convert.ToByte(_deco[j]); break;

                case 7: _infosDeco.SellItNum = Convert.ToUInt32(_deco[j]); break;

                case 8: _infosDeco.SortIdx = Convert.ToByte(_deco[j]); break;

                case 9: _infosDeco.AttmntActive = Convert.ToByte(_deco[j]); break;

                case 10: _infosDeco.NewFlg = Convert.ToByte(_deco[j]); break;
                }
            }
            Infos_Decos[_infosDeco.DecoIdx] = _infosDeco;
        }
    }