Class: DefaultFacilityWaypointCache
Defined in: src/sdk/navigation/DefaultFacilityWaypointCache.ts:11
A default implementation of FacilityWaypointCache.
Implements
Properties
size
readonlysize:number
Defined in: src/sdk/navigation/DefaultFacilityWaypointCache.ts:21
The maximum size of this cache.
Methods
get()
get<
T>(facility):FacilityWaypoint<T>
Defined in: src/sdk/navigation/DefaultFacilityWaypointCache.ts:25
Gets a waypoint from the cache for a specific facility. If one does not exist, a new waypoint will be created.
Type Parameters
| Type Parameter |
|---|
T extends Facility |
Parameters
| Parameter | Type | Description |
|---|---|---|
facility | Facility | The facility for which to get a waypoint. |
Returns
A waypoint.
Implementation of
getCache()
staticgetCache(bus):FacilityWaypointCache
Defined in: src/sdk/navigation/DefaultFacilityWaypointCache.ts:53
Gets a FacilityWaypointCache instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
Returns
A FacilityWaypointCache instance.