Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
bicameral::save::ReplayRecorder Class Reference

#include <replay_session.h>

Public Member Functions

void AddCommands (std::span< const sim::Command > commands)
void AddHash (uint64_t tick, uint64_t hash)
ReplayFile Build () const
std::expected< void, std::string > Write (const fs::path &path) const

Private Attributes

std::vector< sim::Command > m_commands
std::vector< ReplayTickHash > m_hashes

Detailed Description

Definition at line 23 of file replay_session.h.

Member Function Documentation

◆ AddCommands()

void bicameral::save::ReplayRecorder::AddCommands ( std::span< const sim::Command > commands)

Definition at line 21 of file replay_session.cpp.

References m_commands.

◆ AddHash()

void bicameral::save::ReplayRecorder::AddHash ( uint64_t tick,
uint64_t hash )

Definition at line 25 of file replay_session.cpp.

References m_hashes.

◆ Build()

ReplayFile bicameral::save::ReplayRecorder::Build ( ) const
nodiscard

Definition at line 30 of file replay_session.cpp.

References bicameral::save::ReplayFile::commands, m_commands, m_hashes, and bicameral::save::Probe.

Referenced by Write().

Here is the caller graph for this function:

◆ Write()

std::expected< void, std::string > bicameral::save::ReplayRecorder::Write ( const fs::path & path) const
nodiscard

Definition at line 39 of file replay_session.cpp.

References Build(), and bicameral::save::WriteReplayFile().

Here is the call graph for this function:

Member Data Documentation

◆ m_commands

std::vector<sim::Command> bicameral::save::ReplayRecorder::m_commands
private

Definition at line 33 of file replay_session.h.

Referenced by AddCommands(), and Build().

◆ m_hashes

std::vector<ReplayTickHash> bicameral::save::ReplayRecorder::m_hashes
private

Definition at line 34 of file replay_session.h.

Referenced by AddHash(), and Build().


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