client

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMode

type ChatMode int
const (
	Full ChatMode = iota
	Cmds
	None
)

type HotBarSlot

type HotBarSlot byte
const (
	SLOT_0 HotBarSlot = iota
	SLOT_1
	SLOT_2
	SLOT_3
	SLOT_4
	SLOT_5
	SLOT_6
	SLOT_7
	SLOT_8
)

type MainHand

type MainHand int
const (
	Hand_L MainHand = iota
	Hand_R
)

type PlayerAbilities

type PlayerAbilities struct {
	mask.Masking

	Invulnerable bool
	Flying       bool
	AllowFlight  bool
	InstantBuild bool // creative??
}

func (*PlayerAbilities) Pull

func (p *PlayerAbilities) Pull(reader buff.Buffer)

func (*PlayerAbilities) Push

func (p *PlayerAbilities) Push(writer buff.Buffer)

type PlayerInfo

type PlayerInfo interface {
	buff.BufferPush
}

type PlayerInfoAction

type PlayerInfoAction int32
const (
	AddPlayer PlayerInfoAction = iota
	UpdateGameMode
	UpdateLatency
	UpdateDisplayName
	RemovePlayer
)

type PlayerInfoAddPlayer

type PlayerInfoAddPlayer struct {
	Player ents.Player
}

func (*PlayerInfoAddPlayer) Push

func (p *PlayerInfoAddPlayer) Push(writer buff.Buffer)

type PlayerInfoUpdateLatency

type PlayerInfoUpdateLatency struct {
}

type Relativity

type Relativity struct {
	mask.Masking

	X bool
	Y bool
	Z bool

	AxisX bool
	AxisY bool
}

func (*Relativity) Push

func (r *Relativity) Push(writer buff.Buffer)

type SkinParts

type SkinParts struct {
	mask.Masking

	Cape bool
	Head bool
	Body bool
	ArmL bool
	ArmR bool
	LegL bool
	LegR bool
}

func (*SkinParts) Pull

func (d *SkinParts) Pull(reader buff.Buffer)

func (*SkinParts) Push

func (d *SkinParts) Push(writer buff.Buffer)

func (*SkinParts) String

func (d *SkinParts) String() string

type StatusAction

type StatusAction int
const (
	Respawn StatusAction = iota
	Request
)

Jump to

Keyboard shortcuts

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