Rebel Fork Framework
Urho3D::ServerNetworkCallback Class Reference

#include <Urho3D/Replica/NetworkCallbacks.h>

Inheritance diagram for Urho3D::ServerNetworkCallback:
Urho3D::NetworkCallback Urho3D::NetworkBehavior Urho3D::NetworkObject Urho3D::FilteredByDistance Urho3D::ReplicatedAnimation Urho3D::ReplicatedTransform Urho3D::TrackedAnimatedModel Urho3D::StaticNetworkObject Urho3D::BehaviorNetworkObject

Public Member Functions

virtual void InitializeOnServer ()
 Perform initialization. Called once.
 
virtual ea::optional< NetworkObjectRelevanceGetRelevanceForClient (AbstractConnection *connection)
 
virtual void UpdateTransformOnServer ()
 Called when world transform or parent of the object is updated in Server mode.
 
virtual void WriteSnapshot (NetworkFrame frame, Serializer &dest)
 Write full snapshot.
 
virtual bool PrepareReliableDelta (NetworkFrame frame)
 Prepare for reliable delta update and return update mask. If mask is zero, reliable delta update is skipped.
 
virtual void WriteReliableDelta (NetworkFrame frame, Serializer &dest)
 Write reliable delta update. Delta is applied to previous delta or snapshot.
 
virtual bool PrepareUnreliableDelta (NetworkFrame frame)
 Prepare for unreliable delta update and return update mask. If mask is zero, unreliable delta update is skipped.
 
virtual void WriteUnreliableDelta (NetworkFrame frame, Serializer &dest)
 Write unreliable delta update.
 
virtual void ReadUnreliableFeedback (NetworkFrame feedbackFrame, Deserializer &src)
 Read unreliable feedback from client.
 

Detailed Description

Server-side callbacks for NetworkObject and NetworkBehavior. ServerReplicator is guaranteed to be present.

Member Function Documentation

◆ GetRelevanceForClient()

virtual ea::optional<NetworkObjectRelevance> Urho3D::ServerNetworkCallback::GetRelevanceForClient ( AbstractConnection connection)
inlinevirtual

Return whether the component should be replicated for specified client connection, and how frequently. The first reported valid relevance is used.

Reimplemented in Urho3D::BehaviorNetworkObject, and Urho3D::FilteredByDistance.


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