wavelength 1.0.0
Loading...
Searching...
No Matches
rulesetcondition.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 ~RuleSetCondition() override = default;
22
23 explicit RuleSetCondition(DataArray *pCondition) : mRuleSet(pCondition->Int(1)) {
24 }
25
33 bool Test() override {
34 return TheTriggerMgr.GetRuleSet() == mRuleSet;
35 }
36
37private:
38 int mRuleSet;
39};
Reference-counted array of script data nodes.
Definition dataarray.h:20
RuleSetCondition(DataArray *pCondition)
Definition rulesetcondition.h:23
~RuleSetCondition() override=default
Destroy the object.
bool Test() override
Test the condition.
Definition rulesetcondition.h:33
A test a trigger makes before its actions start.
Definition triggercondition.h:11
TriggerMgr TheTriggerMgr
The trigger registry.