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.

41 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef PLAYERMSGHANDLER_H
  8. #define PLAYERMSGHANDLER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "Socket.h"
  13. #include "utlvector.h"
  14. #include "player.h"
  15. #include "rcon.h"
  16. class CPlayerList;
  17. //-----------------------------------------------------------------------------
  18. // Purpose: Socket handler for pinging internet servers
  19. //-----------------------------------------------------------------------------
  20. class CPlayerMsgHandlerDetails : public CMsgHandler
  21. {
  22. public:
  23. CPlayerMsgHandlerDetails(CPlayerList *baseobject, CUtlVector<Players_t> *players,HANDLERTYPE type, void *typeinfo = NULL);
  24. ~CPlayerMsgHandlerDetails();
  25. virtual bool Process(netadr_t *from, CMsgBuffer *msg);
  26. private:
  27. // the parent class that we push info back to
  28. CPlayerList *m_pPlayerList;
  29. CUtlVector<Players_t> *m_pPlayerNames;
  30. };
  31. #endif // PLAYERMSGHANDLER_H