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/shared/SceneCache.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/SceneCache.h')
| -rw-r--r-- | game/shared/SceneCache.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/game/shared/SceneCache.h b/game/shared/SceneCache.h new file mode 100644 index 0000000..72dff66 --- /dev/null +++ b/game/shared/SceneCache.h @@ -0,0 +1,42 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef SCENECACHE_H +#define SCENECACHE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "UtlCachedFileData.h" +#include "SoundEmitterSystem/isoundemittersystembase.h" + +class CChoreoEvent; + +#define SCENECACHE_VERSION 7 + +#pragma pack(1) +class CSceneCache : public IBaseCacheInfo +{ +public: + unsigned int msecs; + CUtlVector< unsigned short > sounds; + + CSceneCache(); + CSceneCache( const CSceneCache& src ); + + int GetSoundCount() const; + char const *GetSoundName( int index ); + + virtual void Save( CUtlBuffer& buf ); + virtual void Restore( CUtlBuffer& buf ); + virtual void Rebuild( char const *filename ); + + static unsigned int ComputeSoundScriptFileTimestampChecksum(); + static void PrecacheSceneEvent( CChoreoEvent *event, CUtlVector< unsigned short >& soundlist ); +}; +#pragma pack() + +#endif // SCENECACHE_H |