예제 #1
0
    protected override void AddRow(object[] rowInfo)
    {
        stat_catRow row = new stat_catRow();

        row.id                  = GetInt(rowInfo[0]);
        row.name                = GetString(rowInfo[1]);
        row.lv                  = GetInt(rowInfo[2]);
        row.evo                 = GetInt(rowInfo[3]);
        row.atk                 = GetInt(rowInfo[4]);
        row.cooldown            = GetInt(rowInfo[5]);
        row.weight              = GetInt(rowInfo[6]);
        row.paymoney            = GetInt(rowInfo[7]);
        row.hireexp             = GetInt(rowInfo[8]);
        row.ownexp              = GetInt(rowInfo[9]);
        row.exceedlimit         = GetInt(rowInfo[10]);
        row.about               = GetString(rowInfo[11]);
        row.voice               = GetString(rowInfo[12]);
        row.illustra            = GetString(rowInfo[13]);
        row.weapon_on           = GetInt(rowInfo[14]);
        row.addon_sideleft_on   = GetInt(rowInfo[15]);
        row.addon_sideright_on  = GetInt(rowInfo[16]);
        row.addon_back_on       = GetInt(rowInfo[17]);
        row.attack_aniid        = GetInt(rowInfo[18]);
        row.skill_active_id     = GetInt(rowInfo[19]);
        row.skill_active_aniid  = GetInt(rowInfo[20]);
        row.skill_always_id     = GetInt(rowInfo[21]);
        row.skill_always_aniid  = GetInt(rowInfo[22]);
        row.skill_passive_id    = GetInt(rowInfo[23]);
        row.skill_passive_aniid = GetInt(rowInfo[24]);
        rowList.Add(row);
    }
예제 #2
0
    /// <summary>
    /// 与服务器通讯 获得猫分组内容信息(分组内 猫的 名字 等等)
    ///
    /// data 组ID(测试用)
    /// </summary>
    public void SendCatGroupInfo(object data)
    {
        JsonData group   = (JsonData)data;
        int      groupId = (int)group["id"];

        JsonData cat   = new JsonData();
        int      count = 0;

        if (mCatGroupInfoDic.ContainsKey(groupId))
        {
            foreach (CatGroupInfo groupInfo in mCatGroupInfoDic[groupId])
            {
                int         cattype = groupInfo.catTypeId;
                int         id      = groupInfo.id;
                stat_catRow catStat = mCatStatDic[cattype];
                JsonData    child   = new JsonData();
                child["id"]           = id;
                child["cattypeid"]    = cattype;
                child["catName"]      = catStat.name;
                child["lv"]           = catStat.lv;
                child["atk"]          = catStat.atk;
                child["groupId"]      = groupId;
                child["about"]        = catStat.about;
                child["cooldown"]     = catStat.cooldown;
                cat[count.ToString()] = child;
                count++;
            }
        }

        cat["count"]   = count;
        cat["groupid"] = groupId;
        SendNotification(CatGroupMenuMediator.CAT_GROUP_INFO, cat);
    }