Packet that reports the track and repeat state of a local player in a remix to the other consoles.
More...
#include <remixerupdatepacket.h>
|
| static Message * | New () |
| | Produce a default-constructed packet on the heap.
|
| static Message * | NewMessage (int nType) |
| | Produce a message of the identified class through the factory list.
|
Packet that reports the track and repeat state of a local player in a remix to the other consoles.
The RTTI records the class as deriving from ExternalPacket. LocalPlayer::Broadcast() sends one in the remix rule set, and each one includes the next value of LocalPlayer::sRemixerUpdateVersion. The members Clone(), Type(), and GetName() are inline.
◆ ~RemixerUpdatePacket()
| RemixerUpdatePacket::~RemixerUpdatePacket |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0033e0c8
- Ghidra address:
- PAL: 0x003ab600
◆ RemixerUpdatePacket() [1/2]
| RemixerUpdatePacket::RemixerUpdatePacket |
( |
| ) |
|
|
inline |
Construct a packet with no track.
Inline. New() expands it.
◆ RemixerUpdatePacket() [2/2]
| RemixerUpdatePacket::RemixerUpdatePacket |
( |
int | nTrack, |
|
|
bool | bRepeat, |
|
|
int | nVersion ) |
|
inline |
Construct a packet with every field set.
Inline. LocalPlayer::Broadcast() expands it on its stack.
- Parameters
-
| nTrack | The index of the player's track. |
| bRepeat | The player's repeat state. |
| nVersion | The update's sequence number. |
◆ New()
| Message * RemixerUpdatePacket::New |
( |
| ) |
|
|
static |
Produce a default-constructed packet on the heap.
- Returns
- The packet.
- Ghidra address:
- NTSC-U/C: 0x00123258
- Ghidra address:
- PAL: 0x001249d8
◆ operator new()
| void * RemixerUpdatePacket::operator new |
( |
size_t | nSize | ) |
|
|
inline |
Allocate a packet, billed to the class name.
- Parameters
-
| nSize | The object size the compiler supplies. |
- Returns
- The block.
◆ operator delete()
| void RemixerUpdatePacket::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a packet.
- Parameters
-
◆ Clone()
| Message * RemixerUpdatePacket::Clone |
( |
| ) |
|
|
inlineoverridevirtual |
Produce a heap copy of this packet.
- Returns
- The copy.
- Ghidra address:
- NTSC-U/C: 0x0033e168
- Ghidra address:
- PAL: 0x003ab6a0
Implements Message.
◆ Type()
| int RemixerUpdatePacket::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report this packet's registered identity.
- Returns
- g_nRemixerUpdatePacketType.
- Ghidra address:
- NTSC-U/C: 0x0033e1e8
- Ghidra address:
- PAL: 0x003ab720
Implements Message.
◆ GetName()
| const char * RemixerUpdatePacket::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
Report this packet's class name.
- Returns
- The literal RemixerUpdatePacket.
- Ghidra address:
- NTSC-U/C: 0x0033e1f8
- Ghidra address:
- PAL: 0x003ab730
Implements Message.
◆ PrintExtra()
| void RemixerUpdatePacket::PrintExtra |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Print the track, the repeat state, and the version.
- Parameters
-
| stream | The stream to print to. |
- Ghidra address:
- NTSC-U/C: 0x0012fb80
- Ghidra address:
- PAL: 0x001313a8
Reimplemented from Packet.
◆ saveGuts()
| void RemixerUpdatePacket::saveGuts |
( |
BinStream & | stream | ) |
const |
|
overridevirtual |
Write the fields packed into one word.
The track takes the low three bits, the repeat state one bit, and the version the next 28.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x0012fa88
- Ghidra address:
- PAL: 0x001312b0
Reimplemented from Message.
◆ restoreGuts()
| void RemixerUpdatePacket::restoreGuts |
( |
BinStream & | stream | ) |
|
|
overridevirtual |
Read the word saveGuts() writes back into the fields.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x0012fb08
- Ghidra address:
- PAL: 0x00131330
Reimplemented from Message.
◆ GetRepeat()
| int RemixerUpdatePacket::GetRepeat |
( |
| ) |
const |
|
inline |
- Returns
- The player's repeat state.
◆ GetTrack()
| int RemixerUpdatePacket::GetTrack |
( |
| ) |
const |
|
inline |
- Returns
- The index of the player's track.
◆ GetVersion()
| int RemixerUpdatePacket::GetVersion |
( |
| ) |
const |
|
inline |
- Returns
- The update's sequence number.
The documentation for this class was generated from the following file: