def empty_dispatch

bendvy-ecs-core@0.1.0.4 · ordinary_app_execution_recipe.bend:42

import bendvy-ecs-core@0.1.0.4/ordinary_app_execution_recipe.bend as OrdinaryAppExecutionRecipe
import Base
import bendvy-ecs-core@0.1.0.4/execution_context.bend as Ctx
import bendvy-ecs-core@0.1.0.4/system.bend as Sys

42# Empty dispatcher retains owner/context and returns Sys.Failed(Unit) for every
43# id. It never treats an unknown id as a successfully executed empty system.
44def empty_dispatch(~World:Type,owner:Unit,world:Ctx.Context<World>,id:U32) -> Unit & Sys.Outcome<Ctx.Context<World>,Unit,Unit>:
45  (owner,Sys.Failed{world,Unit{}})

Uses (6)

Used by (1)