GekkoNet 1.0
C/C++ Peer to Peer Game Networking SDK
Loading...
Searching...
No Matches
storage.h
Go to the documentation of this file.
1#pragma once
2
3#include "gekko_types.h"
4#include "input.h"
5
6#include <memory>
7#include <vector>
8
9namespace Gekko {
10 struct StateEntry {
12 std::unique_ptr<u8[]> state;
15 };
16
18 public:
20
21 void Init(u32 num_states, u32 state_size, bool limited);
22
24
26
27 private:
29
30 std::vector<std::unique_ptr<StateEntry>> _states;
31
33 };
34}
StateEntry * GetRunaheadState()
Definition storage.cpp:25
StateEntry * GetState(Frame frame)
Definition storage.cpp:30
std::vector< std::unique_ptr< StateEntry > > _states
Definition storage.h:30
void Init(u32 num_states, u32 state_size, bool limited)
Definition storage.cpp:9
StateEntry _runahead_state
Definition storage.h:32
int32_t Frame
Definition gekko_types.h:18
uint32_t u32
Definition gekko_types.h:7
static const i32 NULL_FRAME
Definition input.h:21
std::unique_ptr< u8[]> state
Definition storage.h:12