Exemple #1
0
    //===========================   스킬 테이블   ===========================
    // id로 검색, 반환
    public void ParseByID(SkillStruct data, int id)
    {
        for (int row = 2; row < rowCnt; row++)
        {
            if (!Convert.ToInt32(stringList[colCnt * row]).Equals(id))
                continue;

            data.SetData(
                Convert.ToInt32 (stringList[colCnt * row]),
                Convert.ToString(stringList[colCnt * row + 1]),
                Convert.ToInt32 (stringList[colCnt * row + 2]),
                Convert.ToInt32 (stringList[colCnt * row + 3]),
                Convert.ToInt32 (stringList[colCnt * row + 4]),
                Convert.ToInt32 (stringList[colCnt * row + 5]));
            break;
        }
    }
Exemple #2
0
    // 기능과 선행스킬로 검색, 반환
    public void ParseByFunctionAndPrecedelID(SkillStruct data, int function, int precedeID)
    {
        for (int row = 2; row < rowCnt; row++)
        {
            if (!Convert.ToInt32(stringList[colCnt * row + 2] ).Equals(function) ||
                !Convert.ToInt32(stringList[colCnt * row + 4] ).Equals(precedeID))
                continue;

            data.SetData(
                Convert.ToInt32 (stringList[colCnt * row]),
                Convert.ToString(stringList[colCnt * row + 1]),
                Convert.ToInt32 (stringList[colCnt * row + 2]),
                Convert.ToInt32 (stringList[colCnt * row + 3]),
                Convert.ToInt32 (stringList[colCnt * row + 4]),
                Convert.ToInt32 (stringList[colCnt * row + 5]));
            break;
        }
    }