LogoPixi’VN
indexNamespacesRegisteredCharactersFunctions

Function: get()

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

Defined in: src/characters/decorators/character-decorator.ts:17

is a function that returns the character by the id

Type Parameters

T

T = CharacterInterface

Parameters

id

string

is the id of the character

Returns

T | undefined

the character

Example

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