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, const gd::String &value)
 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, const gd::String &value)
 Check if a parameter is valid. More...
 
static bool HasDeprecationWarnings (const gd::Platform &platform, const gd::ProjectScopedContainers projectScopedContainers, const gd::Instruction &instruction, const InstructionMetadata &metadata, std::size_t parameterIndex, const gd::String &value)
 Check if a parameter expression has deprecation warnings. More...
 
static gd::String GetRootVariableName (const gd::String &name)
 

Member Function Documentation

◆ HasDeprecationWarnings()

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

Check if a parameter expression has deprecation warnings.

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

◆ IsParameterValid()

bool gd::InstructionValidator::IsParameterValid ( const gd::Platform platform,
const gd::ProjectScopedContainers  projectScopedContainers,
const gd::Instruction instruction,
const InstructionMetadata metadata,
std::size_t  parameterIndex,
const gd::String value 
)
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,
const gd::String value 
)
static

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

This method is more efficient than calling IsParameterValid and HasDeprecationWarnings separately as it only parses the expression once.


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