ScummVM API documentation
AGS3::RuntimeScriptValue Struct Reference

Public Member Functions

 RuntimeScriptValue (int32_t val)
 
bool IsValid () const
 
bool IsNull () const
 
bool GetAsBool () const
 
void * GetPtrWithOffset () const
 
void * GetRValuePtrWithOffset () const
 
RuntimeScriptValueInvalidate ()
 
RuntimeScriptValueSetUInt8 (uint8_t val)
 
RuntimeScriptValueSetInt16 (int16_t val)
 
RuntimeScriptValueSetInt32 (int32_t val)
 
RuntimeScriptValueSetFloat (float val)
 
RuntimeScriptValueSetInt32AsBool (bool val)
 
RuntimeScriptValueSetFloatAsBool (bool val)
 
RuntimeScriptValueSetPluginArgument (int32_t val)
 
RuntimeScriptValueSetStackPtr (RuntimeScriptValue *stack_entry)
 
RuntimeScriptValueSetData (void *data, int size)
 
RuntimeScriptValueSetGlobalVar (RuntimeScriptValue *glvar_value)
 
RuntimeScriptValueSetStringLiteral (const char *str)
 
RuntimeScriptValueSetStaticArray (void *object, CCStaticArray *manager)
 
RuntimeScriptValueSetScriptObject (void *object, IScriptObject *manager)
 
RuntimeScriptValueSetPluginObject (void *object, IScriptObject *manager)
 
RuntimeScriptValueSetScriptObject (ScriptValueType type, void *object, IScriptObject *manager)
 
RuntimeScriptValueSetStaticFunction (ScriptAPIFunction *pfn)
 
RuntimeScriptValueSetPluginMethod (Plugins::ScriptContainer *sc, const Common::String &method)
 
RuntimeScriptValueSetObjectFunction (ScriptAPIObjectFunction *pfn)
 
RuntimeScriptValueSetCodePtr (void *ptr)
 
RuntimeScriptValue operator! () const
 
bool operator== (const RuntimeScriptValue &rval) const
 
bool operator!= (const RuntimeScriptValue &rval) const
 
RuntimeScriptValue ReadValue () const
 
void WriteValue (const RuntimeScriptValue &rval)
 
Plugins::PluginMethod pluginMethod () const
 
uint8_t ReadByte () const
 
int16_t ReadInt16 () const
 
int32_t ReadInt32 () const
 
void WriteByte (uint8_t val)
 
void WriteInt16 (int16_t val)
 
void WriteInt32 (int32_t val)
 
RuntimeScriptValueDirectPtr ()
 
RuntimeScriptValueDirectPtrObj ()
 
void * GetDirectPtr () const
 

Public Attributes

ScriptValueType Type
 
Common::String methodName
 
union {
   int32_t   IValue
 
   float   FValue
 
}; 
 
union {
   void *   Ptr
 
   uint8_t *   PtrU8
 
   char *   CStr
 
   RuntimeScriptValue *   RValue
 
   ScriptAPIFunction *   SPfn
 
   ScriptAPIObjectFunction *   ObjPfn
 
}; 
 
union {
   void *   MgrPtr
 
   IScriptObject *   ObjMgr
 
   CCStaticArray *   ArrMgr
 
}; 
 
int Size
 

The documentation for this struct was generated from the following file: