apecs-0.9.4: Fast Entity-Component-System library for game programming
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Apecs.Experimental.Components

Description

This module is experimental, and its API might change between point releases. Use at your own risk. -

Synopsis

Documentation

data Redirect c Source #

Pseudocomponent that when written to, actually writes c to its entity argument. Can be used to write to other entities in a cmap.

Constructors

Redirect Entity c 

Instances

Instances details
Has w m c => Has w m (Redirect c) Source # 
Instance details

Defined in Apecs.Experimental.Components

Methods

getStore :: SystemT w m (Storage (Redirect c)) Source #

Eq c => Eq (Redirect c) Source # 
Instance details

Defined in Apecs.Experimental.Components

Methods

(==) :: Redirect c -> Redirect c -> Bool #

(/=) :: Redirect c -> Redirect c -> Bool #

Show c => Show (Redirect c) Source # 
Instance details

Defined in Apecs.Experimental.Components

Methods

showsPrec :: Int -> Redirect c -> ShowS #

show :: Redirect c -> String #

showList :: [Redirect c] -> ShowS #

Component c => Component (Redirect c) Source # 
Instance details

Defined in Apecs.Experimental.Components

Associated Types

type Storage (Redirect c) Source #

type Storage (Redirect c) Source # 
Instance details

Defined in Apecs.Experimental.Components

type Storage (Redirect c)

newtype Head c Source #

Pseudocomponent that can be read like any other component, but will only yield a single member when iterated over. Intended to be used as cmap $ Head (...) -> ...

Constructors

Head c 

Instances

Instances details
Has w m c => Has w m (Head c) Source # 
Instance details

Defined in Apecs.Experimental.Components

Methods

getStore :: SystemT w m (Storage (Head c)) Source #

Eq c => Eq (Head c) Source # 
Instance details

Defined in Apecs.Experimental.Components

Methods

(==) :: Head c -> Head c -> Bool #

(/=) :: Head c -> Head c -> Bool #

Show c => Show (Head c) Source # 
Instance details

Defined in Apecs.Experimental.Components

Methods

showsPrec :: Int -> Head c -> ShowS #

show :: Head c -> String #

showList :: [Head c] -> ShowS #

Component c => Component (Head c) Source # 
Instance details

Defined in Apecs.Experimental.Components

Associated Types

type Storage (Head c) Source #

type Storage (Head c) Source # 
Instance details

Defined in Apecs.Experimental.Components

type Storage (Head c)