Rise
The Vieneo Province
Loading...
Searching...
No Matches
Networking Class Reference

#include <Networking.h>

Collaboration diagram for Networking:
[legend]

Public Member Functions

 Networking (GameClass *g)
void Close ()
void EvaluateRevenuePax () const
void RakNetMessageHandler (RakNet::Packet *packet)
void SendToServer (void *pData, DWORD dwSize, bool bGuaranteed, PacketOrdering order=ORDERING_NONE) const
void SendTelemetry (SClientPacketNew *pData) const
bool SendErrorReport (SErrorPacket *pData) const
void SendChatMessage (unsigned char channel, unsigned char player, const WCHAR *message) const
void FrameMove (GameState displaystage)
int GetPingTime () const
void SendEvent (EventType eventType, float extent=0.0f) const
std::uint32_t SendTraceFile (const char *fileContents, bool requestReceipt=false) const
RakNet::RakNetStatistics * GetStatistics () const
RakNet::ConnectionAttemptResult Connect () const
bool Flush () const
void RequestVerbiage (int helpId) const

Public Attributes

CloudWeather::Receiver cloudWeather
char connectstatus
unsigned long patchbytes
unsigned long rcvdbytes
short retryconnect

Private Member Functions

void Trace (const char *msg, Logger::Level severity=Logger::Level::Info) const

Private Attributes

GameClass * game
RakNet::RakPeerInterface * rakPeer
RakNet::SystemAddress serverC
RakNet::Packet * p
int oldPlayerFrame = -1
char oldreference [MAX_SCAN] = {}
unsigned char battleRoyaleSequence = 0
bool patchRequiresRestart = false
uint64_t cloudWeatherLoggedRevision =0

Detailed Description

Definition at line 73 of file Networking.h.

Constructor & Destructor Documentation

◆ Networking()

Networking::Networking ( GameClass * g)

Definition at line 71 of file Networking.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Close()

void Networking::Close ( )

Definition at line 104 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Connect()

RakNet::ConnectionAttemptResult Networking::Connect ( ) const

Definition at line 275 of file Networking.cpp.

Here is the caller graph for this function:

◆ EvaluateRevenuePax()

void Networking::EvaluateRevenuePax ( ) const

Definition at line 120 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Flush()

bool Networking::Flush ( ) const

Definition at line 280 of file Networking.cpp.

Here is the caller graph for this function:

◆ FrameMove()

void Networking::FrameMove ( GameState displaystage)

Definition at line 324 of file Networking.cpp.

Here is the caller graph for this function:

◆ GetPingTime()

int Networking::GetPingTime ( ) const

Definition at line 218 of file Networking.cpp.

Here is the caller graph for this function:

◆ GetStatistics()

RakNet::RakNetStatistics * Networking::GetStatistics ( ) const

Definition at line 270 of file Networking.cpp.

Here is the caller graph for this function:

◆ RakNetMessageHandler()

void Networking::RakNetMessageHandler ( RakNet::Packet * packet)
Todo
we don't actually care about x, y, leftright, updown, rolltilt, or heading right now

this was the fix 10/8/2023 for switching vehicles

Todo
could update the Biometer here if we choose to reveal this information
Todo
could downgrade this to char

Definition at line 1019 of file Networking.cpp.

Here is the caller graph for this function:

◆ RequestVerbiage()

void Networking::RequestVerbiage ( int helpId) const

Definition at line 298 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendChatMessage()

void Networking::SendChatMessage ( unsigned char channel,
unsigned char player,
const WCHAR * message ) const

Definition at line 309 of file Networking.cpp.

Here is the caller graph for this function:

◆ SendErrorReport()

bool Networking::SendErrorReport ( SErrorPacket * pData) const

Definition at line 205 of file Networking.cpp.

Here is the caller graph for this function:

◆ SendEvent()

void Networking::SendEvent ( EventType eventType,
float extent = 0.0f ) const

Definition at line 223 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendTelemetry()

void Networking::SendTelemetry ( SClientPacketNew * pData) const

Definition at line 194 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendToServer()

void Networking::SendToServer ( void * pData,
DWORD dwSize,
bool bGuaranteed,
PacketOrdering order = ORDERING_NONE ) const

Definition at line 160 of file Networking.cpp.

Here is the call graph for this function:

◆ SendTraceFile()

std::uint32_t Networking::SendTraceFile ( const char * fileContents,
bool requestReceipt = false ) const

Definition at line 255 of file Networking.cpp.

Here is the caller graph for this function:

◆ Trace()

void Networking::Trace ( const char * msg,
Logger::Level severity = Logger::Level::Info ) const
private

Definition at line 97 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ battleRoyaleSequence

unsigned char Networking::battleRoyaleSequence = 0
private

Definition at line 83 of file Networking.h.

◆ cloudWeather

CloudWeather::Receiver Networking::cloudWeather

Definition at line 90 of file Networking.h.

◆ cloudWeatherLoggedRevision

uint64_t Networking::cloudWeatherLoggedRevision =0
private

Definition at line 85 of file Networking.h.

◆ connectstatus

char Networking::connectstatus

Definition at line 111 of file Networking.h.

◆ game

GameClass* Networking::game
private

Definition at line 75 of file Networking.h.

◆ oldPlayerFrame

int Networking::oldPlayerFrame = -1
private

Definition at line 81 of file Networking.h.

◆ oldreference

char Networking::oldreference[MAX_SCAN] = {}
private

Definition at line 82 of file Networking.h.

◆ p

RakNet::Packet* Networking::p
private

Definition at line 79 of file Networking.h.

◆ patchbytes

unsigned long Networking::patchbytes

Definition at line 112 of file Networking.h.

◆ patchRequiresRestart

bool Networking::patchRequiresRestart = false
private

Definition at line 84 of file Networking.h.

◆ rakPeer

RakNet::RakPeerInterface* Networking::rakPeer
private

Definition at line 77 of file Networking.h.

◆ rcvdbytes

unsigned long Networking::rcvdbytes

Definition at line 113 of file Networking.h.

◆ retryconnect

short Networking::retryconnect

Definition at line 114 of file Networking.h.

◆ serverC

RakNet::SystemAddress Networking::serverC
private

Definition at line 78 of file Networking.h.


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