Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
983 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef SCENECACHE_H
  7. #define SCENECACHE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "UtlCachedFileData.h"
  12. #include "SoundEmitterSystem/isoundemittersystembase.h"
  13. class CChoreoEvent;
  14. #define SCENECACHE_VERSION 7
  15. #pragma pack(1)
  16. class CSceneCache : public IBaseCacheInfo
  17. {
  18. public:
  19. unsigned int msecs;
  20. CUtlVector< unsigned short > sounds;
  21. CSceneCache();
  22. CSceneCache( const CSceneCache& src );
  23. int GetSoundCount() const;
  24. char const *GetSoundName( int index );
  25. virtual void Save( CUtlBuffer& buf );
  26. virtual void Restore( CUtlBuffer& buf );
  27. virtual void Rebuild( char const *filename );
  28. static unsigned int ComputeSoundScriptFileTimestampChecksum();
  29. static void PrecacheSceneEvent( CChoreoEvent *event, CUtlVector< unsigned short >& soundlist );
  30. };
  31. #pragma pack()
  32. #endif // SCENECACHE_H