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 :: (Type -> Type) -> Type -> Typetype Properties m world = { cellSize :: Int, draw :: world -> Drawing, height :: Int, onKey :: KeypressEvent -> Action m world DefaultBehavior, onMouse :: MouseEvent -> Action m world DefaultBehavior, onTick :: TickEvent -> Action m world Unit, title :: String, width :: Int }