summaryrefslogtreecommitdiffstats
path: root/src/GameState.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-19 17:20:51 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-19 17:20:51 +0200
commitf24107368fa47f911f4491f644ff3755525c91e1 (patch)
tree02dc3583ed82d81139b17191af9a9bfae40c45a9 /src/GameState.hpp
parent2017-08-18 (diff)
downloadAltCraft-f24107368fa47f911f4491f644ff3755525c91e1.tar
AltCraft-f24107368fa47f911f4491f644ff3755525c91e1.tar.gz
AltCraft-f24107368fa47f911f4491f644ff3755525c91e1.tar.bz2
AltCraft-f24107368fa47f911f4491f644ff3755525c91e1.tar.lz
AltCraft-f24107368fa47f911f4491f644ff3755525c91e1.tar.xz
AltCraft-f24107368fa47f911f4491f644ff3755525c91e1.tar.zst
AltCraft-f24107368fa47f911f4491f644ff3755525c91e1.zip
Diffstat (limited to 'src/GameState.hpp')
-rw-r--r--src/GameState.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GameState.hpp b/src/GameState.hpp
index d104e54..f09e5ab 100644
--- a/src/GameState.hpp
+++ b/src/GameState.hpp
@@ -10,9 +10,9 @@
#include "Event.hpp"
class GameState {
- NetworkClient *nc;
+ std::shared_ptr<NetworkClient> nc;
public:
- GameState(NetworkClient *networkClient);
+ GameState(std::shared_ptr<NetworkClient> networkClient);
void Update(float deltaTime);
@@ -68,4 +68,6 @@ public:
double g_PlayerVelocityX = 0;
double g_PlayerVelocityY = 0;
double g_PlayerVelocityZ = 0;
+
+ std::shared_ptr<GameState> gs;
};