DDraceNetwork Docs
CNetObjHandler Class Reference

#include <protocol.h>

Public Member Functions

 CNetObjHandler ()
 
void * SecureUnpackObj (int Type, CUnpacker *pUnpacker)
 
const char * GetObjName (int Type) const
 
int GetObjSize (int Type) const
 
int GetUnpackedObjSize (int Type) const
 
int NumObjCorrections () const
 
const char * CorrectedObjOn () const
 
const char * FailedObjOn () const
 
const char * GetMsgName (int Type) const
 
void * SecureUnpackMsg (int Type, CUnpacker *pUnpacker)
 
bool TeeHistorianRecordMsg (int Type)
 
const char * FailedMsgOn () const
 

Private Member Functions

int ClampInt (const char *pErrorMsg, int Value, int Min, int Max)
 

Private Attributes

const char * m_pMsgFailedOn
 
const char * m_pObjFailedOn
 
const char * m_pObjCorrectedOn
 
char m_aUnpackedData [1024 *2]
 
int m_NumObjCorrections
 

Static Private Attributes

static const char * ms_apObjNames []
 
static const char * ms_apExObjNames []
 
static int ms_aObjSizes []
 
static int ms_aUnpackedObjSizes []
 
static int ms_aUnpackedExObjSizes []
 
static const char * ms_apMsgNames []
 
static const char * ms_apExMsgNames []
 

Constructor & Destructor Documentation

◆ CNetObjHandler()

CNetObjHandler::CNetObjHandler ( )

Member Function Documentation

◆ ClampInt()

int CNetObjHandler::ClampInt ( const char *  pErrorMsg,
int  Value,
int  Min,
int  Max 
)
private

◆ CorrectedObjOn()

const char * CNetObjHandler::CorrectedObjOn ( ) const

◆ FailedMsgOn()

const char * CNetObjHandler::FailedMsgOn ( ) const

◆ FailedObjOn()

const char * CNetObjHandler::FailedObjOn ( ) const

◆ GetMsgName()

const char * CNetObjHandler::GetMsgName ( int  Type) const

◆ GetObjName()

const char * CNetObjHandler::GetObjName ( int  Type) const

◆ GetObjSize()

int CNetObjHandler::GetObjSize ( int  Type) const

◆ GetUnpackedObjSize()

int CNetObjHandler::GetUnpackedObjSize ( int  Type) const

◆ NumObjCorrections()

int CNetObjHandler::NumObjCorrections ( ) const

◆ SecureUnpackMsg()

void * CNetObjHandler::SecureUnpackMsg ( int  Type,
CUnpacker pUnpacker 
)

◆ SecureUnpackObj()

void * CNetObjHandler::SecureUnpackObj ( int  Type,
CUnpacker pUnpacker 
)

◆ TeeHistorianRecordMsg()

bool CNetObjHandler::TeeHistorianRecordMsg ( int  Type)

Member Data Documentation

◆ m_aUnpackedData

char CNetObjHandler::m_aUnpackedData[1024 *2]
private

◆ m_NumObjCorrections

int CNetObjHandler::m_NumObjCorrections
private

◆ m_pMsgFailedOn

const char* CNetObjHandler::m_pMsgFailedOn
private

◆ m_pObjCorrectedOn

const char* CNetObjHandler::m_pObjCorrectedOn
private

◆ m_pObjFailedOn

const char* CNetObjHandler::m_pObjFailedOn
private

◆ ms_aObjSizes

int CNetObjHandler::ms_aObjSizes
staticprivate
Initial value:
= {
0,
sizeof(CNetObj_Laser),
sizeof(CNetObj_Pickup),
sizeof(CNetObj_Flag),
sizeof(CNetEvent_Spawn),
sizeof(CNetEvent_Death),
0
}
Definition: protocol.h:593
Definition: protocol.h:633
Definition: protocol.h:615
Definition: protocol.h:600
Definition: protocol.h:610
Definition: protocol.h:621
Definition: protocol.h:627
Definition: protocol.h:605
Definition: protocol.h:435
Definition: protocol.h:455
Definition: protocol.h:477
Definition: protocol.h:405
Definition: protocol.h:426
Definition: protocol.h:413
Definition: protocol.h:386
Definition: protocol.h:396
Definition: protocol.h:467
Definition: protocol.h:360
Definition: protocol.h:375
Definition: protocol.h:499

◆ ms_apExMsgNames

const char * CNetObjHandler::ms_apExMsgNames
staticprivate
Initial value:
= {
"invalid",
"Sv_MyOwnMessage",
"Cl_ShowDistance",
"Cl_ShowOthers",
"Sv_TeamsState",
"Sv_DDRaceTime",
"Sv_Record",
"Sv_KillMsgTeam",
""
}

◆ ms_apExObjNames

const char * CNetObjHandler::ms_apExObjNames
staticprivate
Initial value:
= {
"invalid",
"MyOwnObject",
"DDNetCharacter",
"DDNetPlayer",
"GameInfoEx",
"DDRaceProjectile",
"DDNetLaser",
"DDNetProjectile",
"DDNetPickup",
"MyOwnEvent",
"SpecChar",
"SwitchState",
"EntityEx",
""
}

◆ ms_apMsgNames

const char * CNetObjHandler::ms_apMsgNames
staticprivate

◆ ms_apObjNames

const char * CNetObjHandler::ms_apObjNames
staticprivate
Initial value:
= {
"EX/UUID",
"PlayerInput",
"Projectile",
"Laser",
"Pickup",
"Flag",
"GameInfo",
"GameData",
"CharacterCore",
"Character",
"PlayerInfo",
"ClientInfo",
"SpectatorInfo",
"Common",
"Explosion",
"Spawn",
"HammerHit",
"Death",
"SoundGlobal",
"SoundWorld",
"DamageInd",
""
}

◆ ms_aUnpackedExObjSizes

int CNetObjHandler::ms_aUnpackedExObjSizes
staticprivate
Initial value:
= {
0,
}
Definition: protocol.h:513
Definition: protocol.h:554
Definition: protocol.h:583
Definition: protocol.h:528
Definition: protocol.h:568
Definition: protocol.h:543
Definition: protocol.h:661
Definition: protocol.h:535
Definition: protocol.h:639
Definition: protocol.h:507
Definition: protocol.h:645
Definition: protocol.h:652

◆ ms_aUnpackedObjSizes

int CNetObjHandler::ms_aUnpackedObjSizes
staticprivate

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