mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
40 lines
983 B
C++
40 lines
983 B
C++
#pragma once
|
|
|
|
#include "Class.h"
|
|
#include "Controller.h"
|
|
|
|
#include "Rotator.h"
|
|
|
|
class APlayerController : public AController
|
|
{
|
|
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);
|
|
}
|
|
|
|
FRotator GetControlRotation();
|
|
void Possess(class APawn* Pawn);
|
|
void ServerRestartPlayer();
|
|
|
|
static UClass* StaticClass();
|
|
}; |