GekkoNet 1.0
C/C++ Peer to Peer Game Networking SDK
Loading...
Searching...
No Matches
Gekko::ReplaySession Class Reference

#include <replay_session.h>

Inheritance diagram for Gekko::ReplaySession:
Collaboration diagram for Gekko::ReplaySession:

Public Member Functions

 ReplaySession ()
void Init (GekkoConfig *config) override
GekkoGameEvent ** UpdateSession (i32 *count) override
GekkoSessionEvent ** Events (i32 *count) override
bool LoadReplay (const u8 *replay_data, u32 length) override
const u8 * ReplayUserData (u32 &length) override
Public Member Functions inherited from GekkoSession
virtual void SetLocalDelay (i32 player, u8 delay)
virtual void SetRunahead (u8 runahead)
virtual void SetInputPredictionWindow (u8 window)
virtual void SetNetAdapter (GekkoNetAdapter *adapter)
virtual i32 AddActor (GekkoPlayerType type, GekkoNetAddress *addr)
virtual bool DisconnectActor (i32 actor)
virtual void SetDisconnectTimeout (u32 timeout)
virtual void AddLocalInput (i32 player, void *input)
virtual f32 FramesAhead ()
virtual i32 SpectatorBufferedFrames ()
virtual void NetworkStats (i32 player, GekkoNetworkStats *stats)
virtual void RollbackStats (GekkoRollbackStats *stats)
virtual void NetworkPoll ()
virtual bool StartRecording (bool save_initial_state, bool disable_compression)
virtual const u8 * StopRecording (u32 &length)
virtual const u8 * PeekRecording (u32 &length)
virtual bool RecordChecksums (u32 interval)
virtual bool SetReplayUserData (const u8 *data, u32 length)
virtual ~GekkoSession ()=default

Private Member Functions

void AddInitialStateLoad ()
bool AddNextReplayInputs ()
void AddChecksumSave (Frame frame)
void VerifyChecksum ()

Private Attributes

bool _started
bool _finished
bool _desynced
bool _checksum_pending
u32 _recorded_checksum
StateEntry _checksum_state
GekkoConfig _config
SyncSystem _sync
GameEventSystem _game_events
SessionEventSystem _session_events
ReplaySystem _replay
std::unique_ptr< u8[]> _inputs

Detailed Description

Definition at line 14 of file replay_session.h.

Constructor & Destructor Documentation

◆ ReplaySession()

Gekko::ReplaySession::ReplaySession ( )

Definition at line 6 of file replay_session.cpp.

Member Function Documentation

◆ AddChecksumSave()

void Gekko::ReplaySession::AddChecksumSave ( Frame frame)
private

Definition at line 129 of file replay_session.cpp.

Here is the caller graph for this function:

◆ AddInitialStateLoad()

void Gekko::ReplaySession::AddInitialStateLoad ( )
private

Definition at line 98 of file replay_session.cpp.

Here is the caller graph for this function:

◆ AddNextReplayInputs()

bool Gekko::ReplaySession::AddNextReplayInputs ( )
private

Definition at line 109 of file replay_session.cpp.

Here is the caller graph for this function:

◆ Events()

GekkoSessionEvent ** Gekko::ReplaySession::Events ( i32 * count)
overridevirtual

Implements GekkoSession.

Definition at line 56 of file replay_session.cpp.

◆ Init()

void Gekko::ReplaySession::Init ( GekkoConfig * config)
overridevirtual

Implements GekkoSession.

Definition at line 17 of file replay_session.cpp.

◆ LoadReplay()

bool Gekko::ReplaySession::LoadReplay ( const u8 * replay_data,
u32 length )
overridevirtual

Reimplemented from GekkoSession.

Definition at line 62 of file replay_session.cpp.

◆ ReplayUserData()

const u8 * Gekko::ReplaySession::ReplayUserData ( u32 & length)
overridevirtual

Reimplemented from GekkoSession.

Definition at line 124 of file replay_session.cpp.

◆ UpdateSession()

GekkoGameEvent ** Gekko::ReplaySession::UpdateSession ( i32 * count)
overridevirtual

Implements GekkoSession.

Definition at line 22 of file replay_session.cpp.

Here is the call graph for this function:

◆ VerifyChecksum()

void Gekko::ReplaySession::VerifyChecksum ( )
private

Definition at line 139 of file replay_session.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _checksum_pending

bool Gekko::ReplaySession::_checksum_pending
private

Definition at line 44 of file replay_session.h.

◆ _checksum_state

StateEntry Gekko::ReplaySession::_checksum_state
private

Definition at line 48 of file replay_session.h.

◆ _config

GekkoConfig Gekko::ReplaySession::_config
private

Definition at line 50 of file replay_session.h.

◆ _desynced

bool Gekko::ReplaySession::_desynced
private

Definition at line 42 of file replay_session.h.

◆ _finished

bool Gekko::ReplaySession::_finished
private

Definition at line 40 of file replay_session.h.

◆ _game_events

GameEventSystem Gekko::ReplaySession::_game_events
private

Definition at line 54 of file replay_session.h.

◆ _inputs

std::unique_ptr<u8[]> Gekko::ReplaySession::_inputs
private

Definition at line 60 of file replay_session.h.

◆ _recorded_checksum

u32 Gekko::ReplaySession::_recorded_checksum
private

Definition at line 46 of file replay_session.h.

◆ _replay

ReplaySystem Gekko::ReplaySession::_replay
private

Definition at line 58 of file replay_session.h.

◆ _session_events

SessionEventSystem Gekko::ReplaySession::_session_events
private

Definition at line 56 of file replay_session.h.

◆ _started

bool Gekko::ReplaySession::_started
private

Definition at line 38 of file replay_session.h.

◆ _sync

SyncSystem Gekko::ReplaySession::_sync
private

Definition at line 52 of file replay_session.h.


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