Torque2D Reference
Loading...
Searching...
No Matches
AssetDefinition Struct Reference

#include <assetDefinition.h>

Public Member Functions

 AssetDefinition ()
virtual ~AssetDefinition ()
virtual void reset (void)

Public Attributes

ModuleDefinitionmpModuleDefinition
SimObjectPtr< AssetBasempAssetBase
StringTableEntry mAssetBaseFilePath
StringTableEntry mAssetId
U32 mAssetLoadedCount
U32 mAssetUnloadedCount
bool mAssetRefreshEnable
bool mAssetDirty
Vector< StringTableEntry > mAssetLooseFiles
StringTableEntry mAssetName
 Persisted state.
StringTableEntry mAssetDescription
bool mAssetAutoUnload
bool mAssetInternal
bool mAssetPrivate
bool mAssetLoading
StringTableEntry mAssetType
StringTableEntry mAssetCategory

Constructor & Destructor Documentation

◆ AssetDefinition()

AssetDefinition ( )
inline

◆ ~AssetDefinition()

virtual ~AssetDefinition ( )
inlinevirtual

Member Function Documentation

◆ reset()

virtual void reset ( void )
inlinevirtual

Member Data Documentation

◆ mAssetAutoUnload

bool mAssetAutoUnload

◆ mAssetBaseFilePath

StringTableEntry mAssetBaseFilePath

◆ mAssetCategory

StringTableEntry mAssetCategory

◆ mAssetDescription

StringTableEntry mAssetDescription

◆ mAssetDirty

bool mAssetDirty

Whether the asset has been changed in memory since it was last saved.

This lives on the definition and not on the asset because the definition outlives the asset: unloadAsset deletes mpAssetBase and keeps the definition, so a flag on the asset would be destroyed along with the unsaved edits, and along with the record that there were any.

◆ mAssetId

StringTableEntry mAssetId

◆ mAssetInternal

bool mAssetInternal

◆ mAssetLoadedCount

U32 mAssetLoadedCount

◆ mAssetLoading

bool mAssetLoading

◆ mAssetLooseFiles

Vector<StringTableEntry> mAssetLooseFiles

◆ mAssetName

StringTableEntry mAssetName

Persisted state.

◆ mAssetPrivate

bool mAssetPrivate

◆ mAssetRefreshEnable

bool mAssetRefreshEnable

◆ mAssetType

StringTableEntry mAssetType

◆ mAssetUnloadedCount

U32 mAssetUnloadedCount

◆ mpAssetBase

SimObjectPtr<AssetBase> mpAssetBase

◆ mpModuleDefinition

ModuleDefinition* mpModuleDefinition

The documentation for this struct was generated from the following file: