From e2ec9d6a3b970dfd2ed413a7d014985a7b5bbb39 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Thu, 14 Jul 2022 18:40:52 +0200 Subject: [PATCH] add player getter --- include/game/client/Client.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/game/client/Client.h b/include/game/client/Client.h index e753dc6..c31abae 100644 --- a/include/game/client/Client.h +++ b/include/game/client/Client.h @@ -31,6 +31,8 @@ public: ClientGame& GetGame() { return *m_Game; } ClientConnexion& GetConnexion() { return m_Connexion; } + const game::Player* GetPlayer() { return m_Game->GetPlayer(); } + void Tick(std::uint64_t delta); void Render();