ScriptAnyValue

C++
struct ScriptAnyValue {
  ScriptAnyType type;
  union {
    bool b;
    float number;
    const char * str;
    IScriptTable * table;
    const void * ptr;
    HSCRIPTFUNCTION function;
    struct {
      float x, y, z;
    } vec3;
    struct {
      void * ptr;
      int nRef;
    } ud;
  };
};
File

IScriptSystem.h

ScriptAnyValue::type Data Member
C++
ScriptAnyValue::!= Operator
C++
bool operator !=(const ScriptAnyValue& rhs) const;
ScriptAnyValue::~ScriptAnyValue Destructor
C++
Description

Implemented at the end of header.

ScriptAnyValue::= Operator
C++
ScriptAnyValue& operator =(const ScriptAnyValue& rhs);
ScriptAnyValue::== Operator

Compares 2 values.

C++
bool operator ==(const ScriptAnyValue& rhs) const;
ScriptAnyValue::Clear Method
C++
void Clear();
Description

Implemented at the end of header.

ScriptAnyValue::CopyTo Method (Ang3 &)
C++
bool CopyTo(Ang3 & value) const;
ScriptAnyValue::CopyTo Method (HSCRIPTFUNCTION &)
C++
bool CopyTo(HSCRIPTFUNCTION & value) const;
ScriptAnyValue::CopyTo Method (IScriptTable *&)
C++
bool CopyTo(IScriptTable *& value) const;
Description

implemented at the end of header

ScriptAnyValue::CopyTo Method (ScriptHandle &)
C++
bool CopyTo(ScriptHandle & value) const;
ScriptAnyValue::CopyTo Method (SmartScriptTable &)
C++
bool CopyTo(SmartScriptTable & value) const;
Description

implemented at the end of header

ScriptAnyValue::CopyTo Method (Vec3 &)
C++
bool CopyTo(Vec3 & value) const;
ScriptAnyValue::CopyTo Method (bool &)
C++
bool CopyTo(bool & value) const;
ScriptAnyValue::CopyTo Method (char *&)
C++
bool CopyTo(char *& value) const;
ScriptAnyValue::CopyTo Method (float &)
C++
bool CopyTo(float & value) const;
ScriptAnyValue::CopyTo Method (int &)
C++
bool CopyTo(int & value) const;
ScriptAnyValue::CopyTo Method (string &)
C++
bool CopyTo(string & value) const;
ScriptAnyValue::CopyTo Method (unsigned int &)
C++
bool CopyTo(unsigned int & value) const;
ScriptAnyValue::GetMemoryUsage Method
C++
void GetMemoryUsage(ICrySizer * pSizer) const;
ScriptAnyValue::GetVarType Method
C++
ScriptVarType GetVarType() const;
ScriptAnyValue::ScriptAnyValue Constructor ()
C++
ScriptAnyValue();
ScriptAnyValue::ScriptAnyValue Constructor (Ang3 &)
C++
ScriptAnyValue(const Ang3 & value);
ScriptAnyValue::ScriptAnyValue Constructor (Ang3&, int)
C++
ScriptAnyValue(Ang3&, int);
ScriptAnyValue::ScriptAnyValue Constructor (HSCRIPTFUNCTION)
C++
ScriptAnyValue(HSCRIPTFUNCTION value);
ScriptAnyValue::ScriptAnyValue Constructor (HSCRIPTFUNCTION, int)
C++
ScriptAnyValue(HSCRIPTFUNCTION, int);
ScriptAnyValue::ScriptAnyValue Constructor (IScriptTable *)
C++
ScriptAnyValue(IScriptTable * value);
Description

Implemented at the end of header.

After SmartScriptTable defined, now implement ScriptAnyValue constructor for it.

ScriptAnyValue::ScriptAnyValue Constructor (IScriptTable*, int)
C++
ScriptAnyValue(IScriptTable* _table, int);
Description

ScriptAnyValue( USER_DATA,int ) : type(ANY_TUSERDATA) {};

ScriptAnyValue::ScriptAnyValue Constructor (ScriptAnyType)
C++
ScriptAnyValue(ScriptAnyType _type);
ScriptAnyValue::ScriptAnyValue Constructor (ScriptAnyValue&)
C++
ScriptAnyValue(const ScriptAnyValue& value);
Description

Implemented at the end of header.

ScriptAnyValue::ScriptAnyValue Constructor (ScriptHandle)
C++
ScriptAnyValue(ScriptHandle value);
ScriptAnyValue::ScriptAnyValue Constructor (ScriptHandle, int)
C++
ScriptAnyValue(ScriptHandle, int);
ScriptAnyValue::ScriptAnyValue Constructor (ScriptUserData, int)
C++
ScriptAnyValue(ScriptUserData, int);
ScriptAnyValue::ScriptAnyValue Constructor (SmartScriptTable &)
C++
ScriptAnyValue(const SmartScriptTable & value);
Description

Implemented at the end of header.

ScriptAnyValue::ScriptAnyValue Constructor (SmartScriptTable &, int)
C++
ScriptAnyValue(const SmartScriptTable & value, int);
ScriptAnyValue::ScriptAnyValue Constructor (Vec3 &)
C++
ScriptAnyValue(const Vec3 & value);
ScriptAnyValue::ScriptAnyValue Constructor (Vec3&, int)
C++
ScriptAnyValue(Vec3&, int);
ScriptAnyValue::ScriptAnyValue Constructor (bool)
C++
ScriptAnyValue(bool value);
ScriptAnyValue::ScriptAnyValue Constructor (bool, int)
C++
ScriptAnyValue(bool, int);
Description

Only initialize type.

ScriptAnyValue::ScriptAnyValue Constructor (char *)
C++
ScriptAnyValue(const char * value);
ScriptAnyValue::ScriptAnyValue Constructor (char*, int)
C++
ScriptAnyValue(const char*, int);
ScriptAnyValue::ScriptAnyValue Constructor (float)
C++
ScriptAnyValue(float value);
ScriptAnyValue::ScriptAnyValue Constructor (float&, int)
C++
ScriptAnyValue(float&, int);
ScriptAnyValue::ScriptAnyValue Constructor (int)
C++
ScriptAnyValue(int value);
ScriptAnyValue::ScriptAnyValue Constructor (int, int)
C++
ScriptAnyValue(int, int);
ScriptAnyValue::ScriptAnyValue Constructor (unsigned int)
C++
ScriptAnyValue(unsigned int value);
ScriptAnyValue::ScriptAnyValue Constructor (unsigned int, int)
C++
ScriptAnyValue(unsigned int, int);
ScriptAnyValue::Swap Method
C++
void Swap(ScriptAnyValue& value);
Description

Implemented at the end of header.