C4 Engine
C4 Engine API Documentation

class Value

Defined in:  C4Values.h
The Value class encapsulates a script variable.
Definition

class Value : public MapElement<Value>, public Packable, public Configurable, public Memory<ScriptState>

Constructor

Value(ValueType type);

Parameters
type The type of the value.
Description
The Value class encapsulates a variable belonging to a script.
Base Classes
MapElement<Value> Used internally by a script.
Packable Values can be packed for storage in resources.
Configurable Values can be configured by the user in the Script Editor.
Memory<ScriptState> Values are stored in a dedicated heap.
See Also

ScriptState::GetValue