mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
43
dependencies/reboot/Project Reboot 3.0/PlayerController.cpp
vendored
Normal file
43
dependencies/reboot/Project Reboot 3.0/PlayerController.cpp
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
#include "PlayerController.h"
|
||||
#include "GameplayStatics.h"
|
||||
|
||||
#include "reboot.h"
|
||||
|
||||
void APlayerController::ServerChangeName(FString& S)
|
||||
{
|
||||
static auto ServerChangeNameFn = FindObject<UFunction>(L"/Script/Engine.PlayerController.ServerChangeName");
|
||||
this->ProcessEvent(ServerChangeNameFn, &S);
|
||||
}
|
||||
|
||||
void APlayerController::SetPlayerIsWaiting(bool NewValue)
|
||||
{
|
||||
static auto bPlayerIsWaitingOffset = GetOffset("bPlayerIsWaiting");
|
||||
static auto bPlayerIsWaitingFieldMask = GetFieldMask(this->GetProperty("bPlayerIsWaiting"));
|
||||
this->SetBitfieldValue(bPlayerIsWaitingOffset, bPlayerIsWaitingFieldMask, NewValue);
|
||||
}
|
||||
|
||||
UCheatManager*& APlayerController::SpawnCheatManager(UClass* CheatManagerClass)
|
||||
{
|
||||
GetCheatManager() = UGameplayStatics::SpawnObject<UCheatManager>(CheatManagerClass, this, true);
|
||||
return GetCheatManager();
|
||||
}
|
||||
|
||||
FRotator APlayerController::GetControlRotation()
|
||||
{
|
||||
static auto fn = FindObject<UFunction>(L"/Script/Engine.Controller.GetControlRotation");
|
||||
FRotator rot;
|
||||
this->ProcessEvent(fn, &rot);
|
||||
return rot;
|
||||
}
|
||||
|
||||
void APlayerController::ServerRestartPlayer()
|
||||
{
|
||||
static auto fn = FindObject<UFunction>(L"/Script/Engine.PlayerController.ServerRestartPlayer");
|
||||
this->ProcessEvent(fn);
|
||||
}
|
||||
|
||||
UClass* APlayerController::StaticClass()
|
||||
{
|
||||
static auto Class = FindObject<UClass>(L"/Script/Engine.PlayerController");
|
||||
return Class;
|
||||
}
|
||||
Reference in New Issue
Block a user