| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Aztecs.World.Archetypes
Documentation
Constructors
| Archetype (Set ArchetypeComponent) |
Instances
| Monoid Archetype Source # | |
| Semigroup Archetype Source # | |
| Show Archetype Source # | |
| Eq Archetype Source # | |
| Ord Archetype Source # | |
data ArchetypeComponent where Source #
Constructors
| ArchetypeComponent :: Component c => Proxy c -> ArchetypeComponent |
Instances
| Show ArchetypeComponent Source # | |
Defined in Data.Aztecs.World.Archetypes Methods showsPrec :: Int -> ArchetypeComponent -> ShowS # show :: ArchetypeComponent -> String # showList :: [ArchetypeComponent] -> ShowS # | |
| Eq ArchetypeComponent Source # | |
Defined in Data.Aztecs.World.Archetypes Methods (==) :: ArchetypeComponent -> ArchetypeComponent -> Bool # (/=) :: ArchetypeComponent -> ArchetypeComponent -> Bool # | |
| Ord ArchetypeComponent Source # | |
Defined in Data.Aztecs.World.Archetypes Methods compare :: ArchetypeComponent -> ArchetypeComponent -> Ordering # (<) :: ArchetypeComponent -> ArchetypeComponent -> Bool # (<=) :: ArchetypeComponent -> ArchetypeComponent -> Bool # (>) :: ArchetypeComponent -> ArchetypeComponent -> Bool # (>=) :: ArchetypeComponent -> ArchetypeComponent -> Bool # max :: ArchetypeComponent -> ArchetypeComponent -> ArchetypeComponent # min :: ArchetypeComponent -> ArchetypeComponent -> ArchetypeComponent # | |
newtype ArchetypeComponents Source #
Constructors
| ArchetypeComponents (Map TypeRep Dynamic) |
Instances
| Show ArchetypeComponents Source # | |
Defined in Data.Aztecs.World.Archetypes Methods showsPrec :: Int -> ArchetypeComponents -> ShowS # show :: ArchetypeComponents -> String # showList :: [ArchetypeComponents] -> ShowS # | |
getArchetypeComponent :: forall c. Component c => ArchetypeComponents -> Maybe (c, c -> IO ()) Source #
data ArchetypeState Source #
Constructors
| ArchetypeState Archetype (Map Entity ArchetypeComponents) [ArchetypeId] |
Instances
| Show ArchetypeState Source # | |
Defined in Data.Aztecs.World.Archetypes Methods showsPrec :: Int -> ArchetypeState -> ShowS # show :: ArchetypeState -> String # showList :: [ArchetypeState] -> ShowS # | |
newtype ArchetypeId Source #
Constructors
| ArchetypeId Int |
Instances
| Show ArchetypeId Source # | |
Defined in Data.Aztecs.World.Archetypes Methods showsPrec :: Int -> ArchetypeId -> ShowS # show :: ArchetypeId -> String # showList :: [ArchetypeId] -> ShowS # | |
| Eq ArchetypeId Source # | |
Defined in Data.Aztecs.World.Archetypes | |
| Ord ArchetypeId Source # | |
Defined in Data.Aztecs.World.Archetypes Methods compare :: ArchetypeId -> ArchetypeId -> Ordering # (<) :: ArchetypeId -> ArchetypeId -> Bool # (<=) :: ArchetypeId -> ArchetypeId -> Bool # (>) :: ArchetypeId -> ArchetypeId -> Bool # (>=) :: ArchetypeId -> ArchetypeId -> Bool # max :: ArchetypeId -> ArchetypeId -> ArchetypeId # min :: ArchetypeId -> ArchetypeId -> ArchetypeId # | |
data Archetypes Source #
Constructors
| Archetypes (IntMap ArchetypeState) (Map TypeRep [ArchetypeId]) (Map Archetype ArchetypeId) Int |
Instances
| Show Archetypes Source # | |
Defined in Data.Aztecs.World.Archetypes Methods showsPrec :: Int -> Archetypes -> ShowS # show :: Archetypes -> String # showList :: [Archetypes] -> ShowS # | |
insertArchetype :: Archetype -> Components -> Archetypes -> IO (ArchetypeId, Archetypes) Source #
getArchetype :: ArchetypeId -> Archetypes -> Maybe ArchetypeState Source #
insert :: forall c. Component c => Entity -> Components -> Archetypes -> Archetypes Source #