Files
Project-Reboot-3.0/Project Reboot 3.0/FortPlayerState.h
2023-03-12 16:00:26 -04:00

26 lines
629 B
C++

#pragma once
#include "PlayerState.h"
#include "AbilitySystemComponent.h"
class AFortPlayerState : public APlayerState
{
public:
UAbilitySystemComponent*& GetAbilitySystemComponent()
{
static auto AbilitySystemComponentOffset = GetOffset("AbilitySystemComponent");
return this->Get<UAbilitySystemComponent*>(AbilitySystemComponentOffset);
}
int& GetWorldPlayerId()
{
static auto WorldPlayerIdOffset = GetOffset("WorldPlayerId");
return this->Get<int>(WorldPlayerIdOffset);
}
static UClass* StaticClass()
{
static auto Class = FindObject<UClass>("/Script/FortniteGame.FortPlayerState");
return Class;
}
};