Delegate PlayerAvatarAction<TState>
Receives one validated Player avatar and caller-owned state on the World thread.
public delegate void PlayerAvatarAction<in TState>(Player player, World world, World store, Entity avatar, TState state)
Parameters
playerPlayer- Receives one validated Player avatar and caller-owned state on the World thread.
worldWorld- Receives one validated Player avatar and caller-owned state on the World thread.
storeWorld- Receives one validated Player avatar and caller-owned state on the World thread.
avatarEntity- Receives one validated Player avatar and caller-owned state on the World thread.
stateTState- Receives one validated Player avatar and caller-owned state on the World thread.
Type Parameters
TState
Remarks
The Store and Entity are borrowed from the World thread. They must not be retained or used after the callback returns. Asynchronous work must copy durable values and open a fresh World borrow.