Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::NetworkingComponent Class Referencefinal

#include <NetworkingComponent.h>

+ Inheritance diagram for Divide::NetworkingComponent:

Public Member Functions

 NetworkingComponent (SceneGraphNode *parentSGN, PlatformContext &context)
 
 ~NetworkingComponent () override
 
void onNetworkSend (U32 frameCountIn)
 
void flagDirty () noexcept
 

Static Public Member Functions

static NetworkingComponentgetReceiver (I64 guid)
 

Private Types

using Parent = BaseComponentType< NetworkingComponent, ComponentType::NETWORKING >
 

Private Member Functions

void onNetworkReceive (WorldPacket &dataIn)
 
WorldPacket deltaCompress (const WorldPacket &crt, const WorldPacket &previous) const
 
WorldPacket deltaDecompress (const WorldPacket &crt, const WorldPacket &previous) const
 

Private Attributes

LocalClient_parentClient
 
bool _resendRequired
 
WorldPacket _previousSent
 
WorldPacket _previousReceived
 

Static Private Attributes

static hashMap< I64, NetworkingComponent * > s_NetComponents
 

Friends

class NetworkingSystem
 
void UpdateEntities (WorldPacket &p)
 

Detailed Description

Definition at line 44 of file NetworkingComponent.h.

Member Typedef Documentation

◆ Parent

Constructor & Destructor Documentation

◆ NetworkingComponent()

Divide::NetworkingComponent::NetworkingComponent ( SceneGraphNode parentSGN,
PlatformContext context 
)

Definition at line 15 of file NetworkingComponent.cpp.

◆ ~NetworkingComponent()

Divide::NetworkingComponent::~NetworkingComponent ( )
override

Definition at line 26 of file NetworkingComponent.cpp.

Member Function Documentation

◆ deltaCompress()

WorldPacket Divide::NetworkingComponent::deltaCompress ( const WorldPacket crt,
const WorldPacket previous 
) const
private

Definition at line 35 of file NetworkingComponent.cpp.

◆ deltaDecompress()

WorldPacket Divide::NetworkingComponent::deltaDecompress ( const WorldPacket crt,
const WorldPacket previous 
) const
private

Definition at line 39 of file NetworkingComponent.cpp.

◆ flagDirty()

void Divide::NetworkingComponent::flagDirty ( )
noexcept

Definition at line 31 of file NetworkingComponent.cpp.

◆ getReceiver()

NetworkingComponent * Divide::NetworkingComponent::getReceiver ( I64  guid)
static

Definition at line 67 of file NetworkingComponent.cpp.

◆ onNetworkReceive()

void Divide::NetworkingComponent::onNetworkReceive ( WorldPacket dataIn)
private

Definition at line 60 of file NetworkingComponent.cpp.

◆ onNetworkSend()

void Divide::NetworkingComponent::onNetworkSend ( U32  frameCountIn)

Definition at line 43 of file NetworkingComponent.cpp.

Friends And Related Function Documentation

◆ NetworkingSystem

friend class NetworkingSystem
friend

Definition at line 44 of file NetworkingComponent.h.

◆ UpdateEntities

void UpdateEntities ( WorldPacket p)
friend

Definition at line 77 of file NetworkingComponent.cpp.

Member Data Documentation

◆ _parentClient

LocalClient& Divide::NetworkingComponent::_parentClient
private

Definition at line 64 of file NetworkingComponent.h.

◆ _previousReceived

WorldPacket Divide::NetworkingComponent::_previousReceived
private

Definition at line 68 of file NetworkingComponent.h.

◆ _previousSent

WorldPacket Divide::NetworkingComponent::_previousSent
private

Definition at line 67 of file NetworkingComponent.h.

◆ _resendRequired

bool Divide::NetworkingComponent::_resendRequired
private

Definition at line 66 of file NetworkingComponent.h.

◆ s_NetComponents

hashMap< I64, NetworkingComponent * > Divide::NetworkingComponent::s_NetComponents
staticprivate

Definition at line 71 of file NetworkingComponent.h.


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