3#include <network/client.h>
4#include <SFML/System/Time.hpp>
10class SimulationServer;
20 void Begin()
override;
21 void Update(sf::Time dt)
override;
24 void Draw(sf::RenderTarget& window)
override;
27 void SendUnreliablePacket(std::unique_ptr<Packet> packet)
override;
28 void SendReliablePacket(std::unique_ptr<Packet> packet)
override;
32 void DrawImGui()
override;
38 DebugDatabase debugDb_;
Client is an interface of a player game manager and the net client interface (receive and send packet...
Definition: client.h:13
SimulationClient is a Client that uses simulated sockets with a direct reference to the server.
Definition: simulation_client.h:16
void ReceivePacket(const Packet *packet) override
ReceiveNetPacket is a method called by an app owning a client when receiving a packet....
Definition: simulation_client.cpp:111
SimulationServer is a Server that delays Packet internally before "receiving" them and then sends the...
Definition: simulation_server.h:25
std::uint8_t PlayerInput
PlayerInput is a type defining the input data from a player.
Definition: game_globals.h:103
Packet is a interface that defines what a packet with a PacketType.
Definition: packet_type.h:37