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

Scheduler command that ends a recording. More...

#include <endrecordingcmd.h>

Inheritance diagram for EndRecordingCmd:
Collaboration diagram for EndRecordingCmd:

Public Member Functions

 EndRecordingCmd ()
 Construct a command with no recorder, as NewEndRecordingCmd() does.
 EndRecordingCmd (GameRecorder *pRecorder)
 Prepare the end of one recording.
virtual int CmdID ()
 Report sCmdID.
virtual void Execute ()
 Run GameRecorder::FinishUp() on the recorder.
virtual void Print (std::ostream &stream)
 Write {EndRecordingCmd}.
virtual void saveGuts (OBStream &stream) const
 Write nothing.
virtual void UnusedHook ()
 Do nothing.
Public Member Functions inherited from Sch::Command
 Command ()
 Construct a command that the scheduler has not queued.
virtual ~Command ()
 Release the command.
virtual void restoreGuts (IBStream &stream)
 Read this command's payload back.
Public Member Functions inherited from Attachment
 Attachment ()
virtual ~Attachment ()
int Release ()
 Give back one reference and destroy the object once the last one is gone.
virtual void Destroy ()
 Destroy the object.

Static Public Attributes

static int sCmdID
 Identifier the class streams itself under.

Additional Inherited Members

Static Public Member Functions inherited from Sch::Command
static Command * NewCommand (int nCmdID)
 Produce a command of the identified class through the factory list.
Static Public Member Functions inherited from Attachment
static void ReleaseIfSet (Attachment *pAttachment)
 Give back one reference to an object that may be null.
Public Attributes inherited from Sch::Command
int mQueued
 Non-zero while the command sits in the scheduler's queue.
Public Attributes inherited from Attachment
int mRefs

Detailed Description

Scheduler command that ends a recording.

EndRecordingCmd is one of the five ordinary Sch::Command subclasses. Its table at 0x007cdcb0 has nine entries: it overrides saveGuts() with an empty body of its own, inherits Sch::Command::restoreGuts() at 0x00539f28, and adds one virtual of its own at slot 8, which is empty. GameRecorder::ScheduleEnd() allocates the 0x10-byte object with the untagged allocator and expands the constructor. The static initialiser of the unit registers NewEndRecordingCmd() under identifier 6 with the factory registrar.

The destructor at 0x0010ef30 is implicitly declared.

Constructor & Destructor Documentation

◆ EndRecordingCmd() [1/2]

EndRecordingCmd::EndRecordingCmd ( )
inline

Construct a command with no recorder, as NewEndRecordingCmd() does.

◆ EndRecordingCmd() [2/2]

EndRecordingCmd::EndRecordingCmd ( GameRecorder * pRecorder)
inlineexplicit

Prepare the end of one recording.

Parameters
pRecorderThe recorder to end.

Member Function Documentation

◆ CmdID()

virtual int EndRecordingCmd::CmdID ( )
virtual

Report sCmdID.

Returns
The class's command identifier.
Ghidra address:
NTSC-U/C: 0x0010efc8
Ghidra address:
PAL: 0x0010f428

Implements Sch::Command.

◆ Execute()

virtual void EndRecordingCmd::Execute ( )
virtual

Run GameRecorder::FinishUp() on the recorder.

Ghidra address:
NTSC-U/C: 0x0010efa8
Ghidra address:
PAL: 0x0010f408

Implements Sch::Command.

◆ Print()

virtual void EndRecordingCmd::Print ( std::ostream & stream)
virtual

Write {EndRecordingCmd}.

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

Reimplemented from Sch::Command.

◆ saveGuts()

virtual void EndRecordingCmd::saveGuts ( OBStream & stream) const
virtual

Write nothing.

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

Reimplemented from Sch::Command.

◆ UnusedHook()

virtual void EndRecordingCmd::UnusedHook ( )
virtual

Do nothing.

Slot 8, the one virtual this class adds.

The body is empty and no caller is recovered.

Ghidra address:
NTSC-U/C: 0x0010efe0
Ghidra address:
PAL: 0x0010f440

Member Data Documentation

◆ sCmdID

int EndRecordingCmd::sCmdID
static

Identifier the class streams itself under.

The word at 0x006693e8 starts as 6.

Ghidra address:
NTSC-U/C: 0x006693e8
Ghidra address:
PAL: 0x006a9f78

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