6 #ifndef GDCORE_LINKEVENT_H
7 #define GDCORE_LINKEVENT_H
8 #include "GDCore/Events/Event.h"
9 #include "GDCore/String.h"
21 INCLUDE_EVENTS_GROUP = 1,
27 includeConfig(INCLUDE_ALL),
29 includeStart(gd::String::npos),
30 includeEnd(gd::String::npos),
31 linkWasInvalid(
false){};
56 void SetIncludeEventsGroup(
const gd::String& name) {
57 includeConfig = INCLUDE_EVENTS_GROUP;
58 eventsGroupName = name;
66 std::size_t includeEnd_) {
67 includeConfig = INCLUDE_BY_INDEX;
68 includeStart = includeStart_;
69 includeEnd = includeEnd_;
72 gd::String GetEventsGroupName()
const {
return eventsGroupName; }
106 void ReplaceLinkByLinkedEvents(
const gd::Project& project,
108 std::size_t indexOfTheEventInThisList);
130 std::size_t includeStart;
Base class defining an event.
Definition: Event.h:43
Visitor of any kind of event.
Definition: EventVisitor.h:26
A list of events.
Definition: EventsList.h:32
A link pointing to external events (or events of another layout) that should be included and run inst...
Definition: LinkEvent.h:17
void SetIncludeStartAndEnd(std::size_t includeStart_, std::size_t includeEnd_)
Definition: LinkEvent.h:65
virtual gd::LinkEvent * Clone() const override
Definition: LinkEvent.h:33
void SetIncludeAllEvents()
Definition: LinkEvent.h:54
std::size_t GetIncludeStart() const
Definition: LinkEvent.h:78
IncludeConfig GetIncludeConfig() const
Definition: LinkEvent.h:49
virtual bool MustBePreprocessed() override
Definition: LinkEvent.h:89
virtual bool IsExecutable() const override
Definition: LinkEvent.h:110
void SetTarget(const gd::String &target_)
Definition: LinkEvent.h:44
const gd::String & GetTarget() const
Definition: LinkEvent.h:38
std::size_t GetIncludeEnd() const
Definition: LinkEvent.h:84
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:51
Visitor of any kind of event.
Definition: EventVisitor.h:54
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24