#pragma once #include "FortPlayerState.h" class AFortPlayerStateAthena : public AFortPlayerState { public: uint8& GetSquadId() { static auto SquadIdOffset = GetOffset("SquadId"); return Get(SquadIdOffset); } uint8& GetTeamIndex() { static auto TeamIndexOffset = GetOffset("TeamIndex"); return Get(TeamIndexOffset); } FString GetPlayerName() { static auto GetPlayerNameFn = FindObject("/Script/Engine.PlayerState.GetPlayerName"); FString PlayerName; this->ProcessEvent(GetPlayerNameFn, &PlayerName); return PlayerName; } static UClass* StaticClass() { static auto Class = FindObject("/Script/FortniteGame.FortPlayerStateAthena"); return Class; } };