def same_kind
import bendvy-ecs-core@0.1.0.4/restore_leaf.bend as RestoreLeafimport Base
import bendvy-ecs-core@0.1.0.4/restore_data.bend as R
16def same_kind(kind:FamilyKind,position:R.Position) -> Bool:
17 match kind position:
18 case Component{} R.Component{_}:True{}
19 case Resource{} R.Resource{}:True{}
20 case _ _:False{}