![]()  | 
  
    GDevelop Core
    
   Core library for developing platforms and tools compatible with GDevelop. 
   | 
 
Used as a base class for classes that will own events-backed variants. More...
#include <EventsBasedObjectVariantsContainer.h>
Inherits gd::SerializableWithNameList< gd::EventsBasedObjectVariant >.
Public Member Functions | |
| EventsBasedObjectVariantsContainer (const EventsBasedObjectVariantsContainer &other) | |
| EventsBasedObjectVariantsContainer & | operator= (const EventsBasedObjectVariantsContainer &other) | 
Events Functions management  | |
| bool | HasVariantNamed (const gd::String &name) const | 
| Check if the variant with the specified name exists.  | |
| gd::EventsBasedObjectVariant & | GetVariant (const gd::String &name) | 
| Get the variant with the specified name.  More... | |
| const gd::EventsBasedObjectVariant & | GetVariant (const gd::String &name) const | 
| Get the variant with the specified name.  More... | |
| gd::EventsBasedObjectVariant & | GetVariant (std::size_t index) | 
| Get the variant at the specified index in the list.  More... | |
| const gd::EventsBasedObjectVariant & | GetVariant (std::size_t index) const | 
| Get the variant at the specified index in the list.  More... | |
| std::size_t | GetVariantsCount () const | 
| Return the number of variants.  | |
| gd::EventsBasedObjectVariant & | InsertNewVariant (const gd::String &name, std::size_t position) | 
| gd::EventsBasedObjectVariant & | InsertVariant (const gd::EventsBasedObjectVariant &object, std::size_t position) | 
| void | RemoveVariant (const gd::String &name) | 
| void | ClearVariants () | 
| void | MoveVariant (std::size_t oldIndex, std::size_t newIndex) | 
| std::size_t | GetVariantPosition (const gd::EventsBasedObjectVariant &eventsFunction) | 
| const std::vector< std::unique_ptr< gd::EventsBasedObjectVariant > > & | GetInternalVector () const | 
| Provide a raw access to the vector containing the variants.  | |
| std::vector< std::unique_ptr< gd::EventsBasedObjectVariant > > & | GetInternalVector () | 
| Provide a raw access to the vector containing the variants.  | |
Serialization  | |
| void | SerializeVariantsTo (SerializerElement &element) const | 
| Serialize events variants.  | |
| void | UnserializeVariantsFrom (gd::Project &project, const SerializerElement &element) | 
| Unserialize the events variants.  | |
Protected Member Functions | |
| void | Init (const gd::EventsBasedObjectVariantsContainer &other) | 
Used as a base class for classes that will own events-backed variants.
      
  | 
  inline | 
Get the variant with the specified name.
      
  | 
  inline | 
Get the variant with the specified name.
      
  | 
  inline | 
Get the variant at the specified index in the list.
      
  | 
  inline | 
Get the variant at the specified index in the list.
      
  | 
  inlineprotected | 
Initialize object using another object. Used by copy-ctor and assign-op. Don't forget to update me if members were changed!