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

One advertised network game: where it is hosted and the settings it plays. More...

#include <gameinfo.h>

Public Member Functions

virtual ~GameInfo ()
 Slot 1.
virtual void Save (OBStream &stream)
 Write the address, the world identifier, the host, the settings, and the status.
virtual void Load (IBStream &stream)
 Read back what Save() writes.
void Print (std::ostream &stream)
 Write the fields to a diagnostic stream.

Detailed Description

One advertised network game: where it is hosted and the settings it plays.

Its RTTI descriptor is built by the type function at 0x001879c8, and it has no base. The members are a TransportAddress at +0x00, a word at +0x20, a string at +0x24, a GameParams at +0x2c, and a word at +0x64, and the vptr follows at +0x68. Its table at 0x007db578 has four entries (the type function, the destructor, Save(), and Load()). The member titles after the address come from the labels Print() writes, mediusWorldID=, host=, and status=.

No constructor is emitted, and no routine of the class has a caller in the image.

Constructor & Destructor Documentation

◆ ~GameInfo()

virtual GameInfo::~GameInfo ( )
virtual

Slot 1.

The body is empty, and the compiler frees the members' strings in reverse order.

Ghidra address:
NTSC-U/C: 0x00187a08
Ghidra address:
PAL: 0x0018d230

Member Function Documentation

◆ Save()

virtual void GameInfo::Save ( OBStream & stream)
virtual

Write the address, the world identifier, the host, the settings, and the status.

Everything after the address is chained through the stream each transfer returns.

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

◆ Load()

virtual void GameInfo::Load ( IBStream & stream)
virtual

Read back what Save() writes.

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

◆ Print()

void GameInfo::Print ( std::ostream & stream)

Write the fields to a diagnostic stream.

The label addr= is written with nothing after it, and mediusWorldID= follows at once, so the address itself is not printed.

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

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