def trace_enabled

bendvy-ecs-core@0.1.0.4 · transaction.bend:101

import bendvy-ecs-core@0.1.0.4/transaction.bend as Transaction
import Base
import bendvy-ecs-core@0.1.0.4/trace_facts.bend as TraceFacts

101# Return the transaction owner and its trace-enabled flag without emitting
102# a fact, invoking gameplay or changing journal/queue contents.
103def trace_enabled(~W:Type,~E:Data,tx:Tx<W,E>) -> Tx<W,E> & Bool:
104  match tx:
105    case Tx{world,undo,commands,events,+trace}:(Tx{world,undo,commands,events,trace},TraceFacts.enabled(trace))

Uses (5)

Used by (3)