1
This commit is contained in:
parent
91707d1c0c
commit
a0d5687158
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
void Guild::Init()
|
void Guild::Init()
|
||||||
{
|
{
|
||||||
|
logdb_ = new ss::MFGuildLogDB;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Guild::UnInit()
|
void Guild::UnInit()
|
||||||
@ -20,6 +20,7 @@ void Guild::UnInit()
|
|||||||
delete pair.second;
|
delete pair.second;
|
||||||
}
|
}
|
||||||
member_hash_.clear();
|
member_hash_.clear();
|
||||||
|
A8_SAFE_DELETE(logdb_);
|
||||||
}
|
}
|
||||||
|
|
||||||
GuildMember* Guild::GetMember(const std::string& account_id)
|
GuildMember* Guild::GetMember(const std::string& account_id)
|
||||||
@ -90,7 +91,10 @@ void Guild::MarkDirty()
|
|||||||
|
|
||||||
void Guild::Deserialize(const std::string& guild_data, const std::string& guild_log)
|
void Guild::Deserialize(const std::string& guild_data, const std::string& guild_log)
|
||||||
{
|
{
|
||||||
|
logdb_->ParseFromString(guild_log);
|
||||||
|
|
||||||
|
ss::MFGuildDB guilddb;
|
||||||
|
guilddb.ParseFromString(guild_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Guild::_CMGuildInfo(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildInfo& msg)
|
void Guild::_CMGuildInfo(int socket_handle, const ss::MFIMMsgConext& context, const cs::CMGuildInfo& msg)
|
||||||
|
@ -19,6 +19,7 @@ namespace cs
|
|||||||
namespace ss
|
namespace ss
|
||||||
{
|
{
|
||||||
class MFIMMsgConext;
|
class MFIMMsgConext;
|
||||||
|
class MFGuildLogDB;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct GuildMember
|
struct GuildMember
|
||||||
@ -90,4 +91,5 @@ private:
|
|||||||
bool dirty_ = false;
|
bool dirty_ = false;
|
||||||
timer_list* dirty_timer_ = nullptr;
|
timer_list* dirty_timer_ = nullptr;
|
||||||
std::map<std::string, GuildMember*> member_hash_;
|
std::map<std::string, GuildMember*> member_hash_;
|
||||||
|
ss::MFGuildLogDB* logdb_ = nullptr;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user