Skip to content

findPlayerWallet

findPlayerWallet(world): Entity | undefined

Defined in: packages/engine/src/gameplay/hero/actions.ts:54

The entity that holds this side’s player’s coins: her hero, or, in a game whose player is no hero, as a rider on a track, the first entity with a wallet under the client’s authority.

Parameter Type
world World

Entity | undefined