107 T *pObject =
dynamic_cast<T *
>(
TheManager.Find(pszName));
108 if (pObject ==
nullptr) {
109 DebugWarn(
"Couldn't find '%s' object (file %s, line %d)",
Reference-counted array of script data nodes.
Definition dataarray.h:20
const char * GetFile() const
Definition dataarray.h:437
short GetLine() const
Definition dataarray.h:442
Something a trigger does when its conditions hold.
Definition triggeraction.h:15
virtual void Exec()=0
Run the action.
virtual ~TriggerAction()
Release the action.
Definition triggeraction.h:36
static T * FindObject(DataArray *pAction, const char *pszName)
Find a renderer object of a class by name, warning when there is none.
Definition triggeraction.h:106
static TriggerAction * New(DataArray *pAction)
Build the action a node describes.
int GetClock() const
Definition triggeraction.h:82
void SetDelay(float fDelay)
Set the time on the clock of the action before Exec() runs.
Definition triggeraction.h:77
void Start()
Run the action now, or schedule it when it has a delay.
float GetDelay() const
Definition triggeraction.h:68
virtual bool Poll()
Advance an action that TriggerMgr::AddRunning() received.
Definition triggeraction.h:53
void SetClock(int nClock)
Set the TriggerMgr::Clock the action runs on.
Definition triggeraction.h:91
void DebugWarn(const char *pszFormat,...)
Format a warning that the shipped build discards.
RndManager TheManager
The renderer's registry.