GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Contains user-friendly information about a behavior type. More...
#include <BehaviorMetadata.h>
Inherits gd::InstructionOrExpressionContainerMetadata.
Public Member Functions | |
BehaviorMetadata (const gd::String &extensionNamespace, const gd::String &nameWithNamespace, const gd::String &fullname_, const gd::String &defaultName_, const gd::String &description_, const gd::String &group_, const gd::String &icon24x24_, const gd::String &className_, std::shared_ptr< gd::Behavior > instance, std::shared_ptr< gd::BehaviorsSharedData > sharedDatasInstance) | |
BehaviorMetadata (const gd::String &extensionNamespace, const gd::String &nameWithNamespace, const gd::String &fullname_, const gd::String &defaultName_, const gd::String &description_, const gd::String &group_, const gd::String &icon24x24_) | |
Construct a behavior metadata, without "blueprint" behavior. More... | |
gd::InstructionMetadata & | AddCondition (const gd::String &name_, const gd::String &fullname_, const gd::String &description_, const gd::String &sentence_, const gd::String &group_, const gd::String &icon_, const gd::String &smallicon_) override |
gd::InstructionMetadata & | AddAction (const gd::String &name_, const gd::String &fullname_, const gd::String &description_, const gd::String &sentence_, const gd::String &group_, const gd::String &icon_, const gd::String &smallicon_) override |
gd::InstructionMetadata & | AddScopedCondition (const gd::String &name_, const gd::String &fullname_, const gd::String &description_, const gd::String &sentence_, const gd::String &group_, const gd::String &icon_, const gd::String &smallicon_) override |
gd::InstructionMetadata & | AddScopedAction (const gd::String &name_, const gd::String &fullname_, const gd::String &description_, const gd::String &sentence_, const gd::String &group_, const gd::String &icon_, const gd::String &smallicon_) override |
gd::ExpressionMetadata & | AddExpression (const gd::String &name_, const gd::String &fullname_, const gd::String &description_, const gd::String &group_, const gd::String &smallicon_) override |
gd::ExpressionMetadata & | AddStrExpression (const gd::String &name_, const gd::String &fullname_, const gd::String &description_, const gd::String &group_, const gd::String &smallicon_) override |
gd::MultipleInstructionMetadata | AddExpressionAndCondition (const gd::String &type, const gd::String &name, const gd::String &fullname, const gd::String &description, const gd::String &sentenceName, const gd::String &group, const gd::String &icon) override |
Declare a new expression and condition as being part of the behavior. More... | |
gd::MultipleInstructionMetadata | AddExpressionAndConditionAndAction (const gd::String &type, const gd::String &name, const gd::String &fullname, const gd::String &description, const gd::String &sentenceName, const gd::String &group, const gd::String &icon) override |
Declare a new expression, condition and action as being part of the behavior. More... | |
gd::InstructionMetadata & | AddDuplicatedAction (const gd::String &newActionName, const gd::String &copiedActionName) override |
Create a new action which is the duplicate of the specified one. More... | |
gd::InstructionMetadata & | AddDuplicatedCondition (const gd::String &newConditionName, const gd::String &copiedConditionName) override |
Create a new condition which is the duplicate of the specified one. More... | |
gd::ExpressionMetadata & | AddDuplicatedExpression (const gd::String &newExpressionName, const gd::String &copiedExpressionName) |
Create a new expression which is the duplicate of the specified one. More... | |
gd::ExpressionMetadata & | AddDuplicatedStrExpression (const gd::String &newExpressionName, const gd::String &copiedExpressionName) |
Create a new string expression which is the duplicate of the specified one. More... | |
BehaviorMetadata & | SetFullName (const gd::String &fullname_) override |
BehaviorMetadata & | SetDefaultName (const gd::String &defaultName_) |
BehaviorMetadata & | SetDescription (const gd::String &description_) override |
BehaviorMetadata & | SetGroup (const gd::String &group_) |
BehaviorMetadata & | SetIncludeFile (const gd::String &includeFile) override |
Erase any existing include file and add the specified include. More... | |
BehaviorMetadata & | AddIncludeFile (const gd::String &includeFile) override |
Add a file to the already existing include files. | |
BehaviorMetadata & | AddRequiredFile (const gd::String &requiredFile) |
Add a file to the already existing required files. More... | |
const gd::String & | GetHelpPath () const override |
BehaviorMetadata & | SetHelpPath (const gd::String &path) override |
const gd::String & | GetName () const override |
const gd::String & | GetFullName () const override |
const gd::String & | GetDefaultName () const |
const gd::String & | GetDescription () const override |
const gd::String & | GetGroup () const |
const gd::String & | GetIconFilename () const override |
BehaviorMetadata & | SetObjectType (const gd::String &objectType_) |
Set the type of the object that this behavior can be used on. | |
const gd::String & | GetObjectType () const |
Get the type of the object that this behavior can be used on. More... | |
const std::vector< gd::String > & | GetRequiredBehaviorTypes () const |
Get the types of the behaviors that are required by this behavior. | |
bool | IsPrivate () const |
BehaviorMetadata & | SetPrivate () |
bool | IsHidden () const |
BehaviorMetadata & | SetHidden () |
QuickCustomization::Visibility | GetQuickCustomizationVisibility () const |
BehaviorMetadata & | SetQuickCustomizationVisibility (QuickCustomization::Visibility visibility) |
BehaviorMetadata & | SetOpenFullEditorLabel (const gd::String &label) |
const gd::String & | GetOpenFullEditorLabel () const |
gd::Behavior & | Get () const |
Return the associated gd::Behavior, handling behavior contents. More... | |
std::map< gd::String, gd::PropertyDescriptor > | GetProperties () const |
Called when the IDE wants to know about the custom properties of the behavior. More... | |
gd::BehaviorsSharedData * | GetSharedDataInstance () const |
Return the associated gd::BehaviorsSharedData, handling behavior shared data, if any (nullptr if none). More... | |
std::map< gd::String, gd::PropertyDescriptor > | GetSharedProperties () const |
Called when the IDE wants to know about the custom shared properties of the behavior. More... | |
std::map< gd::String, gd::InstructionMetadata > & | GetAllActions () override |
Return a reference to a map containing the names of the actions (as keys) and the metadata associated with (as values). | |
std::map< gd::String, gd::InstructionMetadata > & | GetAllConditions () override |
std::map< gd::String, gd::ExpressionMetadata > & | GetAllExpressions () override |
std::map< gd::String, gd::ExpressionMetadata > & | GetAllStrExpressions () override |
Public Attributes | |
std::map< gd::String, gd::InstructionMetadata > | conditionsInfos |
std::map< gd::String, gd::InstructionMetadata > | actionsInfos |
std::map< gd::String, gd::ExpressionMetadata > | expressionsInfos |
std::map< gd::String, gd::ExpressionMetadata > | strExpressionsInfos |
std::vector< gd::String > | includeFiles |
std::vector< gd::String > | requiredFiles |
gd::String | className |
Contains user-friendly information about a behavior type.
gd::BehaviorMetadata::BehaviorMetadata | ( | const gd::String & | extensionNamespace, |
const gd::String & | nameWithNamespace, | ||
const gd::String & | fullname_, | ||
const gd::String & | defaultName_, | ||
const gd::String & | description_, | ||
const gd::String & | group_, | ||
const gd::String & | icon24x24_ | ||
) |
Construct a behavior metadata, without "blueprint" behavior.
|
overridevirtual |
Declare a new action as being part of the behavior.
AddScopedAction
, to properly namespace the action. Implements gd::InstructionOrExpressionContainerMetadata.
|
overridevirtual |
Declare a new condition as being part of the behavior.
AddScopedCondition
, to properly namespace the condition. Implements gd::InstructionOrExpressionContainerMetadata.
|
overridevirtual |
Create a new action which is the duplicate of the specified one.
Useful for handling a deprecated action that is just a "copy" of the new one.
Implements gd::InstructionOrExpressionContainerMetadata.
|
overridevirtual |
Create a new condition which is the duplicate of the specified one.
Useful for handling a deprecated condition that is just a "copy" of the new one.
Implements gd::InstructionOrExpressionContainerMetadata.
gd::ExpressionMetadata & gd::BehaviorMetadata::AddDuplicatedExpression | ( | const gd::String & | newExpressionName, |
const gd::String & | copiedExpressionName | ||
) |
Create a new expression which is the duplicate of the specified one.
Useful for handling a deprecated expression that is just a "copy" of the new one.
gd::ExpressionMetadata & gd::BehaviorMetadata::AddDuplicatedStrExpression | ( | const gd::String & | newExpressionName, |
const gd::String & | copiedExpressionName | ||
) |
Create a new string expression which is the duplicate of the specified one.
Useful for handling a deprecated string expression that is just a "copy" of the new one.
|
overridevirtual |
Declare a new action as being part of the extension.
Implements gd::InstructionOrExpressionContainerMetadata.
|
overridevirtual |
Declare a new expression and condition as being part of the behavior.
Implements gd::InstructionOrExpressionContainerMetadata.
|
overridevirtual |
Declare a new expression, condition and action as being part of the behavior.
Implements gd::InstructionOrExpressionContainerMetadata.
BehaviorMetadata & gd::BehaviorMetadata::AddRequiredFile | ( | const gd::String & | requiredFile | ) |
Add a file to the already existing required files.
|
overridevirtual |
Declare a new action as being part of the behavior.
Implements gd::InstructionOrExpressionContainerMetadata.
|
overridevirtual |
Declare a new condition as being part of the behavior.
Implements gd::InstructionOrExpressionContainerMetadata.
|
overridevirtual |
Declare a new string expression as being part of the extension.
Implements gd::InstructionOrExpressionContainerMetadata.
gd::Behavior & gd::BehaviorMetadata::Get | ( | ) | const |
Return the associated gd::Behavior, handling behavior contents.
|
inlineoverridevirtual |
Implements gd::InstructionOrExpressionContainerMetadata.
|
inlineoverridevirtual |
Implements gd::InstructionOrExpressionContainerMetadata.
|
inlineoverridevirtual |
Implements gd::InstructionOrExpressionContainerMetadata.
|
inlineoverridevirtual |
Get the help path of the behavior, relative to the GDevelop documentation root.
Implements gd::InstructionOrExpressionContainerMetadata.
|
inline |
Get the type of the object that this behavior can be used on.
std::map< gd::String, gd::PropertyDescriptor > gd::BehaviorMetadata::GetProperties | ( | ) | const |
Called when the IDE wants to know about the custom properties of the behavior.
gd::BehaviorsSharedData * gd::BehaviorMetadata::GetSharedDataInstance | ( | ) | const |
Return the associated gd::BehaviorsSharedData, handling behavior shared data, if any (nullptr if none).
std::map< gd::String, gd::PropertyDescriptor > gd::BehaviorMetadata::GetSharedProperties | ( | ) | const |
Called when the IDE wants to know about the custom shared properties of the behavior.
|
inline |
Check if the behavior is hidden - it can be used but not attached to objects by users.
|
inline |
Check if the behavior is private - it can't be used outside of its extension.
|
inlineoverridevirtual |
Set the help path of the behavior, relative to the GDevelop documentation root.
The behavior instructions will have this help path set by default, unless you call SetHelpPath on them.
Implements gd::InstructionOrExpressionContainerMetadata.
|
inline |
Set that the behavior is hidden - it can be used but not attached to objects by users.
|
overridevirtual |
Erase any existing include file and add the specified include.
AddIncludeFile
instead as clearing the list is more error prone. Implements gd::InstructionOrExpressionContainerMetadata.
|
inline |
Set that the behavior is private - it can't be used outside of its extension.