GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Describe user-friendly information about an expression or an instruction (action or condition), its parameters and the function name as well as other information for code generation. More...
#include <AbstractFunctionMetadata.h>
Inherited by gd::ExpressionMetadata, gd::InstructionMetadata, and gd::MultipleInstructionMetadata.
Public Member Functions | |
virtual AbstractFunctionMetadata & | AddParameter (const gd::String &type, const gd::String &label, const gd::String &supplementaryInformation="", bool parameterIsOptional=false)=0 |
virtual AbstractFunctionMetadata & | AddCodeOnlyParameter (const gd::String &type, const gd::String &supplementaryInformation)=0 |
virtual AbstractFunctionMetadata & | SetDefaultValue (const gd::String &defaultValue)=0 |
virtual AbstractFunctionMetadata & | SetParameterExtraInfo (const gd::String &defaultValue)=0 |
virtual AbstractFunctionMetadata & | SetParameterLongDescription (const gd::String &longDescription)=0 |
virtual AbstractFunctionMetadata & | SetHidden ()=0 |
virtual AbstractFunctionMetadata & | SetPrivate ()=0 |
virtual AbstractFunctionMetadata & | SetRelevantForLayoutEventsOnly ()=0 |
virtual AbstractFunctionMetadata & | SetRelevantForFunctionEventsOnly ()=0 |
virtual AbstractFunctionMetadata & | SetRelevantForAsynchronousFunctionEventsOnly ()=0 |
virtual AbstractFunctionMetadata & | SetRelevantForCustomObjectEventsOnly ()=0 |
virtual AbstractFunctionMetadata & | SetFunctionName (const gd::String &functionName)=0 |
Set the function that should be called when generating the source code from events. More... | |
virtual AbstractFunctionMetadata & | SetIncludeFile (const gd::String &includeFile)=0 |
Erase any existing include file and add the specified include. More... | |
virtual AbstractFunctionMetadata & | AddIncludeFile (const gd::String &includeFile)=0 |
Add a file to the already existing include files. | |
virtual const std::vector< gd::String > & | GetIncludeFiles () const =0 |
Get the files that must be included to use the instruction. | |
Describe user-friendly information about an expression or an instruction (action or condition), its parameters and the function name as well as other information for code generation.
|
pure virtual |
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Implemented in gd::InstructionMetadata, gd::MultipleInstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Set the function that should be called when generating the source code from events.
functionName | the name of the function to call |
codeExtraInformation.SetFunctionName
. Implemented in gd::InstructionMetadata, gd::MultipleInstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Erase any existing include file and add the specified include.
AddIncludeFile
instead as clearing the list is more error prone. Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Implemented in gd::InstructionMetadata, gd::ExpressionMetadata, and gd::MultipleInstructionMetadata.
|
pure virtual |
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Set that the instruction is private - it can't be used outside of the object/ behavior that it is attached too.
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Set that the instruction can be used in asynchronous function events.
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Set that the instruction can be used in custom object events.
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Set that the instruction can be used in function events.
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.
|
pure virtual |
Set that the instruction can be used in layouts or external events.
Implemented in gd::MultipleInstructionMetadata, gd::InstructionMetadata, and gd::ExpressionMetadata.