Module

Reactor.Internal.Types

Package
purescript-grid-reactors
Repository
Eugleo/purescript-grid-reactors

#Cell Source

data Cell

Constructors

Instances

#State Source

type State :: (Type -> Type) -> Type -> Typetype State m world = { context :: Maybe Context2D, lastGrid :: Maybe (Grid Cell), lastTick :: Number, mouseButtonPressed :: Boolean, renderListener :: Maybe (Listener (HookM m Unit)), world :: world }

#Properties Source

type Properties world = { draw :: world -> Drawing, handleEvent :: Event -> Reaction world, height :: Int, isPaused :: world -> Boolean, tileSize :: Int, title :: String, width :: Int }