A class in Root.Township, Alta.Caves.
Stands in for one layer's cave teleporter in CaveTeleporterManager, holding its fuel and arrival position even while the real teleporter isn't loaded. Fuel changes go to the real teleporter when one is registered.
Constructors
Fields
1 private and internal field
| Member | What it is |
|---|
private CaveTeleporter teleporter | The loaded teleporter for this layer, if any. |
Properties
Events
| Member | What it is |
|---|
event Action<CaveTeleporterProxy> UpdatedFuel | Raised when the stored fuel changes. The manager listens to save it. |
Methods
| Member | What it is |
|---|
void AddFuel(int fuelQuantity) | Adds fuel: spawns fuel into the real teleporter's dock if registered, otherwise adds to the stored count. |
void ConsumeFuel(int cost) | Removes fuel from the real teleporter's dock if registered, otherwise from the stored count. |
void RegisterTeleporter(CaveTeleporter teleporter) | Links the loaded teleporter and follows its fuel changes. |
1 private and internal method
| Member | What it is |
|---|
private void UpdateFuel() | Copies the real teleporter's fuel into Data and raises UpdatedFuel. |
Used in
Members of other types that take, return or hold a CaveTeleporterProxy: