Table of Contents

Class WorldComposition

Namespace
Shard.Gameplay.World
Assembly
Shard.Gameplay.World.dll

Registers definition-time composition behavior for a World Store.

public static class WorldComposition
Inheritance
WorldComposition
Inherited Members

Methods

RegisterPublication<T>(World, Action<World, Entity, CompositionReason>)

Registers a callback invoked for each matching member after every member is enabled. A publication failure follows the fatal World path and is rethrown to the committing caller; it is not an admission rejection and does not roll back admitted members.

public static void RegisterPublication<T>(World store, Action<World, Entity, CompositionReason> publish)

Parameters

store World
publish Action<World, Entity, CompositionReason>

Type Parameters

T

RegisterReadiness<T>(World, Action<World, Entity, CompositionReason>)

Registers owner validation invoked for each matching member before identity claims and enable. A thrown validation error rejects and rolls back the whole composition.

public static void RegisterReadiness<T>(World store, Action<World, Entity, CompositionReason> validate)

Parameters

store World
validate Action<World, Entity, CompositionReason>

Type Parameters

T