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

Aztecs.ECS.World.Archetype

Synopsis

Documentation

data Archetype Source #

Instances

Instances details
Generic Archetype Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype

Associated Types

type Rep Archetype :: Type -> Type #

Show Archetype Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype

NFData Archetype Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype

Methods

rnf :: Archetype -> () #

type Rep Archetype Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype

type Rep Archetype = D1 ('MetaData "Archetype" "Aztecs.ECS.World.Archetype" "aztecs-0.8.0-5YWGoxTs0Vw9iciqZAe9GO" 'False) (C1 ('MetaCons "Archetype" 'PrefixI 'True) (S1 ('MetaSel ('Just "storages") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map ComponentID DynamicStorage)) :*: S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set EntityID))))

insertAscList :: forall a. Component a => ComponentID -> [a] -> Archetype -> Archetype Source #

Insert a list of components into the archetype, sorted in ascending order by their EntityID.