The DeterministicCommandSerializer is used to serialize and de-serialize DeterministicCommands. More...
Public Member Functions | |
DeterministicCommandSerializer () | |
Constructor. More... | |
Boolean | PackNext (BitStream s, DeterministicCommand cmd) |
Packing a command into a bitstream. More... | |
Boolean | ReadNext (BitStream s, out DeterministicCommand cmd) |
Read commands from the bitstream. More... | |
void | RegisterFactories (params IDeterministicCommandFactory[] factories) |
Register a list of command factories. More... | |
void | RegisterFactory (IDeterministicCommandFactory factory) |
Register one command factory. More... | |
Public Attributes | |
BitStream | CommandSerializerStreamRead |
The reusable read stream. More... | |
BitStream | CommandSerializerStreamWrite |
The reuseable write stream. More... | |
The DeterministicCommandSerializer is used to serialize and de-serialize DeterministicCommands.
|
inline |
Constructor.
|
inline |
Register one command factory.
factory | Factory instance |
|
inline |
Register a list of command factories.
factories | Factory params |
|
inline |
Packing a command into a bitstream.
s | Stream |
cmd | Command object |
true
if successfully written the command into the stream
|
inline |
Read commands from the bitstream.
s | Stream |
cmd | Command that was read from the stream. |
true
when a command has successfully been read form the stream.BitStream Photon.Deterministic.DeterministicCommandSerializer.CommandSerializerStreamRead |
The reusable read stream.
BitStream Photon.Deterministic.DeterministicCommandSerializer.CommandSerializerStreamWrite |
The reuseable write stream.