2023-09-25 18:00:34 -04:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "TangibleComponent.h"
|
|
|
|
|
#include "TangibleManager.h"
|
|
|
|
|
|
|
|
|
|
UTangibleComponent::UTangibleComponent()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void UTangibleComponent::Init(UTangibleManager* tm, AActor* a, int64 id)
|
|
|
|
|
{
|
|
|
|
|
TangibleManager = tm;
|
2023-09-25 18:32:05 -04:00
|
|
|
OwningActor = a;
|
2023-09-25 18:00:34 -04:00
|
|
|
TangibleId = id;
|
|
|
|
|
}
|
2023-09-25 18:32:05 -04:00
|
|
|
|
|
|
|
|
FString UTangibleComponent::GetTangiblePlane(AActor* actor) {
|
|
|
|
|
UTangibleComponent* comp = actor->GetComponentByClass<UTangibleComponent>();
|
|
|
|
|
check(comp != nullptr);
|
|
|
|
|
return comp->Plane;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void UTangibleComponent::SetTangiblePlane(AActor* actor, const FString& plane) {
|
|
|
|
|
UTangibleComponent* comp = actor->GetComponentByClass<UTangibleComponent>();
|
|
|
|
|
check(comp != nullptr);
|
|
|
|
|
comp->Plane = plane;
|
|
|
|
|
}
|
|
|
|
|
|