Counter Strike : Global Offensive Source Code
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.

61 lines
1.4 KiB

  1. //=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. ===========
  2. //
  3. // The copyright to the contents herein is the property of Valve, L.L.C.
  4. // The contents may be used and/or copied only with the written permission of
  5. // Valve, L.L.C., or in accordance with the terms and conditions stipulated in
  6. // the agreement/contract under which the contents have been supplied.
  7. //
  8. // $Header: $
  9. // $NoKeywords: $
  10. //
  11. // Material editor
  12. //=============================================================================
  13. #ifndef MKSUTIL_H
  14. #define MKSUTIL_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. #include "tier1/utllinkedlist.h"
  19. #include "tier1/utlstring.h"
  20. //-----------------------------------------------------------------------------
  21. // The application object
  22. //-----------------------------------------------------------------------------
  23. class CMksUtil
  24. {
  25. public:
  26. enum EntryType_t
  27. {
  28. ENTRYTYPE_SEQUENCE,
  29. ENTRYTYPE_FRAME,
  30. ENTRYTYPE_MAX
  31. };
  32. struct sMKSInfo
  33. {
  34. int entryType;
  35. int sequenceNumber;
  36. const char *pFrameName; // array?
  37. float displayTime;
  38. };
  39. void Init( const char *objectName );
  40. CUtlString GetName();
  41. void CreateNewSequenceEntry();
  42. void CreateNewFrameEntry( const char* pFrameName, float displayTime = 1.0f );
  43. void WriteFile();
  44. private:
  45. CUtlLinkedList< sMKSInfo > m_MksEntries;
  46. int m_SequenceCount;
  47. CUtlString m_Name;
  48. };
  49. #endif // MKSUTIL_H