summaryrefslogtreecommitdiffstats
path: root/src/gamestate/GameState.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-05-21 16:07:50 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-05-21 16:07:50 +0200
commit305efbfdc5fb5c05c9b72aa0bee6a3ae1983de36 (patch)
tree53fb36abafba8712c66a23829a95e84b85c98c50 /src/gamestate/GameState.hpp
parent2017-05-18 (diff)
downloadAltCraft-305efbfdc5fb5c05c9b72aa0bee6a3ae1983de36.tar
AltCraft-305efbfdc5fb5c05c9b72aa0bee6a3ae1983de36.tar.gz
AltCraft-305efbfdc5fb5c05c9b72aa0bee6a3ae1983de36.tar.bz2
AltCraft-305efbfdc5fb5c05c9b72aa0bee6a3ae1983de36.tar.lz
AltCraft-305efbfdc5fb5c05c9b72aa0bee6a3ae1983de36.tar.xz
AltCraft-305efbfdc5fb5c05c9b72aa0bee6a3ae1983de36.tar.zst
AltCraft-305efbfdc5fb5c05c9b72aa0bee6a3ae1983de36.zip
Diffstat (limited to '')
-rw-r--r--src/gamestate/GameState.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gamestate/GameState.hpp b/src/gamestate/GameState.hpp
index e9c433d..3d7dc80 100644
--- a/src/gamestate/GameState.hpp
+++ b/src/gamestate/GameState.hpp
@@ -1,8 +1,36 @@
#pragma once
#include "../world/World.hpp"
+#include "../network/NetworkClient.hpp"
class GameState {
+ NetworkClient *nc;
public:
+ GameState(NetworkClient *NetClient);
World world;
+ void Update();
+
+ std::string g_PlayerUuid;
+ std::string g_PlayerName;
+ ConnectionState m_networkState;
+ bool g_IsGameStarted;
+ int g_PlayerEid;
+ int g_Gamemode;
+ int g_Dimension;
+ byte g_Difficulty;
+ byte g_MaxPlayers;
+ std::string g_LevelType;
+ bool g_ReducedDebugInfo;
+ Vector g_SpawnPosition;
+ bool g_PlayerInvulnerable;
+ bool g_PlayerFlying;
+ bool g_PlayerAllowFlying;
+ bool g_PlayerCreativeMode;
+ float g_PlayerFlyingSpeed;
+ float g_PlayerFovModifier;
+ float g_PlayerPitch;
+ float g_PlayerYaw;
+ double g_PlayerX;
+ double g_PlayerY;
+ double g_PlayerZ;
};