GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Static Public Member Functions | List of all members

Allow to easily get metadata for instructions (i.e actions and conditions), expressions, objects and behaviors. More...

#include <MetadataProvider.h>

Static Public Member Functions

static ExtensionAndMetadata
< BehaviorMetadata
GetExtensionAndBehaviorMetadata (const gd::Platform &platform, gd::String behaviorType)
 
static ExtensionAndMetadata
< ObjectMetadata
GetExtensionAndObjectMetadata (const gd::Platform &platform, gd::String type)
 
static ExtensionAndMetadata
< EffectMetadata
GetExtensionAndEffectMetadata (const gd::Platform &platform, gd::String type)
 
static ExtensionAndMetadata
< InstructionMetadata
GetExtensionAndActionMetadata (const gd::Platform &platform, gd::String actionType)
 
static ExtensionAndMetadata
< InstructionMetadata
GetExtensionAndConditionMetadata (const gd::Platform &platform, gd::String conditionType)
 
static ExtensionAndMetadata
< ExpressionMetadata
GetExtensionAndExpressionMetadata (const gd::Platform &platform, gd::String exprType)
 
static ExtensionAndMetadata
< ExpressionMetadata
GetExtensionAndObjectExpressionMetadata (const gd::Platform &platform, gd::String objectType, gd::String exprType)
 
static ExtensionAndMetadata
< ExpressionMetadata
GetExtensionAndBehaviorExpressionMetadata (const gd::Platform &platform, gd::String autoType, gd::String exprType)
 
static ExtensionAndMetadata
< ExpressionMetadata
GetExtensionAndStrExpressionMetadata (const gd::Platform &platform, gd::String exprType)
 
static ExtensionAndMetadata
< ExpressionMetadata
GetExtensionAndObjectStrExpressionMetadata (const gd::Platform &platform, gd::String objectType, gd::String exprType)
 
static ExtensionAndMetadata
< ExpressionMetadata
GetExtensionAndBehaviorStrExpressionMetadata (const gd::Platform &platform, gd::String autoType, gd::String exprType)
 
static const BehaviorMetadataGetBehaviorMetadata (const gd::Platform &platform, gd::String behaviorType)
 
static const ObjectMetadataGetObjectMetadata (const gd::Platform &platform, gd::String type)
 
static const EffectMetadataGetEffectMetadata (const gd::Platform &platform, gd::String type)
 
static const
gd::InstructionMetadata
GetActionMetadata (const gd::Platform &platform, gd::String actionType)
 
static const
gd::InstructionMetadata
GetConditionMetadata (const gd::Platform &platform, gd::String conditionType)
 
static const
gd::ExpressionMetadata
GetExpressionMetadata (const gd::Platform &platform, gd::String exprType)
 
static const
gd::ExpressionMetadata
GetObjectExpressionMetadata (const gd::Platform &platform, gd::String objectType, gd::String exprType)
 
static const
gd::ExpressionMetadata
GetBehaviorExpressionMetadata (const gd::Platform &platform, gd::String autoType, gd::String exprType)
 
static const
gd::ExpressionMetadata
GetStrExpressionMetadata (const gd::Platform &platform, gd::String exprType)
 
static const
gd::ExpressionMetadata
GetObjectStrExpressionMetadata (const gd::Platform &platform, gd::String objectType, gd::String exprType)
 
static const
gd::ExpressionMetadata
GetBehaviorStrExpressionMetadata (const gd::Platform &platform, gd::String autoType, gd::String exprType)
 
static bool HasCondition (const gd::Platform &platform, gd::String name)
 Check if a (static) condition exists. More...
 
static bool HasAction (const gd::Platform &platform, gd::String name)
 Check if a (static) action exists. More...
 
static bool HasObjectAction (const gd::Platform &platform, gd::String objectType, gd::String name)
 Check if a (object) action exists. More...
 
static bool HasObjectCondition (const gd::Platform &platform, gd::String objectType, gd::String name)
 Check if a (object) condition exists. More...
 
static bool HasBehaviorAction (const gd::Platform &platform, gd::String behaviorType, gd::String name)
 Check if a (behavior) action exists. More...
 
static bool HasBehaviorCondition (const gd::Platform &platform, gd::String behaviorType, gd::String name)
 Check if a (behavior) condition exists. More...
 
static bool HasExpression (const gd::Platform &platform, gd::String name)
 Check if a (static) expression exists. More...
 
