예제 #1
0
    public BasicStatusTemplateData(string _strKey, JSONNode nodeData, eStatusData statusType)
    {
        StrKey = _strKey;


        double valueData =
            nodeData[statusType.ToString("F")].AsDouble;

        //기존에 쓰던 방식과 다르게 저장할 것이다.
        Status.IncreaseData(statusType, valueData);
    }
예제 #2
0
    public ObjectTemplateData(string _strKey, JSONNode nodeData)
    {
        StrKey = _strKey;

        for (int i = 0; i < (int)eStatusData.MAX; i++)
        {
            eStatusData statusData = (eStatusData)i;
            double      valueData  =
                nodeData[statusData.ToString("F")].AsDouble;
            Status.IncreaseData(statusData, valueData);
        }
    }
예제 #3
0
    public BuffTemplateData(string strKey, JSONNode nodeData)
    {
        StrKey = strKey;
        Heal   = nodeData["HEAL"].AsFloat;
        Time   = nodeData["TIME"].AsFloat;

        //Image = nodeData["IMAGE"];
        //	Category = nodeData["CATEGORY"];

        for (int i = 0; i < (int)eStatusData.MAX; i++)
        {
            eStatusData eStatus   = (eStatusData)i;
            double      valueData =
                nodeData[eStatus.ToString()].AsDouble;
            StatusData.IncreaseData(eStatus, valueData);
        }
    }
예제 #4
0
    public ItemInfo(string _strKey, JSONNode nodeData)
    {
        StrKey   = _strKey;
        ItemName = nodeData["NAME"];
        //	SlotType = (eSlotType)nodeData["SLOT_TYPE"].AsInt;

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

        ItemImage = nodeData["IMAGE"];
    }
예제 #5
0
    public CharacterTemplateData(string _strKey, JSONNode nodeData)
    {
        StrKey = _strKey;

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

        JSONArray arrSkill = nodeData["SKILL"].AsArray;

        if (arrSkill != null)
        {
            for (int i = 0; i < arrSkill.Count; i++)
            {
                ListSkill.Add(arrSkill[i]);
            }
        }
    }
예제 #6
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);
            }
        }
    }