mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Reworked source tree so it compiles
This commit is contained in:
parent
19e33444e7
commit
8ef16a91f2
164 changed files with 3183 additions and 20134 deletions
34
code/qcommon/con_timer.h
Normal file
34
code/qcommon/con_timer.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
#include "class.h"
|
||||
|
||||
class con_timer : public Class
|
||||
{
|
||||
public:
|
||||
class Element
|
||||
{
|
||||
public:
|
||||
Class* obj;
|
||||
int inttime;
|
||||
};
|
||||
|
||||
private:
|
||||
Container< con_timer::Element > m_Elements;
|
||||
bool m_bDirty;
|
||||
int m_inttime;
|
||||
|
||||
public:
|
||||
con_timer();
|
||||
|
||||
void AddElement(Class* e, int inttime);
|
||||
void RemoveElement(Class* e);
|
||||
|
||||
Class* GetNextElement(int& foundTime);
|
||||
|
||||
void SetDirty(void) { m_bDirty = true; };
|
||||
bool IsDirty(void) { return m_bDirty; };
|
||||
void SetTime(int inttime) { m_inttime = inttime; };
|
||||
|
||||
#if defined (ARCHIVE_SUPPORTED)
|
||||
static void ArchiveElement(class Archiver& arc, Element* e);
|
||||
void Archive(class Archiver& arc) override;
|
||||
#endif
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue