index

Reference: Object types

asOBJ_GUESS
asOBJ_CLASS
asOBJ_CLASS_CONSTRUCTOR
asOBJ_CLASS_DESTRUCTOR
asOBJ_CLASS_ASSIGNMENT
asOBJ_PRIMITIVE
asOBJ_FLOAT

asOBJ_GUESS

AngelScript should determine the true object type by looking at what behaviour functions that are registered. This will only work for classes, that truly registers the class's constructor, destructor, and assignment operator, if any are available. It doesn't work for primitive types.

asOBJ_CLASS

The object is a class, structure, or union. This flag can optionally be combined with asOBJ_CLASS_CONSTRUCTOR, asOBJ_CLASS_DESTRUCTOR, and/or asOBJ_CLASS_ASSIGNMENT.

There is also a short name for each of the combinations in the form of asOBJ_CLASS_C, asOBJ_CLASS_CD, asOBJ_CLASS_CDA, etc.

asOBJ_CLASS_CONSTRUCTOR

The class has a constructor.

asOBJ_CLASS_DESTRUCTOR

The class has a destructor.

asOBJ_CLASS_ASSIGNMENT

The class has an overloaded assignment operator.

asOBJ_PRIMITIVE

The object is really a primitive type, e.g. int, char, pointer, etc. All primitive types except float and double should use this flag.

asOBJ_FLOAT

The object is really a float or a double.

top