control

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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
	//	*ControlRequest_Service
	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) GetService added in v0.1.72

func (x *ControlRequest) GetService() *ServiceReply

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 (*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 (*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 ControlRequest_Service added in v0.1.72

type ControlRequest_Service struct {
	// Service installs a cached service answer and reloads its mod to adopt it.
	Service *ServiceReply `protobuf:"bytes,3,opt,name=service,proto3,oneof"`
}

func (*ControlRequest_Service) CloneOneofVT added in v0.1.72

func (m *ControlRequest_Service) CloneOneofVT() isControlRequest_Body

func (*ControlRequest_Service) CloneVT added in v0.1.72

func (*ControlRequest_Service) EqualVT added in v0.1.72

func (this *ControlRequest_Service) EqualVT(thatIface isControlRequest_Body) bool

func (*ControlRequest_Service) MarshalToSizedBufferVT added in v0.1.72

func (m *ControlRequest_Service) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ControlRequest_Service) MarshalToVT added in v0.1.72

func (m *ControlRequest_Service) MarshalToVT(dAtA []byte) (int, error)

func (*ControlRequest_Service) SizeVT added in v0.1.72

func (m *ControlRequest_Service) 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
	//	*HostEvent_Calls
	//	*HostEvent_SlowFrame
	//	*HostEvent_ServiceApplied
	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) CloneVT

func (m *HostEvent) CloneVT() *HostEvent

func (*HostEvent) EqualMessageVT

func (this *HostEvent) EqualMessageVT(thatMsg any) bool

func (*HostEvent) EqualVT

func (this *HostEvent) EqualVT(that *HostEvent) bool

func (*HostEvent) GetBody

func (m *HostEvent) GetBody() isHostEvent_Body

func (*HostEvent) GetCalls added in v0.1.65

func (x *HostEvent) GetCalls() *ModCalls

func (*HostEvent) GetChat added in v0.1.13

func (x *HostEvent) GetChat() *PlayerChat

func (*HostEvent) GetFailed

func (x *HostEvent) GetFailed() *ModFailed

func (*HostEvent) GetJoined

func (x *HostEvent) GetJoined() *PlayerJoined

func (*HostEvent) GetLeft

func (x *HostEvent) GetLeft() *PlayerLeft

func (*HostEvent) GetLog

func (x *HostEvent) GetLog() *ModLog

func (*HostEvent) GetMessage

func (x *HostEvent) GetMessage() *PlayerMessage

func (*HostEvent) GetReady

func (x *HostEvent) GetReady() *ServerReady

func (*HostEvent) GetServiceApplied added in v0.1.72

func (x *HostEvent) GetServiceApplied() *ServiceResult

func (*HostEvent) GetSlowFrame added in v0.1.69

func (x *HostEvent) GetSlowFrame() *ModSlowFrame

func (*HostEvent) GetStarted

func (x *HostEvent) GetStarted() *ModStarted

func (*HostEvent) GetUi

func (x *HostEvent) GetUi() *UiChanged

func (*HostEvent) MarshalJSON

func (x *HostEvent) MarshalJSON() ([]byte, error)

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 (x *HostEvent) MarshalProtoText() string

func (*HostEvent) MarshalToSizedBufferVT

func (m *HostEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HostEvent) MarshalToVT

func (m *HostEvent) MarshalToVT(dAtA []byte) (int, error)

func (*HostEvent) MarshalVT

func (m *HostEvent) MarshalVT() (dAtA []byte, err error)

func (*HostEvent) ProtoMessage

func (*HostEvent) ProtoMessage()

func (*HostEvent) Reset

func (x *HostEvent) Reset()

func (*HostEvent) SizeVT

func (m *HostEvent) SizeVT() (n int)

func (*HostEvent) String

func (x *HostEvent) String() string

func (*HostEvent) UnmarshalJSON

func (x *HostEvent) UnmarshalJSON(b []byte) error

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

func (m *HostEvent) UnmarshalVT(dAtA []byte) error

type HostEvent_Calls added in v0.1.65

type HostEvent_Calls struct {
	// Calls counts the host calls a mod made since its last report, about
	// once a minute while it calls and when its build stops.
	Calls *ModCalls `protobuf:"bytes,10,opt,name=calls,proto3,oneof"`
}

func (*HostEvent_Calls) CloneOneofVT added in v0.1.65

func (m *HostEvent_Calls) CloneOneofVT() isHostEvent_Body

func (*HostEvent_Calls) CloneVT added in v0.1.65

func (m *HostEvent_Calls) CloneVT() *HostEvent_Calls

func (*HostEvent_Calls) EqualVT added in v0.1.65

