Exemplo n.º 1
0
    public SkillTemplate(string strKey,SimpleJSON.JSONNode nodeData)
    {
        m_strKey = strKey;

        m_SkillType = (eSkillTemplateType)nodeData["SKILL_TYPE"].AsInt;
        m_RangeType = (eSkillAttackRangeType)nodeData["RANGE_TYPE"].AsInt;
        m_RangeData_1 = nodeData["RANGE_DATA_1"].AsFloat;
        m_RangeData_2 = nodeData["RANGE_DATA_2"].AsFloat;

        for(int i = 0; i < (int)eFactorData.FACTOR_COUNT; ++i)
        {
            eFactorData factorData = (eFactorData)i;
            double valueData = nodeData[factorData.ToString()].AsDouble;
            if (valueData > 0)
                m_FactorData.IncreaseData(factorData, valueData);
        }
    }
Exemplo n.º 2
0
    public SkillTemplate(string _strKey, JSONNode nodeData)
    {
        StrKey = _strKey;

        SKillType = (eSkillTemplateType)nodeData["SKILL_TYPE"].AsInt;
        RangeType = (eSkillAttackRangeType)nodeData["RANGE_TYPE"].AsInt;

        RangeData_1   = nodeData["RANGE_DATA_1"].AsFloat;
        RangeData_2   = nodeData["RANGE_DATA_2"].AsFloat;
        RangeData_3   = nodeData["RANGE_DATA_3"].AsFloat;
        RangeCenter_1 = nodeData["RANGE_CENTER_1"].AsFloat;        // 건희 06/27
        RangeCenter_2 = nodeData["RANGE_CENTER_2"].AsFloat;
        RangeCenter_3 = nodeData["RANGE_CENTER_3"].AsFloat;

        for (int i = 0; i < (int)eStatusData.MAX; i++)
        {
            eStatusData statusData = (eStatusData)i;
            double      valueData  = nodeData[statusData.ToString()].AsDouble;
            if (valueData > 0)
            {
                SkillStatus.IncreaseData(statusData, valueData);
            }
        }
    }