filter

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 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.ComponentType) 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.ComponentType) LayoutFilter

Contains matches layouts that contains all the components specified.

func Exact

func Exact(components []*component.ComponentType) 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