#pragma once #include "GameState.h" #include "FortPlayerState.h" enum class EAthenaGamePhase : uint8_t { None = 0, Setup = 1, Warmup = 2, Aircraft = 3, SafeZones = 4, EndGame = 5, Count = 6, EAthenaGamePhase_MAX = 7 }; class AFortGameStateAthena : public AGameState { public: int& GetPlayersLeft() { static auto PlayersLeftOffset = GetOffset("PlayersLeft"); return Get(PlayersLeftOffset); } EAthenaGamePhase& GetGamePhase() { static auto GamePhaseOffset = GetOffset("GamePhase"); return Get(GamePhaseOffset); } UObject*& GetCurrentPlaylist(); // void AddPlayerStateToGameMemberInfo(class AFortPlayerStateAthena* PlayerState); int GetAircraftIndex(AFortPlayerState* PlayerState); bool IsRespawningAllowed(AFortPlayerState* PlayerState); // actually in zone void OnRep_GamePhase(); void OnRep_CurrentPlaylistInfo(); };