messages

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CanShowImages added in v1.28.1

type CanShowImages struct{}

type Close added in v1.33.1

type Close struct{}

close self

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 Error added in v1.33.1

type Error error

type ExitSubcommand added in v1.33.1

type ExitSubcommand struct{}

type FinishedPack added in v1.31.1

type FinishedPack struct {
	Pack *resource.Pack
}

type Handler added in v1.33.1

type Handler interface {
	HandleMessage(msg *Message) *Message
}

type HandlerFunc

type HandlerFunc = func(msg *Message) *Message

type HaveFinishScreen added in v1.33.1

type HaveFinishScreen struct{}

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 Message added in v1.33.1

type Message struct {
	Source     string
	SourceType string
	Data       any
	Ok         bool
}

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 PlayerPosition added in v1.34.3

type PlayerPosition struct {
	Position mgl32.Vec3
}

type ProcessingPack added in v1.31.1

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

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 ServerInput added in v1.37.0

type ServerInput struct {
	Request  bool // if this is a request for input
	IsReplay bool
	Address  string
	Port     string
	Name     string
}

type SetVoidGen

type SetVoidGen struct {
	Value bool
}

type SetWorldName

type SetWorldName struct {
	WorldName string
}

type ShowPopup added in v1.33.1

type ShowPopup struct {
	Popup any
}

type StartSubcommand added in v1.33.1

type StartSubcommand struct {
	Command any
}

type UIState

type UIState int
const (
	UIStateInvalid UIState = iota
	UIStateMain
	UIStateFinished
)

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