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

Function _xAnimTableAddTransitionHelper

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

Source from the content-addressed store, hash-verified

805}
806
807static void _xAnimTableAddTransitionHelper(xAnimState* state, xAnimTransition* tran,
808 U32& stateCount, U32& allocCount, xAnimState** stateList)
809{
810 if (tran->Flags & 0x10)
811 {
812 if (!DefaultHasTransition(state, tran, &stateCount))
813 {
814 stateList[allocCount] = state;
815 allocCount++;
816 }
817 }
818 else
819 {
820 if (!StateHasTransition(state, tran))
821 {
822 stateList[allocCount] = state;
823 allocCount++;
824 stateCount++;
825 }
826 }
827}
828
829// WIP
830void _xAnimTableAddTransition(xAnimTable* table, xAnimTransition* tran, const char* source,

Callers 1

_xAnimTableAddTransitionFunction · 0.85

Calls 2

DefaultHasTransitionFunction · 0.85
StateHasTransitionFunction · 0.85

Tested by

no test coverage detected