MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xAnimTableNew

Function xAnimTableNew

src/SB/Core/x/xAnim.cpp:724–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724xAnimTable* xAnimTableNew(const char* name, xAnimTable** linkedList, U32 userFlags)
725{
726 xAnimTable* table;
727
728 table = (xAnimTable*)xMemAllocSize(sizeof(xAnimTable));
729
730 if (linkedList)
731 {
732 table->Next = *linkedList;
733 *linkedList = table;
734 }
735 else
736 {
737 table->Next = NULL;
738 }
739
740 table->Name = name;
741 table->TransitionList = NULL;
742 table->StateList = NULL;
743 table->AnimIndex = NULL;
744 table->MorphIndex = NULL;
745 table->UserFlags = userFlags;
746
747 return table;
748}
749
750void xAnimDefaultBeforeEnter(xAnimPlay* play, xAnimState* state)
751{

Callers 15

XHUD_AnimTable_IdleFunction · 0.70
ZNPC_AnimTable_DutchmanFunction · 0.50
ZNPC_AnimTable_TestFunction · 0.50
ZNPC_AnimTable_BossSandyFunction · 0.50
ZNPC_AnimTable_TikiFunction · 0.50
zSandy_AnimTableFunction · 0.50
zPatrick_AnimTableFunction · 0.50
zEntPlayer_AnimTableFunction · 0.50

Calls

no outgoing calls

Tested by 1

ZNPC_AnimTable_TestFunction · 0.40