apecs-0.9.4: Fast Entity-Component-System library for game programming
Source
Contents
Index
Safe Haskell
None
Language
Haskell2010
Apecs.Core
Synopsis
newtype
Entity
=
Entity
{
unEntity
::
Int
}
newtype
SystemT
w m a =
SystemT
{
unSystem
::
ReaderT
w m a
}
type
System
w a =
SystemT
w
IO
a
class
Elem
(
Storage
c) ~ c =>
Component
c
where
type
Storage
c
class
(
Monad
m,
Component
c) =>
Has
w m c
where
getStore
::
SystemT
w m (
Storage
c)
type family
Elem
s
class
ExplInit
m s
where
explInit
:: m s
class