wavelength 1.0.0
Loading...
Searching...
No Matches
notecondition.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 ~NoteCondition() override = default;
22
32 explicit NoteCondition(DataArray *pCondition);
33
41 bool Test() override {
42 return mNote == TheTriggerMgr.GetNote();
43 }
44
45private:
46 char mNote;
47};
Reference-counted array of script data nodes.
Definition dataarray.h:20
bool Test() override
Test the condition.
Definition notecondition.h:41
~NoteCondition() override=default
Destroy the object.
NoteCondition(DataArray *pCondition)
Read the condition.
A test a trigger makes before its actions start.
Definition triggercondition.h:11
TriggerMgr TheTriggerMgr
The trigger registry.