add CMGuildGainExp
This commit is contained in:
parent
a7bcfab146
commit
4d17cb8f23
@ -400,6 +400,11 @@ void Guild::_CMGuildAgree(f8::MsgHdr& hdr, const cs::CMGuildAgree& msg)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Guild::_CMGuildGainExp(f8::MsgHdr& hdr, const cs::CMGuildGainExp& msg)
|
||||||
|
{
|
||||||
|
ss::SS_IM_ForwardGuildCMMsg *forward_msg = (ss::SS_IM_ForwardGuildCMMsg*)hdr.user_data;
|
||||||
|
}
|
||||||
|
|
||||||
void Guild::_CMGuildRefuse(f8::MsgHdr& hdr, const cs::CMGuildRefuse& msg)
|
void Guild::_CMGuildRefuse(f8::MsgHdr& hdr, const cs::CMGuildRefuse& msg)
|
||||||
{
|
{
|
||||||
ss::SS_IM_ForwardGuildCMMsg *forward_msg = (ss::SS_IM_ForwardGuildCMMsg*)hdr.user_data;
|
ss::SS_IM_ForwardGuildCMMsg *forward_msg = (ss::SS_IM_ForwardGuildCMMsg*)hdr.user_data;
|
||||||
|
@ -28,6 +28,7 @@ public:
|
|||||||
void _CMGuildLog(f8::MsgHdr& hdr, const cs::CMGuildLog& msg);
|
void _CMGuildLog(f8::MsgHdr& hdr, const cs::CMGuildLog& msg);
|
||||||
void _CMGuildMemberSetJob(f8::MsgHdr& hdr, const cs::CMGuildMemberSetJob& msg);
|
void _CMGuildMemberSetJob(f8::MsgHdr& hdr, const cs::CMGuildMemberSetJob& msg);
|
||||||
void _CMGuildAgreeInvite(f8::MsgHdr& hdr, const cs::CMGuildAgreeInvite& msg);
|
void _CMGuildAgreeInvite(f8::MsgHdr& hdr, const cs::CMGuildAgreeInvite& msg);
|
||||||
|
void _CMGuildGainExp(f8::MsgHdr& hdr, const cs::CMGuildGainExp& msg);
|
||||||
|
|
||||||
long long GuildId() { return guild_id_; }
|
long long GuildId() { return guild_id_; }
|
||||||
int GuildLv() { return guild_lv_; }
|
int GuildLv() { return guild_lv_; }
|
||||||
|
@ -142,6 +142,7 @@ void HandlerMgr::RegisterNetMsgHandlers()
|
|||||||
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildLog);
|
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildLog);
|
||||||
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildMemberSetJob);
|
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildMemberSetJob);
|
||||||
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildAgreeInvite);
|
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildAgreeInvite);
|
||||||
|
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildGainExp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandlerMgr::ProcGMMsg(unsigned long saddr, int sockhandle,
|
void HandlerMgr::ProcGMMsg(unsigned long saddr, int sockhandle,
|
||||||
|
@ -1128,6 +1128,11 @@ void Player::_CMGuildAgreeInvite(f8::MsgHdr& hdr, const cs::CMGuildAgreeInvite&
|
|||||||
ForwardGuildCMMsg(hdr, msg.guild_id());
|
ForwardGuildCMMsg(hdr, msg.guild_id());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Player::_CMGuildGainExp(f8::MsgHdr& hdr, const cs::CMGuildGainExp& msg)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void Player::_SS_IM_FriendAgreeRequest(f8::MsgHdr& hdr, const ss::SS_IM_FriendAgreeRequest& msg)
|
void Player::_SS_IM_FriendAgreeRequest(f8::MsgHdr& hdr, const ss::SS_IM_FriendAgreeRequest& msg)
|
||||||
{
|
{
|
||||||
if (!GetFriendById(msg.context().user_info().base_data().account_id())) {
|
if (!GetFriendById(msg.context().user_info().base_data().account_id())) {
|
||||||
|
@ -121,6 +121,7 @@ class Player
|
|||||||
void _CMGuildLog(f8::MsgHdr& hdr, const cs::CMGuildLog& msg);
|
void _CMGuildLog(f8::MsgHdr& hdr, const cs::CMGuildLog& msg);
|
||||||
void _CMGuildMemberSetJob(f8::MsgHdr& hdr, const cs::CMGuildMemberSetJob& msg);
|
void _CMGuildMemberSetJob(f8::MsgHdr& hdr, const cs::CMGuildMemberSetJob& msg);
|
||||||
void _CMGuildAgreeInvite(f8::MsgHdr& hdr, const cs::CMGuildAgreeInvite& msg);
|
void _CMGuildAgreeInvite(f8::MsgHdr& hdr, const cs::CMGuildAgreeInvite& msg);
|
||||||
|
void _CMGuildGainExp(f8::MsgHdr& hdr, const cs::CMGuildGainExp& msg);
|
||||||
|
|
||||||
void _SS_IM_FriendAgreeRequest(f8::MsgHdr& hdr, const ss::SS_IM_FriendAgreeRequest& msg);
|
void _SS_IM_FriendAgreeRequest(f8::MsgHdr& hdr, const ss::SS_IM_FriendAgreeRequest& msg);
|
||||||
void _SS_IM_FriendDeleteRequest(f8::MsgHdr& hdr, const ss::SS_IM_FriendDeleteRequest& msg);
|
void _SS_IM_FriendDeleteRequest(f8::MsgHdr& hdr, const ss::SS_IM_FriendDeleteRequest& msg);
|
||||||
|
@ -45,6 +45,7 @@ enum CMMessageId_e
|
|||||||
_CMGuildMemberSetJob = 244;
|
_CMGuildMemberSetJob = 244;
|
||||||
_CMGuildRefuse = 245;
|
_CMGuildRefuse = 245;
|
||||||
_CMGuildAgreeInvite = 246;
|
_CMGuildAgreeInvite = 246;
|
||||||
|
_CMGuildGainExp = 247;
|
||||||
_CMGuildMsgEnd = 270;
|
_CMGuildMsgEnd = 270;
|
||||||
|
|
||||||
_CMTeamCreate = 301;
|
_CMTeamCreate = 301;
|
||||||
@ -98,6 +99,7 @@ enum SMMessageId_e
|
|||||||
_SMGuildMemberSetJob = 244;
|
_SMGuildMemberSetJob = 244;
|
||||||
_SMGuildRefuse = 245;
|
_SMGuildRefuse = 245;
|
||||||
_SMGuildAgreeInvite = 246;
|
_SMGuildAgreeInvite = 246;
|
||||||
|
_SMGuildGainExp = 247;
|
||||||
_SMGuildMsgEnd = 270;
|
_SMGuildMsgEnd = 270;
|
||||||
|
|
||||||
_SMTeamCreate = 301;
|
_SMTeamCreate = 301;
|
||||||
|
@ -623,6 +623,17 @@ message SMGuildAgreeInvite
|
|||||||
optional string errmsg = 2; //错误信息
|
optional string errmsg = 2; //错误信息
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//新增公会经验
|
||||||
|
message CMGuildGainExp
|
||||||
|
{
|
||||||
|
optional int32 exp = 1; //检验值
|
||||||
|
}
|
||||||
|
message SMGuildGainExp
|
||||||
|
{
|
||||||
|
optional int32 errcode = 1; //错误码
|
||||||
|
optional string errmsg = 2; //错误信息
|
||||||
|
}
|
||||||
|
|
||||||
//发送聊天消息
|
//发送聊天消息
|
||||||
message CMSendChatMsg
|
message CMSendChatMsg
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user