Class that writes a replay to a file.
#include <nrg_replay.h>
Public Member Functions | |
ReplayRecorder () | |
Default constructor. | |
bool | startRecording (const char *filename, int sid, const std::vector< Entity * > &initial_entities) |
Starts recording a replay !CURRENTLY BROKEN! | |
bool | isRecording () const |
Returns true if a replay is being recorded. | |
void | stopRecording () |
Stops recording a replay. | |
void | addPacket (Packet &p) |
Adds a packet that will be serialised into the replay file. | |