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.

31 lines
897 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: implementation of player info manager
  4. //
  5. //=============================================================================//
  6. #ifndef PLAYERINFOMANAGER_H
  7. #define PLAYERINFOMANAGER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "game/server/iplayerinfo.h"
  12. //-----------------------------------------------------------------------------
  13. // Purpose: interface for plugins to get player info
  14. //-----------------------------------------------------------------------------
  15. class CPlayerInfoManager: public IPlayerInfoManager
  16. {
  17. public:
  18. virtual IPlayerInfo *GetPlayerInfo( edict_t *pEdict );
  19. virtual CGlobalVars *GetGlobalVars();
  20. };
  21. class CPluginBotManager: public IBotManager
  22. {
  23. public:
  24. virtual IBotController *GetBotController( edict_t *pEdict );
  25. virtual edict_t *CreateBot( const char *botname );
  26. };
  27. #endif