The internal input structure for one player and one tick. More...
Classes | |
class | CorruptedException |
The corrupted exception is thrown when error during the deserialization are detected. More... | |
class | Pool |
The input objects are pooled. More... | |
Public Member Functions | |
DeterministicTickInput | Clone () |
Clone the object. More... | |
void | CopyToDataArray (byte[] array, int length) |
Copy the array into the DataArray. More... | |
void | Legacy_Serialize_Packed (Protocol.Serializer serializer, BitStream stream, DeterministicTickInputEncodeHeader header) |
Legacy serialization. More... | |
void | Legacy_Serialize_Simple (Protocol.Serializer serializer, BitStream stream) |
Legacy serialization. More... | |
void | SerializeForDecoder (Protocol.Serializer serializer, BitStream stream, DeterministicTickInputEncodeHeader header) |
Internal method to serialize the input data. More... | |
void | SerializeForDecoderRPC (Protocol.Serializer serializer, BitStream stream, DeterministicTickInputEncodeHeader header) |
Read and write rpc data from the input stream. More... | |
void | SimpleSerialize (Protocol.Serializer serializer, BitStream stream, int size, Boolean ignoreRpc=false, Boolean includeHeader=true) |
Internal method to serialize the input data. More... | |
override String | ToString () |
Override ToString method to debug output readable class members. More... | |
Static Public Member Functions | |
static void | DeserializeMultiple (Protocol.Serializer serializer, BitStream stream, List< DeterministicTickInput > result, Stack< DeterministicTickInput > pool, int expectedDataLength, Boolean ignoreRpc=false, bool delta=false) |
Internal method to deserialized multiple inputs from a bitstream. More... | |
static unsafe void | Legacy_DecodeMultiple_Packed (Protocol.Serializer serializer, BitStream stream, List< DeterministicTickInput > result) |
Legacy serialization. More... | |
static void | Legacy_DecodeMultiple_Simple (Protocol.Serializer serializer, BitStream stream, List< DeterministicTickInput > result) |
Legacy serialization. More... | |
static void | SimpleDeserializeMultiple (Protocol.Serializer serializer, BitStream stream, List< DeterministicTickInput > result, Stack< DeterministicTickInput > pool, int expectedDataLength, Boolean ignoreRpc=false) |
Internal method to deserialized multiple inputs from a bitstream. More... | |
Public Attributes | |
Byte[] | DataArray |
Input data. More... | |
int | DataLength |
Input data length. More... | |
DeterministicInputFlags | Flags |
The input flags assigned by the server. More... | |
Int32 | PlayerIndex |
This represents the player index when sent from the server. Is the player slot on input upstream. More... | |
Int32 | ReferenceTick |
Not serialized (for delta decompression only) More... | |
Byte[] | Rpc |
Rpc data. More... | |
Boolean | Sent |
Has this input been sent to the client. More... | |
Int32 | Tick |
The tick of this input. More... | |
The internal input structure for one player and one tick.
Represents input at a specific tick.
|
inline |
Copy the array into the DataArray.
array | Source input data array |
length | Source input data array size |
|
inline |
Internal method to serialize the input data.
serializer | Quantum protocol serializer |
stream | Bitstream |
header | Header to write |
|
inline |
Read and write rpc data from the input stream.
serializer | Quantum protocol serializer |
stream | Bitstream |
header | Header |
|
inline |
Internal method to serialize the input data.
serializer | Quantum protocol serializer |
stream | Bitstream |
size | Input size |
ignoreRpc | Ignore rpc |
includeHeader | Include a header |
CorruptedException |
|
inlinestatic |
Internal method to deserialized multiple inputs from a bitstream.
serializer | Quantum protocol serializer |
stream | Bitstream |
result | Resulting list of inputs |
pool | Input object pool to use |
expectedDataLength | Expected input data length to validate, 0 to disable |
ignoreRpc | Ignore the rpc data |
CorruptedException | Is raised when the input length mismatches |
|
inlinestatic |
Internal method to deserialized multiple inputs from a bitstream.
serializer | Quantum protocol serializer |
stream | Bitstream |
result | Resulting list of inputs |
pool | Input object pool to use |
expectedDataLength | Expected input data length to validate, 0 to disable |
ignoreRpc | Ignore the rpc data |
delta | Is input delta compressed |
CorruptedException | Is raised when the input length mismatches |
|
inline |
Clone the object.
|
inline |
Override ToString method to debug output readable class members.
|
inline |
Legacy serialization.
|
inline |
Legacy serialization.
|
inlinestatic |
Legacy serialization.
|
inlinestatic |
Legacy serialization.
Boolean Photon.Deterministic.DeterministicTickInput.Sent |
Has this input been sent to the client.
Int32 Photon.Deterministic.DeterministicTickInput.Tick |
The tick of this input.
Int32 Photon.Deterministic.DeterministicTickInput.PlayerIndex |
This represents the player index when sent from the server. Is the player slot on input upstream.
Byte [] Photon.Deterministic.DeterministicTickInput.Rpc |
Rpc data.
Byte [] Photon.Deterministic.DeterministicTickInput.DataArray |
Input data.
int Photon.Deterministic.DeterministicTickInput.DataLength |
Input data length.
Int32 Photon.Deterministic.DeterministicTickInput.ReferenceTick |
Not serialized (for delta decompression only)
DeterministicInputFlags Photon.Deterministic.DeterministicTickInput.Flags |
The input flags assigned by the server.