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