func (this *HostEvent_Calls) EqualVT(thatIface isHostEvent_Body) bool

func (*HostEvent_Calls) MarshalToSizedBufferVT added in v0.1.65

func (m *HostEvent_Calls) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HostEvent_Calls) MarshalToVT added in v0.1.65

func (m *HostEvent_Calls) MarshalToVT(dAtA []byte) (int, error)

func (*HostEvent_Calls) SizeVT added in v0.1.65

func (m *HostEvent_Calls) SizeVT() (n int)

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_ServiceApplied added in v0.1.72

type HostEvent_ServiceApplied struct {
	// ServiceApplied confirms whether a controller configuration started.
	ServiceApplied *ServiceResult `protobuf:"bytes,12,opt,name=service_applied,json=serviceApplied,proto3,oneof"`
}

func (*HostEvent_ServiceApplied) CloneOneofVT added in v0.1.72

func (m *HostEvent_ServiceApplied) CloneOneofVT() isHostEvent_Body

func (*HostEvent_ServiceApplied) CloneVT added in v0.1.72

func (*HostEvent_ServiceApplied) EqualVT added in v0.1.72

func (this *HostEvent_ServiceApplied) EqualVT(thatIface isHostEvent_Body) bool

func (*HostEvent_ServiceApplied) MarshalToSizedBufferVT added in v0.1.72

func (m *HostEvent_ServiceApplied) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HostEvent_ServiceApplied) MarshalToVT added in v0.1.72

func (m *HostEvent_ServiceApplied) MarshalToVT(dAtA []byte) (int, error)

func (*HostEvent_ServiceApplied) SizeVT added in v0.1.72

func (m *HostEvent_ServiceApplied) SizeVT() (n int)

type HostEvent_SlowFrame added in v0.1.69

type HostEvent_SlowFrame struct {
	// SlowFrame reports the slowest frame a mod ran since its last report and
	// the functions it spent the time in, about once a minute while the mod
	// runs slow.
	SlowFrame *ModSlowFrame `protobuf:"bytes,11,opt,name=slow_frame,json=slowFrame,proto3,oneof"`
}

func (*HostEvent_SlowFrame) CloneOneofVT added in v0.1.69

func (m *HostEvent_SlowFrame) CloneOneofVT() isHostEvent_Body

func (*HostEvent_SlowFrame) CloneVT added in v0.1.69

func (*HostEvent_SlowFrame) EqualVT added in v0.1.69

func (this *HostEvent_SlowFrame) EqualVT(thatIface isHostEvent_Body) bool

func (*HostEvent_SlowFrame) MarshalToSizedBufferVT added in v0.1.69

func (m *HostEvent_SlowFrame) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HostEvent_SlowFrame) MarshalToVT added in v0.1.69

func (m *HostEvent_SlowFrame) MarshalToVT(dAtA []byte) (int, error)

func (*HostEvent_SlowFrame) SizeVT added in v0.1.69

func (m *HostEvent_SlowFrame) 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 ModCalls added in v0.1.65

type ModCalls struct {

	// Mod is the mod's name.
	Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
	// Profile counts the calls since the mod's last report.
	Profile *profile.CallProfile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

ModCalls is one report of the host calls a mod made.

func (*ModCalls) CloneMessageVT added in v0.1.65

func (m *ModCalls) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ModCalls) CloneVT added in v0.1.65

func (m *ModCalls) CloneVT() *ModCalls

func (*ModCalls) EqualMessageVT added in v0.1.65

func (this *ModCalls) EqualMessageVT(thatMsg any) bool

func (*ModCalls) EqualVT added in v0.1.65

func (this *ModCalls) EqualVT(that *ModCalls) bool

func (*ModCalls) GetMod added in v0.1.65

func (x *ModCalls) GetMod() string

func (*ModCalls) GetProfile added in v0.1.65

func (x *ModCalls) GetProfile() *profile.CallProfile

func (*ModCalls) MarshalJSON added in v0.1.65

func (x *ModCalls) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ModCalls to JSON.

func (*ModCalls) MarshalProtoJSON added in v0.1.65

func (x *ModCalls) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ModCalls message to JSON.

func (*ModCalls) MarshalProtoText added in v0.1.65

func (x *ModCalls) MarshalProtoText() string

func (*ModCalls) MarshalToSizedBufferVT added in v0.1.65

func (m *ModCalls) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ModCalls) MarshalToVT added in v0.1.65

func (m *ModCalls) MarshalToVT(dAtA []byte) (int, error)

func (*ModCalls) MarshalVT added in v0.1.65

