Aztecs.ECS.Component
data Hooks (m :: Type -> Type) Source #
Component lifecycle hooks.
Constructors
Fields
Hook called when a component is inserted.
Hook called when a component is removed.
Defined in Aztecs.ECS.Component
Methods
mempty :: Hooks m #
mappend :: Hooks m -> Hooks m -> Hooks m #
mconcat :: [Hooks m] -> Hooks m #
(<>) :: Hooks m -> Hooks m -> Hooks m #
sconcat :: NonEmpty (Hooks m) -> Hooks m #
stimes :: Integral b => b -> Hooks m -> Hooks m #
class Monad m => Component (m :: Type -> Type) a where Source #
Minimal complete definition
Nothing
Associated Types
type ComponentStorage (m :: Type -> Type) a :: Type -> Type Source #
componentHooks :: proxy a -> Hooks m Source #
Component lifecycle Hooks.
Hooks