Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query represents a query for entities. It is used to filter entities based on their components. It receives arbitrary filters that are used to filter entities. It contains a cache that is used to avoid re-evaluating the query. So it is not recommended to create a new query every time you want to filter entities with the same query.
func NewQuery ¶
func NewQuery(filter filter.LayoutFilter) *Query
NewQuery creates a new query. It receives arbitrary filters that are used to filter entities.
func (*Query) EachEntity ¶
EachEntity iterates over all entities that match the query.
Click to show internal directories.
Click to hide internal directories.