6 #if defined(GD_IDE_ONLY)
7 #ifndef GDCORE_EVENTSLIST_H
8 #define GDCORE_EVENTSLIST_H
11 #include "GDCore/String.h"
19 class SerializerElement;
48 size_t position = (
size_t)-1);
58 void InsertEvent(std::shared_ptr<gd::BaseEvent> event,
59 size_t position = (
size_t)-1);
71 size_t position = (
size_t)-1);
76 void InsertEvents(
const EventsList& otherEvents,
79 size_t position = (
size_t)-1);
122 void RemoveEvent(
size_t index);
127 bool IsEmpty()
const {
return events.empty(); };
132 void Clear() {
return events.clear(); };
144 bool recursive =
true)
const;
161 bool MoveEventToAnotherEventsList(
const gd::BaseEvent& eventToMove,
163 std::size_t newPosition);
175 size_t size()
const {
return GetEventsCount(); }
188 return GetEvent(index);
210 std::vector<std::shared_ptr<BaseEvent> > events;
Base class defining an event.
Definition: Event.h:43
A list of events.
Definition: EventsList.h:32
size_t size() const
Alias for GetEventsCount()
Definition: EventsList.h:175
const gd::BaseEvent & GetEvent(size_t index) const
Return a reference to the event at position index in the events list.
Definition: EventsList.h:112
const gd::BaseEvent & operator[](size_t index) const
Alias for GetEvent()
Definition: EventsList.h:187
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:90
size_t GetEventsCount() const
Return the number of events.
Definition: EventsList.h:84
void Clear()
Clear the list of events.
Definition: EventsList.h:132
bool IsEmpty() const
Return true if there isn't any event in the list.
Definition: EventsList.h:127
gd::BaseEvent & GetEvent(size_t index)
Return a reference to the event at position index in the events list.
Definition: EventsList.h:106
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:98
gd::BaseEvent & operator[](size_t index)
Alias for GetEvent()
Definition: EventsList.h:181
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:51
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