25#include "../qcommon/listener.h"
26#include "../qcommon/delegate.h"
27#include "gamescript.h"
46 bool operator==(
const ScriptRegisteredDelegate_Script& registeredDelegate)
const;
59 using DelegateResponse = void (*)(
Listener *object,
const Event& ev);
62 ScriptRegisteredDelegate_Code(DelegateResponse inResponse);
66 bool operator==(
const ScriptRegisteredDelegate_Code& registeredDelegate)
const;
69 DelegateResponse response;
83 ScriptRegisteredDelegate_CodeMember(
Class *inObject, DelegateClassResponse inResponse);
87 bool operator==(
const ScriptRegisteredDelegate_CodeMember& registeredDelegate)
const;
91 DelegateClassResponse response;
102 ScriptDelegate(
const char *name,
const char *description);
105 static const ScriptDelegate *GetRoot();
106 const ScriptDelegate *GetNext()
const;
127 void Register(ScriptRegisteredDelegate_Code::DelegateResponse response);
134 void Unregister(ScriptRegisteredDelegate_Code::DelegateResponse response);
142 void Register(
Class *
object, ScriptRegisteredDelegate_CodeMember::DelegateClassResponse response);
150 void Unregister(
Class *
object, ScriptRegisteredDelegate_CodeMember::DelegateClassResponse response);
177 static void ResetAllDelegates();
180 ScriptDelegate(ScriptDelegate&& other) =
delete;
181 ScriptDelegate& operator=(ScriptDelegate&& other) =
delete;
182 ScriptDelegate(
const ScriptDelegate& other) =
delete;
183 ScriptDelegate& operator=(
const ScriptDelegate& other) =
delete;
187 ScriptDelegate *next;
188 ScriptDelegate *prev;
189 static ScriptDelegate *root;
191 const char *description;
Definition container.h:85
Definition listener.h:246
Definition listener.h:450
void Unregister(const ScriptThreadLabel &label)
Definition scriptdelegate.cpp:111
void Trigger(const Event &ev=Event()) const
Definition scriptdelegate.cpp:136
void Register(const ScriptThreadLabel &label)
Definition scriptdelegate.cpp:102
static ScriptDelegate * GetScriptDelegate(const char *name)
Definition scriptdelegate.cpp:167
void Reset()
Definition scriptdelegate.cpp:178
Definition scriptdelegate.h:30
Definition gamescript.h:165