Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

35 lines
911 B

//========= 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