messages

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIStateConnect = iota
	UIStateConnecting
	UIStateMain
	UIStateFinished
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CanShowImages added in v1.28.1

type CanShowImages struct{}

type DownloadedPack added in v1.28.1

type DownloadedPack struct {
	UUID string
	Name string
	Path string
	Size int
	Icon image.Image
	Err  error
}

type FinishedDownloadingPacks added in v1.28.1

type FinishedDownloadingPacks struct {
	Packs []*DownloadedPack
}

type HandlerFunc

type HandlerFunc = func(data interface{}) MessageResponse

type Init

type Init struct {
	Handler HandlerFunc
}

type InitialPacksInfo added in v1.29.0

type InitialPacksInfo struct {
	Packs []protocol.TexturePackInfo
}

type MessageResponse

type MessageResponse struct {
	Ok   bool
	Data interface{}
}

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 SavedWorld added in v1.30.0

type SavedWorld struct {
	Name   string
	Path   string
	Chunks 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 {
	ChunkCount   int
	Rotation     float32
	UpdatedTiles []protocol.ChunkPos
	Tiles        map[protocol.ChunkPos]*image.RGBA
	BoundsMin    protocol.ChunkPos
	BoundsMax    protocol.ChunkPos
}

Jump to

Keyboard shortcuts

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