GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | List of all members

Contains user-friendly information about an effect. More...

#include <EffectMetadata.h>

Public Member Functions

 EffectMetadata (const gd::String &type_)
 Construct an effect metadata, with the given type.
 
 EffectMetadata ()
 Default constructor, only used for initializing badEffectMetadata.
 
EffectMetadataSetFullName (const gd::String &fullname_)
 Set the name shown to the user.
 
EffectMetadataSetDescription (const gd::String &description_)
 Set the description shown to the user.
 
EffectMetadataSetHelpPath (const gd::String &path)
 
EffectMetadataSetIncludeFile (const gd::String &includeFile)
 Clear any existing include file and add the specified include file. More...
 
EffectMetadataAddIncludeFile (const gd::String &includeFile)
 Add a file to the already existing include files.
 
std::map< gd::String, gd::PropertyDescriptor > & GetProperties ()
 Return a reference to the properties of this effect.
 
const std::map< gd::String, gd::PropertyDescriptor > & GetProperties () const
 Return a (const) reference to the properties of this effect.
 
const gd::StringGetHelpPath () const
 Get the help path of the effect, relative to the GDevelop documentation root.
 
const gd::StringGetType () const
 Get the type of the effect (its internal name, like "BlackAndWhite").
 
const gd::StringGetFullName () const
 Get the user facing name of the effect (like "Black and White").
 
const gd::StringGetDescription () const
 Get the user friendly description of the effect.
 
const std::vector< gd::String > & GetIncludeFiles () const
 Get the required include files for this effect.
 
EffectMetadataMarkAsNotWorkingForObjects ()
 Mark the effect as not working as an object effect.
 
EffectMetadataMarkAsOnlyWorkingFor2D ()
 Mark the effect as only working for the 2D renderer.
 
EffectMetadataMarkAsOnlyWorkingFor3D ()
 Mark the effect as only working for the 3D renderer.
 
EffectMetadataMarkAsUnique ()
 Mark the effect as only addable once.
 
bool IsMarkedAsNotWorkingForObjects () const
 Check if the effect is marked as not working as an object effect.
 
bool IsMarkedAsOnlyWorkingFor2D () const
 Check if the effect is marked as only working for the 2D renderer.
 
bool IsMarkedAsOnlyWorkingFor3D () const
 Check if the effect is marked as only working for the 3D renderer.
 
bool IsMarkedAsUnique () const
 Check if the effect can only be added once.
 

Detailed Description

Contains user-friendly information about an effect.

Member Function Documentation

◆ SetHelpPath()

EffectMetadata& gd::EffectMetadata::SetHelpPath ( const gd::String path)
inline

Set the help path of the effect, relative to the GDevelop documentation root.

◆ SetIncludeFile()

EffectMetadata & gd::EffectMetadata::SetIncludeFile ( const gd::String includeFile)

Clear any existing include file and add the specified include file.

Deprecated:
Use AddIncludeFile instead as clearing the list is more error prone.

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