Help us shape the future of Go! Take the 2026 Go Developer Survey

wasm

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {

	// Method names the method, such as "Chat".
	Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	// Request is the method's encoded request.
	Request []byte `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

Call is one method call across the boundary: a mod calling the game through modlock.host_call, or the game delivering an event through the mod's modlock_event export.

func (*Call) CloneMessageVT

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

func (*Call) CloneVT

func (m *Call) CloneVT() *Call

func (*Call) EqualMessageVT

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

func (*Call) EqualVT

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

func (*Call) GetMethod

func (x *Call) GetMethod() string

func (*Call) GetRequest

func (x *Call) GetRequest() []byte

func (*Call) MarshalJSON

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

MarshalJSON marshals the Call to JSON.

func (*Call) MarshalProtoJSON

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

MarshalProtoJSON marshals the Call message to JSON.

func (*Call) MarshalProtoText

func (x *Call) MarshalProtoText() string

func (*Call) MarshalToSizedBufferVT

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

func (*Call) MarshalToVT

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

func (*Call) MarshalVT

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

func (*Call) ProtoMessage

func (*Call) ProtoMessage()

func (*Call) Reset

func (x *Call) Reset()

func (*Call) SizeVT

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

func (*Call) String

func (x *Call) String() string

func (*Call) UnmarshalJSON

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

UnmarshalJSON unmarshals the Call from JSON.

func (*Call) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the Call message from JSON.

func (*Call) UnmarshalVT

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

type CommandEvent

type CommandEvent struct {

	// Player is the player who typed the command.
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Line is the complete command line, starting with the command name.
	Line string `protobuf:"bytes,2,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

CommandEvent carries one command line from a player: a chat line that starts with a slash (or ".", "+" or "-"), without that prefix, or a console command the server received.

func (*CommandEvent) CloneMessageVT

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

func (*CommandEvent) CloneVT

func (m *CommandEvent) CloneVT() *CommandEvent

func (*CommandEvent) EqualMessageVT

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

func (*CommandEvent) EqualVT

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

func (*CommandEvent) GetLine

func (x *CommandEvent) GetLine() string

func (*CommandEvent) GetPlayer

func (x *CommandEvent) GetPlayer() int32

func (*CommandEvent) MarshalJSON

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

MarshalJSON marshals the CommandEvent to JSON.

func (*CommandEvent) MarshalProtoJSON

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

MarshalProtoJSON marshals the CommandEvent message to JSON.

func (*CommandEvent) MarshalProtoText

func (x *CommandEvent) MarshalProtoText() string

func (*CommandEvent) MarshalToSizedBufferVT

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

func (*CommandEvent) MarshalToVT

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

func (*CommandEvent) MarshalVT

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

func (*CommandEvent) ProtoMessage

func (*CommandEvent) ProtoMessage()

func (*CommandEvent) Reset

func (x *CommandEvent) Reset()

func (*CommandEvent) SizeVT

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

func (*CommandEvent) String

func (x *CommandEvent) String() string

func (*CommandEvent) UnmarshalJSON

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

UnmarshalJSON unmarshals the CommandEvent from JSON.

func (*CommandEvent) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the CommandEvent message from JSON.

func (*CommandEvent) UnmarshalVT

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

type CommandResult

type CommandResult struct {

	// Claimed ends the command's dispatch; the game and later mods do not see
	// it.
	Claimed bool `protobuf:"varint,1,opt,name=claimed,proto3" json:"claimed,omitempty"`
	// contains filtered or unexported fields
}

CommandResult answers whether the mod handled a command.

func (*CommandResult) CloneMessageVT

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

func (*CommandResult) CloneVT

func (m *CommandResult) CloneVT() *CommandResult

func (*CommandResult) EqualMessageVT

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

func (*CommandResult) EqualVT

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

func (*CommandResult) GetClaimed

func (x *CommandResult) GetClaimed() bool

func (*CommandResult) MarshalJSON

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

MarshalJSON marshals the CommandResult to JSON.

func (*CommandResult) MarshalProtoJSON

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

MarshalProtoJSON marshals the CommandResult message to JSON.

func (*CommandResult) MarshalProtoText

func (x *CommandResult) MarshalProtoText() string

func (*CommandResult) MarshalToSizedBufferVT

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

func (*CommandResult) MarshalToVT

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

func (*CommandResult) MarshalVT

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

func (*CommandResult) ProtoMessage

func (*CommandResult) ProtoMessage()

func (*CommandResult) Reset

func (x *CommandResult) Reset()

func (*CommandResult) SizeVT

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

func (*CommandResult) String

func (x *CommandResult) String() string

func (*CommandResult) UnmarshalJSON

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

UnmarshalJSON unmarshals the CommandResult from JSON.

func (*CommandResult) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the CommandResult message from JSON.

func (*CommandResult) UnmarshalVT

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

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

Empty is a request or response without fields.

func (*Empty) CloneMessageVT

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

func (*Empty) CloneVT

func (m *Empty) CloneVT() *Empty

func (*Empty) EqualMessageVT

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

func (*Empty) EqualVT

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

func (*Empty) MarshalJSON

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

MarshalJSON marshals the Empty to JSON.

func (*Empty) MarshalProtoJSON

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

MarshalProtoJSON marshals the Empty message to JSON.

func (*Empty) MarshalProtoText

func (x *Empty) MarshalProtoText() string

func (*Empty) MarshalToSizedBufferVT

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

func (*Empty) MarshalToVT

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

func (*Empty) MarshalVT

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) SizeVT

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

