|
wavelength 1.0.0
|
One queued run of a command. More...
#include <scheduler.h>
Public Member Functions | |
| CommandInfo (Ptr< Command > command, float fTime, int nTick, const CommandId &id, int nRecordable) | |
| Construct a run. | |
| bool | operator< (const CommandInfo &other) const |
| Report whether this run comes before another. | |
| void | Save (BinStream &stream) const |
| Write the run to a recording. | |
| void | Load (BinStream &stream) |
| Read a run Save() wrote. | |
| const Ptr< Command > & | GetCommand () const |
| float | GetTime () const |
| int | GetTick () const |
| CommandId | GetId () const |
| int | GetRecordable () const |
One queued run of a command.
The RTTI includes the nested name. The class is not polymorphic, and the object is 0x14 bytes. The queue orders the runs by time, and a recordable run before another at the same time.
|
inline |
Construct a run.
| command | The command. |
| fTime | The time it runs at, in milliseconds. |
| nTick | The tick it runs at. |
| id | The tag stored with the run. |
| nRecordable | Non-zero when a recording writes the run. |
| bool Scheduler::CommandInfo::operator< | ( | const CommandInfo & | other | ) | const |
Report whether this run comes before another.
| other | The other run. |
| void Scheduler::CommandInfo::Save | ( | BinStream & | stream | ) | const |
Write the run to a recording.
| stream | The stream to write to. |
| void Scheduler::CommandInfo::Load | ( | BinStream & | stream | ) |
Read a run Save() wrote.
The tag becomes TheDefaultCommandId.
| stream | The stream to read from. |
|
inline |
|
inline |
|
inline |
|
inline |