wavelength 1.0.0
Loading...
Searching...
No Matches
pathexistscondition.h
Go to the documentation of this file.
1#pragma once
2
4#include "game/triggermgr.h"
5#include "script/dataarray.h"
6
14public:
21 ~PathExistsCondition() override = default;
22
23 explicit PathExistsCondition(DataArray *pCondition) : mPath(pCondition->Int(1)) {
24 }
25
33 bool Test() override {
34 return TheTriggerMgr.PathExists(mPath);
35 }
36
37private:
38 int mPath;
39};
Reference-counted array of script data nodes.
Definition dataarray.h:20
PathExistsCondition(DataArray *pCondition)
Definition pathexistscondition.h:23
~PathExistsCondition() override=default
Destroy the object.
bool Test() override
Test the condition.
Definition pathexistscondition.h:33
A test a trigger makes before its actions start.
Definition triggercondition.h:11
TriggerMgr TheTriggerMgr
The trigger registry.