示例#1
0
void ServerMsgSender::AddUserAskMsg()
{
	ServerList *sList = ServerList::Instance();

	Handle<ServerInfo> server;
	if(sList->GetServer(serverid, server))
	{
		server->AddUser(serveruid);
	}
}
示例#2
0
void ServerMsgSender::ReplyAddUserMsg(bool agree)
{
	if(agree)
	{
		ServerList *sList = ServerList::Instance();

		Handle<ServerInfo> server;
		if(sList->GetServer(serverid, server))
		{
			server->AddUser(serveruid);
		}
	}
}