Documentation
¶
Index ¶
- Variables
- type ControlRequest
- func (m *ControlRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ControlRequest) CloneVT() *ControlRequest
- func (this *ControlRequest) EqualMessageVT(thatMsg any) bool
- func (this *ControlRequest) EqualVT(that *ControlRequest) bool
- func (m *ControlRequest) GetBody() isControlRequest_Body
- func (x *ControlRequest) GetReload() *ReloadRequest
- func (x *ControlRequest) GetRoles() *players.RolesTable
- func (x *ControlRequest) MarshalJSON() ([]byte, error)
- func (x *ControlRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *ControlRequest) MarshalProtoText() string
- func (m *ControlRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControlRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControlRequest) MarshalVT() (dAtA []byte, err error)
- func (*ControlRequest) ProtoMessage()
- func (x *ControlRequest) Reset()
- func (m *ControlRequest) SizeVT() (n int)
- func (x *ControlRequest) String() string
- func (x *ControlRequest) UnmarshalJSON(b []byte) error
- func (x *ControlRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ControlRequest) UnmarshalVT(dAtA []byte) error
- type ControlRequest_Reload
- func (m *ControlRequest_Reload) CloneOneofVT() isControlRequest_Body
- func (m *ControlRequest_Reload) CloneVT() *ControlRequest_Reload
- func (this *ControlRequest_Reload) EqualVT(thatIface isControlRequest_Body) bool
- func (m *ControlRequest_Reload) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControlRequest_Reload) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControlRequest_Reload) SizeVT() (n int)
- type ControlRequest_Roles
- func (m *ControlRequest_Roles) CloneOneofVT() isControlRequest_Body
- func (m *ControlRequest_Roles) CloneVT() *ControlRequest_Roles
- func (this *ControlRequest_Roles) EqualVT(thatIface isControlRequest_Body) bool
- func (m *ControlRequest_Roles) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControlRequest_Roles) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControlRequest_Roles) SizeVT() (n int)
- type HostEvent
- func (m *HostEvent) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *HostEvent) CloneVT() *HostEvent
- func (this *HostEvent) EqualMessageVT(thatMsg any) bool
- func (this *HostEvent) EqualVT(that *HostEvent) bool
- func (m *HostEvent) GetBody() isHostEvent_Body
- func (x *HostEvent) GetChat() *PlayerChat
- func (x *HostEvent) GetFailed() *ModFailed
- func (x *HostEvent) GetJoined() *PlayerJoined
- func (x *HostEvent) GetLeft() *PlayerLeft
- func (x *HostEvent) GetLog() *ModLog
- func (x *HostEvent) GetMessage() *PlayerMessage
- func (x *HostEvent) GetReady() *ServerReady
- func (x *HostEvent) GetStarted() *ModStarted
- func (x *HostEvent) GetUi() *UiChanged
- func (x *HostEvent) MarshalJSON() ([]byte, error)
- func (x *HostEvent) MarshalProtoJSON(s *json.MarshalState)
- func (x *HostEvent) MarshalProtoText() string
- func (m *HostEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent) MarshalVT() (dAtA []byte, err error)
- func (*HostEvent) ProtoMessage()
- func (x *HostEvent) Reset()
- func (m *HostEvent) SizeVT() (n int)
- func (x *HostEvent) String() string
- func (x *HostEvent) UnmarshalJSON(b []byte) error
- func (x *HostEvent) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *HostEvent) UnmarshalVT(dAtA []byte) error
- type HostEvent_Chat
- func (m *HostEvent_Chat) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Chat) CloneVT() *HostEvent_Chat
- func (this *HostEvent_Chat) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Chat) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Chat) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Chat) SizeVT() (n int)
- type HostEvent_Failed
- func (m *HostEvent_Failed) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Failed) CloneVT() *HostEvent_Failed
- func (this *HostEvent_Failed) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Failed) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Failed) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Failed) SizeVT() (n int)
- type HostEvent_Joined
- func (m *HostEvent_Joined) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Joined) CloneVT() *HostEvent_Joined
- func (this *HostEvent_Joined) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Joined) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Joined) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Joined) SizeVT() (n int)
- type HostEvent_Left
- func (m *HostEvent_Left) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Left) CloneVT() *HostEvent_Left
- func (this *HostEvent_Left) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Left) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Left) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Left) SizeVT() (n int)
- type HostEvent_Log
- func (m *HostEvent_Log) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Log) CloneVT() *HostEvent_Log
- func (this *HostEvent_Log) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Log) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Log) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Log) SizeVT() (n int)
- type HostEvent_Message
- func (m *HostEvent_Message) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Message) CloneVT() *HostEvent_Message
- func (this *HostEvent_Message) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Message) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Message) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Message) SizeVT() (n int)
- type HostEvent_Ready
- func (m *HostEvent_Ready) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Ready) CloneVT() *HostEvent_Ready
- func (this *HostEvent_Ready) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Ready) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Ready) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Ready) SizeVT() (n int)
- type HostEvent_Started
- func (m *HostEvent_Started) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Started) CloneVT() *HostEvent_Started
- func (this *HostEvent_Started) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Started) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Started) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Started) SizeVT() (n int)
- type HostEvent_Ui
- func (m *HostEvent_Ui) CloneOneofVT() isHostEvent_Body
- func (m *HostEvent_Ui) CloneVT() *HostEvent_Ui
- func (this *HostEvent_Ui) EqualVT(thatIface isHostEvent_Body) bool
- func (m *HostEvent_Ui) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HostEvent_Ui) MarshalToVT(dAtA []byte) (int, error)
- func (m *HostEvent_Ui) SizeVT() (n int)
- type MessageKind
- func (x MessageKind) Enum() *MessageKind
- func (x MessageKind) MarshalJSON() ([]byte, error)
- func (x MessageKind) MarshalProtoJSON(s *json.MarshalState)
- func (x MessageKind) MarshalProtoText() string
- func (x MessageKind) MarshalText() ([]byte, error)
- func (x MessageKind) String() string
- func (x *MessageKind) UnmarshalJSON(b []byte) error
- func (x *MessageKind) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *MessageKind) UnmarshalText(b []byte) error
- type ModFailed
- func (m *ModFailed) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ModFailed) CloneVT() *ModFailed
- func (this *ModFailed) EqualMessageVT(thatMsg any) bool
- func (this *ModFailed) EqualVT(that *ModFailed) bool
- func (x *ModFailed) GetError() string
- func (x *ModFailed) GetMod() string
- func (x *ModFailed) MarshalJSON() ([]byte, error)
- func (x *ModFailed) MarshalProtoJSON(s *json.MarshalState)
- func (x *ModFailed) MarshalProtoText() string
- func (m *ModFailed) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ModFailed) MarshalToVT(dAtA []byte) (int, error)
- func (m *ModFailed) MarshalVT() (dAtA []byte, err error)
- func (*ModFailed) ProtoMessage()
- func (x *ModFailed) Reset()
- func (m *ModFailed) SizeVT() (n int)
- func (x *ModFailed) String() string
- func (x *ModFailed) UnmarshalJSON(b []byte) error
- func (x *ModFailed) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ModFailed) UnmarshalVT(dAtA []byte) error
- type ModLog
- func (m *ModLog) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ModLog) CloneVT() *ModLog
- func (this *ModLog) EqualMessageVT(thatMsg any) bool
- func (this *ModLog) EqualVT(that *ModLog) bool
- func (x *ModLog) GetMod() string
- func (x *ModLog) GetText() string
- func (x *ModLog) MarshalJSON() ([]byte, error)
- func (x *ModLog) MarshalProtoJSON(s *json.MarshalState)
- func (x *ModLog) MarshalProtoText() string
- func (m *ModLog) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ModLog) MarshalToVT(dAtA []byte) (int, error)
- func (m *ModLog) MarshalVT() (dAtA []byte, err error)
- func (*ModLog) ProtoMessage()
- func (x *ModLog) Reset()
- func (m *ModLog) SizeVT() (n int)
- func (x *ModLog) String() string
- func (x *ModLog) UnmarshalJSON(b []byte) error
- func (x *ModLog) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ModLog) UnmarshalVT(dAtA []byte) error
- type ModStarted
- func (m *ModStarted) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ModStarted) CloneVT() *ModStarted
- func (this *ModStarted) EqualMessageVT(thatMsg any) bool
- func (this *ModStarted) EqualVT(that *ModStarted) bool
- func (x *ModStarted) GetMod() string
- func (x *ModStarted) GetReloaded() bool
- func (x *ModStarted) MarshalJSON() ([]byte, error)
- func (x *ModStarted) MarshalProtoJSON(s *json.MarshalState)
- func (x *ModStarted) MarshalProtoText() string
- func (m *ModStarted) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ModStarted) MarshalToVT(dAtA []byte) (int, error)
- func (m *ModStarted) MarshalVT() (dAtA []byte, err error)
- func (*ModStarted) ProtoMessage()
- func (x *ModStarted) Reset()
- func (m *ModStarted) SizeVT() (n int)
- func (x *ModStarted) String() string
- func (x *ModStarted) UnmarshalJSON(b []byte) error
- func (x *ModStarted) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ModStarted) UnmarshalVT(dAtA []byte) error
- type PlayerChat
- func (m *PlayerChat) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *PlayerChat) CloneVT() *PlayerChat
- func (this *PlayerChat) EqualMessageVT(thatMsg any) bool
- func (this *PlayerChat) EqualVT(that *PlayerChat) bool
- func (x *PlayerChat) GetName() string
- func (x *PlayerChat) GetSlot() int32
- func (x *PlayerChat) GetText() string
- func (x *PlayerChat) MarshalJSON() ([]byte, error)
- func (x *PlayerChat) MarshalProtoJSON(s *json.MarshalState)
- func (x *PlayerChat) MarshalProtoText() string
- func (m *PlayerChat) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PlayerChat) MarshalToVT(dAtA []byte) (int, error)
- func (m *PlayerChat) MarshalVT() (dAtA []byte, err error)
- func (*PlayerChat) ProtoMessage()
- func (x *PlayerChat) Reset()
- func (m *PlayerChat) SizeVT() (n int)
- func (x *PlayerChat) String() string
- func (x *PlayerChat) UnmarshalJSON(b []byte) error
- func (x *PlayerChat) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *PlayerChat) UnmarshalVT(dAtA []byte) error
- type PlayerJoined
- func (m *PlayerJoined) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *PlayerJoined) CloneVT() *PlayerJoined
- func (this *PlayerJoined) EqualMessageVT(thatMsg any) bool
- func (this *PlayerJoined) EqualVT(that *PlayerJoined) bool
- func (x *PlayerJoined) GetName() string
- func (x *PlayerJoined) GetSlot() int32
- func (x *PlayerJoined) GetSteamId() uint64
- func (x *PlayerJoined) MarshalJSON() ([]byte, error)
- func (x *PlayerJoined) MarshalProtoJSON(s *json.MarshalState)
- func (x *PlayerJoined) MarshalProtoText() string
- func (m *PlayerJoined) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PlayerJoined) MarshalToVT(dAtA []byte) (int, error)
- func (m *PlayerJoined) MarshalVT() (dAtA []byte, err error)
- func (*PlayerJoined) ProtoMessage()
- func (x *PlayerJoined) Reset()
- func (m *PlayerJoined) SizeVT() (n int)
- func (x *PlayerJoined) String() string
- func (x *PlayerJoined) UnmarshalJSON(b []byte) error
- func (x *PlayerJoined) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *PlayerJoined) UnmarshalVT(dAtA []byte) error
- type PlayerLeft
- func (m *PlayerLeft) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *PlayerLeft) CloneVT() *PlayerLeft
- func (this *PlayerLeft) EqualMessageVT(thatMsg any) bool
- func (this *PlayerLeft) EqualVT(that *PlayerLeft) bool
- func (x *PlayerLeft) GetSlot() int32
- func (x *PlayerLeft) MarshalJSON() ([]byte, error)
- func (x *PlayerLeft) MarshalProtoJSON(s *json.MarshalState)
- func (x *PlayerLeft) MarshalProtoText() string
- func (m *PlayerLeft) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PlayerLeft) MarshalToVT(dAtA []byte) (int, error)
- func (m *PlayerLeft) MarshalVT() (dAtA []byte, err error)
- func (*PlayerLeft) ProtoMessage()
- func (x *PlayerLeft) Reset()
- func (m *PlayerLeft) SizeVT() (n int)
- func (x *PlayerLeft) String() string
- func (x *PlayerLeft) UnmarshalJSON(b []byte) error
- func (x *PlayerLeft) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *PlayerLeft) UnmarshalVT(dAtA []byte) error
- type PlayerMessage
- func (m *PlayerMessage) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *PlayerMessage) CloneVT() *PlayerMessage
- func (this *PlayerMessage) EqualMessageVT(thatMsg any) bool
- func (this *PlayerMessage) EqualVT(that *PlayerMessage) bool
- func (x *PlayerMessage) GetKind() MessageKind
- func (x *PlayerMessage) GetMod() string
- func (x *PlayerMessage) GetSlot() int32
- func (x *PlayerMessage) GetText() string
- func (x *PlayerMessage) GetTitle() string
- func (x *PlayerMessage) MarshalJSON() ([]byte, error)
- func (x *PlayerMessage) MarshalProtoJSON(s *json.MarshalState)
- func (x *PlayerMessage) MarshalProtoText() string
- func (m *PlayerMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PlayerMessage) MarshalToVT(dAtA []byte) (int, error)
- func (m *PlayerMessage) MarshalVT() (dAtA []byte, err error)
- func (*PlayerMessage) ProtoMessage()
- func (x *PlayerMessage) Reset()
- func (m *PlayerMessage) SizeVT() (n int)
- func (x *PlayerMessage) String() string
- func (x *PlayerMessage) UnmarshalJSON(b []byte) error
- func (x *PlayerMessage) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *PlayerMessage) UnmarshalVT(dAtA []byte) error
- type ReloadRequest
- func (m *ReloadRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ReloadRequest) CloneVT() *ReloadRequest
- func (this *ReloadRequest) EqualMessageVT(thatMsg any) bool
- func (this *ReloadRequest) EqualVT(that *ReloadRequest) bool
- func (x *ReloadRequest) GetPath() string
- func (x *ReloadRequest) MarshalJSON() ([]byte, error)
- func (x *ReloadRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *ReloadRequest) MarshalProtoText() string
- func (m *ReloadRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ReloadRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ReloadRequest) MarshalVT() (dAtA []byte, err error)
- func (*ReloadRequest) ProtoMessage()
- func (x *ReloadRequest) Reset()
- func (m *ReloadRequest) SizeVT() (n int)
- func (x *ReloadRequest) String() string
- func (x *ReloadRequest) UnmarshalJSON(b []byte) error
- func (x *ReloadRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ReloadRequest) UnmarshalVT(dAtA []byte) error
- type ServerReady
- func (m *ServerReady) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ServerReady) CloneVT() *ServerReady
- func (this *ServerReady) EqualMessageVT(thatMsg any) bool
- func (this *ServerReady) EqualVT(that *ServerReady) bool
- func (x *ServerReady) GetMap() string
- func (x *ServerReady) MarshalJSON() ([]byte, error)
- func (x *ServerReady) MarshalProtoJSON(s *json.MarshalState)
- func (x *ServerReady) MarshalProtoText() string
- func (m *ServerReady) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ServerReady) MarshalToVT(dAtA []byte) (int, error)
- func (m *ServerReady) MarshalVT() (dAtA []byte, err error)
- func (*ServerReady) ProtoMessage()
- func (x *ServerReady) Reset()
- func (m *ServerReady) SizeVT() (n int)
- func (x *ServerReady) String() string
- func (x *ServerReady) UnmarshalJSON(b []byte) error
- func (x *ServerReady) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ServerReady) UnmarshalVT(dAtA []byte) error
- type UiChanged
- func (m *UiChanged) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *UiChanged) CloneVT() *UiChanged
- func (this *UiChanged) EqualMessageVT(thatMsg any) bool
- func (this *UiChanged) EqualVT(that *UiChanged) bool
- func (x *UiChanged) GetChange() *ui.Change
- func (x *UiChanged) GetMod() string
- func (x *UiChanged) GetSlot() int32
- func (x *UiChanged) MarshalJSON() ([]byte, error)
- func (x *UiChanged) MarshalProtoJSON(s *json.MarshalState)
- func (x *UiChanged) MarshalProtoText() string
- func (m *UiChanged) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UiChanged) MarshalToVT(dAtA []byte) (int, error)
- func (m *UiChanged) MarshalVT() (dAtA []byte, err error)
- func (*UiChanged) ProtoMessage()
- func (x *UiChanged) Reset()
- func (m *UiChanged) SizeVT() (n int)
- func (x *UiChanged) String() string
- func (x *UiChanged) UnmarshalJSON(b []byte) error
- func (x *UiChanged) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *UiChanged) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( MessageKind_name = map[int32]string{ 0: "MESSAGE_KIND_CHAT", 1: "MESSAGE_KIND_CENTER", 2: "MESSAGE_KIND_ANNOUNCEMENT", } MessageKind_value = map[string]int32{ "MESSAGE_KIND_CHAT": 0, "MESSAGE_KIND_CENTER": 1, "MESSAGE_KIND_ANNOUNCEMENT": 2, } )
Enum value maps for MessageKind.
Functions ¶
This section is empty.
Types ¶
type ControlRequest ¶
type ControlRequest struct {
// Body selects the request.
//
// Types that are assignable to Body:
// *ControlRequest_Reload
// *ControlRequest_Roles
Body isControlRequest_Body `protobuf_oneof:"body"`
// contains filtered or unexported fields
}
ControlRequest is one request from the controller.
func (*ControlRequest) CloneMessageVT ¶
func (m *ControlRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ControlRequest) CloneVT ¶
func (m *ControlRequest) CloneVT() *ControlRequest
func (*ControlRequest) EqualMessageVT ¶
func (this *ControlRequest) EqualMessageVT(thatMsg any) bool
func (*ControlRequest) EqualVT ¶
func (this *ControlRequest) EqualVT(that *ControlRequest) bool
func (*ControlRequest) GetBody ¶
func (m *ControlRequest) GetBody() isControlRequest_Body
func (*ControlRequest) GetReload ¶
func (x *ControlRequest) GetReload() *ReloadRequest
func (*ControlRequest) GetRoles ¶ added in v0.1.53
func (x *ControlRequest) GetRoles() *players.RolesTable
func (*ControlRequest) MarshalJSON ¶
func (x *ControlRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControlRequest to JSON.
func (*ControlRequest) MarshalProtoJSON ¶
func (x *ControlRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControlRequest message to JSON.
func (*ControlRequest) MarshalProtoText ¶
func (x *ControlRequest) MarshalProtoText() string
func (*ControlRequest) MarshalToSizedBufferVT ¶
func (m *ControlRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControlRequest) MarshalToVT ¶
func (m *ControlRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ControlRequest) MarshalVT ¶
func (m *ControlRequest) MarshalVT() (dAtA []byte, err error)
func (*ControlRequest) ProtoMessage ¶
func (*ControlRequest) ProtoMessage()
func (*ControlRequest) Reset ¶
func (x *ControlRequest) Reset()
func (*ControlRequest) SizeVT ¶
func (m *ControlRequest) SizeVT() (n int)
func (*ControlRequest) String ¶
func (x *ControlRequest) String() string
func (*ControlRequest) UnmarshalJSON ¶
func (x *ControlRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControlRequest from JSON.
func (*ControlRequest) UnmarshalProtoJSON ¶
func (x *ControlRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControlRequest message from JSON.
func (*ControlRequest) UnmarshalVT ¶
func (m *ControlRequest) UnmarshalVT(dAtA []byte) error
type ControlRequest_Reload ¶
type ControlRequest_Reload struct {
// Reload replaces a running mod with a new build.
Reload *ReloadRequest `protobuf:"bytes,1,opt,name=reload,proto3,oneof"`
}
func (*ControlRequest_Reload) CloneOneofVT ¶
func (m *ControlRequest_Reload) CloneOneofVT() isControlRequest_Body
func (*ControlRequest_Reload) CloneVT ¶
func (m *ControlRequest_Reload) CloneVT() *ControlRequest_Reload
func (*ControlRequest_Reload) EqualVT ¶
func (this *ControlRequest_Reload) EqualVT(thatIface isControlRequest_Body) bool
func (*ControlRequest_Reload) MarshalToSizedBufferVT ¶
func (m *ControlRequest_Reload) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControlRequest_Reload) MarshalToVT ¶
func (m *ControlRequest_Reload) MarshalToVT(dAtA []byte) (int, error)
func (*ControlRequest_Reload) SizeVT ¶
func (m *ControlRequest_Reload) SizeVT() (n int)
type ControlRequest_Roles ¶ added in v0.1.53
type ControlRequest_Roles struct {
// Roles replaces the players' roles, which mods read on each Connection.
Roles *players.RolesTable `protobuf:"bytes,2,opt,name=roles,proto3,oneof"`
}
func (*ControlRequest_Roles) CloneOneofVT ¶ added in v0.1.53
func (m *ControlRequest_Roles) CloneOneofVT() isControlRequest_Body
func (*ControlRequest_Roles) CloneVT ¶ added in v0.1.53
func (m *ControlRequest_Roles) CloneVT() *ControlRequest_Roles
func (*ControlRequest_Roles) EqualVT ¶ added in v0.1.53
func (this *ControlRequest_Roles) EqualVT(thatIface isControlRequest_Body) bool
func (*ControlRequest_Roles) MarshalToSizedBufferVT ¶ added in v0.1.53
func (m *ControlRequest_Roles) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControlRequest_Roles) MarshalToVT ¶ added in v0.1.53
func (m *ControlRequest_Roles) MarshalToVT(dAtA []byte) (int, error)
func (*ControlRequest_Roles) SizeVT ¶ added in v0.1.53
func (m *ControlRequest_Roles) SizeVT() (n int)
type HostEvent ¶
type HostEvent struct {
// Body selects the event.
//
// Types that are assignable to Body:
// *HostEvent_Started
// *HostEvent_Log
// *HostEvent_Failed
// *HostEvent_Joined
// *HostEvent_Ready
// *HostEvent_Ui
// *HostEvent_Left
// *HostEvent_Message
// *HostEvent_Chat
Body isHostEvent_Body `protobuf_oneof:"body"`
// contains filtered or unexported fields
}
HostEvent is one thing that happened in the host.
func (*HostEvent) CloneMessageVT ¶
func (m *HostEvent) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*HostEvent) EqualMessageVT ¶
func (*HostEvent) GetChat ¶ added in v0.1.13
func (x *HostEvent) GetChat() *PlayerChat
func (*HostEvent) GetJoined ¶
func (x *HostEvent) GetJoined() *PlayerJoined
func (*HostEvent) GetLeft ¶
func (x *HostEvent) GetLeft() *PlayerLeft
func (*HostEvent) GetMessage ¶
func (x *HostEvent) GetMessage() *PlayerMessage
func (*HostEvent) GetReady ¶
func (x *HostEvent) GetReady() *ServerReady
func (*HostEvent) GetStarted ¶
func (x *HostEvent) GetStarted() *ModStarted
func (*HostEvent) MarshalJSON ¶
MarshalJSON marshals the HostEvent to JSON.
func (*HostEvent) MarshalProtoJSON ¶
func (x *HostEvent) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the HostEvent message to JSON.
func (*HostEvent) MarshalProtoText ¶
func (*HostEvent) MarshalToSizedBufferVT ¶
func (*HostEvent) ProtoMessage ¶
func (*HostEvent) ProtoMessage()
func (*HostEvent) UnmarshalJSON ¶
UnmarshalJSON unmarshals the HostEvent from JSON.
func (*HostEvent) UnmarshalProtoJSON ¶
func (x *HostEvent) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the HostEvent message from JSON.
func (*HostEvent) UnmarshalVT ¶
type HostEvent_Chat ¶ added in v0.1.13
type HostEvent_Chat struct {
// Chat carries a line a player said in chat.
Chat *PlayerChat `protobuf:"bytes,9,opt,name=chat,proto3,oneof"`
}
func (*HostEvent_Chat) CloneOneofVT ¶ added in v0.1.13
func (m *HostEvent_Chat) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Chat) CloneVT ¶ added in v0.1.13
func (m *HostEvent_Chat) CloneVT() *HostEvent_Chat
func (*HostEvent_Chat) EqualVT ¶ added in v0.1.13
func (this *HostEvent_Chat) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Chat) MarshalToSizedBufferVT ¶ added in v0.1.13
func (m *HostEvent_Chat) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Chat) MarshalToVT ¶ added in v0.1.13
func (m *HostEvent_Chat) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Chat) SizeVT ¶ added in v0.1.13
func (m *HostEvent_Chat) SizeVT() (n int)
type HostEvent_Failed ¶
type HostEvent_Failed struct {
// Failed reports a mod that stopped or a reload that did not load.
Failed *ModFailed `protobuf:"bytes,3,opt,name=failed,proto3,oneof"`
}
func (*HostEvent_Failed) CloneOneofVT ¶
func (m *HostEvent_Failed) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Failed) CloneVT ¶
func (m *HostEvent_Failed) CloneVT() *HostEvent_Failed
func (*HostEvent_Failed) EqualVT ¶
func (this *HostEvent_Failed) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Failed) MarshalToSizedBufferVT ¶
func (m *HostEvent_Failed) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Failed) MarshalToVT ¶
func (m *HostEvent_Failed) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Failed) SizeVT ¶
func (m *HostEvent_Failed) SizeVT() (n int)
type HostEvent_Joined ¶
type HostEvent_Joined struct {
// Joined reports a player who finished joining the server.
Joined *PlayerJoined `protobuf:"bytes,4,opt,name=joined,proto3,oneof"`
}
func (*HostEvent_Joined) CloneOneofVT ¶
func (m *HostEvent_Joined) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Joined) CloneVT ¶
func (m *HostEvent_Joined) CloneVT() *HostEvent_Joined
func (*HostEvent_Joined) EqualVT ¶
func (this *HostEvent_Joined) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Joined) MarshalToSizedBufferVT ¶
func (m *HostEvent_Joined) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Joined) MarshalToVT ¶
func (m *HostEvent_Joined) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Joined) SizeVT ¶
func (m *HostEvent_Joined) SizeVT() (n int)
type HostEvent_Left ¶
type HostEvent_Left struct {
// Left reports a player who left the server.
Left *PlayerLeft `protobuf:"bytes,7,opt,name=left,proto3,oneof"`
}
func (*HostEvent_Left) CloneOneofVT ¶
func (m *HostEvent_Left) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Left) CloneVT ¶
func (m *HostEvent_Left) CloneVT() *HostEvent_Left
func (*HostEvent_Left) EqualVT ¶
func (this *HostEvent_Left) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Left) MarshalToSizedBufferVT ¶
func (m *HostEvent_Left) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Left) MarshalToVT ¶
func (m *HostEvent_Left) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Left) SizeVT ¶
func (m *HostEvent_Left) SizeVT() (n int)
type HostEvent_Log ¶
type HostEvent_Log struct {
// Log carries one line a mod logged.
Log *ModLog `protobuf:"bytes,2,opt,name=log,proto3,oneof"`
}
func (*HostEvent_Log) CloneOneofVT ¶
func (m *HostEvent_Log) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Log) CloneVT ¶
func (m *HostEvent_Log) CloneVT() *HostEvent_Log
func (*HostEvent_Log) EqualVT ¶
func (this *HostEvent_Log) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Log) MarshalToSizedBufferVT ¶
func (m *HostEvent_Log) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Log) MarshalToVT ¶
func (m *HostEvent_Log) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Log) SizeVT ¶
func (m *HostEvent_Log) SizeVT() (n int)
type HostEvent_Message ¶
type HostEvent_Message struct {
// Message carries a message a mod showed a player: a chat line, center
// text or an announcement.
Message *PlayerMessage `protobuf:"bytes,8,opt,name=message,proto3,oneof"`
}
func (*HostEvent_Message) CloneOneofVT ¶
func (m *HostEvent_Message) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Message) CloneVT ¶
func (m *HostEvent_Message) CloneVT() *HostEvent_Message
func (*HostEvent_Message) EqualVT ¶
func (this *HostEvent_Message) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Message) MarshalToSizedBufferVT ¶
func (m *HostEvent_Message) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Message) MarshalToVT ¶
func (m *HostEvent_Message) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Message) SizeVT ¶
func (m *HostEvent_Message) SizeVT() (n int)
type HostEvent_Ready ¶
type HostEvent_Ready struct {
// Ready reports that players can join the server.
Ready *ServerReady `protobuf:"bytes,5,opt,name=ready,proto3,oneof"`
}
func (*HostEvent_Ready) CloneOneofVT ¶
func (m *HostEvent_Ready) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Ready) CloneVT ¶
func (m *HostEvent_Ready) CloneVT() *HostEvent_Ready
func (*HostEvent_Ready) EqualVT ¶
func (this *HostEvent_Ready) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Ready) MarshalToSizedBufferVT ¶
func (m *HostEvent_Ready) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Ready) MarshalToVT ¶
func (m *HostEvent_Ready) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Ready) SizeVT ¶
func (m *HostEvent_Ready) SizeVT() (n int)
type HostEvent_Started ¶
type HostEvent_Started struct {
// Started reports a mod that started or restarted after a reload.
Started *ModStarted `protobuf:"bytes,1,opt,name=started,proto3,oneof"`
}
func (*HostEvent_Started) CloneOneofVT ¶
func (m *HostEvent_Started) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Started) CloneVT ¶
func (m *HostEvent_Started) CloneVT() *HostEvent_Started
func (*HostEvent_Started) EqualVT ¶
func (this *HostEvent_Started) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Started) MarshalToSizedBufferVT ¶
func (m *HostEvent_Started) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Started) MarshalToVT ¶
func (m *HostEvent_Started) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Started) SizeVT ¶
func (m *HostEvent_Started) SizeVT() (n int)
type HostEvent_Ui ¶
type HostEvent_Ui struct {
// Ui carries a change to the interface a mod shows a player. The host
// sends every tree as a reset change when the call opens.
Ui *UiChanged `protobuf:"bytes,6,opt,name=ui,proto3,oneof"`
}
func (*HostEvent_Ui) CloneOneofVT ¶
func (m *HostEvent_Ui) CloneOneofVT() isHostEvent_Body
func (*HostEvent_Ui) CloneVT ¶
func (m *HostEvent_Ui) CloneVT() *HostEvent_Ui
func (*HostEvent_Ui) EqualVT ¶
func (this *HostEvent_Ui) EqualVT(thatIface isHostEvent_Body) bool
func (*HostEvent_Ui) MarshalToSizedBufferVT ¶
func (m *HostEvent_Ui) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HostEvent_Ui) MarshalToVT ¶
func (m *HostEvent_Ui) MarshalToVT(dAtA []byte) (int, error)
func (*HostEvent_Ui) SizeVT ¶
func (m *HostEvent_Ui) SizeVT() (n int)
type MessageKind ¶
type MessageKind int32
MessageKind is where a message shows on the player's screen.
const ( // MESSAGE_KIND_CHAT is a line in chat. MessageKind_MESSAGE_KIND_CHAT MessageKind = 0 // MESSAGE_KIND_CENTER is the text in the center of the screen. MessageKind_MESSAGE_KIND_CENTER MessageKind = 1 // MESSAGE_KIND_ANNOUNCEMENT is a game announcement with a title. MessageKind_MESSAGE_KIND_ANNOUNCEMENT MessageKind = 2 )
func (MessageKind) Enum ¶
func (x MessageKind) Enum() *MessageKind
func (MessageKind) MarshalJSON ¶
func (x MessageKind) MarshalJSON() ([]byte, error)
MarshalJSON marshals the MessageKind to JSON.
func (MessageKind) MarshalProtoJSON ¶
func (x MessageKind) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the MessageKind to JSON.
func (MessageKind) MarshalProtoText ¶
func (x MessageKind) MarshalProtoText() string
func (MessageKind) MarshalText ¶
func (x MessageKind) MarshalText() ([]byte, error)
MarshalText marshals the MessageKind to text.
func (MessageKind) String ¶
func (x MessageKind) String() string
func (*MessageKind) UnmarshalJSON ¶
func (x *MessageKind) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the MessageKind from JSON.
func (*MessageKind) UnmarshalProtoJSON ¶
func (x *MessageKind) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the MessageKind from JSON.
func (*MessageKind) UnmarshalText ¶
func (x *MessageKind) UnmarshalText(b []byte) error
UnmarshalText unmarshals the MessageKind from text.
type ModFailed ¶
type ModFailed struct {
// Mod is the mod's name.
Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
// Error describes the failure.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
ModFailed explains why a mod stopped or a reload failed. A failed reload leaves the previous instance running.
func (*ModFailed) CloneMessageVT ¶
func (m *ModFailed) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ModFailed) EqualMessageVT ¶
func (*ModFailed) MarshalJSON ¶
MarshalJSON marshals the ModFailed to JSON.
func (*ModFailed) MarshalProtoJSON ¶
func (x *ModFailed) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ModFailed message to JSON.
func (*ModFailed) MarshalProtoText ¶
func (*ModFailed) MarshalToSizedBufferVT ¶
func (*ModFailed) ProtoMessage ¶
func (*ModFailed) ProtoMessage()
func (*ModFailed) UnmarshalJSON ¶
UnmarshalJSON unmarshals the ModFailed from JSON.
func (*ModFailed) UnmarshalProtoJSON ¶
func (x *ModFailed) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ModFailed message from JSON.
func (*ModFailed) UnmarshalVT ¶
type ModLog ¶
type ModLog struct {
// Mod is the name of the mod that logged.
Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
// Text is the line, without a trailing newline.
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
ModLog carries one log line.
func (*ModLog) CloneMessageVT ¶
func (m *ModLog) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ModLog) EqualMessageVT ¶
func (*ModLog) MarshalJSON ¶
MarshalJSON marshals the ModLog to JSON.
func (*ModLog) MarshalProtoJSON ¶
func (x *ModLog) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ModLog message to JSON.
func (*ModLog) MarshalProtoText ¶
func (*ModLog) MarshalToSizedBufferVT ¶
func (*ModLog) ProtoMessage ¶
func (*ModLog) ProtoMessage()
func (*ModLog) UnmarshalJSON ¶
UnmarshalJSON unmarshals the ModLog from JSON.
func (*ModLog) UnmarshalProtoJSON ¶
func (x *ModLog) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ModLog message from JSON.
func (*ModLog) UnmarshalVT ¶
type ModStarted ¶
type ModStarted struct {
// Mod is the mod's name.
Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
// Reloaded is true when a reload replaced an earlier instance.
Reloaded bool `protobuf:"varint,2,opt,name=reloaded,proto3" json:"reloaded,omitempty"`
// contains filtered or unexported fields
}
ModStarted identifies a mod that started.
func (*ModStarted) CloneMessageVT ¶
func (m *ModStarted) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ModStarted) CloneVT ¶
func (m *ModStarted) CloneVT() *ModStarted
func (*ModStarted) EqualMessageVT ¶
func (this *ModStarted) EqualMessageVT(thatMsg any) bool
func (*ModStarted) EqualVT ¶
func (this *ModStarted) EqualVT(that *ModStarted) bool
func (*ModStarted) GetMod ¶
func (x *ModStarted) GetMod() string
func (*ModStarted) GetReloaded ¶
func (x *ModStarted) GetReloaded() bool
func (*ModStarted) MarshalJSON ¶
func (x *ModStarted) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ModStarted to JSON.
func (*ModStarted) MarshalProtoJSON ¶
func (x *ModStarted) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ModStarted message to JSON.
func (*ModStarted) MarshalProtoText ¶
func (x *ModStarted) MarshalProtoText() string
func (*ModStarted) MarshalToSizedBufferVT ¶
func (m *ModStarted) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ModStarted) MarshalToVT ¶
func (m *ModStarted) MarshalToVT(dAtA []byte) (int, error)
func (*ModStarted) MarshalVT ¶
func (m *ModStarted) MarshalVT() (dAtA []byte, err error)
func (*ModStarted) ProtoMessage ¶
func (*ModStarted) ProtoMessage()
func (*ModStarted) Reset ¶
func (x *ModStarted) Reset()
func (*ModStarted) SizeVT ¶
func (m *ModStarted) SizeVT() (n int)
func (*ModStarted) String ¶
func (x *ModStarted) String() string
func (*ModStarted) UnmarshalJSON ¶
func (x *ModStarted) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ModStarted from JSON.
func (*ModStarted) UnmarshalProtoJSON ¶
func (x *ModStarted) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ModStarted message from JSON.
func (*ModStarted) UnmarshalVT ¶
func (m *ModStarted) UnmarshalVT(dAtA []byte) error
type PlayerChat ¶ added in v0.1.13
type PlayerChat struct {
// Slot is the speaker's slot.
Slot int32 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
// Name is the speaker's name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Text is what they said.
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
PlayerChat is a line a player said in chat, to everyone or to their team.
func (*PlayerChat) CloneMessageVT ¶ added in v0.1.13
func (m *PlayerChat) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*PlayerChat) CloneVT ¶ added in v0.1.13
func (m *PlayerChat) CloneVT() *PlayerChat
func (*PlayerChat) EqualMessageVT ¶ added in v0.1.13
func (this *PlayerChat) EqualMessageVT(thatMsg any) bool
func (*PlayerChat) EqualVT ¶ added in v0.1.13
func (this *PlayerChat) EqualVT(that *PlayerChat) bool
func (*PlayerChat) GetName ¶ added in v0.1.13
func (x *PlayerChat) GetName() string
func (*PlayerChat) GetSlot ¶ added in v0.1.13
func (x *PlayerChat) GetSlot() int32
func (*PlayerChat) GetText ¶ added in v0.1.13
func (x *PlayerChat) GetText() string
func (*PlayerChat) MarshalJSON ¶ added in v0.1.13
func (x *PlayerChat) MarshalJSON() ([]byte, error)
MarshalJSON marshals the PlayerChat to JSON.
func (*PlayerChat) MarshalProtoJSON ¶ added in v0.1.13
func (x *PlayerChat) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the PlayerChat message to JSON.
func (*PlayerChat) MarshalProtoText ¶ added in v0.1.13
func (x *PlayerChat) MarshalProtoText() string
func (*PlayerChat) MarshalToSizedBufferVT ¶ added in v0.1.13
func (m *PlayerChat) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PlayerChat) MarshalToVT ¶ added in v0.1.13
func (m *PlayerChat) MarshalToVT(dAtA []byte) (int, error)
func (*PlayerChat) MarshalVT ¶ added in v0.1.13
func (m *PlayerChat) MarshalVT() (dAtA []byte, err error)
func (*PlayerChat) ProtoMessage ¶ added in v0.1.13
func (*PlayerChat) ProtoMessage()
func (*PlayerChat) Reset ¶ added in v0.1.13
func (x *PlayerChat) Reset()
func (*PlayerChat) SizeVT ¶ added in v0.1.13
func (m *PlayerChat) SizeVT() (n int)
func (*PlayerChat) String ¶ added in v0.1.13
func (x *PlayerChat) String() string
func (*PlayerChat) UnmarshalJSON ¶ added in v0.1.13
func (x *PlayerChat) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the PlayerChat from JSON.
func (*PlayerChat) UnmarshalProtoJSON ¶ added in v0.1.13
func (x *PlayerChat) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the PlayerChat message from JSON.
func (*PlayerChat) UnmarshalVT ¶ added in v0.1.13
func (m *PlayerChat) UnmarshalVT(dAtA []byte) error
type PlayerJoined ¶
type PlayerJoined struct {
// Slot is the player's slot.
Slot int32 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
// Name is the player's name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// SteamId is the player's Steam ID, zero for a bot.
SteamId uint64 `protobuf:"fixed64,3,opt,name=steam_id,json=steamId,proto3" json:"steamId,omitempty"`
// contains filtered or unexported fields
}
PlayerJoined identifies a player who joined.
func (*PlayerJoined) CloneMessageVT ¶
func (m *PlayerJoined) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*PlayerJoined) CloneVT ¶
func (m *PlayerJoined) CloneVT() *PlayerJoined
func (*PlayerJoined) EqualMessageVT ¶
func (this *PlayerJoined) EqualMessageVT(thatMsg any) bool
func (*PlayerJoined) EqualVT ¶
func (this *PlayerJoined) EqualVT(that *PlayerJoined) bool
func (*PlayerJoined) GetName ¶
func (x *PlayerJoined) GetName() string
func (*PlayerJoined) GetSlot ¶
func (x *PlayerJoined) GetSlot() int32
func (*PlayerJoined) GetSteamId ¶
func (x *PlayerJoined) GetSteamId() uint64
func (*PlayerJoined) MarshalJSON ¶
func (x *PlayerJoined) MarshalJSON() ([]byte, error)
MarshalJSON marshals the PlayerJoined to JSON.
func (*PlayerJoined) MarshalProtoJSON ¶
func (x *PlayerJoined) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the PlayerJoined message to JSON.
func (*PlayerJoined) MarshalProtoText ¶
func (x *PlayerJoined) MarshalProtoText() string
func (*PlayerJoined) MarshalToSizedBufferVT ¶
func (m *PlayerJoined) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PlayerJoined) MarshalToVT ¶
func (m *PlayerJoined) MarshalToVT(dAtA []byte) (int, error)
func (*PlayerJoined) MarshalVT ¶
func (m *PlayerJoined) MarshalVT() (dAtA []byte, err error)
func (*PlayerJoined) ProtoMessage ¶
func (*PlayerJoined) ProtoMessage()
func (*PlayerJoined) Reset ¶
func (x *PlayerJoined) Reset()
func (*PlayerJoined) SizeVT ¶
func (m *PlayerJoined) SizeVT() (n int)
func (*PlayerJoined) String ¶
func (x *PlayerJoined) String() string
func (*PlayerJoined) UnmarshalJSON ¶
func (x *PlayerJoined) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the PlayerJoined from JSON.
func (*PlayerJoined) UnmarshalProtoJSON ¶
func (x *PlayerJoined) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the PlayerJoined message from JSON.
func (*PlayerJoined) UnmarshalVT ¶
func (m *PlayerJoined) UnmarshalVT(dAtA []byte) error
type PlayerLeft ¶
type PlayerLeft struct {
// Slot is the player's former slot.
Slot int32 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
// contains filtered or unexported fields
}
PlayerLeft identifies a player who left. Bots leave too; a controller drops a slot it never saw join.
func (*PlayerLeft) CloneMessageVT ¶
func (m *PlayerLeft) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*PlayerLeft) CloneVT ¶
func (m *PlayerLeft) CloneVT() *PlayerLeft
func (*PlayerLeft) EqualMessageVT ¶
func (this *PlayerLeft) EqualMessageVT(thatMsg any) bool
func (*PlayerLeft) EqualVT ¶
func (this *PlayerLeft) EqualVT(that *PlayerLeft) bool
func (*PlayerLeft) GetSlot ¶
func (x *PlayerLeft) GetSlot() int32
func (*PlayerLeft) MarshalJSON ¶
func (x *PlayerLeft) MarshalJSON() ([]byte, error)
MarshalJSON marshals the PlayerLeft to JSON.
func (*PlayerLeft) MarshalProtoJSON ¶
func (x *PlayerLeft) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the PlayerLeft message to JSON.
func (*PlayerLeft) MarshalProtoText ¶
func (x *PlayerLeft) MarshalProtoText() string
func (*PlayerLeft) MarshalToSizedBufferVT ¶
func (m *PlayerLeft) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PlayerLeft) MarshalToVT ¶
func (m *PlayerLeft) MarshalToVT(dAtA []byte) (int, error)
func (*PlayerLeft) MarshalVT ¶
func (m *PlayerLeft) MarshalVT() (dAtA []byte, err error)
func (*PlayerLeft) ProtoMessage ¶
func (*PlayerLeft) ProtoMessage()
func (*PlayerLeft) Reset ¶
func (x *PlayerLeft) Reset()
func (*PlayerLeft) SizeVT ¶
func (m *PlayerLeft) SizeVT() (n int)
func (*PlayerLeft) String ¶
func (x *PlayerLeft) String() string
func (*PlayerLeft) UnmarshalJSON ¶
func (x *PlayerLeft) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the PlayerLeft from JSON.
func (*PlayerLeft) UnmarshalProtoJSON ¶
func (x *PlayerLeft) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the PlayerLeft message from JSON.
func (*PlayerLeft) UnmarshalVT ¶
func (m *PlayerLeft) UnmarshalVT(dAtA []byte) error
type PlayerMessage ¶
type PlayerMessage struct {
// Mod is the name of the mod that showed it.
Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
// Slot identifies the player.
Slot int32 `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty"`
// Kind is where the message shows.
Kind MessageKind `protobuf:"varint,3,opt,name=kind,proto3" json:"kind,omitempty"`
// Title heads an announcement.
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
// Text is the message; empty center text clears it.
Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
PlayerMessage is a message a mod showed one player.
func (*PlayerMessage) CloneMessageVT ¶
func (m *PlayerMessage) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*PlayerMessage) CloneVT ¶
func (m *PlayerMessage) CloneVT() *PlayerMessage
func (*PlayerMessage) EqualMessageVT ¶
func (this *PlayerMessage) EqualMessageVT(thatMsg any) bool
func (*PlayerMessage) EqualVT ¶
func (this *PlayerMessage) EqualVT(that *PlayerMessage) bool
func (*PlayerMessage) GetKind ¶
func (x *PlayerMessage) GetKind() MessageKind
func (*PlayerMessage) GetMod ¶
func (x *PlayerMessage) GetMod() string
func (*PlayerMessage) GetSlot ¶
func (x *PlayerMessage) GetSlot() int32
func (*PlayerMessage) GetText ¶
func (x *PlayerMessage) GetText() string
func (*PlayerMessage) GetTitle ¶
func (x *PlayerMessage) GetTitle() string
func (*PlayerMessage) MarshalJSON ¶
func (x *PlayerMessage) MarshalJSON() ([]byte, error)
MarshalJSON marshals the PlayerMessage to JSON.
func (*PlayerMessage) MarshalProtoJSON ¶
func (x *PlayerMessage) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the PlayerMessage message to JSON.
func (*PlayerMessage) MarshalProtoText ¶
func (x *PlayerMessage) MarshalProtoText() string
func (*PlayerMessage) MarshalToSizedBufferVT ¶
func (m *PlayerMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PlayerMessage) MarshalToVT ¶
func (m *PlayerMessage) MarshalToVT(dAtA []byte) (int, error)
func (*PlayerMessage) MarshalVT ¶
func (m *PlayerMessage) MarshalVT() (dAtA []byte, err error)
func (*PlayerMessage) ProtoMessage ¶
func (*PlayerMessage) ProtoMessage()
func (*PlayerMessage) Reset ¶
func (x *PlayerMessage) Reset()
func (*PlayerMessage) SizeVT ¶
func (m *PlayerMessage) SizeVT() (n int)
func (*PlayerMessage) String ¶
func (x *PlayerMessage) String() string
func (*PlayerMessage) UnmarshalJSON ¶
func (x *PlayerMessage) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the PlayerMessage from JSON.
func (*PlayerMessage) UnmarshalProtoJSON ¶
func (x *PlayerMessage) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the PlayerMessage message from JSON.
func (*PlayerMessage) UnmarshalVT ¶
func (m *PlayerMessage) UnmarshalVT(dAtA []byte) error
type ReloadRequest ¶
type ReloadRequest struct {
// Path is the built mod to load: a directory with mod.json or a .wasm file,
// as the host sees it.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
ReloadRequest replaces one mod in place. The mod keeps its place among the host's plugins; its old instance stops and the new build starts.
func (*ReloadRequest) CloneMessageVT ¶
func (m *ReloadRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ReloadRequest) CloneVT ¶
func (m *ReloadRequest) CloneVT() *ReloadRequest
func (*ReloadRequest) EqualMessageVT ¶
func (this *ReloadRequest) EqualMessageVT(thatMsg any) bool
func (*ReloadRequest) EqualVT ¶
func (this *ReloadRequest) EqualVT(that *ReloadRequest) bool
func (*ReloadRequest) GetPath ¶
func (x *ReloadRequest) GetPath() string
func (*ReloadRequest) MarshalJSON ¶
func (x *ReloadRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ReloadRequest to JSON.
func (*ReloadRequest) MarshalProtoJSON ¶
func (x *ReloadRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ReloadRequest message to JSON.
func (*ReloadRequest) MarshalProtoText ¶
func (x *ReloadRequest) MarshalProtoText() string
func (*ReloadRequest) MarshalToSizedBufferVT ¶
func (m *ReloadRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ReloadRequest) MarshalToVT ¶
func (m *ReloadRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ReloadRequest) MarshalVT ¶
func (m *ReloadRequest) MarshalVT() (dAtA []byte, err error)
func (*ReloadRequest) ProtoMessage ¶
func (*ReloadRequest) ProtoMessage()
func (*ReloadRequest) Reset ¶
func (x *ReloadRequest) Reset()
func (*ReloadRequest) SizeVT ¶
func (m *ReloadRequest) SizeVT() (n int)
func (*ReloadRequest) String ¶
func (x *ReloadRequest) String() string
func (*ReloadRequest) UnmarshalJSON ¶
func (x *ReloadRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ReloadRequest from JSON.
func (*ReloadRequest) UnmarshalProtoJSON ¶
func (x *ReloadRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ReloadRequest message from JSON.
func (*ReloadRequest) UnmarshalVT ¶
func (m *ReloadRequest) UnmarshalVT(dAtA []byte) error
type ServerReady ¶
type ServerReady struct {
// Map is the map the server loaded.
Map string `protobuf:"bytes,1,opt,name=map,proto3" json:"map,omitempty"`
// contains filtered or unexported fields
}
ServerReady reports the loaded map.
func (*ServerReady) CloneMessageVT ¶
func (m *ServerReady) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ServerReady) CloneVT ¶
func (m *ServerReady) CloneVT() *ServerReady
func (*ServerReady) EqualMessageVT ¶
func (this *ServerReady) EqualMessageVT(thatMsg any) bool
func (*ServerReady) EqualVT ¶
func (this *ServerReady) EqualVT(that *ServerReady) bool
func (*ServerReady) GetMap ¶
func (x *ServerReady) GetMap() string
func (*ServerReady) MarshalJSON ¶
func (x *ServerReady) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ServerReady to JSON.
func (*ServerReady) MarshalProtoJSON ¶
func (x *ServerReady) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ServerReady message to JSON.
func (*ServerReady) MarshalProtoText ¶
func (x *ServerReady) MarshalProtoText() string
func (*ServerReady) MarshalToSizedBufferVT ¶
func (m *ServerReady) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ServerReady) MarshalToVT ¶
func (m *ServerReady) MarshalToVT(dAtA []byte) (int, error)
func (*ServerReady) MarshalVT ¶
func (m *ServerReady) MarshalVT() (dAtA []byte, err error)
func (*ServerReady) ProtoMessage ¶
func (*ServerReady) ProtoMessage()
func (*ServerReady) Reset ¶
func (x *ServerReady) Reset()
func (*ServerReady) SizeVT ¶
func (m *ServerReady) SizeVT() (n int)
func (*ServerReady) String ¶
func (x *ServerReady) String() string
func (*ServerReady) UnmarshalJSON ¶
func (x *ServerReady) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ServerReady from JSON.
func (*ServerReady) UnmarshalProtoJSON ¶
func (x *ServerReady) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ServerReady message from JSON.
func (*ServerReady) UnmarshalVT ¶
func (m *ServerReady) UnmarshalVT(dAtA []byte) error
type UiChanged ¶
type UiChanged struct {
// Mod is the mod's name.
Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
// Slot identifies the player.
Slot int32 `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty"`
// Change updates the player's tree for the mod.
Change *ui.Change `protobuf:"bytes,3,opt,name=change,proto3" json:"change,omitempty"`
// contains filtered or unexported fields
}
UiChanged carries a change to the interface a mod shows a player.
func (*UiChanged) CloneMessageVT ¶
func (m *UiChanged) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*UiChanged) EqualMessageVT ¶
func (*UiChanged) MarshalJSON ¶
MarshalJSON marshals the UiChanged to JSON.
func (*UiChanged) MarshalProtoJSON ¶
func (x *UiChanged) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the UiChanged message to JSON.
func (*UiChanged) MarshalProtoText ¶
func (*UiChanged) MarshalToSizedBufferVT ¶
func (*UiChanged) ProtoMessage ¶
func (*UiChanged) ProtoMessage()
func (*UiChanged) UnmarshalJSON ¶
UnmarshalJSON unmarshals the UiChanged from JSON.
func (*UiChanged) UnmarshalProtoJSON ¶
func (x *UiChanged) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the UiChanged message from JSON.