Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
913 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: This module defines the IVoiceServer interface, which is used by
  4. // game code to control which clients are listening to which other
  5. // clients' voice streams.
  6. //
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #ifndef IVOICESERVER_H
  10. #define IVOICESERVER_H
  11. #include "interface.h"
  12. #define INTERFACEVERSION_VOICESERVER "VoiceServer002"
  13. abstract_class IVoiceServer
  14. {
  15. public:
  16. virtual ~IVoiceServer() {}
  17. // Use these to setup who can hear whose voice.
  18. // Pass in client indices (which are their ent indices - 1).
  19. virtual bool GetClientListening(int iReceiver, int iSender) = 0;
  20. virtual bool SetClientListening(int iReceiver, int iSender, bool bListen) = 0;
  21. virtual bool SetClientProximity(int iReceiver, int iSender, bool bUseProximity) = 0;
  22. };
  23. #endif