RestoreSchema.transient_component: def of bendvy-ecs-core@0.1.0.4
Import: import bendvy-ecs-core@0.1.0.4/restore_schema.bend as RestoreSchema
Lines 70-74 of bendvy-ecs-core@0.1.0.4/restore_schema.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/restore_schema.bend&start_line=70&end_line=74
import Base
import bendvy-ecs-core@0.1.0.4/restore_clear.bend as Clear
import bendvy-ecs-core@0.1.0.4/restore_transient.bend as Transient
import bendvy-ecs-core@0.1.0.4/snapshot_schema.bend as Save
import bendvy-ecs-core@0.1.0.4/snapshot_leaf.bend as Leaf
import bendvy-ecs-core@0.1.0.4/ordinary_declaration.bend as Identity
# Build an explicitly omitted transient component leaf. Snapshot input does not
# construct this payload; old entity cleanup still handles its existing storage
# when restoring the live entity set. No new arbitrary-Type factory is invented.
def transient_component(~S:Data,~P:Type,~Custom:Data,~identity:Identity.Declaration) -> Schema,Unit,Transient.State
,Custom,Transient.stage(~Transient.State
,~Custom),Transient.release(~Transient.State
),Clear.transient_component(~S,~P,~identity),Transient.insert(~S,~P,~identity),Unit,Transient.commit(~P),Transient.take_recovery(~Transient.State
)>:
Schema{Save.inventory(~S,~Leaf.TransientComponent,~Unit,~True{},~Leaf.transient_component_fields(~S,~P,~identity),~Save.unit_resource,Save.transient_component(~S,~P,~identity))}
Uses (16):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_declaration.bend&name=Declaration
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_clear.bend&name=transient_component
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_schema.bend&name=Schema
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_transient.bend&name=State
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_transient.bend&name=commit
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_transient.bend&name=insert
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_transient.bend&name=release
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_transient.bend&name=stage
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_transient.bend&name=take_recovery
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/snapshot_leaf.bend&name=TransientComponent
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/snapshot_leaf.bend&name=transient_component_fields
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/snapshot_schema.bend&name=inventory
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/snapshot_schema.bend&name=transient_component
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/snapshot_schema.bend&name=unit_resource