Skip to content

Commit 991df8c

Browse files
committed
added GetAnimBlendSequence
1 parent 80638dd commit 991df8c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Client/sdk/game/CAnimBlendSequence.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
class CAnimBlendSequence
1616
{
1717
public:
18+
virtual void Initialize ( void ) = 0;
19+
virtual void SetName ( const char * szName ) = 0;
20+
virtual void SetBoneTag ( int32_t i32BoneID ) = 0;
21+
virtual void SetKeyFrames ( size_t cKeyFrames, bool bRoot, bool bCompressed, void * pKeyFrames ) = 0;
22+
virtual uint32_t GetHash ( void ) = 0;
23+
virtual uint16_t GetBoneTag ( void ) = 0;
24+
virtual void * GetKeyFrames ( void ) = 0;
25+
virtual unsigned short GetKeyFramesCount ( void ) = 0;
26+
virtual CAnimBlendSequenceSAInterface * GetInterface ( void ) = 0;
1827
};
1928

2029
#endif

Client/sdk/game/CAnimManager.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ typedef unsigned long AnimationId;
2323
class SString;
2424
class CAnimBlendAssocGroup;
2525
class CAnimBlendHierarchy;
26+
class CAnimBlendSequence;
2627
class CAnimBlock;
2728
class CAnimBlendAssociation;
2829
class CAnimBlendStaticAssociationSAInterface;
@@ -35,14 +36,16 @@ struct AnimDescriptor;
3536
class CAnimBlendAssocGroupSAInterface;
3637
class CAnimBlendAssociationSAInterface;
3738
class CAnimBlendHierarchySAInterface;
39+
class CAnimBlendSequenceSAInterface;
3840
class CAnimBlockSAInterface;
3941

4042
class CAnimManager
4143
{
42-
typedef CAnimBlendStaticAssociationSAInterface * StaticAssocIntface_type;
4344

4445
friend class CAnimBlendAssociation;
4546
public:
47+
typedef CAnimBlendStaticAssociationSAInterface * StaticAssocIntface_type;
48+
4649
virtual void Initialize ( void ) = 0;
4750
virtual void Shutdown ( void ) = 0;
4851

@@ -108,6 +111,9 @@ class CAnimManager
108111
virtual CAnimBlock * GetAnimBlock ( CAnimBlockSAInterface * pInterface ) = 0;
109112
virtual CAnimBlendHierarchy * GetAnimBlendHierarchy ( CAnimBlendHierarchySAInterface * pInterface ) = 0;
110113

114+
// MTA members, but use this strictly for custom animations only
115+
virtual std::unique_ptr < CAnimBlendSequence > GetAnimBlendSequence ( CAnimBlendSequenceSAInterface * pInterface ) = 0;
116+
111117
virtual bool isGateWayAnimationHierarchy ( CAnimBlendHierarchySAInterface * pInterface ) = 0;
112118
virtual const SString & GetGateWayBlockName ( void ) = 0;
113119
virtual const SString & GetGateWayAnimationName ( void ) = 0;

0 commit comments

Comments
 (0)