Module
Graphics.Glapple.Data.Emitter
- Package
- purescript-glappleDEPRECATED
- Repository
- yukikurage/purescript-glapple
#newEmitter Source
newEmitter :: forall m m' i. MonadEffect m => m (EmitterId m' i)
Create a new emitter
#unregister Source
unregister :: forall m m' i. MonadEffect m => RegistrationId m' i -> m Unit
Remove the handler from the emitter.
#unregisterAll Source
unregisterAll :: forall m m' i. MonadEffect m => EmitterId m' i -> m Unit
Delete all handlers.
#register Source
register :: forall m m' i. MonadEffect m => EmitterId m' i -> (i -> m' Unit) -> m (RegistrationId m' i)
Register a handler to the Emitter.
#fire Source
fire :: forall m i. MonadEffect m => MonadRec m => EmitterId m i -> i -> m Unit
Fire emitter.
#RegistrationId Source
data RegistrationId :: (Type -> Type) -> Type -> Type
data RegistrationId m i
The key that comes back when you register to the Emitter.
#emitterSize Source
emitterSize :: forall m' i m. MonadEffect m => EmitterId m' i -> m Int
- Modules
- Graphics.
Glapple - Graphics.
Glapple. Data. Emitter - Graphics.
Glapple. Data. Event - Graphics.
Glapple. Data. GameId - Graphics.
Glapple. Data. GameSpec - Graphics.
Glapple. Data. GameSpecM - Graphics.
Glapple. Data. InternalRegistrationIds - Graphics.
Glapple. Data. Picture - Graphics.
Glapple. Data. SpriteData - Graphics.
Glapple. GameRunner - Graphics.
Glapple. GameRunnerM - Graphics.
Glapple. GlappleM