Service beta
Interface of @v12-engine/client
ts
export interface Service<T>A service one renderer provides and the others and the game ask for (kit.provide, kit.require, kit.optional): its name, said when nothing provides it, and the type of what is provided. The client's are UNITS, MARKS, BLOOD and SPELLS; a game's renderers make their own (service<RoadsApi>('roads')) to give each other what they draw
Members
name
ts
readonly name: string;The name the service is looked up by, and said when nothing provides it
provides
ts
readonly provides?: T;Never set: it carries the type of what is provided