mischief-ecs
Safe HaskellNone
LanguageGHC2024

Mischief.ECS.EntityDef

Synopsis

Documentation

data Entity Source #

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.

Constructors

Entity (# Word#, Word# #) 

Instances

Instances details
Show Entity Source # 
Instance details

Defined in Mischief.ECS.EntityDef

Eq Entity Source # 
Instance details

Defined in Mischief.ECS.EntityDef

Methods

(==) :: Entity -> Entity -> Bool #

(/=) :: Entity -> Entity -> Bool #

Ord Entity Source # 
Instance details

Defined in Mischief.ECS.EntityDef

Queryable E Entity Source # 
Instance details

Defined in Mischief.ECS.World.Query.Queryable

ListToOutgoing (Maybe Entity) Source # 
Instance details

Defined in Mischief.ECS.Relationships.Graph

ListToOutgoing [Entity] Source # 
Instance details

Defined in Mischief.ECS.Relationships.Graph

Component c => ToFilterComponent (R c Entity) Source # 
Instance details

Defined in Mischief.ECS.World.Query.QueryFilter

Component c => Queryable (HasR c Entity) Bool Source # 
Instance details

Defined in Mischief.ECS.World.Query.Queryable

Component c => Queryable (MR c Entity) (Maybe (Rel c)) Source # 
Instance details

Defined in Mischief.ECS.World.Query.Queryable

Component c => Queryable (R c Entity) (Rel c) Source # 
Instance details

Defined in Mischief.ECS.World.Query.Queryable

newtype Entity# :: TYPE ('TupleRep '['WordRep, 'WordRep]) Source #

Constructors

Entity# (# Word#, Word# #)