Changes related to 'SetPossessedTangible'
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user