GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Static Public Member Functions | List of all members
gd::InstructionValidator Class Reference

Static Public Member Functions

static ParameterValidationResult ValidateParameter (const gd::Platform &platform, const gd::ProjectScopedContainers projectScopedContainers, const gd::Instruction &instruction, const InstructionMetadata &metadata, std::size_t parameterIndex)
 Validate a parameter and check for deprecation warnings in a single pass. More...
 
static bool IsParameterValid (const gd::Platform &platform, const gd::ProjectScopedContainers projectScopedContainers, const gd::Instruction &instruction, const InstructionMetadata &metadata, std::size_t parameterIndex)
 Check if a parameter is valid. More...
 
static gd::String GetRootVariableName (const gd::String &name)
 

Member Function Documentation

◆ IsParameterValid()

bool gd::InstructionValidator::IsParameterValid ( const gd::Platform platform,
const gd::ProjectScopedContainers  projectScopedContainers,
const gd::Instruction instruction,
const InstructionMetadata metadata,
std::size_t  parameterIndex 
)
static

Check if a parameter is valid.

Deprecated:
Use ValidateParameter instead for better performance when you also need to check for deprecation warnings.

◆ ValidateParameter()

ParameterValidationResult gd::InstructionValidator::ValidateParameter ( const gd::Platform platform,
const gd::ProjectScopedContainers  projectScopedContainers,
const gd::Instruction instruction,
const InstructionMetadata metadata,
std::size_t  parameterIndex 
)
static

Validate a parameter and check for deprecation warnings in a single pass.

The parameter value is read from the instruction itself, so the displayed (possibly defaulted) value doesn't have to be passed.


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