filter

package
v1.15.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2025 License: CC0-1.0, MIT Imports: 1 Imported by: 53

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL