License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Sum types representing the Swarm events abstracted away from keybindings.
Synopsis
- data SwarmEvent
- data MainEvent
- = QuitEvent
- | ViewHelpEvent
- | ViewRobotsEvent
- | ViewRecipesEvent
- | ViewCommandsEvent
- | ViewMessagesEvent
- | ViewStructuresEvent
- | ViewGoalEvent
- | HideRobotsEvent
- | ShowCESKDebugEvent
- | PauseEvent
- | RunSingleTickEvent
- | IncreaseTpsEvent
- | DecreaseTpsEvent
- | FocusWorldEvent
- | FocusRobotEvent
- | FocusREPLEvent
- | FocusInfoEvent
- | ToggleCreativeModeEvent
- | ToggleWorldEditorEvent
- | ToggleREPLVisibilityEvent
- data REPLEvent
- data WorldEvent
- = ViewBaseEvent
- | ShowFpsEvent
- | MoveViewEvent AbsoluteDir
- data RobotEvent
- swarmEvents :: KeyEvents SwarmEvent
- defaultSwarmBindings :: [(SwarmEvent, [Binding])]
Documentation
data SwarmEvent Source #
Instances
Show SwarmEvent Source # | |
Defined in Swarm.TUI.Model.Event showsPrec :: Int -> SwarmEvent -> ShowS # show :: SwarmEvent -> String # showList :: [SwarmEvent] -> ShowS # | |
Eq SwarmEvent Source # | |
Defined in Swarm.TUI.Model.Event (==) :: SwarmEvent -> SwarmEvent -> Bool # (/=) :: SwarmEvent -> SwarmEvent -> Bool # | |
Ord SwarmEvent Source # | |
Defined in Swarm.TUI.Model.Event compare :: SwarmEvent -> SwarmEvent -> Ordering # (<) :: SwarmEvent -> SwarmEvent -> Bool # (<=) :: SwarmEvent -> SwarmEvent -> Bool # (>) :: SwarmEvent -> SwarmEvent -> Bool # (>=) :: SwarmEvent -> SwarmEvent -> Bool # max :: SwarmEvent -> SwarmEvent -> SwarmEvent # min :: SwarmEvent -> SwarmEvent -> SwarmEvent # |
Main abstract keybinding events while running the game itself.
See 'Swarm.TUI.Controller.MainEventHandler.'.
Instances
Bounded MainEvent Source # | |
Enum MainEvent Source # | |
Defined in Swarm.TUI.Model.Event succ :: MainEvent -> MainEvent # pred :: MainEvent -> MainEvent # fromEnum :: MainEvent -> Int # enumFrom :: MainEvent -> [MainEvent] # enumFromThen :: MainEvent -> MainEvent -> [MainEvent] # enumFromTo :: MainEvent -> MainEvent -> [MainEvent] # enumFromThenTo :: MainEvent -> MainEvent -> MainEvent -> [MainEvent] # | |
Show MainEvent Source # | |
Eq MainEvent Source # | |
Ord MainEvent Source # | |
Defined in Swarm.TUI.Model.Event |
REPL abstract keybinding events.
See REPLEventHandler
.
Instances
Bounded REPLEvent Source # | |
Enum REPLEvent Source # | |
Defined in Swarm.TUI.Model.Event succ :: REPLEvent -> REPLEvent # pred :: REPLEvent -> REPLEvent # fromEnum :: REPLEvent -> Int # enumFrom :: REPLEvent -> [REPLEvent] # enumFromThen :: REPLEvent -> REPLEvent -> [REPLEvent] # enumFromTo :: REPLEvent -> REPLEvent -> [REPLEvent] # enumFromThenTo :: REPLEvent -> REPLEvent -> REPLEvent -> [REPLEvent] # | |
Show REPLEvent Source # | |
Eq REPLEvent Source # | |
Ord REPLEvent Source # | |
Defined in Swarm.TUI.Model.Event |
data WorldEvent Source #
ViewBaseEvent | |
ShowFpsEvent | |
MoveViewEvent AbsoluteDir |
Instances
data RobotEvent Source #
MakeEntityEvent | |
ShowZeroInventoryEntitiesEvent | |
CycleInventorySortEvent | |
SwitchInventorySortDirection | |
SearchInventoryEvent |
Instances
defaultSwarmBindings :: [(SwarmEvent, [Binding])] Source #