Initial work on spawning tangibles from Luprex

This commit is contained in:
2023-09-06 23:25:37 -04:00
parent 1482e5e43f
commit 4b3f36d7e7
6 changed files with 93 additions and 20 deletions

View File

@@ -13,6 +13,8 @@ USTRUCT()
struct INTEGRATION_API FTangibleManager
{
GENERATED_BODY()
public:
using IdList = TArrayView<const int64>;
public:
// A pointer to the UWorld.
@@ -25,8 +27,16 @@ public:
// Given a tangible ID, look up actor pointer (or NULL if actor was deleted)
UPROPERTY()
TMap<int64, AActor*> IdToActor;
// Actor tangible Id.
int64 Actor;
// Tangibles near the actor.
IdList Near;
public:
FTangibleManager();
// Initialize the tangible manager.
//
void Init(UWorld *world, UClass* tanact);
@@ -39,4 +49,15 @@ public:
// Delete the tangible.
void DeleteTangible(int64 id);
// Get/Set the Id of the actor.
//
int64 GetActor() const { return Actor; };
void SetActor(int64 id) { Actor = id; }
// Get/Set the list of tangibles near the player.
//
IdList GetNear() const { return Near; }
void SetNear(IdList near) { Near = near; }
};