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

#include <storage.h>

Collaboration diagram for Gekko::StateStorage:

Public Member Functions

 StateStorage ()
void Init (u32 num_states, u32 state_size, bool limited)
StateEntry * GetState (Frame frame)
StateEntry * GetRunaheadState ()

Private Attributes

u32 _max_num_states
std::vector< std::unique_ptr< StateEntry > > _states
StateEntry _runahead_state

Detailed Description

Definition at line 17 of file storage.h.

Constructor & Destructor Documentation

◆ StateStorage()

Gekko::StateStorage::StateStorage ( )

Definition at line 3 of file storage.cpp.

Member Function Documentation

◆ GetRunaheadState()

Gekko::StateEntry * Gekko::StateStorage::GetRunaheadState ( )

Definition at line 25 of file storage.cpp.

Here is the caller graph for this function:

◆ GetState()

Gekko::StateEntry * Gekko::StateStorage::GetState ( Frame frame)

Definition at line 30 of file storage.cpp.

Here is the caller graph for this function:

◆ Init()

void Gekko::StateStorage::Init ( u32 num_states,
u32 state_size,
bool limited )

Definition at line 9 of file storage.cpp.

Member Data Documentation

◆ _max_num_states

u32 Gekko::StateStorage::_max_num_states
private

Definition at line 28 of file storage.h.

◆ _runahead_state

StateEntry Gekko::StateStorage::_runahead_state
private

Definition at line 32 of file storage.h.

◆ _states

std::vector<std::unique_ptr<StateEntry> > Gekko::StateStorage::_states
private

Definition at line 30 of file storage.h.


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