tui

package
v0.0.0-...-50ddc58 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model represents the application state

func NewModel

func NewModel(host string, port int, mudLogFile, tuiLogFile *os.File) Model

NewModel creates a new application model

func NewModelWithAuth

func NewModelWithAuth(host string, port int, username, password string, mudLogFile, tuiLogFile, telnetDebugLog *os.File, mapDebug bool) Model

NewModelWithAuth creates a new application model with authentication credentials

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initializes the application

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles messages and updates the model

func (*Model) View

func (m *Model) View() string

View renders the application

type XPStat

type XPStat struct {
	CreatureName string
	XP           int
	Seconds      float64
	XPPerSecond  float64
}

XPStat represents XP per second statistics for a creature

Jump to

Keyboard shortcuts

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