diff options
Diffstat (limited to 'src/GameState.hpp')
-rw-r--r-- | src/GameState.hpp | 6 |
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; }; |