예제 #1
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_MERCENARY_LIST_REQ packet = (CG_MERCENARY_LIST_REQ )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
예제 #2
0
    public void OnGuYongClick()
    {
        if (GlobeVar.INVALID_ID == GameManager.gameManager.PlayerDataPool.TeamInfo.TeamID)
        {
            if (Singleton <ObjManager> .GetInstance().MainPlayer)
            {
                Singleton <ObjManager> .GetInstance().MainPlayer.SendNoticMsg(false, "#{3170}");
            }
            //向服务器发送邀请某人加入队伍消息
            CG_REQ_TEAM_INVITE msg = (CG_REQ_TEAM_INVITE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_REQ_TEAM_INVITE);
            if (msg != null)
            {
                msg.Guid = GlobeVar.INVALID_GUID;
                msg.SendPacket();
            }
        }

        HuaShanPVPData.MercenarySceneClass = CopySceneId;
        CG_MERCENARY_LIST_REQ packet = (CG_MERCENARY_LIST_REQ)PacketDistributed.CreatePacket(MessageID.PACKET_CG_MERCENARY_LIST_REQ);

        packet.Sceneclass = CopySceneId;
        packet.Diffcult   = Diffcult;
        packet.SendPacket();
    }