mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-10 03:43:06 +08:00
Move GameTime_t to a separate file
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "entityhandle.h"
|
||||
#include "concreteentitylist.h"
|
||||
#include "entitydatainstantiator.h"
|
||||
#include "gametime.h"
|
||||
|
||||
class CKV3Arena;
|
||||
class CEntityClass;
|
||||
@@ -43,18 +44,6 @@ extern CGameEntitySystem* GameEntitySystem();
|
||||
|
||||
typedef void (*EntityResourceManifestCreationCallback_t)(IEntityResourceManifest *, void *);
|
||||
|
||||
struct GameTime_t
|
||||
{
|
||||
public:
|
||||
GameTime_t( float value = 0.0f ) : m_Value( value ) {}
|
||||
|
||||
float GetTime() const { return m_Value; }
|
||||
void SetTime( float value ) { m_Value = value; }
|
||||
|
||||
private:
|
||||
float m_Value;
|
||||
};
|
||||
|
||||
enum EntityIOTargetType_t
|
||||
{
|
||||
ENTITY_IO_TARGET_INVALID = -1,
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef GAME_TIME_H
|
||||
#define GAME_TIME_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
struct GameTime_t
|
||||
{
|
||||
public:
|
||||
GameTime_t( float value = 0.0f ) : m_Value( value ) {}
|
||||
|
||||
float GetTime() const { return m_Value; }
|
||||
void SetTime( float value ) { m_Value = value; }
|
||||
|
||||
bool operator==( const GameTime_t &other ) const { return m_Value == other.m_Value; }
|
||||
|
||||
private:
|
||||
float m_Value;
|
||||
};
|
||||
|
||||
#endif // GAME_TIME_H
|
||||
Reference in New Issue
Block a user