diff options
author | aap <aap@papnet.eu> | 2019-06-24 23:11:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 23:11:56 +0200 |
commit | f07f411629b686338df10fdce217b2d258f38c92 (patch) | |
tree | cd07798b2daf33ea3a152e54cd18809da2cc9b2f /src/animation/AnimBlendAssociation.h | |
parent | replaced some ctors; made PreRender call game function (diff) | |
parent | CPed, CVehicle, mostly entering/exiting car (diff) | |
download | re3-f07f411629b686338df10fdce217b2d258f38c92.tar re3-f07f411629b686338df10fdce217b2d258f38c92.tar.gz re3-f07f411629b686338df10fdce217b2d258f38c92.tar.bz2 re3-f07f411629b686338df10fdce217b2d258f38c92.tar.lz re3-f07f411629b686338df10fdce217b2d258f38c92.tar.xz re3-f07f411629b686338df10fdce217b2d258f38c92.tar.zst re3-f07f411629b686338df10fdce217b2d258f38c92.zip |
Diffstat (limited to 'src/animation/AnimBlendAssociation.h')
-rw-r--r-- | src/animation/AnimBlendAssociation.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/animation/AnimBlendAssociation.h b/src/animation/AnimBlendAssociation.h index 7eec69a0..076fa810 100644 --- a/src/animation/AnimBlendAssociation.h +++ b/src/animation/AnimBlendAssociation.h @@ -2,8 +2,7 @@ #include "AnimBlendList.h" #include "AnimBlendNode.h" - -class CAnimBlendHierarchy; +#include "AnimBlendHierarchy.h" enum { // TODO @@ -78,6 +77,8 @@ public: void UpdateTime(float timeDelta, float relSpeed); bool UpdateBlend(float timeDelta); + float GetTimeLeft() { return hierarchy->totalLength - currentTime; } + static CAnimBlendAssociation *FromLink(CAnimBlendLink *l) { return (CAnimBlendAssociation*)((uint8*)l - offsetof(CAnimBlendAssociation, link)); } |