Packet the host sends when the settings of the game change.
More...
#include <gameparamspkt.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 when the settings of the game change.
The RTTI records the class as deriving from InternalPacket. The members Clone(), Type(), and GetName() are inline.
◆ GameParamsPkt() [1/2]
| GameParamsPkt::GameParamsPkt |
( |
| ) |
|
|
default |
Construct a packet with the default settings.
Inline. New() expands it.
◆ GameParamsPkt() [2/2]
Construct a packet for every peer, ordered and guaranteed.
Inline.
- Parameters
-
| params | The settings of the game. |
◆ New()
Produce a default-constructed packet on the heap.
- Returns
- The packet.
- Ghidra address:
- NTSC-U/C: 0x002676d0
- Ghidra address:
- PAL: 0x002713a8
◆ operator new()
| void * GameParamsPkt::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 GameParamsPkt::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a packet.
- Parameters
-
◆ Clone()
Produce a heap copy of this packet.
- Returns
- The copy.
Implements Message.
◆ Type()
| int GameParamsPkt::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report this packet's registered identity.
- Returns
- g_nGameParamsPktType.
Implements Message.
◆ GetName()
| const char * GameParamsPkt::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ PrintExtra()
| void GameParamsPkt::PrintExtra |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Write the sender, the receiver, and the settings.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x002698c0
- Ghidra address:
- PAL: 0x00273478
Reimplemented from Message.
◆ saveGuts()
| void GameParamsPkt::saveGuts |
( |
BinStream & | stream | ) |
const |
|
overridevirtual |
Write the settings.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00269900
- Ghidra address:
- PAL: 0x002734b8
Reimplemented from Message.
◆ restoreGuts()
| void GameParamsPkt::restoreGuts |
( |
BinStream & | stream | ) |
|
|
overridevirtual |
Read the settings.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x00269928
- Ghidra address:
- PAL: 0x002734e0
Reimplemented from Message.
◆ GetParams()
- Returns
- The settings of the game.
The documentation for this class was generated from the following file: