Source File
checks.go
Belonging Package
github.com/mlange-42/ark/ecs
package ecsimportfunc ( *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")}}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |