package ecs

import 

func ( *storage) ( ID) {
	if !.registry.IsRelation[.id] {
		panic(fmt.Sprintf("component with ID %d is not a relation component", .id))
	}
}

func ( *storage) ( Entity) {
	if !.IsZero() && !.entityPool.Alive() {
		panic("can't use a dead entity as relation target, except for the zero entity")
	}
}