Packet the host sends a console that joins the session, with the colour of the console and the settings of the game.
More...
#include <welcomepkt.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 the host sends a console that joins the session, with the colour of the console and the settings of the game.
The RTTI records the class as deriving from InternalPacket. The members Clone(), Type(), and GetName() are inline. The member names are inferred.
◆ WelcomePkt() [1/2]
| WelcomePkt::WelcomePkt |
( |
| ) |
|
|
default |
Construct a packet with the default settings.
mColor is left unset.
Inline. New() expands it.
◆ WelcomePkt() [2/2]
| WelcomePkt::WelcomePkt |
( |
int | nReceiver, |
|
|
int | nColor, |
|
|
const NetGameParams & | params ) |
|
inline |
Construct a packet for one peer, ordered and guaranteed.
Inline.
- Parameters
-
| nReceiver | The peer the packet is for. |
| nColor | The colour of the slot of the console, 0 to 3. |
| params | The settings of the game. |
◆ New()
Produce a default-constructed packet on the heap.
- Returns
- The packet.
- Ghidra address:
- NTSC-U/C: 0x00267430
- Ghidra address:
- PAL: 0x00271108
◆ operator new()
| void * WelcomePkt::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 WelcomePkt::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a packet.
- Parameters
-
◆ Clone()
Produce a heap copy of this packet.
- Returns
- The copy.
Implements Message.
◆ Type()
Report this packet's registered identity.
- Returns
- g_nWelcomePktType.
Implements Message.
◆ GetName()
| const char * WelcomePkt::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ PrintExtra()
| void WelcomePkt::PrintExtra |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Write the sender, the receiver, the colour, and the settings.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x002692a0
- Ghidra address:
- PAL: 0x00272ea8
Reimplemented from Packet.
◆ saveGuts()
| void WelcomePkt::saveGuts |
( |
BinStream & | stream | ) |
const |
|
overridevirtual |
Write the colour as a byte and the settings.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x002692f8
- Ghidra address:
- PAL: 0x00272f00
Reimplemented from Message.
◆ restoreGuts()
| void WelcomePkt::restoreGuts |
( |
BinStream & | stream | ) |
|
|
overridevirtual |
Read what saveGuts() wrote.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x00269358
- Ghidra address:
- PAL: 0x00272f50
Reimplemented from Message.
◆ GetColor()
| int WelcomePkt::GetColor |
( |
| ) |
const |
|
inline |
- Returns
- The colour of the slot of the console, 0 to 3.
◆ GetParams()
- Returns
- The settings of the game.
The documentation for this class was generated from the following file: