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.

33 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "gameinterface.h"
  8. #include "mapentities.h"
  9. // -------------------------------------------------------------------------------------------- //
  10. // Mod-specific CServerGameClients implementation.
  11. // -------------------------------------------------------------------------------------------- //
  12. void CServerGameClients::GetPlayerLimits( int& minplayers, int& maxplayers, int &defaultMaxPlayers ) const
  13. {
  14. minplayers = 2; // Force multiplayer.
  15. maxplayers = MAX_PLAYERS;
  16. defaultMaxPlayers = 32;
  17. }
  18. // -------------------------------------------------------------------------------------------- //
  19. // Mod-specific CServerGameDLL implementation.
  20. // -------------------------------------------------------------------------------------------- //
  21. void CServerGameDLL::LevelInit_ParseAllEntities( const char *pMapEntities )
  22. {
  23. MapEntity_ParseAllEntities( pMapEntities, NULL );
  24. }