2023-01-06 21:17:05 -08:00
|
|
|
#ifndef __LUTRIGGERS__H__
|
|
|
|
#define __LUTRIGGERS__H__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2023-06-23 08:50:15 -05:00
|
|
|
#include <cstdint>
|
2023-01-06 21:17:05 -08:00
|
|
|
|
|
|
|
class Command;
|
|
|
|
class Event;
|
2023-02-10 02:29:53 -06:00
|
|
|
enum class eTriggerCommandType;
|
|
|
|
enum class eTriggerEventType;
|
|
|
|
|
2023-01-06 21:17:05 -08:00
|
|
|
|
|
|
|
namespace LUTriggers {
|
|
|
|
struct Command {
|
2023-02-10 02:29:53 -06:00
|
|
|
eTriggerCommandType id;
|
2023-01-06 21:17:05 -08:00
|
|
|
std::string target;
|
|
|
|
std::string targetName;
|
|
|
|
std::string args;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Event {
|
2023-02-10 02:29:53 -06:00
|
|
|
eTriggerEventType id;
|
2023-01-06 21:17:05 -08:00
|
|
|
std::vector<Command*> commands;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Trigger {
|
|
|
|
uint32_t id;
|
|
|
|
bool enabled;
|
|
|
|
std::vector<Event*> events;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__LUTRIGGERS__H__
|