Exemple #1
0
    public override int SendDungeonSettlement(int dungeonID, int time, int combo, int killBoss, int reSpawn, int score, int exp, int money, int awardID, List <int> dropList = null)
    {
        MessageBlock msg = MessageBlock.CreateMessage(GamePacketID.ENMsgDungeonSettlement_C2S);

        msg.AddParam("dungeonID", dungeonID);
        msg.AddParam("time", time);
        msg.AddParam("combo", combo);
        msg.AddParam("killBoss", killBoss);
        msg.AddParam("reSpawn", reSpawn);
        msg.AddParam("score", score);
        msg.AddParam("exp", exp);
        msg.AddParam("money", money);
        msg.AddParam("awardID", awardID);
        int nSize = 0;

        nSize = (dropList == null) ? 0 : (dropList.Count > 255 ? 255 : dropList.Count);
        msg.AddParam("dropListSize", nSize);
        msg.AddArray("dropList", dropList, nSize);
        Debug.Log("nSize:" + nSize);
        MessageTransfer.Singleton.SendMsg(msg);
        int msgID = msg.MessageID;

        MessageBlock.ReleaseMessage(msg);
        return(msgID);
    }
Exemple #2
0
    //
    public override int SendTestAllSkill_C2BS(int sobID, List <int> skillIDList)
    {
        MessageBlock msg = MessageBlock.CreateMessage(GamePacketID.ENMsgTestAllSkill_C2BS, true);

        msg.AddParam("sobID", sobID);
        msg.AddArray("skillIDList", skillIDList, 8);
        LCMsgSender.Singleton.SendMsg(msg);

        int msgID = msg.MessageID;

        MessageBlock.ReleaseMessage(msg);
        return(msgID);
    }