6 #if defined(GD_IDE_ONLY)
7 #ifndef GDCORE_EVENTSLIST_H
8 #define GDCORE_EVENTSLIST_H
11 #include "GDCore/String.h"
19 class SerializerElement;
49 size_t position = (
size_t)-1);
59 void InsertEvent(std::shared_ptr<gd::BaseEvent> event,
60 size_t position = (
size_t)-1);
72 size_t position = (
size_t)-1);
77 void InsertEvents(
const EventsList& otherEvents,
80 size_t position = (
size_t)-1);
100 return events[index];
123 void RemoveEvent(
size_t index);
128 bool IsEmpty()
const {
return events.empty(); };
133 void Clear() {
return events.clear(); };
145 bool recursive =
true)
const;
162 bool MoveEventToAnotherEventsList(
const gd::BaseEvent& eventToMove,
164 std::size_t newPosition);
176 size_t size()
const {
return GetEventsCount(); }
189 return GetEvent(index);
211 std::vector<std::shared_ptr<BaseEvent> > events;
Base class defining an event.
Definition: Event.h:44
A list of events.
Definition: EventsList.h:33
size_t size() const
Alias for GetEventsCount()
Definition: EventsList.h:176
const gd::BaseEvent & GetEvent(size_t index) const
Return a reference to the event at position index in the events list.
Definition: EventsList.h:113
const gd::BaseEvent & operator[](size_t index) const
Alias for GetEvent()
Definition: EventsList.h:188
std::shared_ptr< BaseEvent > GetEventSmartPtr(size_t index)
Return the smart pointer to the event at position index in the events list.
Definition: EventsList.h:91
size_t GetEventsCount() const
Return the number of events.
Definition: EventsList.h:85
void Clear()
Clear the list of events.
Definition: EventsList.h:133
bool IsEmpty() const
Return true if there isn't any event in the list.
Definition: EventsList.h:128
gd::BaseEvent & GetEvent(size_t index)
Return a reference to the event at position index in the events list.
Definition: EventsList.h:107
std::shared_ptr< const BaseEvent > GetEventSmartPtr(size_t index) const
Return the smart pointer to the event at position index in the events list.
Definition: EventsList.h:99
gd::BaseEvent & operator[](size_t index)
Alias for GetEvent()
Definition: EventsList.h:182
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
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:31
Definition: CommonTools.h:24