40 void *
operator new(
size_t nSize) {
41 return PoolMemAlloc(
static_cast<int>(nSize),
"GameParamsUpdateMsg", 0);
49 void operator delete(
void *pBlock) {
77 return "GameParamsUpdateMsg";
const NetGameParams & GetParams() const
Definition gameparamsupdatemsg.h:90
int Type() override
Report this message's registered identity.
Definition gameparamsupdatemsg.h:67
Message * Clone() override
Produce a heap copy of this message.
Definition gameparamsupdatemsg.h:58
const char * GetName() const override
Report this message's class name.
Definition gameparamsupdatemsg.h:76
void PrintExtra(PrnStream &stream) const override
Write the settings.
GameParamsUpdateMsg(const NetGameParams ¶ms)
Construct a message with the settings.
Definition gameparamsupdatemsg.h:31
~GameParamsUpdateMsg() override=default
Destroy the object.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
The settings of an online game that the host publishes with its session.
Definition netgameparams.h:13
Text output stream.
Definition prnstream.h:16
int g_nGameParamsUpdateMsgType
Identity that GameParamsUpdateMsg::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.