53 void *
operator new(
size_t nSize) {
54 return PoolMemAlloc(
static_cast<int>(nSize),
"MuteVocalsPacket", 0);
62 void operator delete(
void *pBlock) {
96 return "MuteVocalsPacket";
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
ExternalPacket(unsigned char nFlags=0, int nReceiver=kAllPeers)
Construct a packet from an unset sender.
Definition externalpacket.h:21
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
int Type() override
Report this packet's registered identity.
Definition mutevocalspacket.h:84
int GetTrack() const
Definition mutevocalspacket.h:150
Message * Clone() override
Produce a heap copy of this packet.
Definition mutevocalspacket.h:73
void SetTrack(int nTrack)
Definition mutevocalspacket.h:155
void SetSection(int nSection)
Definition mutevocalspacket.h:145
const char * GetName() const override
Report this packet's class name.
Definition mutevocalspacket.h:95
MuteVocalsPacket()
Construct a packet with no section and no track.
Definition mutevocalspacket.h:35
~MuteVocalsPacket() override=default
Destroy the object.
void saveGuts(BinStream &stream) const override
Write the section, the track, and the mute state packed into one byte.
int GetSection() const
Definition mutevocalspacket.h:140
void SetMute(int nMute)
Definition mutevocalspacket.h:135
static Message * New()
Produce a default-constructed packet on the heap.
int GetMute() const
Definition mutevocalspacket.h:130
void PrintExtra(PrnStream &stream) const override
Write the track and the mute state to a diagnostic stream.
void restoreGuts(BinStream &stream) override
Read the byte saveGuts() writes back into the fields.
static constexpr unsigned char kFlagGuaranteed
Bit of mFlags that NetTransport::Send() turns into its guaranteed delivery bit.
Definition packet.h:28
Text output stream.
Definition prnstream.h:16
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.
int g_nMuteVocalsPacketType
Identity that MuteVocalsPacket::Type() reports.