GekkoNet 1.0
C/C++ Peer to Peer Game Networking SDK
Loading...
Searching...
No Matches
GekkoSession Struct Referenceabstract

#include <session.h>

Inheritance diagram for GekkoSession:

Public Member Functions

virtual void Init (GekkoConfig *config)=0
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 GekkoGameEvent ** UpdateSession (i32 *count)=0
virtual GekkoSessionEvent ** Events (i32 *count)=0
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 bool LoadReplay (const u8 *replay_data, u32 length)
virtual const u8 * ReplayUserData (u32 &length)
virtual ~GekkoSession ()=default

Detailed Description

Definition at line 7 of file session.h.

Constructor & Destructor Documentation

◆ ~GekkoSession()

virtual GekkoSession::~GekkoSession ( )
virtualdefault

Member Function Documentation

◆ AddActor()

virtual i32 GekkoSession::AddActor ( GekkoPlayerType type,
GekkoNetAddress * addr )
inlinevirtual

Reimplemented in Gekko::GameSession, Gekko::SpectatorSession, and Gekko::StressSession.

Definition at line 13 of file session.h.

Here is the caller graph for this function:

◆ AddLocalInput()

virtual void GekkoSession::AddLocalInput ( i32 player,
void * input )
inlinevirtual

Reimplemented in Gekko::GameSession, and Gekko::StressSession.

Definition at line 16 of file session.h.

Here is the caller graph for this function:

◆ DisconnectActor()

virtual bool GekkoSession::DisconnectActor ( i32 actor)
inlinevirtual

Reimplemented in Gekko::GameSession, and Gekko::SpectatorSession.

Definition at line 14 of file session.h.

Here is the caller graph for this function:

◆ Events()

virtual GekkoSessionEvent ** GekkoSession::Events ( i32 * count)
pure virtual

Implemented in Gekko::GameSession, Gekko::ReplaySession, Gekko::SpectatorSession, and Gekko::StressSession.

Here is the caller graph for this function:

◆ FramesAhead()

virtual f32 GekkoSession::FramesAhead ( )
inlinevirtual

Reimplemented in Gekko::GameSession.

Definition at line 19 of file session.h.

Here is the caller graph for this function:

◆ Init()

virtual void GekkoSession::Init ( GekkoConfig * config)
pure virtual

Implemented in Gekko::GameSession, Gekko::ReplaySession, Gekko::SpectatorSession, and Gekko::StressSession.

Here is the caller graph for this function:

◆ LoadReplay()

virtual bool GekkoSession::LoadReplay ( const u8 * replay_data,
u32 length )
inlinevirtual

Reimplemented in Gekko::ReplaySession.

Definition at line 29 of file session.h.

Here is the caller graph for this function:

◆ NetworkPoll()

virtual void GekkoSession::NetworkPoll ( )
inlinevirtual

Reimplemented in Gekko::GameSession, and Gekko::SpectatorSession.

Definition at line 23 of file session.h.

Here is the caller graph for this function:

◆ NetworkStats()

virtual void GekkoSession::NetworkStats ( i32 player,
GekkoNetworkStats * stats )
inlinevirtual

Reimplemented in Gekko::GameSession, and Gekko::SpectatorSession.

Definition at line 21 of file session.h.

Here is the caller graph for this function:

◆ PeekRecording()

virtual const u8 * GekkoSession::PeekRecording ( u32 & length)
inlinevirtual

Reimplemented in Gekko::GameSession, Gekko::SpectatorSession, and Gekko::StressSession.

Definition at line 26 of file session.h.

Here is the caller graph for this function:

◆ RecordChecksums()

virtual bool GekkoSession::RecordChecksums ( u32 interval)
inlinevirtual

Reimplemented in Gekko::GameSession, Gekko::SpectatorSession, and Gekko::StressSession.

Definition at line 27 of file session.h.

Here is the caller graph for this function:

◆ ReplayUserData()

virtual const u8 * GekkoSession::ReplayUserData ( u32 & length)
inlinevirtual

Reimplemented in Gekko::ReplaySession.

Definition at line 30 of file session.h.

Here is the caller graph for this function:

◆ RollbackStats()

virtual void GekkoSession::RollbackStats ( GekkoRollbackStats * stats)
inlinevirtual

Reimplemented in Gekko::GameSession.

Definition at line 22 of file session.h.

Here is the caller graph for this function:

◆ SetDisconnectTimeout()

virtual void GekkoSession::SetDisconnectTimeout ( u32 timeout)
inlinevirtual

Reimplemented in Gekko::GameSession, and Gekko::SpectatorSession.

Definition at line 15 of file session.h.

Here is the caller graph for this function:

◆ SetInputPredictionWindow()

virtual void GekkoSession::SetInputPredictionWindow ( u8 window)
inlinevirtual

Reimplemented in Gekko::GameSession.

Definition at line 11 of file session.h.

Here is the caller graph for this function:

◆ SetLocalDelay()

virtual void GekkoSession::SetLocalDelay ( i32 player,
u8 delay )
inlinevirtual

Reimplemented in Gekko::GameSession, and Gekko::StressSession.

Definition at line 9 of file session.h.

Here is the caller graph for this function:

◆ SetNetAdapter()

virtual void GekkoSession::SetNetAdapter ( GekkoNetAdapter * adapter)
inlinevirtual

Reimplemented in Gekko::GameSession, and Gekko::SpectatorSession.

Definition at line 12 of file session.h.

Here is the caller graph for this function:

◆ SetReplayUserData()

virtual bool GekkoSession::SetReplayUserData ( const u8 * data,
u32 length )
inlinevirtual

Reimplemented in Gekko::GameSession, Gekko::SpectatorSession, and Gekko::StressSession.

Definition at line 28 of file session.h.

Here is the caller graph for this function:

◆ SetRunahead()

virtual void GekkoSession::SetRunahead ( u8 runahead)
inlinevirtual

Reimplemented in Gekko::GameSession.

Definition at line 10 of file session.h.

Here is the caller graph for this function:

◆ SpectatorBufferedFrames()

virtual i32 GekkoSession::SpectatorBufferedFrames ( )
inlinevirtual

Reimplemented in Gekko::SpectatorSession.

Definition at line 20 of file session.h.

Here is the caller graph for this function:

◆ StartRecording()

virtual bool GekkoSession::StartRecording ( bool save_initial_state,
bool disable_compression )
inlinevirtual

Reimplemented in Gekko::GameSession, Gekko::SpectatorSession, and Gekko::StressSession.

Definition at line 24 of file session.h.

Here is the caller graph for this function:

◆ StopRecording()

virtual const u8 * GekkoSession::StopRecording ( u32 & length)
inlinevirtual

Reimplemented in Gekko::GameSession, Gekko::SpectatorSession, and Gekko::StressSession.

Definition at line 25 of file session.h.

Here is the caller graph for this function:

◆ UpdateSession()

virtual GekkoGameEvent ** GekkoSession::UpdateSession ( i32 * count)
pure virtual

Implemented in Gekko::GameSession, Gekko::ReplaySession, Gekko::SpectatorSession, and Gekko::StressSession.

Here is the caller graph for this function:

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