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.

40 lines
839 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IFACEPOSERWORKSPACE_H
  8. #define IFACEPOSERWORKSPACE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. class IWorkspaceFiles
  13. {
  14. public:
  15. enum
  16. {
  17. EXPRESSION = 0,
  18. CHOREODATA,
  19. MODELDATA,
  20. NUM_FILE_TYPES
  21. };
  22. virtual void Init( char const *pchShortName ) = 0;
  23. // Restore
  24. virtual int GetNumStoredFiles( int type ) = 0;
  25. virtual const char *GetStoredFile( int type, int number ) = 0;
  26. // Save
  27. virtual void StartStoringFiles( int type ) = 0;
  28. virtual void FinishStoringFiles( int type ) = 0;
  29. virtual void StoreFile( int type, const char *filename ) = 0;
  30. };
  31. extern IWorkspaceFiles *workspacefiles;
  32. #endif // IFACEPOSERWORKSPACE_H