DDraceNetwork Docs
CEcon Class Reference

#include <econ.h>

Collaboration diagram for CEcon:
[legend]

Classes

class  CClient
 

Public Member Functions

 CEcon ()
 
IConsoleConsole ()
 
void Init (CConfig *pConfig, IConsole *pConsole, CNetBan *pNetBan)
 
void Update ()
 
void Send (int ClientId, const char *pLine)
 
void Shutdown ()
 

Private Types

enum  { MAX_AUTH_TRIES = 3 }
 

Static Private Member Functions

static void SendLineCB (const char *pLine, void *pUserData, ColorRGBA PrintColor={1, 1, 1, 1})
 
static void ConLogout (IConsole::IResult *pResult, void *pUserData)
 
static int NewClientCallback (int ClientId, void *pUser)
 
static int DelClientCallback (int ClientId, const char *pReason, void *pUser)
 

Private Attributes

CClient m_aClients [NET_MAX_CONSOLE_CLIENTS]
 
CConfigm_pConfig
 
IConsolem_pConsole
 
CNetConsole m_NetConsole
 
bool m_Ready
 
int m_PrintCBIndex
 
int m_UserClientId
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MAX_AUTH_TRIES 

Constructor & Destructor Documentation

◆ CEcon()

CEcon::CEcon ( )

Member Function Documentation

◆ ConLogout()

void CEcon::ConLogout ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Console()

IConsole * CEcon::Console ( )
inline

◆ DelClientCallback()

int CEcon::DelClientCallback ( int  ClientId,
const char *  pReason,
void *  pUser 
)
staticprivate

◆ Init()

void CEcon::Init ( CConfig pConfig,
IConsole pConsole,
CNetBan pNetBan 
)

◆ NewClientCallback()

int CEcon::NewClientCallback ( int  ClientId,
void *  pUser 
)
staticprivate

◆ Send()

void CEcon::Send ( int  ClientId,
const char *  pLine 
)

◆ SendLineCB()

static void CEcon::SendLineCB ( const char *  pLine,
void *  pUserData,
ColorRGBA  PrintColor = {1, 1, 1, 1} 
)
staticprivate

◆ Shutdown()

void CEcon::Shutdown ( )

◆ Update()

void CEcon::Update ( )

Member Data Documentation

◆ m_aClients

CClient CEcon::m_aClients[NET_MAX_CONSOLE_CLIENTS]
private

◆ m_NetConsole

CNetConsole CEcon::m_NetConsole
private

◆ m_pConfig

CConfig* CEcon::m_pConfig
private

◆ m_pConsole

IConsole* CEcon::m_pConsole
private

◆ m_PrintCBIndex

int CEcon::m_PrintCBIndex
private

◆ m_Ready

bool CEcon::m_Ready
private

◆ m_UserClientId

int CEcon::m_UserClientId
private

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