Space Engineers
Public Member Functions | Static Public Attributes | Protected Member Functions | Properties | List of all members
VRage.Network.MyReplicationClient Class Reference
Inheritance diagram for VRage.Network.MyReplicationClient:
VRage.Network.MyReplicationLayer VRage.Network.MyReplicationLayerBase VRage.Serialization.INetObjectResolver

Public Member Functions

 MyReplicationClient (IReplicationClientCallback callback, MyClientStateBase clientState, float simulationTimeStep)
 
override void Dispose ()
 
void OnLocalClientReady ()
 
void ProcessReplicationCreateBegin (MyPacket packet)
 
void ProcessReplicationCreate (MyPacket packet)
 
void ProcessReplicationDestroy (MyPacket packet)
 
void ProcessServerData (MyPacket packet)
 
override void UpdateBefore ()
 
override void UpdateAfter ()
 
override void UpdateClientStateGroups ()
 
override void SendUpdate ()
 
void ProcessStateSync (MyPacket packet)
 Processes state sync sent by server. More...
 
JoinResultMsg OnJoinResult (MyPacket packet)
 
ServerDataMsg OnWorldData (MyPacket packet)
 
ChatMsg OnChatMessage (MyPacket packet)
 
ConnectedClientDataMsg OnClientConnected (MyPacket packet)
 
void SendClientConnected (ref ConnectedClientDataMsg msg)
 
override string GetMultiplayerStat ()
 Returns string with current multiplayer status. Use only for debugging. More...
 
void ResetClientTimes ()
 
- Public Member Functions inherited from VRage.Network.MyReplicationLayer
virtual void SetPriorityMultiplier (EndpointId id, float priority)
 
bool IsTypeReplicated (Type type)
 
void ReserveFixedIds (uint maxFixedId)
 Reserves IDs for fixed objects. More...
 
void AddFixedNetworkObject (uint id, IMyNetObject obj)
 Add network object with fixed ID. More...
 
void RemoveFixedObject (uint id, IMyNetObject obj)
 
bool TryGetNetworkIdByObject (IMyNetObject obj, out NetworkId networkId)
 
NetworkId GetNetworkIdByObject (IMyNetObject obj)
 
IMyNetObject GetObjectByNetworkId (NetworkId id)
 
IMyProxyTarget GetProxyTarget (IMyEventProxy proxy)
 
void ReportReplicatedObjects ()
 
bool Invoke (CallSite callSite, BitStream stream, object obj, EndpointId source, MyClientStateBase clientState, bool validate)
 Reads arguments from stream and invokes event. Returns false when validation failed, otherwise true. More...
 
void ProcessEvent (MyPacket packet)
 
- Public Member Functions inherited from VRage.Network.MyReplicationLayerBase
Type GetType (TypeId id)
 
TypeId GetTypeId (Type id)
 
void RaiseEvent< T1, T2 > (T1 arg1, T2 arg2, Func< T1, Action > action, EndpointId endpointId=default(EndpointId), float unreliablePriority=1)
 
void RaiseEvent< T1, T2, T3 > (T1 arg1, T3 arg3, Func< T1, Action< T2 >> action, T2 arg2, EndpointId endpointId=default(EndpointId), float unreliablePriority=1)
 
void RaiseEvent< T1, T2, T3, T4 > (T1 arg1, T4 arg4, Func< T1, Action< T2, T3 >> action, T2 arg2, T3 arg3, EndpointId endpointId=default(EndpointId), float unreliablePriority=1)
 
void RaiseEvent< T1, T2, T3, T4, T5 > (T1 arg1, T5 arg5, Func< T1, Action< T2, T3, T4 >> action, T2 arg2, T3 arg3, T4 arg4, EndpointId endpointId=default(EndpointId), float unreliablePriority=1)
 
void RaiseEvent< T1, T2, T3, T4, T5, T6 > (T1 arg1, T6 arg6, Func< T1, Action< T2, T3, T4, T5 >> action, T2 arg2, T3 arg3, T4 arg4, T5 arg5, EndpointId endpointId=default(EndpointId), float unreliablePriority=1)
 
