feat(oecs): add support for reordering relationship sources
Introduces `RelationshipReordered` change kind and `ReorderSources` method to allow reordering the source set of a relationship without removing and re-adding components. This optimizes shuffling operations like deck setup in Blackjack.
This commit is contained in:
@@ -74,6 +74,7 @@ public sealed class ObservableCapture : IDisposable
|
||||
if (change.ComponentType != null
|
||||
&& change.Kind != ChangeKind.ComponentRemoved
|
||||
&& change.Kind != ChangeKind.EntityRemoved
|
||||
&& change.Kind != ChangeKind.RelationshipReordered
|
||||
&& _formatters.TryGetValue(change.ComponentType, out var formatter))
|
||||
{
|
||||
formattedValue = formatter(_world, change.Entity);
|
||||
|
||||
Reference in New Issue
Block a user