wavelength 1.0.0
Loading...
Searching...
No Matches
LoadGamePkt Class Reference

Packet the host sends every console to load the song of the session. More...

#include <loadgamepkt.h>

Inheritance diagram for LoadGamePkt:
Collaboration diagram for LoadGamePkt:

Public Member Functions

 ~LoadGamePkt () override=default
 Destroy the object.
 LoadGamePkt ()
 Construct a packet for every peer.
void * operator new (size_t nSize)
 Allocate a packet, billed to the class name.
void operator delete (void *pBlock)
 Release a packet.
Message * Clone () override
 Produce a heap copy of this packet.
int Type () override
 Report this packet's registered identity.
const char * GetName () const override
 Report this packet's class name.
Public Member Functions inherited from InternalPacket
int Route () override
 Report that a received packet goes to the online session.
Public Member Functions inherited from Packet
void PrintExtra (PrnStream &stream) const override
 Write the sender and the receiver that are set, as from: and to:.
unsigned char GetFlags () const
int GetReceiver () const
int GetSender () const
void SetSender (int nSender)
Public Member Functions inherited from Message
virtual ~Message ()
 Vtable slot 1.
virtual void saveGuts (BinStream &stream) const
 Write this message's payload to a stream.
virtual void restoreGuts (BinStream &stream)
 Read this message's payload from a stream.
virtual ~Message ()
virtual void Unused1 ()
 Not called by the control.

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

Public Types inherited from Packet
enum  RouteFlag { kRouteTransport = 1 , kRouteLaunchpad = 2 }
 Bits of Route(). More...
Static Public Attributes inherited from Packet
static constexpr int kUnset = -2
 Value of mSender and mReceiver that marks the member as unset.
static constexpr int kAllPeers = -1
 Value of mReceiver that addresses every peer.
static constexpr unsigned char kFlagOrdered = 1
 Bit of mFlags that LaunchpadRT::Send() turns into the second delivery bit of the session library.
static constexpr unsigned char kFlagGuaranteed = 2
 Bit of mFlags that NetTransport::Send() turns into its guaranteed delivery bit.
Protected Member Functions inherited from InternalPacket
 InternalPacket (unsigned char nFlags=0, int nReceiver=kUnset)
 Construct a packet from an unset sender.
Protected Member Functions inherited from Packet
 Packet (unsigned char nFlags, int nReceiver)
 Construct a packet from an unset sender.

Detailed Description

Packet the host sends every console to load the song of the session.

The RTTI records the class as deriving from InternalPacket, and its vtable is at 0x003d48b8. Delivery is guaranteed. The class adds no member, and its payload routines are those of Packet. The members Clone(), Type(), and GetName() are inline.

Constructor & Destructor Documentation

◆ ~LoadGamePkt()

LoadGamePkt::~LoadGamePkt ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x0039a6e0
Ghidra address:
PAL: 0x00408f68

◆ LoadGamePkt()

LoadGamePkt::LoadGamePkt ( )
inline

Construct a packet for every peer.

Inline. New() expands it.

Member Function Documentation

◆ New()

Message * LoadGamePkt::New ( )
static

Produce a default-constructed packet on the heap.

Returns
The packet.
Ghidra address:
NTSC-U/C: 0x002678f8
Ghidra address:
PAL: 0x002715d0

◆ operator new()

void * LoadGamePkt::operator new ( size_t nSize)
inline

Allocate a packet, billed to the class name.

Parameters
nSizeThe object size the compiler supplies.
Returns
The block.

◆ operator delete()

void LoadGamePkt::operator delete ( void * pBlock)
inline

Release a packet.

Parameters
pBlockThe block.

◆ Clone()

Message * LoadGamePkt::Clone ( )
inlineoverridevirtual

Produce a heap copy of this packet.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x0039a760
Ghidra address:
PAL: 0x00408fe8

Implements Message.

◆ Type()

int LoadGamePkt::Type ( )
inlineoverridevirtual

Report this packet's registered identity.

Returns
g_nLoadGamePktType.
Ghidra address:
NTSC-U/C: 0x0039a7c8
Ghidra address:
PAL: 0x00409050

Implements Message.

◆ GetName()

const char * LoadGamePkt::GetName ( ) const
inlineoverridevirtual

Report this packet's class name.

Returns
The literal LoadGamePkt.
Ghidra address:
NTSC-U/C: 0x0039a7d8
Ghidra address:
PAL: 0x00409060

Implements Message.


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