summaryrefslogtreecommitdiff
path: root/game/shared/SceneCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/SceneCache.h')
-rw-r--r--game/shared/SceneCache.h42
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