16 void *
operator new(
size_t size) {
17 return MemAlloc(
static_cast<int>(size),
"MsgSink", 0);
25 void operator delete(
void *mem) {
void MemFree(void *mem)
Free an allocation of any heap.
void * MemAlloc(int size, const char *name, int align)
Allocate from the current heap.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
virtual bool Dispatch(Message *msg)
Handle a message.
virtual bool DispatchPriv(Message *msg)=0
Handle a message in the derived class.
virtual ~MsgSink()
Destroy the sink.