aztecs-0.8.0: A modular game engine and Entity-Component-System (ECS) for Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Aztecs.ECS.World.Storage

Synopsis

Documentation

class (Typeable s, NFData s, Typeable a) => Storage a s where Source #

Component storage, containing zero or many components of the same type.

Methods

singleton :: a -> s Source #

Storage with a single component.

toAscList :: s -> [a] Source #

List of all components in the storage in ascending order.

fromAscList :: [a] -> s Source #

Convert a sorted list of components (in ascending order) into a storage.

Instances

Instances details
(Typeable a, NFData a) => Storage a [a] Source # 
Instance details

Defined in Aztecs.ECS.World.Storage

Methods

singleton :: a -> [a] Source #

toAscList :: [a] -> [a] Source #

fromAscList :: [a] -> [a] Source #