summaryrefslogtreecommitdiff
path: root/public/movieobjects/dmebookmark.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/movieobjects/dmebookmark.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/movieobjects/dmebookmark.h')
-rw-r--r--public/movieobjects/dmebookmark.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/public/movieobjects/dmebookmark.h b/public/movieobjects/dmebookmark.h
new file mode 100644
index 0000000..142851e
--- /dev/null
+++ b/public/movieobjects/dmebookmark.h
@@ -0,0 +1,35 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef DMEBOOKMARK_H
+#define DMEBOOKMARK_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "datamodel/dmelement.h"
+#include "movieobjects/timeutils.h"
+
+class CDmeBookmark : public CDmElement
+{
+ DEFINE_ELEMENT( CDmeBookmark, CDmElement );
+
+public:
+ const char *GetNote() const { return m_Note; }
+ DmeTime_t GetTime() const { return DmeTime_t( m_Time ); }
+ DmeTime_t GetDuration() const { return DmeTime_t( m_Duration ); }
+
+ void SetNote( const char *pNote ) { m_Note = pNote; }
+ void SetTime( DmeTime_t time ) { m_Time = time.GetTenthsOfMS(); }
+ void SetDuration( DmeTime_t duration ) { m_Duration = duration.GetTenthsOfMS(); }
+
+private:
+ CDmaString m_Note;
+ CDmaVar< int > m_Time;
+ CDmaVar< int > m_Duration;
+};
+
+#endif // DMEBOOKMARK_H