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

Function xAnimTableAddFile

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

Source from the content-addressed store, hash-verified

1083}
1084
1085void xAnimTableAddFile(xAnimTable* table, xAnimFile* file, const char* states)
1086{
1087 U8* buffer = (U8*)giAnimScratch;
1088 char* stateName = xStrTokBuffer(states, " ,\t\n\r", buffer);
1089 while (stateName != NULL)
1090 {
1091 xAnimTableAddFileID(table, file, xStrHash(stateName), 0, 0);
1092 stateName = xStrTokBuffer(NULL, " ,\t\n\r", buffer);
1093 }
1094}
1095
1096xAnimState* xAnimTableGetStateID(xAnimTable* table, U32 ID);
1097

Callers 3

zEGenerator_InitFunction · 0.50
zAnimListInitFunction · 0.50
zPlatform_InitFunction · 0.50

Calls 3

xStrTokBufferFunction · 0.85
xAnimTableAddFileIDFunction · 0.85
xStrHashFunction · 0.70

Tested by

no test coverage detected