ServiceKey
Defined in: EngineContext.ts:28
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:32
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:41
Phantom field to preserve the generic type.
readonlyid:string
Defined in: EngineContext.ts:34
Unique string identifier for this service.
readonlyscope:ServiceScope
Defined in: EngineContext.ts:30
Declared scope (engine or scene). Defaults to "engine".