mirror of
https://github.com/shawns-valve/halflife.git
synced 2024-11-27 22:42:07 +00:00
34 lines
1 KiB
C++
34 lines
1 KiB
C++
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================
|
|
|
|
#ifndef IGAMECLIENTEXPORTS_H
|
|
#define IGAMECLIENTEXPORTS_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "interface.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: Exports a set of functions for the GameUI interface to interact with the game client
|
|
//-----------------------------------------------------------------------------
|
|
class IGameClientExports : public IBaseInterface
|
|
{
|
|
public:
|
|
// returns the name of the server the user is connected to, if any
|
|
virtual const char *GetServerHostName() = 0;
|
|
|
|
// ingame voice manipulation
|
|
virtual bool IsPlayerGameVoiceMuted(int playerIndex) = 0;
|
|
virtual void MutePlayerGameVoice(int playerIndex) = 0;
|
|
virtual void UnmutePlayerGameVoice(int playerIndex) = 0;
|
|
};
|
|
|
|
#define GAMECLIENTEXPORTS_INTERFACE_VERSION "GameClientExports001"
|
|
|
|
|
|
#endif // IGAMECLIENTEXPORTS_H
|