func (m *ModCalls) MarshalVT() (dAtA []byte, err error)

func (*ModCalls) ProtoMessage added in v0.1.65

func (*ModCalls) ProtoMessage()

func (*ModCalls) Reset added in v0.1.65

func (x *ModCalls) Reset()

func (*ModCalls) SizeVT added in v0.1.65

func (m *ModCalls) SizeVT() (n int)

func (*ModCalls) String added in v0.1.65

func (x *ModCalls) String() string

func (*ModCalls) UnmarshalJSON added in v0.1.65

func (x *ModCalls) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ModCalls from JSON.

func (*ModCalls) UnmarshalProtoJSON added in v0.1.65

func (x *ModCalls) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ModCalls message from JSON.

func (*ModCalls) UnmarshalVT added in v0.1.65

func (m *ModCalls) UnmarshalVT(dAtA []byte) error

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) CloneVT

func (m *ModFailed) CloneVT() *ModFailed

func (*ModFailed) EqualMessageVT

func (this *ModFailed) EqualMessageVT(thatMsg any) bool

func (*ModFailed) EqualVT

func (this *ModFailed) EqualVT(that *ModFailed) bool

func (*ModFailed) GetError

func (x *ModFailed) GetError() string

func (*ModFailed) GetMod

func (x *ModFailed) GetMod() string

func (*ModFailed) MarshalJSON

func (x *ModFailed) MarshalJSON() ([]byte, error)

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 (x *ModFailed) MarshalProtoText() string

func (*ModFailed) MarshalToSizedBufferVT

func (m *ModFailed) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ModFailed) MarshalToVT

func (m *ModFailed) MarshalToVT(dAtA []byte) (int, error)

func (*ModFailed) MarshalVT

func (m *ModFailed) MarshalVT() (dAtA []byte, err error)

func (*ModFailed) ProtoMessage

func (*ModFailed) ProtoMessage()

func (*ModFailed) Reset

func (x *ModFailed) Reset()

func (*ModFailed) SizeVT

func (m *ModFailed) SizeVT() (n int)

func (*ModFailed) String

func (x *ModFailed) String() string

func (*ModFailed) UnmarshalJSON

func (x *ModFailed) UnmarshalJSON(b []byte) error

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

func (m *ModFailed) UnmarshalVT(dAtA []byte) error

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) CloneVT

func (m *ModLog) CloneVT() *ModLog

func (*ModLog) EqualMessageVT

func (this *ModLog) EqualMessageVT(thatMsg any) bool

func (*ModLog) EqualVT

func (this *ModLog) EqualVT(that *ModLog) bool

func (*ModLog) GetMod

func (x *ModLog) GetMod() string

func (*ModLog) GetText

func (x *ModLog) GetText() string

func (*ModLog) MarshalJSON

func (x *ModLog) MarshalJSON() ([]byte, error)

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 (x *ModLog) MarshalProtoText() string

func (*ModLog) MarshalToSizedBufferVT

func (m *ModLog) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ModLog) MarshalToVT

func (m *ModLog) MarshalToVT(dAtA []byte) (int, error)

func (*ModLog) MarshalVT

func (m *ModLog) MarshalVT() (dAtA []byte, err error)

func (*ModLog) ProtoMessage

func (*ModLog) ProtoMessage()

func (*ModLog) Reset

func (x *ModLog) Reset()

func (*ModLog) SizeVT

func (m *ModLog) SizeVT() (n int)

func (*ModLog) String

func (x *ModLog) String() string

func (*ModLog) UnmarshalJSON

func (x *ModLog) UnmarshalJSON(b []byte) error

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

func (m *ModLog) UnmarshalVT(dAtA []byte) error

type ModSlowFrame added in v0.1.69

type ModSlowFrame struct {

	// Mod is the mod's name.
	Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
	// Report is the slowest frame since the mod's last report.
	Report *profile.SlowFrame `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"`
	// contains filtered or unexported fields
}

ModSlowFrame is one report of a mod's slow frames.

func (*ModSlowFrame) CloneMessageVT added in v0.1.69

func (m *ModSlowFrame) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ModSlowFrame) CloneVT added in v0.1.69

func (m *ModSlowFrame) CloneVT() *ModSlowFrame

func (*ModSlowFrame) EqualMessageVT added in v0.1.69

func (this *ModSlowFrame) EqualMessageVT(thatMsg any) bool

func (*ModSlowFrame) EqualVT added in v0.1.69

func (this *ModSlowFrame) EqualVT(that *ModSlowFrame) bool

func (*ModSlowFrame) GetMod added in v0.1.69

func (x *ModSlowFrame) GetMod() string

