![]()  | 
  
    GDevelop Core
    
   Core library for developing platforms and tools compatible with GDevelop. 
   | 
 
Base class for containers of behavior configuration. They can be attached to objects (Behavior) or layouts (BehaviorsSharedData). It stores the content (i.e: the properties) of a behavior of an object. More...
#include <BehaviorConfigurationContainer.h>
Inherited by gd::Behavior, and gd::BehaviorsSharedData.
Public Member Functions | |
| BehaviorConfigurationContainer (const gd::String &name_, const gd::String &type_) | |
| virtual BehaviorConfigurationContainer * | Clone () const | 
| const gd::String & | GetName () const | 
| Return the name identifying the behavior.  | |
| void | SetName (const gd::String &name_) | 
| Change the name identifying the behavior.  | |
| const gd::String & | GetTypeName () const | 
| Return the type of the behavior.  | |
| void | SetTypeName (const gd::String &type_) | 
| Set the type of the behavior.  | |
| std::map< gd::String, gd::PropertyDescriptor > | GetProperties () const | 
| Called when the IDE wants to know about the custom properties of the behavior.  More... | |
| bool | UpdateProperty (const gd::String &name, const gd::String &value) | 
| Called when the IDE wants to update a custom property of the behavior.  More... | |
| virtual void | InitializeContent () | 
| Called to initialize the content with the default properties for the behavior.  | |
| virtual void | SerializeTo (gd::SerializerElement &element) const | 
| Serialize the behavior content.  | |
| virtual void | UnserializeFrom (const gd::SerializerElement &element) | 
| Unserialize the behavior content.  | |
| const gd::SerializerElement & | GetContent () const | 
| gd::SerializerElement & | GetContent () | 
| void | SetFolded (bool fold=true) | 
| Set if the behavior configuration panel should be folded in the UI.  | |
| bool | IsFolded () const | 
| True if the behavior configuration panel should be folded in the UI.  | |
| void | SetQuickCustomizationVisibility (QuickCustomization::Visibility visibility) | 
| Set if the whole behavior should be visible or not in the Quick Customization.  | |
| QuickCustomization::Visibility | GetQuickCustomizationVisibility () const | 
| Get if the whole behavior should be visible or not in the Quick Customization.  | |
| QuickCustomizationVisibilitiesContainer & | GetPropertiesQuickCustomizationVisibilities () | 
| Get the map of properties and their visibility in the Quick Customization.  | |
| const QuickCustomizationVisibilitiesContainer & | GetPropertiesQuickCustomizationVisibilities () const | 
| Get the map of properties and their visibility in the Quick Customization.  | |
| void | ExposeResources (gd::ArbitraryResourceWorker &worker) | 
| Called ( e.g. during compilation ) so as to inventory internal resources and sometimes update their filename. Implementation example:  More... | |
Protected Member Functions | |
| virtual std::map< gd::String, gd::PropertyDescriptor > | GetProperties (const gd::SerializerElement &behaviorContent) const | 
| Called when the IDE wants to know about the custom properties of the behavior.  More... | |
| virtual bool | UpdateProperty (gd::SerializerElement &behaviorContent, const gd::String &name, const gd::String &value) | 
| Called when the IDE wants to update a custom property of the behavior.  More... | |
| virtual void | InitializeContent (gd::SerializerElement &behaviorContent) | 
| Called to initialize the content with the default properties for the behavior.  | |
Base class for containers of behavior configuration. They can be attached to objects (Behavior) or layouts (BehaviorsSharedData). It stores the content (i.e: the properties) of a behavior of an object.
| void gd::BehaviorConfigurationContainer::ExposeResources | ( | gd::ArbitraryResourceWorker & | worker | ) | 
Called ( e.g. during compilation ) so as to inventory internal resources and sometimes update their filename. Implementation example:
| std::map< gd::String, gd::PropertyDescriptor > gd::BehaviorConfigurationContainer::GetProperties | ( | ) | const | 
Called when the IDE wants to know about the custom properties of the behavior.
      
  | 
  protectedvirtual | 
Called when the IDE wants to know about the custom properties of the behavior.
Implementation example:
Reimplemented in gd::CustomBehaviorsSharedData, and gd::CustomBehavior.
      
  | 
  inline | 
Called when the IDE wants to update a custom property of the behavior.
      
  | 
  inlineprotectedvirtual | 
Called when the IDE wants to update a custom property of the behavior.
Reimplemented in gd::CustomBehaviorsSharedData, and gd::CustomBehavior.