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