Files
Project-Reboot-3.0/Project Reboot 3.0/FortGameStateAthena.h
2023-03-19 11:44:05 -04:00

38 lines
786 B
C++

#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<int>(PlayersLeftOffset);
}
EAthenaGamePhase& GetGamePhase()
{
static auto GamePhaseOffset = GetOffset("GamePhase");
return Get<EAthenaGamePhase>(GamePhaseOffset);
}
// void AddPlayerStateToGameMemberInfo(class AFortPlayerStateAthena* PlayerState);
bool IsRespawningAllowed(AFortPlayerState* PlayerState); // actually in zone
void OnRep_GamePhase();
void OnRep_CurrentPlaylistInfo();
};