The base class for an C++ object that has RTTI information and is accesible from script source code.
Any class that is intended to be bound and accessible from script source code must subclass from this class if it has RTTI defined (if the YI_TYPE_BASES macro is defined in the header). If the class does not have RTTI information defined CYIScriptableObject should be used instead. This class allows the You.i Engine binding implementation to make use of RTTI, if it is available, without adding RTTI to classes which did not already have it.
- Note
- When subclassing from CYIScriptableRTTIObject the CYIScriptableRTTIObject should not be added to YI_TYPE_BASES. This class is used to provide the RTTI information of the class that is being bound so that the correct CYIBindingImplementation can be created at runtime for the scriptable object instance. Adding CYIScriptableRTTIObject to the YI_TYPE_BASES of the subclass would indicate that a binding implementation for CYIScriptableRTTIObject exists, which is not the case and would not be desirable.