aztecs-0.1.0.1: A type-safe and friendly ECS for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Aztecs.World

Documentation

data Entity Source #

Instances

Instances details
Show Entity Source # 
Instance details

Defined in Data.Aztecs.Core

Eq Entity Source # 
Instance details

Defined in Data.Aztecs.Core

Methods

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

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

Ord Entity Source # 
Instance details

Defined in Data.Aztecs.Core

data EntityComponent a Source #

Constructors

EntityComponent Entity a 

Instances

Instances details
Show a => Show (EntityComponent a) Source # 
Instance details

Defined in Data.Aztecs.Core

class Typeable a => Component a where Source #

Minimal complete definition

Nothing

Methods

storage :: Storage a Source #

data World Source #

Instances

Instances details
Show World Source # 
Instance details

Defined in Data.Aztecs.World

Methods

showsPrec :: Int -> World -> ShowS #

show :: World -> String #

showList :: [World] -> ShowS #

spawn :: forall c. Component c => c -> World -> IO (Entity, World) Source #

insert :: forall c. Component c => Entity -> c -> World -> IO World Source #

get :: forall c. Component c => Entity -> World -> IO (Maybe (c, c -> World -> IO World)) Source #

setRow :: forall c. Component c => Storage c -> World -> World Source #

remove :: forall c. Component c => Entity -> World -> World Source #