resonance 1.0.1
Loading...
Searching...
No Matches
SCPlayerJoinedPacket Class Reference

Network packet the game sends between game systems. More...

#include <scplayerjoinedpacket.h>

Inheritance diagram for SCPlayerJoinedPacket:
Collaboration diagram for SCPlayerJoinedPacket:

Public Member Functions

 SCPlayerJoinedPacket ()
 Construct a packet with a default player record.
virtual Message * Clone ()
 Produce a heap copy of this packet.
virtual int Type ()
 Report this packet's registered identity.
virtual const char * GetName () const
 Report this packet's class name.
virtual void PrintExtra (std::ostream &stream) const
 Write the player record to a diagnostic stream through PlayerInfo::Print().
virtual void saveGuts (OBStream &stream) const
 Write the Packet words and the player record to a stream.
virtual void restoreGuts (IBStream &stream)
 Read the Packet words and the player record back from a stream.
Public Member Functions inherited from ToAllNetManagersPacket
 ToAllNetManagersPacket ()
 Route the packet with the pair 3 and 0.
Public Member Functions inherited from Message
void * operator new (size_t nSize)
 Allocate a message from the tagged heap under the tag MSG.
void operator delete (void *pBlock)
 Release a message to the tagged heap under the tag MSG.
virtual ~Message ()
 Vtable slot 1.
std::ostream & Print (std::ostream &stream) const
 Write this message to a diagnostic stream as {GetName() PrintExtra()}.

Static Public Member Functions

static Message * New ()
 Produce a default-constructed packet on the heap.
Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.

Additional Inherited Members

Protected Member Functions inherited from Packet
 Packet (int nDestination, int nDestinationSystem)
 Set the two routing words and mark the remaining two as unset.
Protected Attributes inherited from Packet
int mDestination
int mDestinationSystem
int mClientId
 The client the packet concerns, or -1 until set.
int mTargetClientId
 A second client identifier, -1 until set.

Detailed Description

Network packet the game sends between game systems.

Its RTTI descriptor is at 0x00902050. It has ToAllNetManagersPacket as its one base. The object is 0x54 bytes and its vtable is at 0x00814800. The payload comes from the copy constructor at 0x003f31c8. Clone() delegates to it, and the payload accounts for the allocation exactly. The four words Packet provides are declared there rather than here.

The payload is one PlayerInfo, and saveGuts(), restoreGuts(), and PrintExtra() hand it to PlayerInfo's own virtual Save(), Load(), and Print() after the Packet words.

The destructor at 0x003ed8f8 is compiler-generated and has no declaration here.

Constructor & Destructor Documentation

◆ SCPlayerJoinedPacket()

SCPlayerJoinedPacket::SCPlayerJoinedPacket ( )

Construct a packet with a default player record.

The image lists no caller for the out-of-line body. New() expands the same stores in place.

Ghidra address:
NTSC-U/C: 0x003ef7b0
Ghidra address:
PAL: 0x00427da0

Member Function Documentation

◆ New()

Message * SCPlayerJoinedPacket::New ( )
static

Produce a default-constructed packet on the heap.

The registry the translation unit at 0x003ed2e0 builds stores this address against g_nSCPlayerJoinedPacketType.

Returns
The packet.
Ghidra address:
NTSC-U/C: 0x003e4cf8
Ghidra address:
PAL: 0x0041cf78

◆ Clone()

virtual Message * SCPlayerJoinedPacket::Clone ( )
virtual

Produce a heap copy of this packet.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003ef718
Ghidra address:
PAL: 0x00427d08

Implements Message.

◆ Type()

virtual int SCPlayerJoinedPacket::Type ( )
virtual

Report this packet's registered identity.

Returns
g_nSCPlayerJoinedPacketType.
Ghidra address:
NTSC-U/C: 0x003ef790
Ghidra address:
PAL: 0x00427d80

Implements Message.

◆ GetName()

virtual const char * SCPlayerJoinedPacket::GetName ( ) const
virtual

Report this packet's class name.

Returns
The literal SCPlayerJoinedPacket.
Ghidra address:
NTSC-U/C: 0x003ef7a0
Ghidra address:
PAL: 0x00427d90

Implements Message.

◆ PrintExtra()

virtual void SCPlayerJoinedPacket::PrintExtra ( std::ostream & stream) const
virtual

Write the player record to a diagnostic stream through PlayerInfo::Print().

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x003f2100
Ghidra address:
PAL: 0x0042a648

Reimplemented from Message.

◆ saveGuts()

virtual void SCPlayerJoinedPacket::saveGuts ( OBStream & stream) const
virtual

Write the Packet words and the player record to a stream.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x003e5fb8
Ghidra address:
PAL: 0x0041e298

Reimplemented from Packet.

◆ restoreGuts()

virtual void SCPlayerJoinedPacket::restoreGuts ( IBStream & stream)
virtual

Read the Packet words and the player record back from a stream.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x003f2048
Ghidra address:
PAL: 0x0042a590

Reimplemented from Packet.


The documentation for this class was generated from the following file: