GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
#include <VariableInstructionSwitcher.h>
Static Public Member Functions | |
static bool | IsSwitchableVariableInstruction (const gd::String &instructionType) |
Return true if the instruction is a variable getter or setter (including object variable instructions). | |
static bool | IsSwitchableObjectVariableInstruction (const gd::String &instructionType) |
Return true if the instruction is an object variable getter or setter. | |
static const gd::String & | GetSwitchableVariableInstructionIdentifier (const gd::String &instructionType) |
Return the common identifier for variable getter or setter or an empty string otherwise. More... | |
static const gd::Variable::Type | GetSwitchableInstructionVariableType (const gd::String &instructionType) |
Return the variable type for variable getter or setter. | |
static void | SwitchVariableInstructionType (gd::Instruction &instruction, const gd::Variable::Type variableType) |
Modify the instruction type to match the given variable type. | |
static const gd::Variable::Type | GetVariableTypeFromParameters (const gd::Platform &platform, const gd::ProjectScopedContainers &projectScopedContainers, const gd::Instruction &instruction) |
Return the variable type of the instruction parameter. | |
static void | SwitchBetweenUnifiedInstructionIfNeeded (const gd::Platform &platform, const gd::ProjectScopedContainers &projectScopedContainers, gd::Instruction &instruction) |
Modify the instruction type to match the variable type of the instruction parameter. | |
Events set and check variables with sets of 3 instructions for:
Users only see 1 instruction. The editor automatically switches between the 3 instructions according to the variable type.
|
static |
Return the common identifier for variable getter or setter or an empty string otherwise.
The instruction type of the "number" one is actually used as the common identifier.