sourcemm/CServerGameClients.h
changeset 7 8ef11f6189e4
child 9 01b8b7435e67
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sourcemm/CServerGameClients.h	Sat Apr 16 19:59:26 2005 +0000
     1.3 @@ -0,0 +1,41 @@
     1.4 +/* ======== SourceMM ========
     1.5 +* Copyright (C) 2004-2005 SourceMM Development Team
     1.6 +* No warranties of any kind
     1.7 +*
     1.8 +* License: zlib/libpng
     1.9 +*
    1.10 +* Author(s): David "BAILOPAN" Anderson
    1.11 +* ============================
    1.12 +*/
    1.13 +
    1.14 +#ifndef _INCLUDE_CSERVERGAMECLIENTS_H
    1.15 +#define _INCLUDE_CSERVERGAMECLIENTS_H
    1.16 +
    1.17 +/**
    1.18 + * @brief Dummy class for IServerGameClients
    1.19 + * @file CServerGameClients.h
    1.20 + */
    1.21 +
    1.22 +#include <eiface.h>
    1.23 +
    1.24 +class CServerGameClients : public IServerGameClients
    1.25 +{
    1.26 +public:
    1.27 +	virtual void GetPlayerLimits(int& minplayers, int& maxplayers, int &defaultMaxPlayers) const { }
    1.28 +	virtual bool ClientConnect(edict_t *pEntity, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen) { return false; }
    1.29 +	virtual void ClientActive(edict_t *pEntity, bool bLoadGame) { }
    1.30 +	virtual void ClientDisconnect(edict_t *pEntity) { }
    1.31 +	virtual void ClientPutInServer(edict_t *pEntity, char const *playername) { }
    1.32 +	virtual void ClientCommand(edict_t *pEntity) { }
    1.33 +	virtual void SetCommandClient(int index) { }
    1.34 +	virtual void ClientSettingsChanged(edict_t *pEdict) { }
    1.35 +	virtual void ClientSetupVisibility(edict_t *pViewEntity, edict_t *pClient, unsigned char *pvs, int pvssize) { }
    1.36 +	virtual float ProcessUsercmds(edict_t *player, bf_read *buf, int numcmds, int totalcmds, int dropped_packets, bool ignore, bool paused) { return 0.0f; }
    1.37 +	virtual void PostClientMessagesSent() { }
    1.38 +	virtual CPlayerState *GetPlayerState(edict_t *player) { return NULL; }
    1.39 +	virtual void ClientEarPosition(edict_t *pEntity, Vector *pEarOrigin) { }
    1.40 +	virtual int GetReplayDelay(edict_t *player) { return 0; }
    1.41 +	virtual void GetBugReportInfo(char *buf, int buflen) { }
    1.42 +};
    1.43 +
    1.44 +#endif //_INCLUDE_CSERVERGAMECLIENTS_H