Skip to content
On this page

AthenaClient.systems.playerConfig

Type Aliases

ConfigCallback

Ƭ ConfigCallback: (value: any) => void

Type declaration

Usage

AthenaClient.systems.playerConfig.(value): void

Parameters
NameType
valueany
Returns

void

Defined in

client/systems/playerConfig.ts:6

Functions

addCallback

Usage

AthenaClient.systems.playerConfig.addCallback<CustomKeys>(key, callback): void

Add a custom callback to listen for config changes.

Type parameters

Name
CustomKeys

Parameters

NameType
keyany
callbackConfigCallback

Returns

void

Defined in

client/systems/playerConfig.ts:42


get

Usage

AthenaClient.systems.playerConfig.get(key): player | undefined

Get a value assigned by the server.

Parameters

NameType
key"character-data"

Returns

player | undefined

Defined in

client/systems/playerConfig.ts:22

Usage

AthenaClient.systems.playerConfig.get(key): player | undefined

Get a value assigned by the server.

Parameters

NameType
key"account-data"

Returns

player | undefined

Defined in

client/systems/playerConfig.ts:23

Created by Stuyk | Est. 2020