func (*Empty) String

func (x *Empty) String() string

func (*Empty) UnmarshalJSON

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

UnmarshalJSON unmarshals the Empty from JSON.

func (*Empty) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the Empty message from JSON.

func (*Empty) UnmarshalVT

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

type FrameEvent

type FrameEvent struct {

	// Tick is the server tick, or zero when the clock is unavailable.
	Tick uint64 `protobuf:"varint,1,opt,name=tick,proto3" json:"tick,omitempty"`
	// TimeSeconds is the game clock at this frame, in seconds.
	TimeSeconds float64 `protobuf:"fixed64,2,opt,name=time_seconds,json=timeSeconds,proto3" json:"timeSeconds,omitempty"`
	// Movement holds one sample per watched, live hero when this frame starts a
	// new tick, and is empty otherwise.
	Movement []*movement.MovementSample `protobuf:"bytes,3,rep,name=movement,proto3" json:"movement,omitempty"`
	// contains filtered or unexported fields
}

FrameEvent identifies one server frame.

func (*FrameEvent) CloneMessageVT

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

func (*FrameEvent) CloneVT

func (m *FrameEvent) CloneVT() *FrameEvent

func (*FrameEvent) EqualMessageVT

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

func (*FrameEvent) EqualVT

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

func (*FrameEvent) GetMovement

func (x *FrameEvent) GetMovement() []*movement.MovementSample

func (*FrameEvent) GetTick

func (x *FrameEvent) GetTick() uint64

func (*FrameEvent) GetTimeSeconds

func (x *FrameEvent) GetTimeSeconds() float64

func (*FrameEvent) MarshalJSON

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

MarshalJSON marshals the FrameEvent to JSON.

func (*FrameEvent) MarshalProtoJSON

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

MarshalProtoJSON marshals the FrameEvent message to JSON.

func (*FrameEvent) MarshalProtoText

func (x *FrameEvent) MarshalProtoText() string

func (*FrameEvent) MarshalToSizedBufferVT

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

func (*FrameEvent) MarshalToVT

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

func (*FrameEvent) MarshalVT

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

func (*FrameEvent) ProtoMessage

func (*FrameEvent) ProtoMessage()

func (*FrameEvent) Reset

func (x *FrameEvent) Reset()

func (*FrameEvent) SizeVT

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

func (*FrameEvent) String

func (x *FrameEvent) String() string

func (*FrameEvent) UnmarshalJSON

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

UnmarshalJSON unmarshals the FrameEvent from JSON.

func (*FrameEvent) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the FrameEvent message from JSON.

func (*FrameEvent) UnmarshalVT

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

type LogRequest

