Quantum 3
3.0.13
The client sends a snapshot of the game state to the server. The message is send multiple times if the snapshot is too large. More...
Public Member Functions | |
| override void | Serialize (Serializer serializer, BitStream stream) |
| The message serialization (writing and reading). More... | |
| override string | ToString () |
| Debug string with message content. More... | |
Static Public Member Functions | |
| static void | Decode (FrameSnapshot[] snapshots, ref Byte[] data, ref Int32 tick) |
| Decode multiple messages into a snapshot. More... | |
| static FrameSnapshot[] | Encode (Int32 tick, Byte[] data) |
| Encode a snapshot into multiple FrameSnapshot messages. More... | |
Public Attributes | |
| Byte[] | Data |
| The snapshot data chunk. More... | |
| Boolean | Last |
| If this message is the last chunk of the snapshot. More... | |
| Int32 | Tick |
| The tick of the snapshot. More... | |
| Int32 | TotalSize |
| The total size of the snapshot. More... | |
Static Public Attributes | |
| const int | MaxChunkSize = 48 * 1024 |
| Maximum chunk size. More... | |
The client sends a snapshot of the game state to the server. The message is send multiple times if the snapshot is too large.
|
inlinevirtual |
The message serialization (writing and reading).
| serializer | Quantum protocol serializer |
| stream | The bitstream to write to or read from |
Implements Photon.Deterministic.Protocol.Message.
|
inline |
Debug string with message content.
|
inlinestatic |
Encode a snapshot into multiple FrameSnapshot messages.
| tick | The tick of the snapshot. |
| data | The snapshot data |
|
inlinestatic |
Decode multiple messages into a snapshot.
| snapshots | The snapshot messages |
| data | The resulting snapshot data |
| tick | The tick of the snapshot |
|
static |
Maximum chunk size.
| Int32 Photon.Deterministic.Protocol.FrameSnapshot.Tick |
The tick of the snapshot.
| Int32 Photon.Deterministic.Protocol.FrameSnapshot.TotalSize |
The total size of the snapshot.
| Boolean Photon.Deterministic.Protocol.FrameSnapshot.Last |
If this message is the last chunk of the snapshot.
| Byte [] Photon.Deterministic.Protocol.FrameSnapshot.Data |
The snapshot data chunk.