Files
integration/Source/Integration/TangibleComponent.cpp

30 lines
723 B
C++

// 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;
OwningActor = a;
TangibleId = id;
}
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;
}