Documentation
¶
Index ¶
- type Gravestone
- func (c Gravestone) AppendWire(b []byte) []byte
- func (c Gravestone) FromProto(p *pbcomponent.Gravestone) Gravestone
- func (c Gravestone) MarshalWire() []byte
- func (Gravestone) Name() string
- func (c Gravestone) ProtoDescriptor() protoreflect.MessageDescriptor
- func (c Gravestone) SizeWire() int
- func (c Gravestone) ToProto() *pbcomponent.Gravestone
- func (c Gravestone) UnmarshalWire(data []byte) (any, error)
- type Health
- func (c Health) AppendWire(b []byte) []byte
- func (c Health) FromProto(p *pbcomponent.Health) Health
- func (c Health) MarshalWire() []byte
- func (Health) Name() string
- func (c Health) ProtoDescriptor() protoreflect.MessageDescriptor
- func (c Health) SizeWire() int
- func (c Health) ToProto() *pbcomponent.Health
- func (c Health) UnmarshalWire(data []byte) (any, error)
- type PlayerTag
- func (c PlayerTag) AppendWire(b []byte) []byte
- func (c PlayerTag) FromProto(p *pbcomponent.PlayerTag) PlayerTag
- func (c PlayerTag) MarshalWire() []byte
- func (PlayerTag) Name() string
- func (c PlayerTag) ProtoDescriptor() protoreflect.MessageDescriptor
- func (c PlayerTag) SizeWire() int
- func (c PlayerTag) ToProto() *pbcomponent.PlayerTag
- func (c PlayerTag) UnmarshalWire(data []byte) (any, error)
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) AppendWire ¶ added in v0.16.9
func (c Gravestone) AppendWire(b []byte) []byte
func (Gravestone) FromProto ¶ added in v0.15.0
func (c Gravestone) FromProto(p *pbcomponent.Gravestone) Gravestone
func (Gravestone) MarshalWire ¶ added in v0.15.0
func (c Gravestone) MarshalWire() []byte
func (Gravestone) Name ¶
func (Gravestone) Name() string
func (Gravestone) ProtoDescriptor ¶ added in v0.16.4
func (c Gravestone) ProtoDescriptor() protoreflect.MessageDescriptor
func (Gravestone) SizeWire ¶ added in v0.16.9
func (c Gravestone) SizeWire() int
func (Gravestone) ToProto ¶ added in v0.15.0
func (c Gravestone) ToProto() *pbcomponent.Gravestone
func (Gravestone) UnmarshalWire ¶ added in v0.15.0
func (c Gravestone) UnmarshalWire(data []byte) (any, error)
type Health ¶
type Health struct {
HP int `json:"hp"`
}
func (Health) AppendWire ¶ added in v0.16.9
func (Health) MarshalWire ¶ added in v0.15.0
func (Health) ProtoDescriptor ¶ added in v0.16.4
func (c Health) ProtoDescriptor() protoreflect.MessageDescriptor
func (Health) ToProto ¶ added in v0.15.0
func (c Health) ToProto() *pbcomponent.Health
type PlayerTag ¶
type PlayerTag struct {
Nickname string `json:"nickname"`
}
func (PlayerTag) AppendWire ¶ added in v0.16.9
func (PlayerTag) FromProto ¶ added in v0.15.0
func (c PlayerTag) FromProto(p *pbcomponent.PlayerTag) PlayerTag
func (PlayerTag) MarshalWire ¶ added in v0.15.0
func (PlayerTag) ProtoDescriptor ¶ added in v0.16.4
func (c PlayerTag) ProtoDescriptor() protoreflect.MessageDescriptor
func (PlayerTag) ToProto ¶ added in v0.15.0
func (c PlayerTag) ToProto() *pbcomponent.PlayerTag
Click to show internal directories.
Click to hide internal directories.