Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LayoutFilter ¶
type LayoutFilter interface { // MatchesLayout returns true if the entity matches the filter. MatchesLayout(components []component.IComponentType) bool }
LayoutFilter is a filter that filters entities based on their components.
func And ¶
func And(filters ...LayoutFilter) LayoutFilter
func Contains ¶
func Contains(components ...component.IComponentType) LayoutFilter
Contains matches layouts that contains all the components specified.
func Exact ¶
func Exact(components []component.IComponentType) LayoutFilter
Exact matches layouts that contain exactly the same components specified.
func Not ¶
func Not(filter LayoutFilter) LayoutFilter
func Or ¶
func Or(filters ...LayoutFilter) LayoutFilter
Click to show internal directories.
Click to hide internal directories.