mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 14:07:20 +00:00
91c0c1fcfb
* Split out LUTriggers into it's own component * some cleanup * fix debug log * use emplace and tryParse * slight refactor to make the work on startup rather than at runtime Also TODO's for getting targets via all the possible methods * address feedback
34 lines
517 B
C++
34 lines
517 B
C++
#ifndef __LUTRIGGERS__H__
|
|
#define __LUTRIGGERS__H__
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class Command;
|
|
class Event;
|
|
enum class eTriggerCommandType;
|
|
enum class eTriggerEventType;
|
|
|
|
|
|
namespace LUTriggers {
|
|
struct Command {
|
|
eTriggerCommandType id;
|
|
std::string target;
|
|
std::string targetName;
|
|
std::string args;
|
|
};
|
|
|
|
struct Event {
|
|
eTriggerEventType id;
|
|
std::vector<Command*> commands;
|
|
};
|
|
|
|
struct Trigger {
|
|
uint32_t id;
|
|
bool enabled;
|
|
std::vector<Event*> events;
|
|
};
|
|
};
|
|
|
|
#endif //!__LUTRIGGERS__H__
|