Initial work on spawning tangibles from Luprex
This commit is contained in:
@@ -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; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user