component

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gravestone

type Gravestone struct {
	Nickname string `json:"nickname"`
}

func (Gravestone) FromProto added in v0.15.0

func (c Gravestone) FromProto(p *component.Gravestone) Gravestone

func (Gravestone) MarshalWire added in v0.15.0

func (c Gravestone) MarshalWire() ([]byte, error)

func (Gravestone) Name

func (Gravestone) Name() string

func (Gravestone) ToProto added in v0.15.0

func (c Gravestone) ToProto() *component.Gravestone

func (Gravestone) UnmarshalWire added in v0.15.0

func (c Gravestone) UnmarshalWire(data []byte) (Gravestone, error)

type Health

type Health struct {
	HP int `json:"hp"`
}

func (Health) FromProto added in v0.15.0

func (c Health) FromProto(p *component.Health) Health

func (Health) MarshalWire added in v0.15.0

func (c Health) MarshalWire() ([]byte, error)

func (Health) Name

func (Health) Name() string

func (Health) ToProto added in v0.15.0

func (c Health) ToProto() *component.Health

func (Health) UnmarshalWire added in v0.15.0

func (c Health) UnmarshalWire(data []byte) (Health, error)

type PlayerTag

type PlayerTag struct {
	Nickname string `json:"nickname"`
}

func (PlayerTag) FromProto added in v0.15.0

func (c PlayerTag) FromProto(p *component.PlayerTag) PlayerTag

func (PlayerTag) MarshalWire added in v0.15.0

func (c PlayerTag) MarshalWire() ([]byte, error)

func (PlayerTag) Name

func (PlayerTag) Name() string

func (PlayerTag) ToProto added in v0.15.0

func (c PlayerTag) ToProto() *component.PlayerTag

func (PlayerTag) UnmarshalWire added in v0.15.0

func (c PlayerTag) UnmarshalWire(data []byte) (PlayerTag, error)

Jump to

Keyboard shortcuts

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