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

Event the game passes between a MsgSource and a MsgSink. More...

#include <playbacktogglemsg.h>

Inheritance diagram for PlaybackToggleMsg:
Collaboration diagram for PlaybackToggleMsg:

Public Member Functions

 PlaybackToggleMsg ()
 Construct a message with the flag unset.
 PlaybackToggleMsg (int nOn)
 Report a playback toggle.
virtual Message * Clone ()
 Produce a heap copy of this message.
virtual int Type ()
 Report this message's registered identity.
virtual const char * GetName () const
 Report this message's class name.
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.
virtual void saveGuts (OBStream &stream) const
 Write this message's payload to an output stream.
virtual void restoreGuts (IBStream &stream)
 Read this message's payload from an input 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 message 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.

Public Attributes

int mOn

Detailed Description

Event the game passes between a MsgSource and a MsgSink.

Its RTTI descriptor is at 0x00901db0. It has Message as its one base. The object is 0x8 bytes and its vtable is at 0x007ce6d8. The allocation in New() and the allocation in Clone() report the same size.

The payload layout comes from the run of field copies in Clone(). mOn is public because Overlay::OnPlaybackToggle() at 0x0041f9a8 reads it directly with no accessor in the image. It copies the flag into its own state and, when the flag is set, shows Press the SELECT button to edit.

The destructor at 0x00116120 is compiler-generated and has no declaration here. The routine at 0x00116158 is a further emission of the type-information accessor.

Constructor & Destructor Documentation

◆ PlaybackToggleMsg() [1/2]

PlaybackToggleMsg::PlaybackToggleMsg ( )
inline

Construct a message with the flag unset.

Inline. New() expands it. A declaration is required because the class declares a second constructor.

◆ PlaybackToggleMsg() [2/2]

PlaybackToggleMsg::PlaybackToggleMsg ( int nOn)
inlineexplicit

Report a playback toggle.

Inline, with no address of its own. Gamer's build at 0x00110ff4 expands it on its stack with its own word at +0x4c.

Parameters
nOnNon-zero when playback starts.

Member Function Documentation

◆ New()

Message * PlaybackToggleMsg::New ( )
static

Produce a default-constructed message on the heap.

The translation unit at 0x003d9818 registers this factory against identity 316.

Returns
The message.
Ghidra address:
NTSC-U/C: 0x003d7248
Ghidra address:
PAL: 0x0040f148

◆ Clone()

virtual Message * PlaybackToggleMsg::Clone ( )
virtual

Produce a heap copy of this message.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x001161d0
Ghidra address:
PAL: 0x00116678

Implements Message.

◆ Type()

virtual int PlaybackToggleMsg::Type ( )
virtual

Report this message's registered identity.

Returns
g_nPlaybackToggleMsgType.
Ghidra address:
NTSC-U/C: 0x00116218
Ghidra address:
PAL: 0x001166c0

Implements Message.

◆ GetName()

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

Report this message's class name.

Returns
The literal PlaybackToggleMsg.
Ghidra address:
NTSC-U/C: 0x00116228
Ghidra address:
PAL: 0x001166d0

Implements Message.

Member Data Documentation

◆ mOn

int PlaybackToggleMsg::mOn

Non-zero when playback starts, zero when it stops. +0x04


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