Space Engineers
|
Public Member Functions | |
MyStreamingEntityStateGroup (T obj, IMyReplicable owner) | |
void | CreateClientData (MyClientStateBase forClient) |
Called on server new clients starts replicating this group. More... | |
void | DestroyClientData (MyClientStateBase forClient) |
Called on server when client stops replicating this group. More... | |
void | ClientUpdate (MyTimeSpan clientTimestamp) |
Update method called on client. More... | |
void | Destroy () |
Called when state group is being destroyed. More... | |
float | GetGroupPriority (int frameCountWithoutSync, MyClientInfo forClient) |
Gets priority related to client. When priority is lower than zero, it means the object is not relevant for client. Default priority is 1.0f. More... | |
void | Serialize (VRage.Library.Collections.BitStream stream, EndpointId forClient, MyTimeSpan timestamp, byte packetId, int maxBitPosition) |
(De)serializes group state or it's diff for client. When writing, you can write beyond maxBitPosition, but message won't be sent and ACKs won't be received for it. ReplicationServer will detect, that state group written beyond packet size and revert it. When nothing written, ReplicationServer will detect that and state group won't receive ACK for that packet id. More... | |
void | OnAck (MyClientStateBase forClient, byte packetId, bool delivered) |
Called for each packet id sent to client from this state group. When ACK received, called immediatelly. When several other packets received from client, but some were missing, called for each missing packet. More... | |
void | ForceSend (MyClientStateBase clientData) |
void | TimestampReset (MyTimeSpan timestamp) |
bool | IsStillDirty (EndpointId forClient) |
Properties | |
T | Instance [get] |
IMyReplicable | Owner [get] |
StateGroupEnum | GroupType [get] |
Properties inherited from VRage.Network.IMyStateGroup | |
StateGroupEnum | GroupType [get] |
IMyReplicable | Owner [get] |
T | : | IMyStreamableReplicable |
Definition at line 57 of file MyStreamingEntityStateGroup.cs.
|
inline |
Definition at line 69 of file MyStreamingEntityStateGroup.cs.
|
inline |
Update method called on client.
Implements VRage.Network.IMyStateGroup.
Definition at line 139 of file MyStreamingEntityStateGroup.cs.
|
inline |
Called on server new clients starts replicating this group.
Implements VRage.Network.IMyStateGroup.
Definition at line 116 of file MyStreamingEntityStateGroup.cs.
|
inline |
Called when state group is being destroyed.
Implements VRage.Network.IMyStateGroup.
Definition at line 144 of file MyStreamingEntityStateGroup.cs.
|
inline |
Called on server when client stops replicating this group.
Implements VRage.Network.IMyStateGroup.
Definition at line 131 of file MyStreamingEntityStateGroup.cs.
|
inline |
Implements VRage.Network.IMyStateGroup.
Definition at line 503 of file MyStreamingEntityStateGroup.cs.
|
inline |
Gets priority related to client. When priority is lower than zero, it means the object is not relevant for client. Default priority is 1.0f.
frameCountWithoutSync | How long (in update frame count) has client not received sync of this state group. |
forClient | Client for whom is the priority get. |
Implements VRage.Network.IMyStateGroup.
Definition at line 153 of file MyStreamingEntityStateGroup.cs.
|
inline |
Implements VRage.Network.IMyStateGroup.
Definition at line 514 of file MyStreamingEntityStateGroup.cs.
|
inline |
Called for each packet id sent to client from this state group. When ACK received, called immediatelly. When several other packets received from client, but some were missing, called for each missing packet.
forClient | The client. |
packetId | Id of the delivered or lost packet. |
delivered | True when packet was delivered, false when packet is considered lost. |
Implements VRage.Network.IMyStateGroup.
Definition at line 473 of file MyStreamingEntityStateGroup.cs.
|
inline |
(De)serializes group state or it's diff for client. When writing, you can write beyond maxBitPosition, but message won't be sent and ACKs won't be received for it. ReplicationServer will detect, that state group written beyond packet size and revert it. When nothing written, ReplicationServer will detect that and state group won't receive ACK for that packet id.
stream | Stream to write to or read from. |
forClient | When writing the client which will receive the data. When reading, it's null. |
packetId | Id of packet in which the data will be sent or from which the data is received. |
maxBitPosition | Maximum position in bit stream where you can write data, it's inclusive. |
Implements VRage.Network.IMyStateGroup.
Definition at line 435 of file MyStreamingEntityStateGroup.cs.
|
inline |
Implements VRage.Network.IMyStateGroup.
Definition at line 510 of file MyStreamingEntityStateGroup.cs.
|
get |
Definition at line 112 of file MyStreamingEntityStateGroup.cs.
|
get |
Definition at line 63 of file MyStreamingEntityStateGroup.cs.
Definition at line 67 of file MyStreamingEntityStateGroup.cs.