TangibleManager Init function implemeneted

This commit is contained in:
2023-09-02 01:39:35 -04:00
parent ac132862de
commit 1494e4f8e6
4 changed files with 17 additions and 17 deletions

View File

@@ -192,8 +192,8 @@ void AIntegrationGameModeBase::BeginPlay()
Thread = FRunnableThread::Create(this, TEXT("Worker Thread"));
}
//// Create a tangible.
//TangibleManager.Init(GetWorld(), ClassTangibleActor);
// Create a tangible.
TangibleManager.Init(GetWorld(), ClassTangibleActor);
//TangibleManager.MakeTangible(123);
}

View File

@@ -47,8 +47,8 @@ public:
// Transfer console output from the Luprex engine to unreal.
void HandleLuprexConsoleOutput();
//UPROPERTY()
//FTangibleManager TangibleManager;
UPROPERTY()
FTangibleManager TangibleManager;
// This stores the entire text currently visible in the console.
engineutil::ConsoleOutput ConsoleOutput;

View File

@@ -5,11 +5,11 @@
//using AActorPtr = AActor*;
//void FTangibleManager::Init(UWorld *world, UClass* tanact) {
// World = world;
// ClassTangibleActor = tanact;
//}
//
void FTangibleManager::Init(UWorld *world, UClass* tanact) {
World = world;
ClassTangibleActor = tanact;
}
//AActorPtr FTangibleManager::GetTangible(int64 id) {
// AActorPtr *p = IdToActor.Find(id);
// if (p == nullptr) {

View File

@@ -15,21 +15,21 @@ struct INTEGRATION_API FTangibleManager
GENERATED_BODY()
public:
//// A pointer to the UWorld.
//UWorld* world;
// A pointer to the UWorld.
UWorld* World;
//// A pointer to uclass TangibleActor.
//UPROPERTY()
//TSubclassOf<AActor> ClassTangibleActor;
// A pointer to uclass TangibleActor.
UPROPERTY()
TSubclassOf<AActor> ClassTangibleActor;
//// Given a tangible ID, look up actor pointer (or NULL if actor was deleted)
//UPROPERTY()
//TMap<int64, AActor*> IdToActor;
public:
//// Initialize the tangible manager.
////
//void Init(UWorld *world, UClass* tanact);
// Initialize the tangible manager.
//
void Init(UWorld *world, UClass* tanact);
//// Get the tangible if it exists, otherwise return NULL
//AActor* GetTangible(int64 id);