messages

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIStateInvalid = iota
	UIStateMain
	UIStateFinished
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CanShowImages added in v1.28.1

type CanShowImages struct{}

type ConnectState added in v1.31.1

type ConnectState int
const (
	ConnectStateBegin ConnectState = iota + 1
	ConnectStateListening
	ConnectStateServerConnecting
	ConnectStateReceivingResources
	ConnectStateEstablished
	ConnectStateDone
)

type DownloadedPack added in v1.28.1

type DownloadedPack struct {
	Path string
	Err  error
}

type FinishedPack added in v1.31.1

type FinishedPack struct {
	Pack *resource.Pack
}

type HandlerFunc

type HandlerFunc = func(data any) Response

type Init

type Init struct {
	Handler HandlerFunc
}

type InitialPacksInfo added in v1.29.0

type InitialPacksInfo struct {
	Packs []protocol.TexturePackInfo
}

type MapLookup added in v1.32.0

type MapLookup struct {
	Lookup *image.RGBA
}

type NewSkin

type NewSkin struct {
	PlayerName string
	Skin       *protocol.Skin
}

type PackDownloadProgress added in v1.29.0

type PackDownloadProgress struct {
	UUID      string
	LoadedAdd uint64
}

type ProcessingPack added in v1.31.1

type ProcessingPack struct {
	ID         string
	Processing bool
	Path       string
	Err        error
}

type Response added in v1.31.1

type Response struct {
	Data any
	Ok   bool
}

type SavedWorld added in v1.30.0

type SavedWorld struct {
	Name     string
	Path     string
	Chunks   int
	Entities int
	Image    image.Image
}

type SavingWorld added in v1.28.1

type SavingWorld struct {
	World *SavedWorld
}

type SetUIState

type SetUIState = UIState

type SetVoidGen

type SetVoidGen struct {
	Value bool
}

type SetWorldName

type SetWorldName struct {
	WorldName string
}

type UIState

type UIState int

type UpdateAvailable added in v1.30.0

type UpdateAvailable struct {
	Version string
}

type UpdateMap

type UpdateMap struct {
	Chunks        map[protocol.ChunkPos]*image.RGBA
	UpdatedChunks []protocol.ChunkPos
	ChunkCount    int
	Rotation      float32
}

Jump to

Keyboard shortcuts

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