Files
Project-Reboot-3.0/Project Reboot 3.0/PlayerController.h
2023-03-04 15:06:07 -05:00

37 lines
919 B
C++

#pragma once
#include "Class.h"
#include "Actor.h"
class APlayerController : public AActor
{
public:
/* void Possess(APawn* Pawn)
{
static auto Possess = FindObject<UFunction>("/Script/Engine.Controller.Possess");
this->ProcessEvent(Possess, &Pawn);
}
static inline void ServerAcknowledgePossessionHook(APlayerController* PlayerController, APawn* P)
{
static auto AcknowledgedPawnOffset = PlayerController->GetOffset("AcknowledgedPawn");
PlayerController->Get<APawn*>(AcknowledgedPawnOffset) = P;
} */
class APlayerState*& GetPlayerState()
{
static auto PlayerStateOffset = this->GetOffset("PlayerState");
return this->Get<class APlayerState*>(PlayerStateOffset);
}
class APawn*& GetPawn()
{
static auto PawnOffset = this->GetOffset("Pawn");
return this->Get<class APawn*>(PawnOffset);
}
void Possess(class APawn* Pawn);
void ServerRestartPlayer();
static UClass* StaticClass();
};