|
wavelength 1.0.0
|
Input event of a button press that names only the player. More...
#include <btnevent.h>
Public Member Functions | |
| BtnEvent ()=default | |
| Construct an event with an unset player. | |
| BtnEvent (BinStream &stream) | |
| Construct the event from a recording. | |
| void | Save (BinStream &stream) const |
| Record the player in one byte. | |
| void | Load (BinStream &stream) |
| Read the event Save() records. | |
| unsigned char | GetPlayer () const |
| void | SetPlayer (unsigned char nPlayer) |
Input event of a button press that names only the player.
The RTTI includes the template with the arguments 3, 4, 5, 8, 9, and 10. The argument is the identifier of the serializable input command that records the event, and it makes each instance a distinct type. Every member is inline.
| kId | The command identifier. |
|
default |
Construct an event with an unset player.
Construct the event from a recording.
| stream | The stream to read from. |
Record the player in one byte.
| stream | The stream to write to. |
Read the event Save() records.
| stream | The stream to read from. |
|
inline |
|
inline |
| nPlayer | The player index. |