Table of Contents

Delegate PlayerAvatarAction<TState>

Namespace
Shard.Gameplay.Universe.Players
Assembly
Shard.Gameplay.Universe.dll

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

player Player
Receives one validated Player avatar and caller-owned state on the World thread.
world World
Receives one validated Player avatar and caller-owned state on the World thread.
store World
Receives one validated Player avatar and caller-owned state on the World thread.
avatar Entity
Receives one validated Player avatar and caller-owned state on the World thread.
state TState
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.