mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 05:57:20 +00:00
41898bef86
and include fixes
35 lines
536 B
C++
35 lines
536 B
C++
#ifndef __LUTRIGGERS__H__
|
|
#define __LUTRIGGERS__H__
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <cstdint>
|
|
|
|
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__
|