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

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

#include <scstartplayingpacket.h>

Inheritance diagram for SCStartPlayingPacket:
Collaboration diagram for SCStartPlayingPacket:

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.
virtual void saveGuts (OBStream &) const
 Write nothing, replacing Packet::saveGuts().
virtual void restoreGuts (IBStream &)
 Read nothing, replacing Packet::restoreGuts().
virtual void PrintExtra (std::ostream &) const
 Write nothing.
Public Member Functions inherited from ToAllGameControllersPacket
 ToAllGameControllersPacket ()
 Route the packet with the pair 3 and 2.
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 0x00902160. It has ToAllGameControllersPacket as its one base. The object is 0x14 bytes and its vtable is at 0x00814698. The payload comes from the copy constructor at 0x003f3720. 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.

Slots 5, 6, and 7 of the table address three empty bodies of this class at 0x003f02a0, 0x003f0290, and 0x003f0298. The two transfer slots replace the non-empty Packet::saveGuts() and Packet::restoreGuts(). The packet therefore crosses the wire as zero bytes, without even the four Packet words. The three bodies lie in the order saveGuts(), restoreGuts(), PrintExtra() rather than in slot order, the shape of three members defined in the class body in that order. PrintExtra() is declared on that evidence alone, because an empty PrintExtra() at a unique address would otherwise be indistinguishable from a re-emission of the empty Message::PrintExtra().

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

Member Function Documentation

◆ New()

Message * SCStartPlayingPacket::New ( )
static

Produce a default-constructed packet on the heap.

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

Returns
The packet.
Ghidra address:
NTSC-U/C: 0x003e4f40
Ghidra address:
PAL: 0x0041d1d8

◆ Clone()

virtual Message * SCStartPlayingPacket::Clone ( )
virtual

Produce a heap copy of this packet.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003f01f8
Ghidra address:
PAL: 0x00428800

Implements Message.

◆ Type()

virtual int SCStartPlayingPacket::Type ( )
virtual

Report this packet's registered identity.

Returns
g_nSCStartPlayingPacketType.
Ghidra address:
NTSC-U/C: 0x003f0270
Ghidra address:
PAL: 0x00428878

Implements Message.

◆ GetName()

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

Report this packet's class name.

Returns
The literal SCStartPlayingPacket.
Ghidra address:
NTSC-U/C: 0x003f0280
Ghidra address:
PAL: 0x00428888

Implements Message.

◆ saveGuts()

virtual void SCStartPlayingPacket::saveGuts ( OBStream & ) const
inlinevirtual

Write nothing, replacing Packet::saveGuts().

Slot 6.

Ghidra address:
NTSC-U/C: 0x003f0290
Ghidra address:
PAL: 0x00428898

Reimplemented from Packet.

◆ restoreGuts()

virtual void SCStartPlayingPacket::restoreGuts ( IBStream & )
inlinevirtual

Read nothing, replacing Packet::restoreGuts().

Slot 7.

Ghidra address:
NTSC-U/C: 0x003f0298
Ghidra address:
PAL: 0x004288a0

Reimplemented from Packet.

◆ PrintExtra()

virtual void SCStartPlayingPacket::PrintExtra ( std::ostream & ) const
inlinevirtual

Write nothing.

Slot 5.

Ghidra address:
NTSC-U/C: 0x003f02a0
Ghidra address:
PAL: 0x004288a8

Reimplemented from Message.


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