def apply_live_result

bendvy-ecs-core@0.1.0.4 · relation_commands.bend:41

import bendvy-ecs-core@0.1.0.4/relation_commands.bend as RelationCommands
import Base
import entity_key.bend as Key
import relation_types.bend as G
import world.bend as W

41def apply_live_result(~S: Data,~C: Type,~R: Type,~E: Data,checked: W.World<S,Store<S,C>,R,Notice<S,E>> & Bool,+descriptor: G.Descriptor<S>,+source:Key.Key,+target:Key.Key,sourceLive: Bool) -> W.World<S,Store<S,C>,R,Notice<S,E>> & Maybe<&2,G.Error>:
42  (world,targetLive) = checked
43  W.with_store(~S,~Store<S,C>,~R,~Notice<S,E>,~Maybe<&2,G.Error>,store => store_relate(~S,~C,store,descriptor,source,target,sourceLive,targetLive),world)

Uses (12)

Used by (1)