citylistview

package
v0.0.0-...-64ed9ee Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CityListScreen

type CityListScreen struct {
	Cache              *lbx.LbxCache
	Player             *playerlib.Player
	ImageCache         util.ImageCache
	UI                 *uilib.UI
	State              CityListScreenState
	CurrentBuildScreen *cityview.BuildScreen
	BuildScreenUpdate  func()
	DrawMinimap        func(*ebiten.Image, int, int, data.Plane, uint64)
	DoSelectCity       func(*citylib.City)
	FirstRow           int
}

func MakeCityListScreen

func MakeCityListScreen(cache *lbx.LbxCache, player *playerlib.Player, drawMinimap func(*ebiten.Image, int, int, data.Plane, uint64), selectCity func(*citylib.City)) *CityListScreen

func (*CityListScreen) Draw

func (view *CityListScreen) Draw(screen *ebiten.Image)

func (*CityListScreen) MakeUI

func (view *CityListScreen) MakeUI() *uilib.UI

func (*CityListScreen) Update

func (view *CityListScreen) Update() CityListScreenState

type CityListScreenState

type CityListScreenState int
const (
	CityListScreenStateRunning CityListScreenState = iota
	CityListScreenStateDone
)

Jump to

Keyboard shortcuts

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