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

The transport of the packets of the game over the online session of LaunchpadRT. More...

#include <transportrt.h>

Inheritance diagram for TransportRT:
Collaboration diagram for TransportRT:

Public Member Functions

 TransportRT ()
 Construct a closed transport with no sink.
 ~TransportRT () override
 Clear TheTransportRT and TheNetTransport.
void SetSink (MsgSink *pSink) override
 Set mSink.
void Send (ExternalPacket &packet) override
 Send a packet through the session while the transport is open.
bool IsHost () override
 Report whether this console hosts the session.
void Leave () override
 Leave the game of the session.
void ReportScores (const std::vector< NetGameScore > &scores) override
 Send the final scores of the game from the host.
void Notify (Message *pMsg)
 Pass a message to mSink while the transport is open.
void Receive (Packet *pPacket)
 Pass a received packet to mSink while the transport is open, unless its sender left.
void PlayerAborted (int nId)
 Note a player who left, and report the player to mSink while the transport is open.
void SetOpen (int nOpen)
 Open or close the transport.
MsgSink * GetSink () const
int GetOpen () const
const std::vector< int > & GetAborted () const
Public Member Functions inherited from NetTransport
virtual ~NetTransport ()
 Release the transport.

Detailed Description

The transport of the packets of the game over the online session of LaunchpadRT.

The RTTI includes the class name and records NetTransport as the base. The vtable is at 0x003d6510, and the object is 0x1c bytes. The constructor stores the instance in TheTransportRT and TheNetTransport. The transport passes packets on only while it is open.

Constructor & Destructor Documentation

◆ TransportRT()

TransportRT::TransportRT ( )

Construct a closed transport with no sink.

Ghidra address:
NTSC-U/C: 0x0026b088
Ghidra address:
PAL: 0x00274c18

◆ ~TransportRT()

TransportRT::~TransportRT ( )
override

Clear TheTransportRT and TheNetTransport.

Ghidra address:
NTSC-U/C: 0x0026b0f0
Ghidra address:
PAL: 0x00274c80

Member Function Documentation

◆ SetSink()

void TransportRT::SetSink ( MsgSink * pSink)
overridevirtual

Set mSink.

Parameters
pSinkThe sink, or null.
Ghidra address:
NTSC-U/C: 0x0026b3f8
Ghidra address:
PAL: 0x00274f88

Implements NetTransport.

◆ Send()

void TransportRT::Send ( ExternalPacket & packet)
overridevirtual

Send a packet through the session while the transport is open.

Parameters
packetThe packet.
Ghidra address:
NTSC-U/C: 0x0026b400
Ghidra address:
PAL: 0x00274f90

Implements NetTransport.

◆ IsHost()

bool TransportRT::IsHost ( )
overridevirtual

Report whether this console hosts the session.

Returns
Whether a session exists and this console has the identifier of the host.
Ghidra address:
NTSC-U/C: 0x0026b438
Ghidra address:
PAL: 0x00274fc8

Implements NetTransport.

◆ Leave()

void TransportRT::Leave ( )
overridevirtual

Leave the game of the session.

Ghidra address:
NTSC-U/C: 0x0026b458
Ghidra address:
PAL: 0x00274fe8

Implements NetTransport.

◆ ReportScores()

void TransportRT::ReportScores ( const std::vector< NetGameScore > & scores)
overridevirtual

Send the final scores of the game from the host.

Parameters
scoresThe score of each player.
Ghidra address:
NTSC-U/C: 0x0026b480
Ghidra address:
PAL: 0x00275010

Implements NetTransport.

◆ Notify()

void TransportRT::Notify ( Message * pMsg)

Pass a message to mSink while the transport is open.

The name is inferred.

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x0026b178
Ghidra address:
PAL: 0x00274d08

◆ Receive()

void TransportRT::Receive ( Packet * pPacket)

Pass a received packet to mSink while the transport is open, unless its sender left.

The name is inferred.

Parameters
pPacketThe packet.
Ghidra address:
NTSC-U/C: 0x0026b1b8
Ghidra address:
PAL: 0x00274d48

◆ PlayerAborted()

void TransportRT::PlayerAborted ( int nId)

Note a player who left, and report the player to mSink while the transport is open.

The name is inferred.

Parameters
nIdThe player's identifier in the session.
Ghidra address:
NTSC-U/C: 0x0026b240
Ghidra address:
PAL: 0x00274dd0

◆ SetOpen()

void TransportRT::SetOpen ( int nOpen)

Open or close the transport.

Opening forgets the players who left.

The name is inferred.

Parameters
nOpenNon-zero to open the transport.
Ghidra address:
NTSC-U/C: 0x0026b3e0
Ghidra address:
PAL: 0x00274f70

◆ GetSink()

MsgSink * TransportRT::GetSink ( ) const
inline
Returns
The sink the messages of the game go to, or null. Borrowed.

◆ GetOpen()

int TransportRT::GetOpen ( ) const
inline
Returns
Non-zero while the game runs.

◆ GetAborted()

const std::vector< int > & TransportRT::GetAborted ( ) const
inline
Returns
The players who exited the game.

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