Packet that reports a gem placed or removed in the remix editor.
More...
#include <editgempacket.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 a gem placed or removed in the remix editor.
The RTTI records the class as deriving from ExternalPacket. Delivery is guaranteed. The members Clone(), Type(), and GetName() are inline. The member names are inferred.
◆ ~EditGemPacket()
| EditGemPacket::~EditGemPacket |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x00335808
- Ghidra address:
- PAL: 0x003a2db8
◆ EditGemPacket() [1/2]
| EditGemPacket::EditGemPacket |
( |
| ) |
|
|
inline |
Construct a packet with no track and no gem.
Inline. New() expands it.
◆ EditGemPacket() [2/2]
| EditGemPacket::EditGemPacket |
( |
int | nTrack, |
|
|
int | nSlot, |
|
|
int | nTick, |
|
|
bool | bRepeat ) |
|
inline |
Construct a packet for a gem placed or removed.
Inline. PitchTrack::HandleInput() expands it.
- Parameters
-
| nTrack | The track. |
| nSlot | The gem button of the gem. |
| nTick | The tick of the gem. |
| bRepeat | Whether the edit repeats on every other bar of the section. |
◆ New()
Produce a default-constructed packet on the heap.
- Returns
- The packet.
- Ghidra address:
- NTSC-U/C: 0x001233d8
- Ghidra address:
- PAL: 0x00124b58
◆ operator new()
| void * EditGemPacket::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 EditGemPacket::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a packet.
- Parameters
-
◆ Clone()
Produce a heap copy of this packet.
- Returns
- The copy.
- Ghidra address:
- NTSC-U/C: 0x003358a8
- Ghidra address:
- PAL: 0x003a2e58
Implements Message.
◆ Type()
| int EditGemPacket::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report this packet's registered identity.
- Returns
- g_nEditGemPacketType.
- Ghidra address:
- NTSC-U/C: 0x00335930
- Ghidra address:
- PAL: 0x003a2ee0
Implements Message.
◆ GetName()
| const char * EditGemPacket::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
Report this packet's class name.
- Returns
- The literal EditGemPacket.
- Ghidra address:
- NTSC-U/C: 0x00335940
- Ghidra address:
- PAL: 0x003a2ef0
Implements Message.
◆ saveGuts()
| void EditGemPacket::saveGuts |
( |
BinStream & | stream | ) |
const |
|
overridevirtual |
Write the fields packed into one word.
The track takes three bits, the gem button two, the tick 26, and the repeat flag one.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x0010c348
- Ghidra address:
- PAL: 0x0010da80
Reimplemented from Message.
◆ restoreGuts()
| void EditGemPacket::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: 0x0010c3d8
- Ghidra address:
- PAL: 0x0010db10
Reimplemented from Message.
◆ GetRepeat()
| int EditGemPacket::GetRepeat |
( |
| ) |
const |
|
inline |
- Returns
- Whether the edit repeats on every other bar of the section.
◆ GetSlot()
| int EditGemPacket::GetSlot |
( |
| ) |
const |
|
inline |
- Returns
- The gem button of the gem.
◆ GetTick()
| int EditGemPacket::GetTick |
( |
| ) |
const |
|
inline |
- Returns
- The tick of the gem.
◆ GetTrack()
| int EditGemPacket::GetTrack |
( |
| ) |
const |
|
inline |
- Returns
- The track, in a duel the side of the player who catches the gem.
The documentation for this class was generated from the following file: