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

Data.Aztecs.World.Components

Documentation

class Typeable a => Component a where Source #

Minimal complete definition

Nothing

Methods

storage :: Storage a Source #

data Components Source #

Instances

Instances details
Show Components Source # 
Instance details

Defined in Data.Aztecs.World.Components

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

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

adjust :: Component c => c -> (c -> c) -> Entity -> Components -> IO Components Source #

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