type LogRequest struct {

	// Message is the text to log, without a trailing newline.
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

LogRequest carries one log line.

func (*LogRequest) CloneMessageVT

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

func (*LogRequest) CloneVT

func (m *LogRequest) CloneVT() *LogRequest

func (*LogRequest) EqualMessageVT

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

func (*LogRequest) EqualVT

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

func (*LogRequest) GetMessage

func (x *LogRequest) GetMessage() string

func (*LogRequest) MarshalJSON

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

MarshalJSON marshals the LogRequest to JSON.

func (*LogRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the LogRequest message to JSON.

func (*LogRequest) MarshalProtoText

func (x *LogRequest) MarshalProtoText() string

func (*LogRequest) MarshalToSizedBufferVT

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

func (*LogRequest) MarshalToVT

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

func (*LogRequest) MarshalVT

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

func (*LogRequest) ProtoMessage

func (*LogRequest) ProtoMessage()

func (*LogRequest) Reset

func (x *LogRequest) Reset()

func (*LogRequest) SizeVT

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

func (*LogRequest) String

func (x *LogRequest) String() string

func (*LogRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the LogRequest from JSON.

func (*LogRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the LogRequest message from JSON.

func (*LogRequest) UnmarshalVT

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

type PrecacheOptions

type PrecacheOptions struct {

	// Heroes are hero names, such as hero_wraith.
	Heroes []string `protobuf:"bytes,1,rep,name=heroes,proto3" json:"heroes,omitempty"`
	// Resources are model and particle paths, such as models/props/crate.vmdl,
	// with {addon} for the mod's content addon, as in models/{addon}/pawn.vmdl.
	Resources []string `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

PrecacheOptions names what the next world loads ahead of use.

func (*PrecacheOptions) CloneMessageVT

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

func (*PrecacheOptions) CloneVT

func (m *PrecacheOptions) CloneVT() *PrecacheOptions

func (*PrecacheOptions) EqualMessageVT

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

func (*PrecacheOptions) EqualVT

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

func (*PrecacheOptions) GetHeroes

func (x *PrecacheOptions) GetHeroes() []string

func (*PrecacheOptions) GetResources

func (x *PrecacheOptions) GetResources() []string

func (*PrecacheOptions) MarshalJSON

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

MarshalJSON marshals the PrecacheOptions to JSON.

func (*PrecacheOptions) MarshalProtoJSON

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

MarshalProtoJSON marshals the PrecacheOptions message to JSON.

func (*PrecacheOptions) MarshalProtoText

func (x *PrecacheOptions) MarshalProtoText() string

func (*PrecacheOptions) MarshalToSizedBufferVT

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

func (*PrecacheOptions) MarshalToVT

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

func (*PrecacheOptions) MarshalVT

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

func (*PrecacheOptions) ProtoMessage

func (*PrecacheOptions) ProtoMessage()

func (*PrecacheOptions) Reset

func (x *PrecacheOptions) Reset()

func (*PrecacheOptions) SizeVT

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

func (*PrecacheOptions) String

func (x *PrecacheOptions) String() string

func (*PrecacheOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the PrecacheOptions from JSON.

func (*PrecacheOptions) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the PrecacheOptions message from JSON.

func (*PrecacheOptions) UnmarshalVT

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

type Reply

type Reply struct {

	// Error describes why the call failed, or is empty on success.
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// Response is the method's encoded response.
	Response []byte `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

Reply answers one Call.

func (*Reply) CloneMessageVT

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

func (*Reply) CloneVT

func (m *Reply) CloneVT() *Reply

func (*Reply) EqualMessageVT

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

func (*Reply) EqualVT

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

func (*Reply) GetError

func (x *Reply) GetError() string

func (*Reply) GetResponse

func (x *Reply) GetResponse() []byte

func (*Reply) MarshalJSON

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

MarshalJSON marshals the Reply to JSON.

func (*Reply) MarshalProtoJSON

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

MarshalProtoJSON marshals the Reply message to JSON.

func (*Reply) MarshalProtoText

func (x *Reply) MarshalProtoText() string

func (*Reply) MarshalToSizedBufferVT

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

func (*Reply) MarshalToVT

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

func (*Reply) MarshalVT

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

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) SizeVT

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

func (*Reply) String

func (x *Reply) String() string

func (*Reply) UnmarshalJSON

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

UnmarshalJSON unmarshals the Reply from JSON.

func (*Reply) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the Reply message from JSON.

func (*Reply) UnmarshalVT

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

type ServerCommandRequest

type ServerCommandRequest struct {

	// Command is the console line, without a trailing newline.
	Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

ServerCommandRequest carries one server console line.

func (*ServerCommandRequest) CloneMessageVT

func (*ServerCommandRequest) CloneVT

func (*ServerCommandRequest) EqualMessageVT

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

func (*ServerCommandRequest) EqualVT

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

func (*ServerCommandRequest) GetCommand

func (x *ServerCommandRequest) GetCommand() string

func (*ServerCommandRequest) MarshalJSON

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

MarshalJSON marshals the ServerCommandRequest to JSON.

func (*ServerCommandRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the ServerCommandRequest message to JSON.

func (*ServerCommandRequest) MarshalProtoText

func (x *ServerCommandRequest) MarshalProtoText() string

func (*ServerCommandRequest) MarshalToSizedBufferVT

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

func (*ServerCommandRequest) MarshalToVT

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

func (*ServerCommandRequest) MarshalVT

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

func (*ServerCommandRequest) ProtoMessage

func (*ServerCommandRequest) ProtoMessage()

func (*ServerCommandRequest) Reset

func (x *ServerCommandRequest) Reset()

func (*ServerCommandRequest) SizeVT

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

func (*ServerCommandRequest) String

func (x *ServerCommandRequest) String() string

func (*ServerCommandRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the ServerCommandRequest from JSON.

func (*ServerCommandRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ServerCommandRequest message from JSON.

func (*ServerCommandRequest) UnmarshalVT

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

type ServiceCall

type ServiceCall struct {

	// Service names the service, such as "arena.match".
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// Method names the method within the service.
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// Payload is the call's argument.
	Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

ServiceCall calls one method of a service outside Modlock. A host that embeds Modlock provides services of its own, such as a game mode's match, and a mod may serve one to the host. The service and its caller agree on the payload's encoding.

func (*ServiceCall) CloneMessageVT

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

func (*ServiceCall) CloneVT

func (m *ServiceCall) CloneVT() *ServiceCall

func (*ServiceCall) EqualMessageVT

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

func (*ServiceCall) EqualVT

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

func (*ServiceCall) GetMethod

func (x *ServiceCall) GetMethod() string

func (*ServiceCall) GetPayload

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

func (*ServiceCall) GetService

func (x *ServiceCall) GetService() string

func (*ServiceCall) MarshalJSON

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

MarshalJSON marshals the ServiceCall to JSON.

func (*ServiceCall) MarshalProtoJSON

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

MarshalProtoJSON marshals the ServiceCall message to JSON.

func (*ServiceCall) MarshalProtoText

func (x *ServiceCall) MarshalProtoText() string

func (*ServiceCall) MarshalToSizedBufferVT

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

func (*ServiceCall) MarshalToVT

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

func (*ServiceCall) MarshalVT

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

func (*ServiceCall) ProtoMessage

func (*ServiceCall) ProtoMessage()

func (*ServiceCall) Reset

func (x *ServiceCall) Reset()

func (*ServiceCall) SizeVT

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

func (*ServiceCall) String

func (x *ServiceCall) String() string

func (*ServiceCall) UnmarshalJSON

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

UnmarshalJSON unmarshals the ServiceCall from JSON.

func (*ServiceCall) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ServiceCall message from JSON.

func (*ServiceCall) UnmarshalVT

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

type ServiceReply

type ServiceReply struct {

	// Payload is the answer.
	Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

ServiceReply is a service's answer.

func (*ServiceReply) CloneMessageVT

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

func (*ServiceReply) CloneVT

func (m *ServiceReply) CloneVT() *ServiceReply

func (*ServiceReply) EqualMessageVT

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

func (*ServiceReply) EqualVT

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

func (*ServiceReply) GetPayload

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

func (*ServiceReply) MarshalJSON

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

MarshalJSON marshals the ServiceReply to JSON.

func (*ServiceReply) MarshalProtoJSON

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

MarshalProtoJSON marshals the ServiceReply message to JSON.

func (*ServiceReply) MarshalProtoText

func (x *ServiceReply) MarshalProtoText() string

func (*ServiceReply) MarshalToSizedBufferVT

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

func (*ServiceReply) MarshalToVT

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

func (*ServiceReply) MarshalVT

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

func (*ServiceReply) ProtoMessage

func (*ServiceReply) ProtoMessage()

func (*ServiceReply) Reset

func (x *ServiceReply) Reset()

func (*ServiceReply) SizeVT

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

func (*ServiceReply) String

func (x *ServiceReply) String() string

func (*ServiceReply) UnmarshalJSON

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

UnmarshalJSON unmarshals the ServiceReply from JSON.

func (*ServiceReply) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ServiceReply message from JSON.

func (*ServiceReply) UnmarshalVT

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

type StartEvent

type StartEvent struct {

	// Args holds the arguments that follow -- on the host command line.
	Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	// CheckOnly is true when the host checks the mod without starting a game;
	// every call but Log then fails.
	CheckOnly bool `protobuf:"varint,2,opt,name=check_only,json=checkOnly,proto3" json:"checkOnly,omitempty"`
	// Source holds an interpreted mod's entry, which the interpreter module
	// evaluates during start. It is empty for a compiled mod.
	Source []byte `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

StartEvent describes the server the mod starts in.

func (*StartEvent) CloneMessageVT

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

func (*StartEvent) CloneVT

func (m *StartEvent) CloneVT() *StartEvent

func (*StartEvent) EqualMessageVT

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

func (*StartEvent) EqualVT

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

func (*StartEvent) GetArgs

func (x *StartEvent) GetArgs() []string

func (*StartEvent) GetCheckOnly

func (x *StartEvent) GetCheckOnly() bool

func (*StartEvent) GetSource

func (x *StartEvent) GetSource() []byte

func (*StartEvent) MarshalJSON

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

MarshalJSON marshals the StartEvent to JSON.

func (*StartEvent) MarshalProtoJSON

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

MarshalProtoJSON marshals the StartEvent message to JSON.

func (*StartEvent) MarshalProtoText

func (x *StartEvent) MarshalProtoText() string

func (*StartEvent) MarshalToSizedBufferVT

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

func (*StartEvent) MarshalToVT

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

func (*StartEvent) MarshalVT

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

func (*StartEvent) ProtoMessage

func (*StartEvent) ProtoMessage()

func (*StartEvent) Reset

func (x *StartEvent) Reset()

func (*StartEvent) SizeVT

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

func (*StartEvent) String

func (x *StartEvent) String() string

func (*StartEvent) UnmarshalJSON

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

UnmarshalJSON unmarshals the StartEvent from JSON.

func (*StartEvent) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the StartEvent message from JSON.

func (*StartEvent) UnmarshalVT

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

type StartResult

type StartResult struct {

	// Frames asks for a Frame event every server frame.
	Frames bool `protobuf:"varint,1,opt,name=frames,proto3" json:"frames,omitempty"`
	// Damage asks for a Damage event before each hit.
	Damage bool `protobuf:"varint,2,opt,name=damage,proto3" json:"damage,omitempty"`
	// Damaged asks for a Damaged event after each hit.
	Damaged bool `protobuf:"varint,3,opt,name=damaged,proto3" json:"damaged,omitempty"`
	// contains filtered or unexported fields
}

StartResult declares which events the mod consumes.

func (*StartResult) CloneMessageVT

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

func (*StartResult) CloneVT

func (m *StartResult) CloneVT() *StartResult

func (*StartResult) EqualMessageVT

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

func (*StartResult) EqualVT

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

func (*StartResult) GetDamage

func (x *StartResult) GetDamage() bool

func (*StartResult) GetDamaged

func (x *StartResult) GetDamaged() bool

func (*StartResult) GetFrames

func (x *StartResult) GetFrames() bool

func (*StartResult) MarshalJSON

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

MarshalJSON marshals the StartResult to JSON.

func (*StartResult) MarshalProtoJSON

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

MarshalProtoJSON marshals the StartResult message to JSON.

func (*StartResult) MarshalProtoText

func (x *StartResult) MarshalProtoText() string

func (*StartResult) MarshalToSizedBufferVT

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

func (*StartResult) MarshalToVT

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

func (*StartResult) MarshalVT

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

func (*StartResult) ProtoMessage

func (*StartResult) ProtoMessage()

func (*StartResult) Reset

func (x *StartResult) Reset()

func (*StartResult) SizeVT

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

func (*StartResult) String

func (x *StartResult) String() string

func (*StartResult) UnmarshalJSON

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

UnmarshalJSON unmarshals the StartResult from JSON.

func (*StartResult) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the StartResult message from JSON.

func (*StartResult) UnmarshalVT

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

type WorldEvent

type WorldEvent struct {

	// Map names the world's map.
	Map string `protobuf:"bytes,1,opt,name=map,proto3" json:"map,omitempty"`
	// contains filtered or unexported fields
}

WorldEvent announces a loaded world.

func (*WorldEvent) CloneMessageVT

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

func (*WorldEvent) CloneVT

func (m *WorldEvent) CloneVT() *WorldEvent

func (*WorldEvent) EqualMessageVT

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

func (*WorldEvent) EqualVT

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

func (*WorldEvent) GetMap

func (x *WorldEvent) GetMap() string

func (*WorldEvent) MarshalJSON

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

MarshalJSON marshals the WorldEvent to JSON.

func (*WorldEvent) MarshalProtoJSON

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

MarshalProtoJSON marshals the WorldEvent message to JSON.

func (*WorldEvent) MarshalProtoText

func (x *WorldEvent) MarshalProtoText() string

func (*WorldEvent) MarshalToSizedBufferVT

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

func (*WorldEvent) MarshalToVT

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

func (*WorldEvent) MarshalVT

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

func (*WorldEvent) ProtoMessage

func (*WorldEvent) ProtoMessage()

func (*WorldEvent) Reset

func (x *WorldEvent) Reset()

func (*WorldEvent) SizeVT

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

func (*WorldEvent) String

func (x *WorldEvent) String() string

func (*WorldEvent) UnmarshalJSON

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

UnmarshalJSON unmarshals the WorldEvent from JSON.

func (*WorldEvent) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the WorldEvent message from JSON.

func (*WorldEvent) UnmarshalVT

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

Jump to

Keyboard shortcuts

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