|
|
const xiiSharedPtr< xiiScriptRTTI > & | GetType () const |
|
virtual xiiUniquePtr< xiiScriptInstance > | Instantiate (xiiReflectedClass &inout_owner, xiiWorld *pWorld) const =0 |
| XII_ALWAYS_INLINE xiiStringView | GetResourceID () const |
|
XII_ALWAYS_INLINE xiiUInt64 | GetResourceIDHash () const |
| | Returns the hash of the unique ID.
|
| void | SetResourceDescription (xiiStringView sDescription) |
| const xiiString & | GetResourceDescription () const |
| const xiiString & | GetResourceIdOrDescription () const |
|
XII_ALWAYS_INLINE xiiResourceState | GetLoadingState () const |
| | Returns the current state in which this resource is in.
|
| XII_ALWAYS_INLINE xiiUInt8 | GetNumQualityLevelsDiscardable () const |
|
XII_ALWAYS_INLINE xiiUInt8 | GetNumQualityLevelsLoadable () const |
| | Returns how many quality levels the resource may additionally load.
|
|
float | GetLoadingPriority (xiiTime now) const |
| | Returns the priority that is used by the resource manager to determine which resource to load next.
|
|
xiiResourcePriority | GetPriority () const |
| | Returns the current resource priority.
|
|
void | SetPriority (xiiResourcePriority priority) |
| | Changes the current resource priority.
|
|
XII_ALWAYS_INLINE const xiiBitflags< xiiResourceFlags > & | GetBaseResourceFlags () const |
| | Returns the basic flags for the resource type. Mostly used the resource manager.
|
|
XII_ALWAYS_INLINE const MemoryUsage & | GetMemoryUsage () const |
| | Returns the information about the current memory usage of the resource.
|
| XII_ALWAYS_INLINE xiiTime | GetLastAcquireTime () const |
|
XII_ALWAYS_INLINE xiiInt32 | GetReferenceCount () const |
| | Returns the reference count of this resource.
|
| XII_ALWAYS_INLINE const xiiTimestamp & | GetLoadedFileModificationTime () const |
| XII_ALWAYS_INLINE xiiUInt32 | GetCurrentResourceChangeCounter () const |
|
XII_ALWAYS_INLINE void | IncResourceChangeCounter () |
| | Allows to manually increase the resource change counter to signal that dependent code might need to update.
|
| virtual void | ResetResource () |
| void | PrintHandleStackTraces () |
|
virtual const xiiRTTI * | GetDynamicRTTI () const |
| bool | IsInstanceOf (const xiiRTTI *pType) const |
| | Returns whether the type of this instance is of the given type or derived from it.
|
|
template<typename T> |
| XII_ALWAYS_INLINE bool | IsInstanceOf () const |
| | Returns whether the type of this instance is of the given type or derived from it.
|
Resource representing a script class with its type information and instantiation capabilities.
Base class for script resources that define class types for scripting languages. Manages script type creation, instantiation, and coroutine type handling. Derived classes implement language-specific instantiation logic.