diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/c_baseanimatingoverlay.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/c_baseanimatingoverlay.h')
| -rw-r--r-- | game/client/c_baseanimatingoverlay.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/game/client/c_baseanimatingoverlay.h b/game/client/c_baseanimatingoverlay.h new file mode 100644 index 0000000..de0067d --- /dev/null +++ b/game/client/c_baseanimatingoverlay.h @@ -0,0 +1,67 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// + +#ifndef C_BASEANIMATINGOVERLAY_H +#define C_BASEANIMATINGOVERLAY_H +#pragma once + +#include "c_baseanimating.h" + +// For shared code. +#define CBaseAnimatingOverlay C_BaseAnimatingOverlay + + +class C_BaseAnimatingOverlay : public C_BaseAnimating +{ +public: + DECLARE_CLASS( C_BaseAnimatingOverlay, C_BaseAnimating ); + DECLARE_CLIENTCLASS(); + DECLARE_PREDICTABLE(); + DECLARE_INTERPOLATION(); + + + C_BaseAnimatingOverlay(); + + virtual CStudioHdr *OnNewModel(); + + C_AnimationLayer* GetAnimOverlay( int i ); + void SetNumAnimOverlays( int num ); // This makes sure there is space for this # of layers. + int GetNumAnimOverlays() const; + + virtual void GetRenderBounds( Vector& theMins, Vector& theMaxs ); + + void CheckForLayerChanges( CStudioHdr *hdr, float currentTime ); + + // model specific + virtual void AccumulateLayers( IBoneSetup &boneSetup, Vector pos[], Quaternion q[], float currentTime ); + virtual void DoAnimationEvents( CStudioHdr *pStudioHdr ); + + enum + { + MAX_OVERLAYS = 15, + }; + + CUtlVector < C_AnimationLayer > m_AnimOverlay; + + CUtlVector < CInterpolatedVar< C_AnimationLayer > > m_iv_AnimOverlay; + + float m_flOverlayPrevEventCycle[ MAX_OVERLAYS ]; + +private: + C_BaseAnimatingOverlay( const C_BaseAnimatingOverlay & ); // not defined, not accessible +}; + + +EXTERN_RECV_TABLE(DT_BaseAnimatingOverlay); + + +#endif // C_BASEANIMATINGOVERLAY_H + + + + |