ShapeAsset

Engine/source/T3D/assets/ShapeAsset.h

More...

Public Types

enum
ShapeAssetErrCode {
  TooManyVerts = AssetErrCode::Extended
  TooManyBones 
  MissingAnimatons 
  Extended 
}

Private Types

Parent 

Protected Types

ShapeAssetChanged 

Public Static Attributes

mErrCodeStrings [ShapeAssetErrCode::Extended - Parent::Extended+1]

Public Attributes

Protected Functions

Protected Static Functions

const char *
getShapeConstructorFile(void * obj, const char * data)
const char *
getShapeFile(void * obj, const char * data)
bool
setShapeConstructorFile(void * obj, const char * index, const char * data)
bool
setShapeFile(void * obj, const char * index, const char * data)

Detailed Description

Public Types

ShapeAssetErrCode

Enumerator

TooManyVerts = AssetErrCode::Extended
TooManyBones
MissingAnimatons
Extended

Private Types

typedef AssetBase Parent 

Protected Types

typedef Signal< void()> ShapeAssetChanged 

Protected Attributes

Vector< StringTableEntry > mAnimationAssetIds 
Vector< AssetPtr< ShapeAnimationAsset > > mAnimationAssets 
ShapeAssetChanged mChangeSignal 
StringTableEntry mConstructorFileName 
StringTableEntry mConstructorFilePath 
StringTableEntry mFileName 
StringTableEntry mFilePath 
Vector< StringTableEntry > mMaterialAssetIds 
Vector< AssetPtr< MaterialAsset > > mMaterialAssets 
Resource< TSShape > mShape 

Public Static Attributes

const String mErrCodeStrings [ShapeAssetErrCode::Extended - Parent::Extended+1]

Public Attributes

U32 mLoadedState 

Public Static Functions

getAssetByFilename(StringTableEntry fileName, AssetPtr< ShapeAsset > * shapeAsset)

getAssetById(StringTableEntry assetId, AssetPtr< ShapeAsset > * shapeAsset)

getAssetErrstrn(U32 errCode)

getAssetIdByFilename(StringTableEntry fileName)

getNoShapeAssetId()

initPersistFields()

Engine.

Public Functions

ShapeAsset()

~ShapeAsset()

_onResourceChanged(const Torque::Path & path)

addMaterialAssets(AssetPtr< MaterialAsset > matPtr)

clearMaterialAssets()

copyTo(SimObject * object)

Reimplemented from: AssetBase

DECLARE_CONOBJECT(ShapeAsset )

Declare Console Object.

getAnimation(S32 index)

getAnimationCount()

getChangedSignal()

getMaterialAsset(U32 matId)

getMaterialAssets()

getMaterialCount()

getShape()

getShapeConstructorFile(void )

getShapeConstructorFilePath(void )

getShapeFile(void )

getShapeFilename()

getShapeFilenameHash()

getShapeFilePath(void )

getShapeResource()

initializeAsset()

Reimplemented from: AssetBase

loadShape()

setDataField(StringTableEntry slotName, const char * array, const char * value)

setShapeConstructorFile(const char * pScriptFile)

setShapeFile(const char * pScriptFile)

SplitSequencePathAndName(String & srcPath, String & srcName)

Protected Functions

onAssetRefresh(void )

Reimplemented from: AssetBase

Protected Static Functions

getShapeConstructorFile(void * obj, const char * data)

getShapeFile(void * obj, const char * data)

setShapeConstructorFile(void * obj, const char * index, const char * data)

setShapeFile(void * obj, const char * index, const char * data)