hsapp

package
v0.0.0-...-667d129 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 48 Imported by: 0

Documentation

Overview

Package hsapp contains HellSpawner's high-level application logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*Flags

	TextureLoader hscommon.TextureLoader
	// contains filtered or unexported fields
}

App represents an app

func Create

func Create() (*App, error)

Create creates new app instance

func (*App) CloseAllOpenWindows

func (a *App) CloseAllOpenWindows()

CloseAllOpenWindows closes all opened windows

func (*App) Quit

func (a *App) Quit()

Quit quits the app

func (*App) RestoreAppState

func (a *App) RestoreAppState(state hsstate.AppState)

RestoreAppState restores an app state

func (*App) Run

func (a *App) Run() (err error)

Run runs an app instance

func (*App) Save

func (a *App) Save()

Save saves app state

func (*App) State

func (a *App) State() hsstate.AppState

State creates a new app state

type Flags

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

Flags specifies app flags

Jump to

Keyboard shortcuts

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