The base class for deterministic commands. Always override Serialize(BitStream) to add additional data. More...
Public Member Functions | |
DeterministicCommand () | |
Empty contructor. More... | |
virtual void | Dispose () |
Disposes the command object and returns it to the pool. More... | |
virtual DeterministicCommand | GetCommandInstance () |
The object can be used as a IDeterministicCommandFactory and it will try to creates an instance of the command using the pool, otherwise it will use reflection. More... | |
abstract void | Serialize (BitStream stream) |
Override this method to add additional data to the command. More... | |
virtual void | Serialize (BitStream stream, DeterministicCommandSerializer cmdSerializer) |
Serialized the command to and from the bitstream. Use the Serialize(BitStream) method to add custom data. More... | |
Public Attributes | |
Type | CommandType => GetType() |
Returns the type of the concrete command class. More... | |
IDeterministicCommandPool | Pool |
The command pool that the object is returned to during Dispose. More... | |
Additional Inherited Members | |
Properties inherited from Photon.Deterministic.IDeterministicCommandFactory | |
Type | CommandType [get] |
The type of commands to create. More... | |
The base class for deterministic commands. Always override Serialize(BitStream) to add additional data.
|
inline |
Empty contructor.
|
inlinevirtual |
Serialized the command to and from the bitstream. Use the Serialize(BitStream) method to add custom data.
stream | Stream |
cmdSerializer | Serializer |
Reimplemented in Quantum.Core.CompoundCommand.
|
pure virtual |
Override this method to add additional data to the command.
stream | Stream to write and read from |
Implemented in Quantum.Core.CompoundCommand.
|
inlinevirtual |
The object can be used as a IDeterministicCommandFactory and it will try to creates an instance of the command using the pool, otherwise it will use reflection.
Implements Photon.Deterministic.IDeterministicCommandFactory.
|
inlinevirtual |
Disposes the command object and returns it to the pool.
Reimplemented in Quantum.Core.CompoundCommand.
IDeterministicCommandPool Photon.Deterministic.DeterministicCommand.Pool |
The command pool that the object is returned to during Dispose.
Type Photon.Deterministic.DeterministicCommand.CommandType => GetType() |
Returns the type of the concrete command class.