aztecs-0.16.0: A modular game engine and Entity-Component-System (ECS) for Haskell.
Copyright(c) Matt Hunzinger 2025
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainermatt@hunzinger.me
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Aztecs.ECS.World.Archetype.Internal

Description

 
Synopsis

Documentation

data Archetype (m :: Type -> Type) Source #

Archetype of entities and components. An archetype is guranteed to contain one of each stored component per entity.

Constructors

Archetype 

Fields

Instances

Instances details
Monoid (Archetype m) Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype.Internal

Semigroup (Archetype m) Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype.Internal

Methods

(<>) :: Archetype m -> Archetype m -> Archetype m #

sconcat :: NonEmpty (Archetype m) -> Archetype m #

stimes :: Integral b => b -> Archetype m -> Archetype m #

Generic (Archetype m) Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype.Internal

Associated Types

type Rep (Archetype m) 
Instance details

Defined in Aztecs.ECS.World.Archetype.Internal

type Rep (Archetype m) = D1 ('MetaData "Archetype" "Aztecs.ECS.World.Archetype.Internal" "aztecs-0.16.0-1t3LRuVnzUqKpg58E4sSVq" 'False) (C1 ('MetaCons "Archetype" 'PrefixI 'True) (S1 ('MetaSel ('Just "storages") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (IntMap DynamicStorage)) :*: S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set EntityID))))

Methods

from :: Archetype m -> Rep (Archetype m) x #

to :: Rep (Archetype m) x -> Archetype m #

Show (Archetype m) Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype.Internal

type Rep (Archetype m) Source # 
Instance details

Defined in Aztecs.ECS.World.Archetype.Internal

type Rep (Archetype m) = D1 ('MetaData "Archetype" "Aztecs.ECS.World.Archetype.Internal" "aztecs-0.16.0-1t3LRuVnzUqKpg58E4sSVq" 'False) (C1 ('MetaCons "Archetype" 'PrefixI 'True) (S1 ('MetaSel ('Just "storages") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (IntMap DynamicStorage)) :*: S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set EntityID))))

empty :: forall (m :: Type -> Type). Archetype m Source #

Empty archetype.