|
const xiiSurfaceResourceDescriptor & | GetDescriptor () const |
|
bool | InteractWithSurface (xiiWorld *pWorld, xiiGameObjectHandle hObject, const xiiVec3 &vPosition, const xiiVec3 &vSurfaceNormal, const xiiVec3 &vIncomingDirection, const xiiTempHashedString &sInteraction, const xiiUInt16 *pOverrideTeamID, float fImpulseSqr=0.0f) const |
| Spawns the prefab that was defined for the given interaction at the given position and using the configured orientation. Returns false, if the interaction type was not defined in this surface or any of its base surfaces.
|
|
bool | IsBasedOn (const xiiSurfaceResource *pThisOrBaseSurface) const |
|
bool | IsBasedOn (const xiiSurfaceResourceHandle hThisOrBaseSurface) const |
|
XII_ALWAYS_INLINE xiiStringView | GetResourceID () const |
| Returns the unique ID that identifies this resource. On a file resource this might be a path. Can also be a GUID or any other scheme that uniquely identifies the resource.
|
|
XII_ALWAYS_INLINE xiiUInt64 | GetResourceIDHash () const |
| Returns the hash of the unique ID.
|
|
void | SetResourceDescription (xiiStringView sDescription) |
| The resource description allows to store an additional string that might be more descriptive during debugging, than the unique ID.
|
|
const xiiString & | GetResourceDescription () const |
| The resource description allows to store an additional string that might be more descriptive during debugging, than the unique ID.
|
|
const xiiString & | GetResourceIdOrDescription () const |
| The returns the resource description, if available, otherwise the resource ID.
|
|
XII_ALWAYS_INLINE xiiResourceState | GetLoadingState () const |
| Returns the current state in which this resource is in.
|
|
XII_ALWAYS_INLINE xiiUInt8 | GetNumQualityLevelsDiscardable () const |
| Returns the current maximum quality level that the resource could have.
|
|
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 |
| Returns the time at which the resource was (tried to be) acquired last. If a resource is acquired using xiiResourceAcquireMode::PointerOnly, this does not update the last acquired time, since the resource is not acquired for full use.
|
|
XII_ALWAYS_INLINE xiiInt32 | GetReferenceCount () const |
| Returns the reference count of this resource.
|
|
XII_ALWAYS_INLINE const xiiTimestamp & | GetLoadedFileModificationTime () const |
| Returns the modification date of the file from which this resource was loaded.
|
|
XII_ALWAYS_INLINE xiiUInt32 | GetCurrentResourceChangeCounter () const |
| Returns the current value of the resource change counter. Can be used to detect whether the resource has changed since using it last time.
|
|
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 () |
| If the resource has modifications from the original state, it should reset itself to that state now (or force a reload on itself).
|
|
void | PrintHandleStackTraces () |
| Prints the stack-traces for all handles that currently reference this resource.
|
|
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.
|
|