| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.ECS.Prelude
Synopsis
- data Entity
- class (Typeable c, IsExclusive (RelExclusivity c)) => Component c
- required :: Component c => Set DefaultComponentType
- query :: forall qd output m w. (Queryable qd output, MonadSystem w m) => qd -> m [output]
- remove :: Collectable c ToRemove => c -> Entity -> System ()
Documentation
UNLIFTED
Points to an unique entity. The first Word# is an id, the second is a generation.
It is guaranteed that there can't be two alive entities with the same id.
Instances
| Show Entity Source # | |
| Eq Entity Source # | |
| Ord Entity Source # | |
| Queryable E Entity Source # | |
| Component c => IntoQueryFilter (CheckR Entity c) Source # | |
Defined in Mischief.ECS.World.Query.QueryFilter Methods intoQueryFilter :: CheckR Entity c -> QueryFilter Source # | |
| Component c => EraseIntoStorage (R c Entity, c -> Bool) CheckFilterType Source # | |
Defined in Mischief.ECS.World.Query.QueryFilter | |
| Component c => EraseIntoStorage (R c Entity) FilterType Source # | |
Defined in Mischief.ECS.World.Query.QueryFilter | |
| Component c => Queryable (HasR c Entity) Bool Source # | |
| Component c => Queryable (MR c Entity) (Maybe (Result (Rel c))) Source # | |
Defined in Mischief.ECS.World.Query.Queryable | |
| Component c => Queryable (R c Entity) (Result (Rel c)) Source # | |
Defined in Mischief.ECS.World.Query.Queryable | |
class (Typeable c, IsExclusive (RelExclusivity c)) => Component c Source #
The Component typeclass.
Instances
query :: forall qd output m w. (Queryable qd output, MonadSystem w m) => qd -> m [output] Source #