Packet that describes one player of the session.
More...
#include <clientinfopkt.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 describes one player of the session.
The RTTI records the class as deriving from InternalPacket. The members Clone(), Type(), and GetName() are inline. The member names are inferred.
◆ ClientInfoPkt() [1/2]
| ClientInfoPkt::ClientInfoPkt |
( |
| ) |
|
|
default |
Construct a packet with a default LobbyPlayer.
The rest of mPlayer is left unset.
Inline. New() expands it.
◆ ClientInfoPkt() [2/2]
Construct a packet for one peer, ordered and guaranteed.
Inline.
- Parameters
-
| player | The player. |
| nReceiver | The peer the packet is for. |
◆ New()
Produce a default-constructed packet on the heap.
- Returns
- The packet.
- Ghidra address:
- NTSC-U/C: 0x00267538
- Ghidra address:
- PAL: 0x00271210
◆ operator new()
| void * ClientInfoPkt::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 ClientInfoPkt::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a packet.
- Parameters
-
◆ Clone()
Produce a heap copy of this packet.
- Returns
- The copy.
Implements Message.
◆ Type()
| int ClientInfoPkt::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report this packet's registered identity.
- Returns
- g_nClientInfoPktType.
Implements Message.
◆ GetName()
| const char * ClientInfoPkt::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ PrintExtra()
| void ClientInfoPkt::PrintExtra |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Write the sender, the receiver, and the player.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00269458
- Ghidra address:
- PAL: 0x00273030
Reimplemented from Message.
◆ saveGuts()
| void ClientInfoPkt::saveGuts |
( |
BinStream & | stream | ) |
const |
|
overridevirtual |
Write the player.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00269498
- Ghidra address:
- PAL: 0x00273070
Reimplemented from Message.
◆ restoreGuts()
| void ClientInfoPkt::restoreGuts |
( |
BinStream & | stream | ) |
|
|
overridevirtual |
Read the player.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x002694c0
- Ghidra address:
- PAL: 0x00273098
Reimplemented from Message.
◆ GetPlayer()
The documentation for this class was generated from the following file: