An interface in Root.Township, ATT.Respawn.
Saved state of one respawn shrine: fuel left and the players who use it as their spawn point.
Properties
| Member | What it is |
|---|
float Fuel { get; } | Fuel currently in the shrine. |
bool HasConsumedAllFuel { get; } | True once the fuel has run out. |
Guid ShrineId { get; } | Id of the shrine this model belongs to. |
IEnumerable<int> Subscribers { get; } | Ids of players linked to the shrine, probably as their respawn point. |
Methods
| Member | What it is |
|---|
bool AddSubscriber(int playerId) | Links a player id. False if it was already linked, probably. |
void RemoveAllSubscribers() | Unlinks every player. |
bool RemoveSubscriber(int playerId) | Unlinks a player id. False if it wasn't linked, probably. |
void SetFuel(float value) | Sets the fuel amount. |
void SetHasConsumedAllFuel(bool isEmptied) | Sets whether the fuel has run out. |
Used in
Members of other types that take, return or hold a IRespawnShrineModel: