mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Add project files.
This commit is contained in:
35
Project Reboot 3.0/FortGameStateAthena.h
Normal file
35
Project Reboot 3.0/FortGameStateAthena.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include "GameState.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 OnRep_GamePhase();
|
||||
void OnRep_CurrentPlaylistInfo();
|
||||
};
|
||||
Reference in New Issue
Block a user