My Project
Loading...
Searching...
No Matches
MCLocoEvent.h
Go to the documentation of this file.
1#pragma once
2
3#include "MCLocoAction.h"
4#include "MCLocoTrigger.h"
5#include <vector>
6
7// Loco event
9{
10 public:
11 MCLocoEvent(std::vector<MCLocoTrigger *> triggers, std::vector<MCLocoAction *> actions);
12
13 bool HasTrigger(MCTriggerSource source, std::string eventType, std::string eventId, std::string value);
14
15 // Returns a list of actions to execute when triggered by this event.
16 std::vector<MCLocoAction *> GetActions();
17
18 private:
19 std::vector<MCLocoTrigger *> _triggers;
20 std::vector<MCLocoAction *> _actions;
21};
Definition MCLocoEvent.h:9
bool HasTrigger(MCTriggerSource source, std::string eventType, std::string eventId, std::string value)
Definition MCLocoEvent.cpp:6
MCLocoEvent(std::vector< MCLocoTrigger * > triggers, std::vector< MCLocoAction * > actions)
Definition MCLocoEvent.cpp:3
std::vector< MCLocoAction * > GetActions()
Definition MCLocoEvent.cpp:17
MCTriggerSource
Definition enums.h:77