1
0
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:
GAMMACASE
2026-10-05 20:48:00 +03:00
parent 0021a3d5ff
commit 838d7aba9b
2 changed files with 23 additions and 12 deletions
+1 -12
View File
@@ -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,
+22
View File
@@ -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