Struct CompositionUnit
- Namespace
- Shard.Gameplay.World
- Assembly
- Shard.Gameplay.World.dll
A CompositionUnit is the element of a transactional composition session involved to create an ecs entity
public readonly ref struct CompositionUnit
- Inherited Members
Properties
Context
Gets the restricted context that owner recipes use to compose members.
public CompositionContext Context { get; }
Property Value
Methods
Commit()
Validates readiness and claims identities before publishing every member. Requires immediate writable execution; admission rejection rolls back the composition. Publication failure is reported as fatal and rethrown without rollback.
public void Commit()
Dispose()
Rolls back the composition when it is still open.
public void Dispose()
Rollback()
Destroys every unpublished member and closes the composition.
public void Rollback()