systems

package
v0.19.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsShouldQuit

func IsShouldQuit(err error) bool

func PrintScreen

func PrintScreen(s tcell.SimulationScreen) string

func RenderSystem

func RenderSystem(s *State, rs *RenderState, ss *SpatialState)

func RuntimeSystem

func RuntimeSystem(s *State) error

func SpatialSystem

func SpatialSystem(s *State, ss *SpatialState)

Types

type RenderState

type RenderState struct {
	Cells  [][]graphics.CellStack
	Errors map[string][]error
}

type ShouldQuit

type ShouldQuit struct{}

func (*ShouldQuit) Error

func (s *ShouldQuit) Error() string

type SpatialState

type SpatialState struct {
	ScreenSize utils.Vector
	Offset     utils.Vector
	MaxY       int
}

type State

type State struct {
	Event            tcell.Event
	Screen           tcell.Screen
	SelectedId       string
	Cursor           utils.Vector
	OnNavigate       func(this *State) error
	IsRootNavigation bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL