MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getThreadSequenceName

Method getThreadSequenceName

Engine/source/T3D/shapeBase.cpp:2306–2320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2304//----------------------------------------------------------------------------
2305
2306const char *ShapeBase::getThreadSequenceName( U32 slot )
2307{
2308 Thread& st = mScriptThread[slot];
2309 if ( st.sequence == -1 )
2310 {
2311 // Invalid Animation.
2312 return "";
2313 }
2314
2315 // Name Index
2316 const U32 nameIndex = getShape()->sequences[st.sequence].nameIndex;
2317
2318 // Return Name.
2319 return getShape()->getName( nameIndex );
2320}
2321
2322bool ShapeBase::setThreadSequence(U32 slot, S32 seq, bool reset)
2323{

Callers 3

advanceThreadsMethod · 0.95
getAnimationMethod · 0.80
getAnimationMethod · 0.80

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected