wavelength 1.0.0
Loading...
Searching...
No Matches
shareremixbeginmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/remixinfo.h"
4#include "msg/message.h"
6#include "os/mem.h"
7
15public:
23 explicit ShareRemixBeginMsg(const RemixInfo &info) : mInfo(info) {
24 }
25
32 void *operator new(size_t nSize) {
33 return PoolMemAlloc(static_cast<int>(nSize), "ShareRemixBeginMsg", 0);
34 }
35
41 void operator delete(void *pBlock) {
42 PoolMemFree(pBlock);
43 }
44
50 Message *Clone() override {
51 return new ShareRemixBeginMsg(*this);
52 }
53
59 int Type() override {
61 }
62
68 const char *GetName() const override {
69 return "ShareRemixBeginMsg";
70 }
71
79 void PrintExtra(PrnStream &stream) const override;
80
81private:
82 int mReserved04; // +0x04, the alignment of mInfo to eight bytes.
83 RemixInfo mInfo;
84};
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Text output stream.
Definition prnstream.h:16
Description of a saved remix.
Definition remixinfo.h:26
ShareRemixBeginMsg(const RemixInfo &info)
Construct a message with the description of the remix.
Definition shareremixbeginmsg.h:23
int Type() override
Report this message's registered identity.
Definition shareremixbeginmsg.h:59
void PrintExtra(PrnStream &stream) const override
Write the description of the remix.
Message * Clone() override
Produce a heap copy of this message.
Definition shareremixbeginmsg.h:50
const char * GetName() const override
Report this message's class name.
Definition shareremixbeginmsg.h:68
int g_nShareRemixBeginMsgType
Identity that ShareRemixBeginMsg::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.