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.

49 lines
1.2 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DMEBOOKMARK_H
  7. #define DMEBOOKMARK_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmelement.h"
  12. #include "datamodel/dmattributevar.h"
  13. class CDmeBookmark : public CDmElement
  14. {
  15. DEFINE_ELEMENT( CDmeBookmark, CDmElement );
  16. public:
  17. const char *GetNote() const { return m_Note; }
  18. DmeTime_t GetTime() const { return m_Time; }
  19. DmeTime_t GetDuration() const { return m_Duration; }
  20. void SetNote( const char *pNote ) { m_Note = pNote; }
  21. void SetTime( DmeTime_t time ) { m_Time = time; }
  22. void SetDuration( DmeTime_t duration ) { m_Duration = duration; }
  23. private:
  24. CDmaString m_Note;
  25. CDmaTime m_Time;
  26. CDmaTime m_Duration;
  27. };
  28. class CDmeBookmarkSet : public CDmElement
  29. {
  30. DEFINE_ELEMENT( CDmeBookmarkSet, CDmElement );
  31. public:
  32. const CDmaElementArray< CDmeBookmark > &GetBookmarks() const;
  33. CDmaElementArray< CDmeBookmark > &GetBookmarks();
  34. void ScaleBookmarkTimes( float scale );
  35. private:
  36. CDmaElementArray< CDmeBookmark > m_Bookmarks; // "bookmarks"
  37. };
  38. #endif // DMEBOOKMARK_H