TangibleManager Init function implemeneted
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user