Input event that changes the section a player is on.
More...
#include <changesectionevent.h>
Input event that changes the section a player is on.
The RTTI includes the name as the argument of the input command template.
◆ ChangeSectionEvent() [1/2]
| ChangeSectionEvent::ChangeSectionEvent |
( |
| ) |
|
|
default |
Construct an event with unset members.
Inline.
◆ ChangeSectionEvent() [2/2]
| ChangeSectionEvent::ChangeSectionEvent |
( |
BinStream & | stream | ) |
|
|
explicit |
Construct the event from a recording.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x00151560
- Ghidra address:
- PAL: 0x00152dd8
◆ Save()
| void ChangeSectionEvent::Save |
( |
BinStream & | stream | ) |
const |
Record the player in one byte and the direction in four bytes of the console's byte order.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00151588
- Ghidra address:
- PAL: 0x00152e00
◆ Load()
| void ChangeSectionEvent::Load |
( |
BinStream & | stream | ) |
|
Read the event Save() records.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x001515f8
- Ghidra address:
- PAL: 0x00152e58
◆ GetPlayer()
| unsigned char ChangeSectionEvent::GetPlayer |
( |
| ) |
const |
|
inline |
◆ SetPlayer()
| void ChangeSectionEvent::SetPlayer |
( |
unsigned char | nPlayer | ) |
|
|
inline |
◆ GetDirection()
| int ChangeSectionEvent::GetDirection |
( |
| ) |
const |
|
inline |
- Returns
- The direction of the change, 0 or 1.
◆ SetDirection()
| void ChangeSectionEvent::SetDirection |
( |
int | nDirection | ) |
|
|
inline |
- Parameters
-
| nDirection | The direction of the change, 0 or 1. |
The documentation for this class was generated from the following file: