DDraceNetwork Docs
IGameServer Class Referenceabstract

#include <server.h>

Inheritance diagram for IGameServer:
[legend]
Collaboration diagram for IGameServer:
[legend]

Public Member Functions

virtual void OnInit (const void *pPersistentData)=0
 
virtual void OnConsoleInit ()=0
 
virtual void OnMapChange (char *pNewMapName, int MapNameSize)=0
 
virtual void OnShutdown (void *pPersistentData)=0
 
virtual void OnTick ()=0
 
virtual void OnPreSnap ()=0
 
virtual void OnSnap (int ClientId)=0
 
virtual void OnPostSnap ()=0
 
virtual void OnMessage (int MsgId, CUnpacker *pUnpacker, int ClientId)=0
 
virtual bool OnClientDataPersist (int ClientId, void *pData)=0
 
virtual void OnClientConnected (int ClientId, void *pPersistentData)=0
 
virtual void OnClientEnter (int ClientId)=0
 
virtual void OnClientDrop (int ClientId, const char *pReason)=0
 
virtual void OnClientPrepareInput (int ClientId, void *pInput)=0
 
virtual void OnClientDirectInput (int ClientId, void *pInput)=0
 
virtual void OnClientPredictedInput (int ClientId, void *pInput)=0
 
virtual void OnClientPredictedEarlyInput (int ClientId, void *pInput)=0
 
virtual bool IsClientReady (int ClientId) const =0
 
virtual bool IsClientPlayer (int ClientId) const =0
 
virtual int PersistentDataSize () const =0
 
virtual int PersistentClientDataSize () const =0
 
virtual CUuid GameUuid () const =0
 
virtual const char * GameType () const =0
 
virtual const char * Version () const =0
 
virtual const char * NetVersion () const =0
 
virtual void OnPreTickTeehistorian ()=0
 
virtual void OnSetAuthed (int ClientId, int Level)=0
 
virtual bool PlayerExists (int ClientId) const =0
 
virtual void TeehistorianRecordAntibot (const void *pData, int DataSize)=0
 
virtual void TeehistorianRecordPlayerJoin (int ClientId, bool Sixup)=0
 
virtual void TeehistorianRecordPlayerDrop (int ClientId, const char *pReason)=0
 
virtual void TeehistorianRecordPlayerRejoin (int ClientId)=0
 
virtual void TeehistorianRecordPlayerName (int ClientId, const char *pName)=0
 
virtual void TeehistorianRecordPlayerFinish (int ClientId, int TimeTicks)=0
 
virtual void TeehistorianRecordTeamFinish (int TeamId, int TimeTicks)=0
 
virtual void FillAntibot (CAntibotRoundData *pData)=0
 
virtual void OnUpdatePlayerServerInfo (CJsonStringWriter *pJSonWriter, int Id)=0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Static Public Member Functions

static const char * InterfaceName ()
 

Additional Inherited Members

- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Member Function Documentation

◆ FillAntibot()

virtual void IGameServer::FillAntibot ( CAntibotRoundData pData)
pure virtual

Implemented in CGameContext.

◆ GameType()

virtual const char * IGameServer::GameType ( ) const
pure virtual

Implemented in CGameContext.

◆ GameUuid()

virtual CUuid IGameServer::GameUuid ( ) const
pure virtual

Implemented in CGameContext.

◆ InterfaceName()

static const char * IGameServer::InterfaceName ( )
inlinestatic

◆ IsClientPlayer()

virtual bool IGameServer::IsClientPlayer ( int  ClientId) const
pure virtual

Implemented in CGameContext.

◆ IsClientReady()

virtual bool IGameServer::IsClientReady ( int  ClientId) const
pure virtual

Implemented in CGameContext.

◆ NetVersion()

virtual const char * IGameServer::NetVersion ( ) const
pure virtual

Implemented in CGameContext.

◆ OnClientConnected()

virtual void IGameServer::OnClientConnected ( int  ClientId,
void *  pPersistentData 
)
pure virtual

Implemented in CGameContext.

◆ OnClientDataPersist()

virtual bool IGameServer::OnClientDataPersist ( int  ClientId,
void *  pData 
)
pure virtual

Implemented in CGameContext.

◆ OnClientDirectInput()

virtual void IGameServer::OnClientDirectInput ( int  ClientId,
void *  pInput 
)
pure virtual

Implemented in CGameContext.

◆ OnClientDrop()

virtual void IGameServer::OnClientDrop ( int  ClientId,
const char *  pReason 
)
pure virtual

Implemented in CGameContext.

◆ OnClientEnter()

virtual void IGameServer::OnClientEnter ( int  ClientId)
pure virtual

