Changes related to 'SetPossessedTangible'

This commit is contained in:
2024-03-25 14:50:06 -04:00
parent 0d94b1b9af
commit d520189a94
6 changed files with 49 additions and 3 deletions

View File

@@ -33,6 +33,9 @@ public:
UPROPERTY()
TMap<int64, UlxTangible*> IdToTangible;
// The Tangible ID of the posessed tangible, if any.
UlxTangible *PossessedTangible;
public:
UlxTangibleManager();
@@ -63,6 +66,19 @@ public:
//
TanArray GetAllTangibles() const;
// Set the currently-posessed tangible.
//
// If the specified tangible is invalid:
// Sets the possessed tangible to nullptr and returns nullptr.
//
// If the specified tangible is valid, but it's already possessed:
// Does nothing and returns nullptr.
//
// If the specified tangible is valid, and is not already possessed:
// Sets the possessed tangible as specified and returns it.
//
UlxTangible *SetPossessedTangible(int64 playerid);
// Update the 'NearAccordingToLuprex' flags.
//
// Also creates stub tangibles for every Id in the list.