ServiceKey
Defined in: EngineContext.ts:16
A typed key for service registration and resolution.
Type Parameters
Section titled “Type Parameters”T
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ServiceKey<
T>(id,options?):ServiceKey<T>
Defined in: EngineContext.ts:20
Parameters
Section titled “Parameters”string
Unique string identifier for this service.
options?
Section titled “options?”Returns
Section titled “Returns”ServiceKey<T>
Properties
Section titled “Properties”
readonly_type:T
Defined in: EngineContext.ts:29
Phantom field to preserve the generic type.
readonlyid:string
Defined in: EngineContext.ts:22
Unique string identifier for this service.
readonlyscope:ServiceScope
Defined in: EngineContext.ts:18
Declared scope (engine or scene). Defaults to "engine".