Skip to main content

Class: DefaultFacilityWaypointCache

Defined in: src/sdk/navigation/DefaultFacilityWaypointCache.ts:9

A default implementation of FacilityWaypointCache.

Implements​

Properties​

size​

readonly size: number

Defined in: src/sdk/navigation/DefaultFacilityWaypointCache.ts:19

The maximum size of this cache.

Methods​

get()​

get<T>(facility): FacilityWaypoint<T>

Defined in: src/sdk/navigation/DefaultFacilityWaypointCache.ts:23

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​

ParameterTypeDescription
facilityFacilityThe facility for which to get a waypoint.

Returns​

FacilityWaypoint<T>

A waypoint.

Implementation of​

FacilityWaypointCache.get


getCache()​

static getCache(bus): FacilityWaypointCache

Defined in: src/sdk/navigation/DefaultFacilityWaypointCache.ts:51

Gets a FacilityWaypointCache instance.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.

Returns​

FacilityWaypointCache

A FacilityWaypointCache instance.