2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

ReHLDS API: Added function SetLastVoiceTime for api

This commit is contained in:
s1lentq 2015-12-13 20:23:27 +06:00
parent d52e507b20
commit 1f63618ea6
3 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,7 @@ public:
virtual void SetConnected(bool connected) = 0;
virtual uint32 GetVoiceStreams(int id) = 0;
virtual void SetLastVoiceTime(double time) = 0;
virtual double GetLastVoiceTime() = 0;
virtual bool GetLoopback() = 0;

View File

@ -74,6 +74,10 @@ uint32 EXT_FUNC CGameClient::GetVoiceStreams(int id) {
return m_pClient->m_VoiceStreams[id >> 5];
}
void EXT_FUNC CGameClient::SetLastVoiceTime(double time) {
m_pClient->m_lastvoicetime = time;
}
double EXT_FUNC CGameClient::GetLastVoiceTime() {
return m_pClient->m_lastvoicetime;
}

View File

@ -77,6 +77,7 @@ public:
virtual void SetConnected(bool connected);
virtual uint32 GetVoiceStreams(int id);
virtual void SetLastVoiceTime(double time);
virtual double GetLastVoiceTime();
virtual bool GetLoopback();