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