Jazz2::Scripting::CScriptDictValue class

AngelScript dictionary value

Type-erased container for a single value stored in a CScriptDictionary, holding either an integer, a floating-point number or a script object reference together with its type id. It must always be used in the context of a script engine, which is why the engine pointer is passed to every operation rather than stored as a member.

Constructors, destructors, conversion operators

CScriptDictValue()
CScriptDictValue(asIScriptEngine* engine, void* value, std::int32_t typeId)
~CScriptDictValue()

Public functions

void Set(asIScriptEngine* engine, void* value, std::int32_t typeId)
void Set(asIScriptEngine* engine, const std::int64_t& value)
void Set(asIScriptEngine* engine, const double& value)
void Set(asIScriptEngine* engine, CScriptDictValue& value)
auto Get(asIScriptEngine* engine, void* value, std::int32_t typeId) const -> bool
auto Get(asIScriptEngine* engine, std::int64_t& value) const -> bool
auto Get(asIScriptEngine* engine, double& value) const -> bool
auto GetAddressOfValue() const -> const void*
auto GetTypeId() const -> std::int32_t
void FreeValue(asIScriptEngine* engine)
void EnumReferences(asIScriptEngine* engine)