The base class for deterministic commands. Always override Serialize(BitStream) to add additional data. More...
Public Member Functions | |
DeterministicCommand () | |
Empty constructor. More... | |
virtual void | Dispose () |
Disposing commands is done internally and does not need to be called manually. The method is public because of the IDisposable interface and to be able to derive it. 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 constructor.
|
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 |
Disposing commands is done internally and does not need to be called manually. The method is public because of the IDisposable interface and to be able to derive it.
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.