def tx_remove
import bendvy-ecs-core@0.1.0.4/component.bend as Componentimport Base
import column.bend as Col
import world.bend as W
import transaction.bend as T
352# Remove from a live entity within Tx, journaling the previous owner/stamp for
353# rollback. Removing an already absent component can succeed; invalid handles or
354# capacity refusal return RemoveRejected. Finish is still the caller's choice.
355def tx_remove(~S: Data,~Store: Type,~R: Type,~E: Data,~Rest: Type,~C: Type,~V: Data,~Token: Data,~take: Store -> Rest & Col.Column<S,C>,~put: Rest -> Col.Column<S,C> -> Store,~project: C -> C & V,+family: Family<S,Store,Rest,C,V,Token,take,put,project>,tx: T.Tx<W.World<S,Store,R,E>,E>,+handle: W.Handle<S>) -> RemoveResult<T.Tx<W.World<S,Store,R,E>,E>>:
356 match tx:
357 case T.Tx{world,undo,commands,events,trace}:
358 tx_remove_stamped(~S,~Store,~R,~E,~Rest,~C,~V,~Token,~take,~put,~project,family,handle,undo,commands,events,trace,lifecycle(~S,~Store,~R,~E,~Rest,~C,~V,~Token,~take,~put,~project,family,world,handle))
Uses (9)
Used by (0)
No other definition uses this definition.