summaryrefslogtreecommitdiffstats
path: root/src/gamestate/GameState.hpp
blob: c9ca44aebbd6ccd8b4c3e27449e94a7847dd46a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once

#include "../world/World.hpp"
#include "../network/NetworkClient.hpp"
#include "../packet/PacketParser.hpp"
#include "../packet/PacketBuilder.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;
};