def capacity_error
import bendvy-ecs-core@0.1.0.4/restore_apply.bend as RestoreApplyimport Base
import bendvy-ecs-core@0.1.0.4/restore_data.bend as R
import bendvy-ecs-core@0.1.0.4/snapshot_data.bend as Snapshot
34def capacity_error(~Custom:Data,input:Snapshot.Snapshot) -> R.Error<Custom>:
35 match input:
36 case Snapshot.Snapshot{_,floor,_,_}:R.Capacity{floor}