mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add inline for getting server time
This commit is contained in:
parent
c7f1cfbaaa
commit
2ff35a94cd
@ -45,9 +45,9 @@ public:
|
||||
inline int GetMaxClients(void) const { return m_nMaxClients; }
|
||||
|
||||
inline int64_t GetMaxTeams(void) const { return m_iMaxTeams; }
|
||||
|
||||
inline CClient* GetClient(int nIndex) { Assert(nIndex >= NULL && nIndex < MAX_PLAYERS); return &m_Clients[nIndex]; }
|
||||
|
||||
inline float GetTime(void) const { return m_nTickCount * m_flTickInterval; }
|
||||
inline float GetCPUUsage(void) const { return m_fCPUPercent; }
|
||||
|
||||
inline bool IsActive(void) const { return m_State >= server_state_t::ss_active; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user