mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
29 lines
585 B
C++
29 lines
585 B
C++
#pragma once
|
|
|
|
#include "Actor.h"
|
|
|
|
class AController : public AActor
|
|
{
|
|
public:
|
|
AActor* GetViewTarget();
|
|
void Possess(class APawn* Pawn);
|
|
void UnPossess();
|
|
|
|
FName& GetStateName()
|
|
{
|
|
static auto StateNameOffset = GetOffset("StateName");
|
|
return Get<FName>(StateNameOffset);
|
|
}
|
|
|
|
class APawn*& GetPawn()
|
|
{
|
|
static auto PawnOffset = this->GetOffset("Pawn");
|
|
return this->Get<class APawn*>(PawnOffset);
|
|
}
|
|
|
|
class APlayerState*& GetPlayerState()
|
|
{
|
|
static auto PlayerStateOffset = this->GetOffset("PlayerState");
|
|
return this->Get<class APlayerState*>(PlayerStateOffset);
|
|
}
|
|
}; |