| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.ECS.World.Query.QueryFilter
Documentation
qfChangedF :: (Tick -> Tick -> Bool) -> (Tick -> Tick -> Bool) -> ComponentTick -> Tick -> Tick -> Bool Source #
data FilterType Source #
Constructors
| ArchetypeFilter | |
| EntityFilter |
data QueryFilter where Source #
Constructors
| NoFilter :: QueryFilter | |
| With :: forall a. ToFilterComponent a => a -> QueryFilter | |
| Without :: forall a. ToFilterComponent a => a -> QueryFilter | |
| Changed :: forall a. ToFilterComponent a => a -> (Tick -> Tick -> Bool) -> (Tick -> Tick -> Bool) -> QueryFilter | |
| And :: QueryFilter -> QueryFilter -> QueryFilter | |
| Or :: QueryFilter -> QueryFilter -> QueryFilter |
Instances
newtype FilterComponent Source #
class ToFilterComponent a where Source #
Methods
toFilterComponent :: a -> FilterComponent Source #
Instances
| Component c => ToFilterComponent (C c) Source # | |
Defined in Mischief.ECS.World.Query.QueryFilter Methods toFilterComponent :: C c -> FilterComponent Source # | |
| Component c => ToFilterComponent (R c Entity) Source # | |
Defined in Mischief.ECS.World.Query.QueryFilter Methods toFilterComponent :: R c Entity -> FilterComponent Source # | |
| Component c => ToFilterComponent (R c Any) Source # | |
Defined in Mischief.ECS.World.Query.QueryFilter Methods toFilterComponent :: R c Any -> FilterComponent Source # | |
filterArchetype' :: FilterComponent -> World -> [ComponentId] -> IO Bool Source #