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

Front-end renderer that draws nothing, chosen in place of MetRenderer by a configuration option. More...

#include <metnullrenderer.h>

Inheritance diagram for MetNullRenderer:
Collaboration diagram for MetNullRenderer:

Public Member Functions

 MetNullRenderer ()
 Construct the renderer and start the front-end loads.
virtual ~MetNullRenderer ()
 Destroy MetFreqMakerAssetManager through MetFreqMakerAssetManager::Destroy().
virtual void DispatchPriv (Message *pMsg)
 Handle one message.
virtual void Update ()
 Unrecovered.
virtual void Draw ()
 Start the game once the ruleset's level has loaded, then pump the timers in the front end.
Public Member Functions inherited from RendererBase
 RendererBase ()
 Start the queue with the router as its one sink.
virtual ~RendererBase ()
 Release the queue and the router.
virtual void Dispatch (Message *pMsg)
 Accept a message into the queue.
virtual void Start ()
 Start the renderer running.
virtual void Stop ()
 Stop the renderer running.
virtual void PollMessages ()
 Deliver every queued message.
virtual void UpdateSimple ()
 Advance the renderer by one frame without the full update.
virtual void DrawSimple ()
 Draw the frame without the full draw.
Public Member Functions inherited from MsgSink
void * operator new (size_t nSize)
 Allocate a sink from the tagged heap under the tag "MsgSink".
void operator delete (void *pBlock)
 Release a sink to the tagged heap.
virtual ~MsgSink ()

Detailed Description

Front-end renderer that draws nothing, chosen in place of MetRenderer by a configuration option.

Its RTTI descriptor is at 0x008eff00. It has RendererBase as its one public base at offset 0. MetaGameWorld::CreateRenderer() allocates it at 0x88 bytes under the MsgSink tag when PythonEvt::QueryOption() reports option 0xcb set. Its vtable at 0x00801d58 has eleven entries, the same length as RendererBase's. Against that table it overrides the destructor and slots 3, 7, and 8, the three slots RendererBase declares pure. Slots 4 and 5 have two-instruction empty bodies at 0x00311a10 and 0x00311a18, the base's empty bodies re-emitted rather than overrides, and are not declared.

In place of the front-end screens, the X button evaluates a ruleset script template and loads the level it describes, and slot 8 starts a local game once the load finishes.

Constructor & Destructor Documentation

◆ MetNullRenderer()

MetNullRenderer::MetNullRenderer ( )

Construct the renderer and start the front-end loads.

Seeds the R250 generator with a fixed value, creates MetFreqMakerAssetManager and starts its asset load, creates GlobalSettings, enables drawing on the game manager, and rebuilds the stage lists.

Ghidra address:
NTSC-U/C: 0x0030e2c8
Ghidra address:
PAL: 0x00333f20

◆ ~MetNullRenderer()

virtual MetNullRenderer::~MetNullRenderer ( )
virtual

Destroy MetFreqMakerAssetManager through MetFreqMakerAssetManager::Destroy().

Ghidra address:
NTSC-U/C: 0x0030e400
Ghidra address:
PAL: 0x00334090

Member Function Documentation

◆ DispatchPriv()

virtual void MetNullRenderer::DispatchPriv ( Message * pMsg)
virtual

Handle one message.

MsgSink slot 3, pure in RendererBase.

Only a RawControllerMsg is acted on, through OnRawController().

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x00311ff0
Ghidra address:
PAL: 0x00337d50

Implements MsgSink.

◆ Update()

virtual void MetNullRenderer::Update ( )
virtual

Unrecovered.

RendererBase slot 7, pure in the base, with an empty body here.

Ghidra address:
NTSC-U/C: 0x00311a20
Ghidra address:
PAL: 0x00337780

Implements RendererBase.

◆ Draw()

virtual void MetNullRenderer::Draw ( )
virtual

Start the game once the ruleset's level has loaded, then pump the timers in the front end.

RendererBase slot 8, pure in the base. Both Renderer::PollCommon() and Renderer::PollLevel() run on every call. When a load is pending and both report done, the roster is replaced with one default persona per player, each identified as freq player and its index, the game mode becomes solo for one player and local otherwise, the settings are applied, and a BeginGameLocalMsg is queued. MainLoop::PumpTimers() runs whenever there is no game world.

Ghidra address:
NTSC-U/C: 0x0030f320
Ghidra address:
PAL: 0x00335038

Implements RendererBase.


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