func (*ModSlowFrame) GetReport added in v0.1.69

func (x *ModSlowFrame) GetReport() *profile.SlowFrame

func (*ModSlowFrame) MarshalJSON added in v0.1.69

func (x *ModSlowFrame) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ModSlowFrame to JSON.

func (*ModSlowFrame) MarshalProtoJSON added in v0.1.69

func (x *ModSlowFrame) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ModSlowFrame message to JSON.

func (*ModSlowFrame) MarshalProtoText added in v0.1.69

func (x *ModSlowFrame) MarshalProtoText() string

func (*ModSlowFrame) MarshalToSizedBufferVT added in v0.1.69

func (m *ModSlowFrame) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ModSlowFrame) MarshalToVT added in v0.1.69

func (m *ModSlowFrame) MarshalToVT(dAtA []byte) (int, error)

func (*ModSlowFrame) MarshalVT added in v0.1.69

func (m *ModSlowFrame) MarshalVT() (dAtA []byte, err error)

func (*ModSlowFrame) ProtoMessage added in v0.1.69

func (*ModSlowFrame) ProtoMessage()

func (*ModSlowFrame) Reset added in v0.1.69

func (x *ModSlowFrame) Reset()

func (*ModSlowFrame) SizeVT added in v0.1.69

func (m *ModSlowFrame) SizeVT() (n int)

func (*ModSlowFrame) String added in v0.1.69

func (x *ModSlowFrame) String() string

func (*ModSlowFrame) UnmarshalJSON added in v0.1.69

func (x *ModSlowFrame) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ModSlowFrame from JSON.

func (*ModSlowFrame) UnmarshalProtoJSON added in v0.1.69

func (x *ModSlowFrame) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ModSlowFrame message from JSON.

func (*ModSlowFrame) UnmarshalVT added in v0.1.69

func (m *ModSlowFrame) UnmarshalVT(dAtA []byte) error

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 ServiceReply added in v0.1.72

type ServiceReply struct {

	// Mod is the running mod's slug.
	Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
	// Service and Method select the extension call this answer serves.
	Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Method  string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// Payload is the service's encoded answer, opaque to Modlock.
	Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	// Path is the local build to reload after installing the answer.
	Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	// Id identifies this applied configuration, opaque to the host.
	Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

ServiceReply supplies a host extension's answer for one mod. The controller sends it only when an applied configuration changes; the mod restarts after the host installs the answer.

func (*ServiceReply) CloneMessageVT added in v0.1.72

func (m *ServiceReply) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ServiceReply) CloneVT added in v0.1.72

func (m *ServiceReply) CloneVT() *ServiceReply

func (*ServiceReply) EqualMessageVT added in v0.1.72

func (this *ServiceReply) EqualMessageVT(thatMsg any) bool

func (*ServiceReply) EqualVT added in v0.1.72

func (this *ServiceReply) EqualVT(that *ServiceReply) bool

func (*ServiceReply) GetId added in v0.1.72

func (x *ServiceReply) GetId() string

func (*ServiceReply) GetMethod added in v0.1.72

func (x *ServiceReply) GetMethod() string

func (*ServiceReply) GetMod added in v0.1.72

func (x *ServiceReply) GetMod() string

func (*ServiceReply) GetPath added in v0.1.72

func (x *ServiceReply) GetPath() string

func (*ServiceReply) GetPayload added in v0.1.72

func (x *ServiceReply) GetPayload() []byte

func (*ServiceReply) GetService added in v0.1.72

func (x *ServiceReply) GetService() string

func (*ServiceReply) MarshalJSON added in v0.1.72

func (x *ServiceReply) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ServiceReply to JSON.

func (*ServiceReply) MarshalProtoJSON added in v0.1.72

func (x *ServiceReply) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ServiceReply message to JSON.

func (*ServiceReply) MarshalProtoText added in v0.1.72

func (x *ServiceReply) MarshalProtoText() string

func (*ServiceReply) MarshalToSizedBufferVT added in v0.1.72

func (m *ServiceReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ServiceReply) MarshalToVT added in v0.1.72

func (m *ServiceReply) MarshalToVT(dAtA []byte) (int, error)

func (*ServiceReply) MarshalVT added in v0.1.72

func (m *ServiceReply) MarshalVT() (dAtA []byte, err error)

func (*ServiceReply) ProtoMessage added in v0.1.72

func (*ServiceReply) ProtoMessage()

func (*ServiceReply) Reset added in v0.1.72

func (x *ServiceReply) Reset()

func (*ServiceReply) SizeVT added in v0.1.72

func (m *ServiceReply) SizeVT() (n int)

