25 explicit LobbyChatroomsMsg(std::list<NetChatroomInfo> *pChatrooms) : mChatrooms(pChatrooms) {
34 void *
operator new(
size_t nSize) {
35 return PoolMemAlloc(
static_cast<int>(nSize),
"LobbyChatroomsMsg", 0);
43 void operator delete(
void *pBlock) {
71 return "LobbyChatroomsMsg";
89 std::list<NetChatroomInfo> *mChatrooms;
int Type() override
Report this message's registered identity.
Definition lobbychatroomsmsg.h:61
LobbyChatroomsMsg(std::list< NetChatroomInfo > *pChatrooms)
Construct a message that points at the rooms.
Definition lobbychatroomsmsg.h:25
std::list< NetChatroomInfo > * GetChatrooms() const
Definition lobbychatroomsmsg.h:84
Message * Clone() override
Produce a heap copy of this message, which points at the same rooms.
Definition lobbychatroomsmsg.h:52
const char * GetName() const override
Report this message's class name.
Definition lobbychatroomsmsg.h:70
void PrintExtra(PrnStream &stream) const override
Write the rooms.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Text output stream.
Definition prnstream.h:16
int g_nLobbyChatroomsMsgType
Identity that LobbyChatroomsMsg::Type() reports.
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.