RestoreLeaf.same_kind: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/restore_leaf.bend as RestoreLeaf Lines 16-20 of bendvy-ecs-core@0.1.0.4/restore_leaf.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/restore_leaf.bend&start_line=16&end_line=20 import Base import bendvy-ecs-core@0.1.0.4/restore_data.bend as R def same_kind(kind:FamilyKind,position:R.Position) -> Bool: match kind position: case Component{} R.Component{_}:True{} case Resource{} R.Resource{}:True{} case _ _:False{} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_data.bend&name=Position https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_leaf.bend&name=FamilyKind