func (*ServiceReply) String added in v0.1.72

func (x *ServiceReply) String() string

func (*ServiceReply) UnmarshalJSON added in v0.1.72

func (x *ServiceReply) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ServiceReply from JSON.

func (*ServiceReply) UnmarshalProtoJSON added in v0.1.72

func (x *ServiceReply) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ServiceReply message from JSON.

func (*ServiceReply) UnmarshalVT added in v0.1.72

func (m *ServiceReply) UnmarshalVT(dAtA []byte) error

type ServiceResult added in v0.1.72

type ServiceResult struct {

	// Id matches the ServiceReply this result confirms.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Error is empty when the mod restarted with the new configuration.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

ServiceResult acknowledges adoption of one cached service configuration.

func (*ServiceResult) CloneMessageVT added in v0.1.72

func (m *ServiceResult) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ServiceResult) CloneVT added in v0.1.72

func (m *ServiceResult) CloneVT() *ServiceResult

func (*ServiceResult) EqualMessageVT added in v0.1.72

func (this *ServiceResult) EqualMessageVT(thatMsg any) bool

func (*ServiceResult) EqualVT added in v0.1.72

func (this *ServiceResult) EqualVT(that *ServiceResult) bool

func (*ServiceResult) GetError added in v0.1.72

func (x *ServiceResult) GetError() string

func (*ServiceResult) GetId added in v0.1.72

func (x *ServiceResult) GetId() string

func (*ServiceResult) MarshalJSON added in v0.1.72

func (x *ServiceResult) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ServiceResult to JSON.

func (*ServiceResult) MarshalProtoJSON added in v0.1.72

func (x *ServiceResult) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ServiceResult message to JSON.

func (*ServiceResult) MarshalProtoText added in v0.1.72

func (x *ServiceResult) MarshalProtoText() string

func (*ServiceResult) MarshalToSizedBufferVT added in v0.1.72

func (m *ServiceResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ServiceResult) MarshalToVT added in v0.1.72

func (m *ServiceResult) MarshalToVT(dAtA []byte) (int, error)

func (*ServiceResult) MarshalVT added in v0.1.72

func (m *ServiceResult) MarshalVT() (dAtA []byte, err error)

func (*ServiceResult) ProtoMessage added in v0.1.72

func (*ServiceResult) ProtoMessage()

func (*ServiceResult) Reset added in v0.1.72

func (x *ServiceResult) Reset()

func (*ServiceResult) SizeVT added in v0.1.72

func (m *ServiceResult) SizeVT() (n int)

func (*ServiceResult) String added in v0.1.72

func (x *ServiceResult) String() string

func (*ServiceResult) UnmarshalJSON added in v0.1.72

func (x *ServiceResult) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ServiceResult from JSON.

func (*ServiceResult) UnmarshalProtoJSON added in v0.1.72

func (x *ServiceResult) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ServiceResult message from JSON.

func (*ServiceResult) UnmarshalVT added in v0.1.72

func (m *ServiceResult) 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) CloneVT

func (m *UiChanged) CloneVT() *UiChanged

func (*UiChanged) EqualMessageVT

func (this *UiChanged) EqualMessageVT(thatMsg any) bool

func (*UiChanged) EqualVT

func (this *UiChanged) EqualVT(that *UiChanged) bool

func (*UiChanged) GetChange

func (x *UiChanged) GetChange() *ui.Change

func (*UiChanged) GetMod

func (x *UiChanged) GetMod() string

func (*UiChanged) GetSlot

func (x *UiChanged) GetSlot() int32

func (*UiChanged) MarshalJSON

func (x *UiChanged) MarshalJSON() ([]byte, error)

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 (x *UiChanged) MarshalProtoText() string

func (*UiChanged) MarshalToSizedBufferVT

func (m *UiChanged) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiChanged) MarshalToVT

func (m *UiChanged) MarshalToVT(dAtA []byte) (int, error)

func (*UiChanged) MarshalVT

func (m *UiChanged) MarshalVT() (dAtA []byte, err error)

func (*UiChanged) ProtoMessage

func (*UiChanged) ProtoMessage()

func (*UiChanged) Reset

func (x *UiChanged) Reset()

func (*UiChanged) SizeVT

func (m *UiChanged) SizeVT() (n int)

func (*UiChanged) String

func (x *UiChanged) String() string

func (*UiChanged) UnmarshalJSON

func (x *UiChanged) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the UiChanged from JSON.

func (*UiChanged) UnmarshalProtoJSON

func (x *UiChanged) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UiChanged message from JSON.

func (*UiChanged) UnmarshalVT

func (m *UiChanged) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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