Skip to content

Commit 86d070d

Browse files
committed
added a new function "CopyAnimation."
1 parent 894b4f6 commit 86d070d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Client/game_sa/CAnimBlendAssocGroupSA.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@ CAnimBlendAssocGroupSA::CAnimBlendAssocGroupSA ( CAnimBlendAssocGroupSAInterface
1919
SetupAnimBlock ();
2020
}
2121

22+
CAnimBlendAssociation * CAnimBlendAssocGroupSA::CopyAnimation ( unsigned int AnimID )
23+
{
24+
CAnimBlendAssociation * pAnimAssociationReturn = nullptr;
25+
26+
DWORD dwThis = ( DWORD ) m_pInterface;
27+
DWORD dwFunc = FUNC_CAnimBlendAssocGroup_CopyAnimation;
28+
_asm
29+
{
30+
mov ecx, dwThis
31+
push AnimID
32+
call dwFunc
33+
mov pAnimAssociationReturn, eax
34+
}
35+
return pAnimAssociationReturn;
36+
}
37+
2238
void CAnimBlendAssocGroupSA::InitEmptyAssociations ( RpClump * pClump )
2339
{
2440
DWORD dwThis = ( DWORD ) m_pInterface;

0 commit comments

Comments
 (0)