summaryrefslogtreecommitdiffstats
path: root/src/GameState.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 10:58:40 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 10:58:40 +0100
commitabe317e31bb9b9a88b0c88b1477a952240d1847f (patch)
treead9e706d4ecb3237b62a05bd3f408fdc87a7dcff /src/GameState.hpp
parentNew implementation of NC is using event-system (diff)
downloadAltCraft-abe317e31bb9b9a88b0c88b1477a952240d1847f.tar
AltCraft-abe317e31bb9b9a88b0c88b1477a952240d1847f.tar.gz
AltCraft-abe317e31bb9b9a88b0c88b1477a952240d1847f.tar.bz2
AltCraft-abe317e31bb9b9a88b0c88b1477a952240d1847f.tar.lz
AltCraft-abe317e31bb9b9a88b0c88b1477a952240d1847f.tar.xz
AltCraft-abe317e31bb9b9a88b0c88b1477a952240d1847f.tar.zst
AltCraft-abe317e31bb9b9a88b0c88b1477a952240d1847f.zip
Diffstat (limited to 'src/GameState.hpp')
-rw-r--r--src/GameState.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/GameState.hpp b/src/GameState.hpp
index 4894628..7145df5 100644
--- a/src/GameState.hpp
+++ b/src/GameState.hpp
@@ -14,8 +14,6 @@ class NetworkClient;
class Entity;
class GameState {
- std::mutex packetsMutex;
- std::queue<std::shared_ptr<Packet>> packets;
public:
GameState() = default;
@@ -24,7 +22,7 @@ public:
void Update(float deltaTime);
- void UpdatePacket(NetworkClient *nc);
+ void UpdatePacket(std::shared_ptr<Packet> ptr);
enum Direction {
FORWARD, BACKWARD, LEFT, RIGHT, JUMP