LogoPixi’VN
indexNamespacesRegisteredCharactersFunctions

Function: get()

> get<T, T2>(id): T | undefined

Defined in: src/characters/decorators/RegisteredCharacters.ts:20

is a function that returns the character by the id

Type Parameters

T

T = CharacterInterface

T2

T2 extends string = string

Parameters

id

T2

is the id of the character

Returns

T | undefined

the character

Example

const liam = RegisteredCharacters.get('liam');

On this page