Implemented in CGameContext.

◆ OnClientPredictedEarlyInput()

virtual void IGameServer::OnClientPredictedEarlyInput ( int  ClientId,
void *  pInput 
)
pure virtual

Implemented in CGameContext.

◆ OnClientPredictedInput()

virtual void IGameServer::OnClientPredictedInput ( int  ClientId,
void *  pInput 
)
pure virtual

Implemented in CGameContext.

◆ OnClientPrepareInput()

virtual void IGameServer::OnClientPrepareInput ( int  ClientId,
void *  pInput 
)
pure virtual

Implemented in CGameContext.

◆ OnConsoleInit()

virtual void IGameServer::OnConsoleInit ( )
pure virtual

Implemented in CGameContext.

◆ OnInit()

virtual void IGameServer::OnInit ( const void *  pPersistentData)
pure virtual

Implemented in CGameContext.

◆ OnMapChange()

virtual void IGameServer::OnMapChange ( char *  pNewMapName,
int  MapNameSize 
)
pure virtual

Implemented in CGameContext.

◆ OnMessage()

virtual void IGameServer::OnMessage ( int  MsgId,
CUnpacker pUnpacker,
int  ClientId 
)
pure virtual

Implemented in CGameContext.

◆ OnPostSnap()

virtual void IGameServer::OnPostSnap ( )
pure virtual

Implemented in CGameContext.

◆ OnPreSnap()

virtual void IGameServer::OnPreSnap ( )
pure virtual

Implemented in CGameContext.

◆ OnPreTickTeehistorian()

virtual void IGameServer::OnPreTickTeehistorian ( )
pure virtual

Implemented in CGameContext.

◆ OnSetAuthed()

virtual void IGameServer::OnSetAuthed ( int  ClientId,
int  Level 
)
pure virtual

Implemented in CGameContext.

◆ OnShutdown()

virtual void IGameServer::OnShutdown ( void *  pPersistentData)
pure virtual

Implemented in CGameContext.

◆ OnSnap()

virtual void IGameServer::OnSnap ( int  ClientId)
pure virtual

Implemented in CGameContext.

◆ OnTick()

virtual void IGameServer::OnTick ( )
pure virtual

Implemented in CGameContext.

◆ OnUpdatePlayerServerInfo()

virtual void IGameServer::OnUpdatePlayerServerInfo ( CJsonStringWriter pJSonWriter,
int  Id 
)
pure virtual

Used to report custom player info to master servers.

Parameters
pJsonWriterA pointer to a CJsonStringWriter which the custom data will be added to.
iThe client id.

Implemented in CGameContext.

◆ PersistentClientDataSize()

virtual int IGameServer::PersistentClientDataSize ( ) const
pure virtual

Implemented in CGameContext.

◆ PersistentDataSize()

virtual int IGameServer::PersistentDataSize ( ) const
pure virtual

Implemented in CGameContext.

◆ PlayerExists()

virtual bool IGameServer::PlayerExists ( int  ClientId) const
pure virtual

Implemented in CGameContext.

◆ TeehistorianRecordAntibot()

virtual void IGameServer::TeehistorianRecordAntibot ( const void *  pData,
int  DataSize 
)
pure virtual

Implemented in CGameContext.

◆ TeehistorianRecordPlayerDrop()

virtual void IGameServer::TeehistorianRecordPlayerDrop ( int  ClientId,
const char *  pReason 
)
pure virtual

Implemented in CGameContext.

◆ TeehistorianRecordPlayerFinish()

virtual void IGameServer::TeehistorianRecordPlayerFinish ( int  ClientId,
int  TimeTicks 
)
pure virtual

Implemented in CGameContext.

◆ TeehistorianRecordPlayerJoin()

virtual void IGameServer::TeehistorianRecordPlayerJoin ( int  ClientId,
bool  Sixup 
)
pure virtual

Implemented in CGameContext.

◆ TeehistorianRecordPlayerName()

virtual void IGameServer::TeehistorianRecordPlayerName ( int  ClientId,
const char *  pName 
)
pure virtual

Implemented in CGameContext.

◆ TeehistorianRecordPlayerRejoin()

virtual void IGameServer::TeehistorianRecordPlayerRejoin ( int  ClientId)
pure virtual

Implemented in CGameContext.

◆ TeehistorianRecordTeamFinish()

virtual void IGameServer::TeehistorianRecordTeamFinish ( int  TeamId,
int  TimeTicks 
)
pure virtual

Implemented in CGameContext.

◆ Version()

virtual const char * IGameServer::Version ( ) const
pure virtual

Implemented in CGameContext.


The documentation for this class was generated from the following file: