GekkoNet 1.0
C/C++ Peer to Peer Game Networking SDK
Loading...
Searching...
No Matches
replay_session.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5#include "gekkonet.h"
6#include "gekko_types.h"
7#include "session.h"
8#include "event.h"
9#include "replay.h"
10#include "sync.h"
11
12namespace Gekko {
13
14 class ReplaySession : public GekkoSession {
15 public:
17
18 void Init(GekkoConfig* config) override;
19
20 GekkoGameEvent** UpdateSession(i32* count) override;
21
22 GekkoSessionEvent** Events(i32* count) override;
23
24 bool LoadReplay(const u8* replay_data, u32 length) override;
25
26 const u8* ReplayUserData(u32& length) override;
27
28 private:
30
32
33 void AddChecksumSave(Frame frame);
34
35 void VerifyChecksum();
36
37 private:
39
41
43
45
47
49
51
53
55
57
59
60 std::unique_ptr<u8[]> _inputs;
61 };
62}
const u8 * ReplayUserData(u32 &length) override
SessionEventSystem _session_events
bool LoadReplay(const u8 *replay_data, u32 length) override
GameEventSystem _game_events
GekkoSessionEvent ** Events(i32 *count) override
void Init(GekkoConfig *config) override
void AddChecksumSave(Frame frame)
std::unique_ptr< u8[]> _inputs
GekkoGameEvent ** UpdateSession(i32 *count) override
int32_t i32
Definition gekko_types.h:12
int32_t Frame
Definition gekko_types.h:18
uint8_t u8
Definition gekko_types.h:5
uint32_t u32
Definition gekko_types.h:7