Source File
query_nodebug.go
Belonging Package
github.com/mlange-42/ark/ecs
//go:build !ark_debugpackage ecsimport// Next advances the query's cursor to the next entity.func ( *UnsafeQuery) () bool {if int64(.cursor.index) < .cursor.maxIndex {.cursor.index++return true}return .nextTableOrArchetype()}// Entity returns the current entity.func ( *UnsafeQuery) () Entity {return .table.GetEntity(.cursor.index)}// Get returns the queried components of the current entity.//// ⚠️ Do not store the obtained pointer outside of the current context (i.e. the query loop)!func ( *UnsafeQuery) ( ID) unsafe.Pointer {return .table.Get(, .cursor.index)}
![]() |
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. |