CANCapture Scripting
|
The interface for an object type.
Public Member Functions | |
Miscellaneous | |
virtual asIScriptEngine * | GetEngine () const =0 |
Returns a pointer to the script engine. More... | |
virtual const char * | GetConfigGroup () const =0 |
Returns the config group in which the type was registered. More... | |
Type info | |
virtual const char * | GetName () const =0 |
Returns a temporary pointer to the name of the datatype. More... | |
virtual asIObjectType * | GetBaseType () const =0 |
Returns the object type that this type derives from. More... | |
virtual asDWORD | GetFlags () const =0 |
Returns the object type flags. More... | |
virtual asUINT | GetSize () const =0 |
Returns the size of the object type. More... | |
Interfaces | |
virtual int | GetInterfaceCount () const =0 |
Returns the number of interfaces implemented. More... | |
virtual asIObjectType * | GetInterface (asUINT index) const =0 |
Returns a temporary pointer to the specified interface or null if none are found. More... | |
Factories | |
virtual int | GetFactoryCount () const =0 |
Returns the number of factory functions for the object type. More... | |
virtual int | GetFactoryIdByIndex (int index) const =0 |
Returns the factory id by index. More... | |
virtual int | GetFactoryIdByDecl (const char *decl) const =0 |
Returns the factory id by declaration. More... | |
Methods | |
virtual int | GetMethodCount () const =0 |
Returns the number of methods for the object type. More... | |
virtual int | GetMethodIdByIndex (int index) const =0 |
Returns the method id by index. More... | |
virtual int | GetMethodIdByName (const char *name) const =0 |
Returns the method id by name. More... | |
virtual int | GetMethodIdByDecl (const char *decl) const =0 |
Returns the method id by declaration. More... | |
virtual asIScriptFunction * | GetMethodDescriptorByIndex (int index) const =0 |
Returns the function descriptor for the script method. More... | |
Properties | |
virtual int | GetPropertyCount () const =0 |
Returns the number of properties that the object contains. More... | |
virtual int | GetPropertyTypeId (asUINT prop) const =0 |
Returns the type id of the property referenced by prop. More... | |
virtual const char * | GetPropertyName (asUINT prop) const =0 |
Returns the name of the property referenced by prop. More... | |
virtual int | GetPropertyOffset (asUINT prop) const =0 |
Returns the offset of the property in the memory layout. More... | |
Behaviours | |
virtual int | GetBehaviourCount () const =0 |
Returns the number of behaviours. More... | |
virtual int | GetBehaviourByIndex (asUINT index, asEBehaviours *outBehaviour) const =0 |
Returns the function id and type of the behaviour. More... | |
Deprecated | |
virtual asIObjectType * | GetSubType () const =0 |
virtual bool | IsInterface () const =0 |
|
pure virtual |
This method will only return a pointer in case of script classes that derives from another script class.
|
pure virtual |
[in] | index | The index of the behaviour. |
[out] | outBehaviour | Receives the type of the behaviour. |
asINVALID_ARG | The index is too large. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
[in] | decl | The factory signature. |
asNO_FUNCTION | Didn't find any matching functions. |
asINVALID_DECLARATION | decl is not a valid declaration. |
asERROR | The module for the type was not built successfully. |
The factory function is named after the object type and returns a handle to the object. Example:
|
pure virtual |
[in] | index | The index of the factory function. |
asINVALID_ARG | index is out of bounds. |
|
pure virtual |
Script classes are identified by having the asOBJ_SCRIPT_OBJECT flag set. Interfaces are identified as a script class with a size of zero.
|
pure virtual |
[in] | index | The interface index. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
[in] | index | The index of the method. |
|
pure virtual |
[in] | decl | The method signature. |
asMULTIPLE_FUNCTIONS | Found multiple matching methods. |
asNO_FUNCTION | Didn't find any matching method. |
asINVALID_DECLARATION | decl is not a valid declaration. |
asERROR | The module for the type was not built successfully. |
This method should be used to retrieve the ID of the script method for the object that you wish to execute. The ID is then sent to the context's Prepare method.
The method will find the script method with the exact same declaration.
|
pure virtual |
[in] | index | The index of the method. |
asINVALID_ARG | index is out of bounds. |
This method should be used to retrieve the ID of the script method for the object that you wish to execute. The ID is then sent to the context's Prepare method.
|
pure virtual |
[in] | name | The name of the method. |
asMULTIPLE_FUNCTIONS | Found multiple matching methods. |
asNO_FUNCTION | Didn't find any matching method. |
This method should be used to retrieve the ID of the script method for the object that you wish to execute. The ID is then sent to the context's Prepare method.
|
pure virtual |
|
pure virtual |
|
pure virtual |
[in] | prop | The property index. |
|
pure virtual |
[in] | prop | The property index. |
|
pure virtual |
[in] | prop | The property index. |
asINVALID_ARG | prop is too large |
|
pure virtual |
Application registered reference types doesn't store this information, as the script engine doesn't allocate memory for these itself.
|
pure virtual |
|
pure virtual |