1
This commit is contained in:
parent
3ecb0e6423
commit
43a25f2922
@ -87,6 +87,51 @@ void Guild::MarkDirty()
|
||||
}
|
||||
}
|
||||
|
||||
void Guild::_CMGuildInfo(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildInfo& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::_CMGuildJoin(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildJoin& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::_CMGuildAgree(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildAgree& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::_CMGuildKick(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildKick& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::_CMGuildQuit(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildQuit& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::_CMGuildDismiss(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildDismiss& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::_CMGuildRename(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildRename& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::_CMGuildMemberList(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildMemberList& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::_CMGuildLog(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildLog& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Guild::FillGuildDB(ss::MFGuildDB& guild_dto)
|
||||
{
|
||||
|
||||
|
@ -2,6 +2,24 @@
|
||||
|
||||
#include <a8/timer_attacher.h>
|
||||
|
||||
namespace cs
|
||||
{
|
||||
class CMGuildInfo;
|
||||
class CMGuildJoin;
|
||||
class CMGuildAgree;
|
||||
class CMGuildKick;
|
||||
class CMGuildQuit;
|
||||
class CMGuildDismiss;
|
||||
class CMGuildRename;
|
||||
class CMGuildMemberList;
|
||||
class CMGuildLog;
|
||||
}
|
||||
|
||||
namespace ss
|
||||
{
|
||||
class MFIMMsgConext;
|
||||
}
|
||||
|
||||
struct GuildMember
|
||||
{
|
||||
std::string account_id;
|
||||
@ -46,6 +64,16 @@ class Guild
|
||||
void RemoveMember(const std::string& account_id);
|
||||
void MarkDirty();
|
||||
|
||||
void _CMGuildInfo(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildInfo& msg);
|
||||
void _CMGuildJoin(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildJoin& msg);
|
||||
void _CMGuildAgree(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildAgree& msg);
|
||||
void _CMGuildKick(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildKick& msg);
|
||||
void _CMGuildQuit(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildQuit& msg);
|
||||
void _CMGuildDismiss(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildDismiss& msg);
|
||||
void _CMGuildRename(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildRename& msg);
|
||||
void _CMGuildMemberList(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildMemberList& msg);
|
||||
void _CMGuildLog(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildLog& msg);
|
||||
|
||||
private:
|
||||
void FillGuildDB(ss::MFGuildDB& guild_dto);
|
||||
void SaveToDB();
|
||||
|
@ -45,7 +45,7 @@ private:
|
||||
cs::CMGuildKick cmmsg;
|
||||
};
|
||||
|
||||
class CMGuildAgreeTak : public AsyncGuildTask
|
||||
class CMGuildQuitTask : public AsyncGuildTask
|
||||
{
|
||||
private:
|
||||
cs::CMGuildQuit cmmsg;
|
||||
|
@ -28,6 +28,16 @@ class GuildMgr : public a8::Singleton<GuildMgr>
|
||||
void Init();
|
||||
void UnInit();
|
||||
|
||||
template <typename T>
|
||||
void ForwardGuildSMMsg(int socket_handle, const ss::MFIMMsgConext& context, T& smmsg)
|
||||
{
|
||||
static int msgid = f8::Net_GetMessageId(smmsg);
|
||||
ForwardGuildSMMsg(socket_handle, context, msgid, smmsg);
|
||||
}
|
||||
void ForwardGuildSMMsg(int socket_handle,
|
||||
const ss::MFIMMsgConext& context,
|
||||
int msgid,
|
||||
const ::google::protobuf::Message& smmsg);
|
||||
void _SS_IM_ForwardGuildCMMsg(f8::MsgHdr& hdr, const ss::SS_IM_ForwardGuildCMMsg& msg);
|
||||
|
||||
private:
|
||||
@ -39,16 +49,6 @@ class GuildMgr : public a8::Singleton<GuildMgr>
|
||||
void LoadGuild(long long guild_id);
|
||||
bool IsValidGuildId(long long guild_id);
|
||||
Guild* GetGuild(long long group_id);
|
||||
template <typename T>
|
||||
void ForwardGuildSMMsg(int socket_handle, const ss::MFIMMsgConext& context, T& smmsg)
|
||||
{
|
||||
static int msgid = f8::Net_GetMessageId(smmsg);
|
||||
ForwardGuildSMMsg(socket_handle, context, msgid, smmsg);
|
||||
}
|
||||
void ForwardGuildSMMsg(int socket_handle,
|
||||
const ss::MFIMMsgConext& context,
|
||||
int msgid,
|
||||
const ::google::protobuf::Message& smmsg);
|
||||
|
||||
private:
|
||||
std::map<long long, Guild*> id_hash_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user