resonance 1.0.1
Loading...
Searching...
No Matches
scriptsink.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/msgsink.h"
4
5// Globals is declared in `app/globals.h`. That header includes this one for its own member, and the
6// two headers cannot include each other.
7class Globals;
8
27class ScriptSink : public MsgSink {
28public:
33
46
47protected:
59 virtual void DispatchPriv(Message *pMsg);
60
61private:
71 void RunMessageScript(Message *pMsg);
72
73 Globals *mGlobals; // +0x04
74};
Abstract owner of the process-wide services.
Definition globals.h:47
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Receiver of engine messages.
Definition msgsink.h:37
static ScriptSink * CreateInstance(Globals *pOwner)
Build a sink on the heap.
virtual void DispatchPriv(Message *pMsg)
Run the message's script text when the message is a ScriptMsg.
ScriptSink(Globals *pOwner)