void RaiseEvent< T1, T2, T3, T4, T5, T6, T7 > (T1 arg1, T7 arg7, Func< T1, Action< T2, T3, T4, T5, T6 >> action, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, EndpointId endpointId=default(EndpointId), float unreliablePriority=1)
 
void RaiseEvent< T1, T2, T3, T4, T5, T6, T7, T8 > (T1 arg1, T8 arg8, Func< T1, Action< T2, T3, T4, T5, T6, T7 >> action, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, EndpointId endpointId=default(EndpointId), float unreliablePriority=1)
 
void RegisterFromAssembly (IEnumerable< Assembly > assemblies)
 
void RegisterFromAssembly (Assembly assembly)
 

Static Public Attributes

static SerializableVector3I StressSleep = new SerializableVector3I(0,0,0)
 
static bool ApplyCorrectionsDebug = true
 

Protected Member Functions

override void ProcessEvent (BitStream stream, NetworkId networkId, NetworkId blockedNetId, uint eventId, EndpointId sender)
 
- Protected Member Functions inherited from VRage.Network.MyReplicationLayer
 MyReplicationLayer (bool isNetworkAuthority)
 
Type GetTypeByTypeId (TypeId typeId)
 
TypeId GetTypeIdByType (Type type)
 
NetworkId AddNetworkObjectServer (IMyNetObject obj)
 
void AddNetworkObjectClient (NetworkId networkId, IMyNetObject obj)
 
IMyNetObject RemoveNetworkedObject (NetworkId networkID)
 
NetworkId RemoveNetworkedObject (IMyNetObject obj)
 
void RemoveNetworkedObject (NetworkId networkID, IMyNetObject obj)
 
virtual MyClientStateBase GetClientData (EndpointId endpointId)
 
sealed override void DispatchEvent< T1, T2, T3, T4, T5, T6, T7, T8 > (CallSite callSite, EndpointId recipient, float unreliablePriority, ref T1 arg1, ref T2 arg2, ref T3 arg3, ref T4 arg4, ref T5 arg5, ref T6 arg6, ref T7 arg7, ref T8 arg8)
 

Properties

MyTimeSpan Ping [get]
 
- Properties inherited from VRage.Network.MyReplicationLayer
bool UseSmoothPing [get, set]
 
bool UseSmoothCorrection [get, set]
 
float SmoothCorrectionAmplitude [get, set]
 
int TimestampCorrectionMinimum [get, set]
 
DictionaryKeysReader< IMyNetObject, NetworkIdNetworkObjects [get]
 
- Properties inherited from VRage.Network.MyReplicationLayerBase
DateTime LastMessageFromServer [get, protected set]
 

Additional Inherited Members

- Public Attributes inherited from VRage.Network.MyReplicationLayer
float PingSmoothFactor = 3.0f
 
- Static Protected Member Functions inherited from VRage.Network.MyReplicationLayerBase
static bool ShouldServerInvokeLocally (CallSite site, EndpointId?localClientEndpoint, EndpointId recipient)
 
- Protected Attributes inherited from VRage.Network.MyReplicationLayer
HashSet< IMyNetObjectFixedObjects = new HashSet<IMyNetObject>()
 
BitStream SendStream = new BitStream()
 
BitStream ReceiveStream = new BitStream()
 
- Protected Attributes inherited from VRage.Network.MyReplicationLayerBase
readonly MyTypeTable m_typeTable = new MyTypeTable()
 

Detailed Description

Definition at line 13 of file MyReplicationClient.cs.

Constructor & Destructor Documentation

VRage.Network.MyReplicationClient.MyReplicationClient ( IReplicationClientCallback  callback,
MyClientStateBase  clientState,
float  simulationTimeStep 
)
inline

Definition at line 40 of file MyReplicationClient.cs.

Member Function Documentation

override void VRage.Network.MyReplicationClient.Dispose ( )
inlinevirtual

Reimplemented from VRage.Network.MyReplicationLayer.

Definition at line 51 of file MyReplicationClient.cs.

