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

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

#include <csinitiateplaypacket.h>

Inheritance diagram for CSInitiatePlayPacket:
Collaboration diagram for CSInitiatePlayPacket:

Public Member Functions

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.
Public Member Functions inherited from ToHostPacket
 ToHostPacket ()
 Route the packet with the pair 0 and 0.
Public Member Functions inherited from Packet
virtual void saveGuts (OBStream &stream) const
 Write the four words to a stream.
virtual void restoreGuts (IBStream &stream)
 Read the four words back from a stream.
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.
virtual void PrintExtra (std::ostream &stream) const
 Write this message's payload to a stream.
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 0x00902120. It has ToHostPacket as its one base. The object is 0x14 bytes and its vtable is at 0x00814728. The payload comes from the copy constructor at 0x003f34a8. Clone() delegates to it. The offsets and widths are recovered, but the purpose of each field is not. The four words Packet provides are declared there rather than here.

The class adds no payload. Its allocation is exactly the 0x14 bytes Packet occupies, which is what measures Packet.

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

Member Function Documentation

◆ New()

Message * CSInitiatePlayPacket::New ( )
static

Produce a default-constructed packet on the heap.

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

Returns
The packet.
Ghidra address:
NTSC-U/C: 0x003e4ea0
Ghidra address:
PAL: 0x0041d138

◆ Clone()

virtual Message * CSInitiatePlayPacket::Clone ( )
virtual

Produce a heap copy of this packet.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003efca8
Ghidra address:
PAL: 0x004282b0

Implements Message.

◆ Type()

virtual int CSInitiatePlayPacket::Type ( )
virtual

Report this packet's registered identity.

Returns
g_nCSInitiatePlayPacketType.
Ghidra address:
NTSC-U/C: 0x003efd20
Ghidra address:
PAL: 0x00428328

Implements Message.

◆ GetName()

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

Report this packet's class name.

Returns
The literal CSInitiatePlayPacket.
Ghidra address:
NTSC-U/C: 0x003efd30
Ghidra address:
PAL: 0x00428338

Implements Message.


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