Create a deterministic command pool for a specific command type. Make sure to reset all command data when reusing the objects. More...
Public Member Functions | |
DeterministicCommand | Acquire () |
Creates a new command or retrieves one from the pool. More... | |
DeterministicCommand | GetCommandInstance () |
Creates a new instance of the command and calls Acquire. More... | |
bool | Release (DeterministicCommand cmd) |
Release a command and return it to the pool. More... | |
Public Attributes | |
Type | CommandType => typeof(T) |
The type of the command that the pool is managing. More... | |
Additional Inherited Members | |
Properties inherited from Photon.Deterministic.IDeterministicCommandFactory | |
Type | CommandType [get] |
The type of commands to create. More... | |
Properties inherited from Photon.Deterministic.IDeterministicCommandPool | |
Type | CommandType [get] |
The type of commands pooled. More... | |
Create a deterministic command pool for a specific command type. Make sure to reset all command data when reusing the objects.
T | Command type |
T | : | DeterministicCommand | |
T | : | new() |
|
inline |
Creates a new instance of the command and calls Acquire.
Implements Photon.Deterministic.IDeterministicCommandFactory.
|
inline |
Creates a new command or retrieves one from the pool.
Implements Photon.Deterministic.IDeterministicCommandPool.
|
inline |
Release a command and return it to the pool.
cmd | Command instance |
true
if successfully returned to the poolImplements Photon.Deterministic.IDeterministicCommandPool.
Type Photon.Deterministic.DeterministicCommandPool< T >.CommandType => typeof(T) |
The type of the command that the pool is managing.