override string VRage.Network.MyReplicationClient.GetMultiplayerStat ( )
inlinevirtual

Returns string with current multiplayer status. Use only for debugging.

Returns
Already formatted string with current multiplayer status.

Reimplemented from VRage.Network.MyReplicationLayer.

Definition at line 721 of file MyReplicationClient.cs.

ChatMsg VRage.Network.MyReplicationClient.OnChatMessage ( MyPacket  packet)
inline

Definition at line 698 of file MyReplicationClient.cs.

ConnectedClientDataMsg VRage.Network.MyReplicationClient.OnClientConnected ( MyPacket  packet)
inline

Definition at line 705 of file MyReplicationClient.cs.

JoinResultMsg VRage.Network.MyReplicationClient.OnJoinResult ( MyPacket  packet)
inline

Definition at line 684 of file MyReplicationClient.cs.

void VRage.Network.MyReplicationClient.OnLocalClientReady ( )
inline

Definition at line 57 of file MyReplicationClient.cs.

ServerDataMsg VRage.Network.MyReplicationClient.OnWorldData ( MyPacket  packet)
inline

Definition at line 691 of file MyReplicationClient.cs.

override void VRage.Network.MyReplicationClient.ProcessEvent ( BitStream  stream,
NetworkId  networkId,
NetworkId  blockedNetId,
uint  eventId,
EndpointId  sender 
)
inlineprotectedvirtual

Reimplemented from VRage.Network.MyReplicationLayer.

Definition at line 542 of file MyReplicationClient.cs.

void VRage.Network.MyReplicationClient.ProcessReplicationCreate ( MyPacket  packet)
inline

Definition at line 210 of file MyReplicationClient.cs.

void VRage.Network.MyReplicationClient.ProcessReplicationCreateBegin ( MyPacket  packet)
inline

Definition at line 164 of file MyReplicationClient.cs.

void VRage.Network.MyReplicationClient.ProcessReplicationDestroy ( MyPacket  packet)
inline

Definition at line 235 of file MyReplicationClient.cs.

void VRage.Network.MyReplicationClient.ProcessServerData ( MyPacket  packet)
inline

Definition at line 292 of file MyReplicationClient.cs.

void VRage.Network.MyReplicationClient.ProcessStateSync ( MyPacket  packet)
inline

Processes state sync sent by server.

Definition at line 579 of file MyReplicationClient.cs.

void VRage.Network.MyReplicationClient.ResetClientTimes ( )
inline

Definition at line 741 of file MyReplicationClient.cs.

void VRage.Network.MyReplicationClient.SendClientConnected ( ref ConnectedClientDataMsg  msg)
inline

Definition at line 712 of file MyReplicationClient.cs.

override void VRage.Network.MyReplicationClient.SendUpdate ( )
inlinevirtual

Implements VRage.Network.MyReplicationLayer.

Definition at line 453 of file MyReplicationClient.cs.

override void VRage.Network.MyReplicationClient.UpdateAfter ( )
inlinevirtual

Implements VRage.Network.MyReplicationLayer.

Definition at line 314 of file MyReplicationClient.cs.

override void VRage.Network.MyReplicationClient.UpdateBefore ( )
inlinevirtual

Implements VRage.Network.MyReplicationLayer.

Definition at line 310 of file MyReplicationClient.cs.

override void VRage.Network.MyReplicationClient.UpdateClientStateGroups ( )
inlinevirtual

Implements VRage.Network.MyReplicationLayer.

Definition at line 426 of file MyReplicationClient.cs.

Member Data Documentation

bool VRage.Network.MyReplicationClient.ApplyCorrectionsDebug = true
static

Definition at line 308 of file MyReplicationClient.cs.

SerializableVector3I VRage.Network.MyReplicationClient.StressSleep = new SerializableVector3I(0,0,0)
static

Definition at line 15 of file MyReplicationClient.cs.

Property Documentation

MyTimeSpan VRage.Network.MyReplicationClient.Ping
get

Definition at line 307 of file MyReplicationClient.cs.


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