static bool HasObjectExpression (const gd::Platform &platform, gd::String objectType, gd::String name)
 Check if a (object) expression exists. More...
 
static bool HasBehaviorExpression (const gd::Platform &platform, gd::String behaviorType, gd::String name)
 Check if a (behavior) expression exists. More...
 
static bool HasStrExpression (const gd::Platform &platform, gd::String name)
 Check if a (static) string expression exists. More...
 
static bool HasObjectStrExpression (const gd::Platform &platform, gd::String objectType, gd::String name)
 Check if a (object) string expression exists. More...
 
static bool HasBehaviorStrExpression (const gd::Platform &platform, gd::String behaviorType, gd::String name)
 Check if a (behavior) string expression exists. More...
 
static bool IsBadExpressionMetadata (const gd::ExpressionMetadata &metadata)
 

Detailed Description

Allow to easily get metadata for instructions (i.e actions and conditions), expressions, objects and behaviors.

Member Function Documentation

const gd::InstructionMetadata & gd::MetadataProvider::GetActionMetadata ( const gd::Platform platform,
gd::String  actionType 
)
static

Get the metadata of an action. Works for object, behaviors and static actions.

const gd::ExpressionMetadata & gd::MetadataProvider::GetBehaviorExpressionMetadata ( const gd::Platform platform,
gd::String  autoType,
gd::String  exprType 
)
static

Get information about an expression from its type Works for behavior expressions.

const BehaviorMetadata & gd::MetadataProvider::GetBehaviorMetadata ( const gd::Platform platform,
gd::String  behaviorType 
)
static

Get the metadata about a behavior.

const gd::ExpressionMetadata & gd::MetadataProvider::GetBehaviorStrExpressionMetadata ( const gd::Platform platform,
gd::String  autoType,
gd::String  exprType 
)
static

Get information about a string expression from its type Works for behavior expressions.

const gd::InstructionMetadata & gd::MetadataProvider::GetConditionMetadata ( const gd::Platform platform,
gd::String  conditionType 
)
static

Get the metadata of a condition. Works for object, behaviors and static conditions.

const EffectMetadata & gd::MetadataProvider::GetEffectMetadata ( const gd::Platform platform,
gd::String  type 
)
static

Get the metadata about an effect.

const gd::ExpressionMetadata & gd::MetadataProvider::GetExpressionMetadata ( const gd::Platform platform,
gd::String  exprType 
)
static

Get information about an expression from its type Works for static expressions.

ExtensionAndMetadata< InstructionMetadata > gd::MetadataProvider::GetExtensionAndActionMetadata ( const gd::Platform platform,
gd::String  actionType 
)
static

Get the metadata of an action, and its associated extension. Works for object, behaviors and static actions.

ExtensionAndMetadata< ExpressionMetadata > gd::MetadataProvider::GetExtensionAndBehaviorExpressionMetadata ( const gd::Platform platform,
gd::String  autoType,
gd::String  exprType 
)
static

Get information about an expression, and its associated extension. Works for behavior expressions.

ExtensionAndMetadata< BehaviorMetadata > gd::MetadataProvider::GetExtensionAndBehaviorMetadata ( const gd::Platform platform,
gd::String  behaviorType 
)
static

Get the metadata about a behavior, and its associated extension.

ExtensionAndMetadata< ExpressionMetadata > gd::MetadataProvider::GetExtensionAndBehaviorStrExpressionMetadata ( const gd::Platform platform,
gd::String  autoType,
gd::String  exprType 
)
static

Get information about a string expression, and its associated extension. Works for behavior expressions.

ExtensionAndMetadata< InstructionMetadata > gd::MetadataProvider::GetExtensionAndConditionMetadata ( const gd::Platform platform,
gd::String  conditionType 
)
static

Get the metadata of a condition, and its associated extension. Works for object, behaviors and static conditions.

ExtensionAndMetadata< EffectMetadata > gd::MetadataProvider::GetExtensionAndEffectMetadata ( const gd::Platform platform,
gd::String  type 
)
static

Get the metadata about an effect, and its associated extension.

ExtensionAndMetadata< ExpressionMetadata > gd::MetadataProvider::GetExtensionAndExpressionMetadata ( const gd::Platform platform,
gd::String  exprType 
)
static

Get information about an expression, and its associated extension. Works for static expressions.

