7 #if defined(GD_IDE_ONLY)
8 #ifndef EVENTMETADATA_H
9 #define EVENTMETADATA_H
13 #include "GDCore/String.h"
17 class EventsCodeGenerator;
18 class EventsCodeGenerationContext;
39 hasCustomCodeGenerator =
true;
40 codeGeneration =
function;
51 std::size_t indexOfTheEventInThisList)>
function) {
52 preprocessing =
function;
59 void ClearCodeGenerationAndPreprocessing();
72 std::shared_ptr<gd::BaseEvent> instance);
75 virtual ~EventMetadata(){};
77 const gd::String& GetFullName()
const {
return fullname; }
78 const gd::String& GetDescription()
const {
return description; }
79 const gd::String& GetGroup()
const {
return group; }
85 std::shared_ptr<gd::BaseEvent> instance;
86 bool hasCustomCodeGenerator =
false;
94 std::size_t indexOfTheEventInThisList)>
Base class defining an event.
Definition: Event.h:43
Used to manage the context when generating code for events.
Definition: EventsCodeGenerationContext.h:27
Internal class used to generate code from events.
Definition: EventsCodeGenerator.h:41
A list of events.
Definition: EventsList.h:32
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24