|
wavelength 1.0.0
|
Input event that rotates a player's view of the tracks by one track. More...
#include <rotateevent.h>
Public Types | |
| enum | Direction { kDirectionPrevious = 0 , kDirectionNext = 1 } |
| Values of mDirection. More... | |
Public Member Functions | |
| RotateEvent ()=default | |
| Construct an event with unset members. | |
| RotateEvent (BinStream &stream) | |
| Construct the event from a recording. | |
| void | Save (BinStream &stream) const |
| Record the player in one byte and the direction in four bytes of the console's byte order. | |
| void | Load (BinStream &stream) |
| Read the event Save() records. | |
| unsigned char | GetPlayer () const |
| void | SetPlayer (unsigned char nPlayer) |
| int | GetDirection () const |
| void | SetDirection (int nDirection) |
Input event that rotates a player's view of the tracks by one track.
The RTTI includes the name as the argument of the input command template. The input router builds one for each rotation and for each repeat of a held rotation.
|
default |
Construct an event with unset members.
Inline.
|
explicit |
Construct the event from a recording.
| stream | The stream to read from. |
| void RotateEvent::Save | ( | BinStream & | stream | ) | const |
Record the player in one byte and the direction in four bytes of the console's byte order.
| stream | The stream to write to. |
| void RotateEvent::Load | ( | BinStream & | stream | ) |
Read the event Save() records.
| stream | The stream to read from. |
|
inline |
|
inline |
| nPlayer | The player index. |
|
inline |
|
inline |
| nDirection | One of Direction. |