Quantum 3 3.0.13

Public Member Functions | Public Attributes | List of all members
Quantum.Core.CompoundCommand Class Reference

An auxiliary command that can be used to send multiple commands in one. Nested compound commands are accepted. More...

Inheritance diagram for Quantum.Core.CompoundCommand:
Photon.Deterministic.DeterministicCommand Photon.Deterministic.IDeterministicCommandFactory

Public Member Functions

override void Dispose ()
 Disposes all the commands in the compound. More...
 
override void Serialize (BitStream stream)
 Not implemented, use the other overload instead. More...
 
override void Serialize (BitStream stream, DeterministicCommandSerializer cmdSerializer)
 Write or read a command from the raw input stream. More...
 
- Public Member Functions inherited from Photon.Deterministic.DeterministicCommand
 DeterministicCommand ()
 Empty constructor. 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...
 

Public Attributes

List< DeterministicCommandCommands = new List<DeterministicCommand>()
 A list of the commands that are part of this compound. More...
 
- Public Attributes inherited from Photon.Deterministic.DeterministicCommand
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...
 

Detailed Description

An auxiliary command that can be used to send multiple commands in one. Nested compound commands are accepted.

Member Function Documentation

◆ Serialize() [1/2]

override void Quantum.Core.CompoundCommand.Serialize ( BitStream  stream,
DeterministicCommandSerializer  cmdSerializer 
)
inlinevirtual

Write or read a command from the raw input stream.

Parameters
streamBit stream
cmdSerializerCommand serializer

Reimplemented from Photon.Deterministic.DeterministicCommand.

◆ Serialize() [2/2]

override void Quantum.Core.CompoundCommand.Serialize ( BitStream  stream)
inlinevirtual

Not implemented, use the other overload instead.

Parameters
streamBitstream

Implements Photon.Deterministic.DeterministicCommand.

◆ Dispose()

override void Quantum.Core.CompoundCommand.Dispose ( )
inlinevirtual

Disposes all the commands in the compound.

Reimplemented from Photon.Deterministic.DeterministicCommand.

Member Data Documentation

◆ Commands

List<DeterministicCommand> Quantum.Core.CompoundCommand.Commands = new List<DeterministicCommand>()

A list of the commands that are part of this compound.