mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Add project files.
This commit is contained in:
30
Project Reboot 3.0/Actor.cpp
Normal file
30
Project Reboot 3.0/Actor.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "Actor.h"
|
||||
|
||||
#include "Transform.h"
|
||||
|
||||
#include "reboot.h"
|
||||
|
||||
FTransform AActor::GetTransform()
|
||||
{
|
||||
FTransform Ret;
|
||||
static auto fn = FindObject<UFunction>(L"/Script/Engine.Actor.GetTransform");
|
||||
this->ProcessEvent(fn, &Ret);
|
||||
return Ret;
|
||||
}
|
||||
|
||||
AActor* AActor::GetOwner()
|
||||
{
|
||||
static auto GetOwnerFunction = FindObject<UFunction>("/Script/Engine.Actor.GetOwner");
|
||||
|
||||
AActor* Owner = nullptr;
|
||||
this->ProcessEvent(GetOwnerFunction, &Owner);
|
||||
|
||||
return Owner;
|
||||
}
|
||||
|
||||
void AActor::K2_DestroyActor()
|
||||
{
|
||||
static auto DestroyActorFn = FindObject<UFunction>("/Script/Engine.Actor.K2_DestroyActor");
|
||||
|
||||
this->ProcessEvent(DestroyActorFn);
|
||||
}
|
||||
Reference in New Issue
Block a user