Files
Project-Reboot-3.0/Project Reboot 3.0/FortGameStateAthena.h
Milxnor 0d7b45cbbc a bit
start work on vending machines, fix some playlist specific things, fixed a bug with <s5 playlist looting,
2023-04-08 19:05:06 -04:00

42 lines
906 B
C++

#pragma once
#include "GameState.h"
#include "FortPlayerState.h"
#include "FortPlaylist.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);
}
UFortPlaylist*& GetCurrentPlaylist();
// void AddPlayerStateToGameMemberInfo(class AFortPlayerStateAthena* PlayerState);
int GetAircraftIndex(AFortPlayerState* PlayerState);
bool IsRespawningAllowed(AFortPlayerState* PlayerState); // actually in zone
void OnRep_GamePhase();
void OnRep_CurrentPlaylistInfo();
};