resonance 1.0.1
Loading...
Searching...
No Matches
endrecordingcmd.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "sch/command.h"
6
7class GameRecorder;
8class OBStream;
9
23public:
29
35 explicit EndRecordingCmd(GameRecorder *pRecorder) : mRecorder(pRecorder) {
36 }
37
45 virtual int CmdID();
46
53 virtual void Execute();
54
62 virtual void Print(std::ostream &stream);
63
71 virtual void saveGuts(OBStream &stream) const;
72
81 virtual void UnusedHook();
82
89 static int sCmdID;
90
91private:
92 GameRecorder *mRecorder; // +0x0c
93};
94
EndRecordingCmd()
Construct a command with no recorder, as NewEndRecordingCmd() does.
Definition endrecordingcmd.h:27
virtual void UnusedHook()
Do nothing.
static int sCmdID
Identifier the class streams itself under.
Definition endrecordingcmd.h:89
EndRecordingCmd(GameRecorder *pRecorder)
Prepare the end of one recording.
Definition endrecordingcmd.h:35
virtual int CmdID()
Report sCmdID.
virtual void saveGuts(OBStream &stream) const
Write nothing.
virtual void Print(std::ostream &stream)
Write {EndRecordingCmd}.
virtual void Execute()
Run GameRecorder::FinishUp() on the recorder.
Recording of a game session that GameManagerImpl::StartRecording() installs.
Definition gamerecorder.h:13
Output half of the byte stream interface.
Definition obstream.h:25
Base of every action the scheduler performs on behalf of another subsystem.
Definition command.h:60
Sch::Command * NewEndRecordingCmd()
Produce an EndRecordingCmd on the heap.