Bare minimum tangible manager functionality OK

This commit is contained in:
2023-09-02 01:43:44 -04:00
parent 1494e4f8e6
commit 4073c88d08
3 changed files with 37 additions and 37 deletions

View File

@@ -22,21 +22,21 @@ public:
UPROPERTY()
TSubclassOf<AActor> ClassTangibleActor;
//// Given a tangible ID, look up actor pointer (or NULL if actor was deleted)
//UPROPERTY()
//TMap<int64, AActor*> IdToActor;
// 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);
//// Get the tangible if it exists, otherwise return NULL
//AActor* GetTangible(int64 id);
// Get the tangible if it exists, otherwise return NULL
AActor* GetTangible(int64 id);
//// Get the tangible if it exists, otherwise create it.
//AActor* MakeTangible(int64 id);
// Get the tangible if it exists, otherwise create it.
AActor* MakeTangible(int64 id);
//// Delete the tangible.
//void DeleteTangible(int64 id);
// Delete the tangible.
void DeleteTangible(int64 id);
};