ExtensionAndMetadata< ExpressionMetadata > gd::MetadataProvider::GetExtensionAndObjectExpressionMetadata ( const gd::Platform platform,
gd::String  objectType,
gd::String  exprType 
)
static

Get information about an expression, and its associated extension. Works for object expressions.

ExtensionAndMetadata< ObjectMetadata > gd::MetadataProvider::GetExtensionAndObjectMetadata ( const gd::Platform platform,
gd::String  type 
)
static

Get the metadata about an object, and its associated extension.

ExtensionAndMetadata< ExpressionMetadata > gd::MetadataProvider::GetExtensionAndObjectStrExpressionMetadata ( const gd::Platform platform,
gd::String  objectType,
gd::String  exprType 
)
static

Get information about a string expression, and its associated extension. Works for object expressions.

ExtensionAndMetadata< ExpressionMetadata > gd::MetadataProvider::GetExtensionAndStrExpressionMetadata ( const gd::Platform platform,
gd::String  exprType 
)
static

Get information about a string expression, and its associated extension. Works for static expressions.

const gd::ExpressionMetadata & gd::MetadataProvider::GetObjectExpressionMetadata ( const gd::Platform platform,
gd::String  objectType,
gd::String  exprType 
)
static

Get information about an expression from its type Works for object expressions.

const ObjectMetadata & gd::MetadataProvider::GetObjectMetadata ( const gd::Platform platform,
gd::String  type 
)
static

Get the metadata about an object.

const gd::ExpressionMetadata & gd::MetadataProvider::GetObjectStrExpressionMetadata ( const gd::Platform platform,
gd::String  objectType,
gd::String  exprType 
)
static

Get information about a string expression from its type Works for object expressions.

const gd::ExpressionMetadata & gd::MetadataProvider::GetStrExpressionMetadata ( const gd::Platform platform,
gd::String  exprType 
)
static

Get information about a string expression from its type Works for static expressions.

bool gd::MetadataProvider::HasAction ( const gd::Platform platform,
gd::String  name 
)
static

Check if a (static) action exists.

Returns
true if the (static) action exists
bool gd::MetadataProvider::HasBehaviorAction ( const gd::Platform platform,
gd::String  behaviorType,
gd::String  name 
)
static

Check if a (behavior) action exists.

Returns
true if the (behavior) action exists
bool gd::MetadataProvider::HasBehaviorCondition ( const gd::Platform platform,
gd::String  behaviorType,
gd::String  name 
)
static

Check if a (behavior) condition exists.

Returns
true if the (behavior) condition exists
bool gd::MetadataProvider::HasBehaviorExpression ( const gd::Platform platform,
gd::String  behaviorType,
gd::String  name 
)
static

Check if a (behavior) expression exists.

Returns
true if the (behavior) expression exists
bool gd::MetadataProvider::HasBehaviorStrExpression ( const gd::Platform platform,
gd::String  behaviorType,
gd::String  name 
)
static

Check if a (behavior) string expression exists.

Returns
true if the (behavior) string expression exists
bool gd::MetadataProvider::HasCondition ( const gd::Platform platform,
gd::String  name 
)
static

Check if a (static) condition exists.

Returns
true if the (static) condition exists
bool gd::MetadataProvider::HasExpression ( const gd::Platform platform,
gd::String  name 
)
static

Check if a (static) expression exists.

Returns
true if the (static) expression exists
bool gd::MetadataProvider::HasObjectAction ( const gd::Platform platform,
gd::String  objectType,
gd::String  name 
)
static

Check if a (object) action exists.

Returns
true if the (object) action exists
bool gd::MetadataProvider::HasObjectCondition ( const gd::Platform platform,
gd::String  objectType,
gd::String  name 
)
static

Check if a (object) condition exists.

Returns
true if the (object) condition exists
bool gd::MetadataProvider::HasObjectExpression ( const gd::Platform platform,
gd::String  objectType,
gd::String  name 
)
static

Check if a (object) expression exists.

Returns
true if the (object) expression exists
bool gd::MetadataProvider::HasObjectStrExpression ( const gd::Platform platform,
gd::String  objectType,
gd::String  name 
)
static

Check if a (object) string expression exists.

Returns
true if the (object) string expression exists
bool gd::MetadataProvider::HasStrExpression ( const gd::Platform platform,
gd::String  name 
)
static

Check if a (static) string expression exists.

Returns
true if the (static) string expression exists

The documentation for this class was generated from the following files: