Documentation
¶
Index ¶
- Variables
- type PlayerSettingRequest
- func (m *PlayerSettingRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *PlayerSettingRequest) CloneVT() *PlayerSettingRequest
- func (this *PlayerSettingRequest) EqualMessageVT(thatMsg any) bool
- func (this *PlayerSettingRequest) EqualVT(that *PlayerSettingRequest) bool
- func (x *PlayerSettingRequest) GetKey() string
- func (x *PlayerSettingRequest) GetPlayer() int32
- func (x *PlayerSettingRequest) MarshalJSON() ([]byte, error)
- func (x *PlayerSettingRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *PlayerSettingRequest) MarshalProtoText() string
- func (m *PlayerSettingRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PlayerSettingRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PlayerSettingRequest) MarshalVT() (dAtA []byte, err error)
- func (*PlayerSettingRequest) ProtoMessage()
- func (x *PlayerSettingRequest) Reset()
- func (m *PlayerSettingRequest) SizeVT() (n int)
- func (x *PlayerSettingRequest) String() string
- func (x *PlayerSettingRequest) UnmarshalJSON(b []byte) error
- func (x *PlayerSettingRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *PlayerSettingRequest) UnmarshalVT(dAtA []byte) error
- type SetPlayerSettingRequest
- func (m *SetPlayerSettingRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SetPlayerSettingRequest) CloneVT() *SetPlayerSettingRequest
- func (this *SetPlayerSettingRequest) EqualMessageVT(thatMsg any) bool
- func (this *SetPlayerSettingRequest) EqualVT(that *SetPlayerSettingRequest) bool
- func (x *SetPlayerSettingRequest) GetKey() string
- func (x *SetPlayerSettingRequest) GetPlayer() int32
- func (x *SetPlayerSettingRequest) GetValue() string
- func (x *SetPlayerSettingRequest) MarshalJSON() ([]byte, error)
- func (x *SetPlayerSettingRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *SetPlayerSettingRequest) MarshalProtoText() string
- func (m *SetPlayerSettingRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SetPlayerSettingRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *SetPlayerSettingRequest) MarshalVT() (dAtA []byte, err error)
- func (*SetPlayerSettingRequest) ProtoMessage()
- func (x *SetPlayerSettingRequest) Reset()
- func (m *SetPlayerSettingRequest) SizeVT() (n int)
- func (x *SetPlayerSettingRequest) String() string
- func (x *SetPlayerSettingRequest) UnmarshalJSON(b []byte) error
- func (x *SetPlayerSettingRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SetPlayerSettingRequest) UnmarshalVT(dAtA []byte) error
- type Setting
- func (m *Setting) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Setting) CloneVT() *Setting
- func (this *Setting) EqualMessageVT(thatMsg any) bool
- func (this *Setting) EqualVT(that *Setting) bool
- func (x *Setting) GetChoices() []*SettingChoice
- func (x *Setting) GetDefaultValue() string
- func (x *Setting) GetKey() string
- func (x *Setting) GetKind() Setting_Kind
- func (x *Setting) GetLabel() string
- func (x *Setting) GetMax() float64
- func (x *Setting) GetMin() float64
- func (x *Setting) GetStep() float64
- func (x *Setting) MarshalJSON() ([]byte, error)
- func (x *Setting) MarshalProtoJSON(s *json.MarshalState)
- func (x *Setting) MarshalProtoText() string
- func (m *Setting) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Setting) MarshalToVT(dAtA []byte) (int, error)
- func (m *Setting) MarshalVT() (dAtA []byte, err error)
- func (*Setting) ProtoMessage()
- func (x *Setting) Reset()
- func (m *Setting) SizeVT() (n int)
- func (x *Setting) String() string
- func (x *Setting) UnmarshalJSON(b []byte) error
- func (x *Setting) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Setting) UnmarshalVT(dAtA []byte) error
- type SettingChangedEvent
- func (m *SettingChangedEvent) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SettingChangedEvent) CloneVT() *SettingChangedEvent
- func (this *SettingChangedEvent) EqualMessageVT(thatMsg any) bool
- func (this *SettingChangedEvent) EqualVT(that *SettingChangedEvent) bool
- func (x *SettingChangedEvent) GetKey() string
- func (x *SettingChangedEvent) GetPlayer() int32
- func (x *SettingChangedEvent) GetValue() string
- func (x *SettingChangedEvent) MarshalJSON() ([]byte, error)
- func (x *SettingChangedEvent) MarshalProtoJSON(s *json.MarshalState)
- func (x *SettingChangedEvent) MarshalProtoText() string
- func (m *SettingChangedEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SettingChangedEvent) MarshalToVT(dAtA []byte) (int, error)
- func (m *SettingChangedEvent) MarshalVT() (dAtA []byte, err error)
- func (*SettingChangedEvent) ProtoMessage()
- func (x *SettingChangedEvent) Reset()
- func (m *SettingChangedEvent) SizeVT() (n int)
- func (x *SettingChangedEvent) String() string
- func (x *SettingChangedEvent) UnmarshalJSON(b []byte) error
- func (x *SettingChangedEvent) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SettingChangedEvent) UnmarshalVT(dAtA []byte) error
- type SettingChoice
- func (m *SettingChoice) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SettingChoice) CloneVT() *SettingChoice
- func (this *SettingChoice) EqualMessageVT(thatMsg any) bool
- func (this *SettingChoice) EqualVT(that *SettingChoice) bool
- func (x *SettingChoice) GetLabel() string
- func (x *SettingChoice) GetValue() string
- func (x *SettingChoice) MarshalJSON() ([]byte, error)
- func (x *SettingChoice) MarshalProtoJSON(s *json.MarshalState)
- func (x *SettingChoice) MarshalProtoText() string
- func (m *SettingChoice) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SettingChoice) MarshalToVT(dAtA []byte) (int, error)
- func (m *SettingChoice) MarshalVT() (dAtA []byte, err error)
- func (*SettingChoice) ProtoMessage()
- func (x *SettingChoice) Reset()
- func (m *SettingChoice) SizeVT() (n int)
- func (x *SettingChoice) String() string
- func (x *SettingChoice) UnmarshalJSON(b []byte) error
- func (x *SettingChoice) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SettingChoice) UnmarshalVT(dAtA []byte) error
- type SettingResponse
- func (m *SettingResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SettingResponse) CloneVT() *SettingResponse
- func (this *SettingResponse) EqualMessageVT(thatMsg any) bool
- func (this *SettingResponse) EqualVT(that *SettingResponse) bool
- func (x *SettingResponse) GetValue() string
- func (x *SettingResponse) MarshalJSON() ([]byte, error)
- func (x *SettingResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *SettingResponse) MarshalProtoText() string
- func (m *SettingResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SettingResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *SettingResponse) MarshalVT() (dAtA []byte, err error)
- func (*SettingResponse) ProtoMessage()
- func (x *SettingResponse) Reset()
- func (m *SettingResponse) SizeVT() (n int)
- func (x *SettingResponse) String() string
- func (x *SettingResponse) UnmarshalJSON(b []byte) error
- func (x *SettingResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SettingResponse) UnmarshalVT(dAtA []byte) error
- type Setting_Kind
- func (x Setting_Kind) Enum() *Setting_Kind
- func (x Setting_Kind) MarshalJSON() ([]byte, error)
- func (x Setting_Kind) MarshalProtoJSON(s *json.MarshalState)
- func (x Setting_Kind) MarshalProtoText() string
- func (x Setting_Kind) MarshalText() ([]byte, error)
- func (x Setting_Kind) String() string
- func (x *Setting_Kind) UnmarshalJSON(b []byte) error
- func (x *Setting_Kind) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *Setting_Kind) UnmarshalText(b []byte) error
- type StoredSetting
- func (m *StoredSetting) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *StoredSetting) CloneVT() *StoredSetting
- func (this *StoredSetting) EqualMessageVT(thatMsg any) bool
- func (this *StoredSetting) EqualVT(that *StoredSetting) bool
- func (x *StoredSetting) GetKey() string
- func (x *StoredSetting) GetMod() string
- func (x *StoredSetting) GetSteamId() uint64
- func (x *StoredSetting) GetValue() string
- func (x *StoredSetting) MarshalJSON() ([]byte, error)
- func (x *StoredSetting) MarshalProtoJSON(s *json.MarshalState)
- func (x *StoredSetting) MarshalProtoText() string
- func (m *StoredSetting) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StoredSetting) MarshalToVT(dAtA []byte) (int, error)
- func (m *StoredSetting) MarshalVT() (dAtA []byte, err error)
- func (*StoredSetting) ProtoMessage()
- func (x *StoredSetting) Reset()
- func (m *StoredSetting) SizeVT() (n int)
- func (x *StoredSetting) String() string
- func (x *StoredSetting) UnmarshalJSON(b []byte) error
- func (x *StoredSetting) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *StoredSetting) UnmarshalVT(dAtA []byte) error
- type StoredSettings
- func (m *StoredSettings) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *StoredSettings) CloneVT() *StoredSettings
- func (this *StoredSettings) EqualMessageVT(thatMsg any) bool
- func (this *StoredSettings) EqualVT(that *StoredSettings) bool
- func (x *StoredSettings) GetValues() []*StoredSetting
- func (x *StoredSettings) MarshalJSON() ([]byte, error)
- func (x *StoredSettings) MarshalProtoJSON(s *json.MarshalState)
- func (x *StoredSettings) MarshalProtoText() string
- func (m *StoredSettings) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StoredSettings) MarshalToVT(dAtA []byte) (int, error)
- func (m *StoredSettings) MarshalVT() (dAtA []byte, err error)
- func (*StoredSettings) ProtoMessage()
- func (x *StoredSettings) Reset()
- func (m *StoredSettings) SizeVT() (n int)
- func (x *StoredSettings) String() string
- func (x *StoredSettings) UnmarshalJSON(b []byte) error
- func (x *StoredSettings) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *StoredSettings) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( Setting_Kind_name = map[int32]string{ 0: "KIND_UNKNOWN", 1: "KIND_CHOICE", 2: "KIND_SWITCH", 3: "KIND_NUMBER", } Setting_Kind_value = map[string]int32{ "KIND_UNKNOWN": 0, "KIND_CHOICE": 1, "KIND_SWITCH": 2, "KIND_NUMBER": 3, } )
Enum value maps for Setting_Kind.
Functions ¶
This section is empty.
Types ¶
type PlayerSettingRequest ¶
type PlayerSettingRequest struct {
// Player is the player's server slot.
Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
// Key names a setting the manifest declares.
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
PlayerSettingRequest names one of a player's settings.
func (*PlayerSettingRequest) CloneMessageVT ¶
func (m *PlayerSettingRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*PlayerSettingRequest) CloneVT ¶
func (m *PlayerSettingRequest) CloneVT() *PlayerSettingRequest
func (*PlayerSettingRequest) EqualMessageVT ¶
func (this *PlayerSettingRequest) EqualMessageVT(thatMsg any) bool
func (*PlayerSettingRequest) EqualVT ¶
func (this *PlayerSettingRequest) EqualVT(that *PlayerSettingRequest) bool
func (*PlayerSettingRequest) GetKey ¶
func (x *PlayerSettingRequest) GetKey() string
func (*PlayerSettingRequest) GetPlayer ¶
func (x *PlayerSettingRequest) GetPlayer() int32
func (*PlayerSettingRequest) MarshalJSON ¶
func (x *PlayerSettingRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the PlayerSettingRequest to JSON.
func (*PlayerSettingRequest) MarshalProtoJSON ¶
func (x *PlayerSettingRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the PlayerSettingRequest message to JSON.
func (*PlayerSettingRequest) MarshalProtoText ¶
func (x *PlayerSettingRequest) MarshalProtoText() string
func (*PlayerSettingRequest) MarshalToSizedBufferVT ¶
func (m *PlayerSettingRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PlayerSettingRequest) MarshalToVT ¶
func (m *PlayerSettingRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PlayerSettingRequest) MarshalVT ¶
func (m *PlayerSettingRequest) MarshalVT() (dAtA []byte, err error)
func (*PlayerSettingRequest) ProtoMessage ¶
func (*PlayerSettingRequest) ProtoMessage()
func (*PlayerSettingRequest) Reset ¶
func (x *PlayerSettingRequest) Reset()
func (*PlayerSettingRequest) SizeVT ¶
func (m *PlayerSettingRequest) SizeVT() (n int)
func (*PlayerSettingRequest) String ¶
func (x *PlayerSettingRequest) String() string
func (*PlayerSettingRequest) UnmarshalJSON ¶
func (x *PlayerSettingRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the PlayerSettingRequest from JSON.
func (*PlayerSettingRequest) UnmarshalProtoJSON ¶
func (x *PlayerSettingRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the PlayerSettingRequest message from JSON.
func (*PlayerSettingRequest) UnmarshalVT ¶
func (m *PlayerSettingRequest) UnmarshalVT(dAtA []byte) error
type SetPlayerSettingRequest ¶
type SetPlayerSettingRequest struct {
// Player is the player's server slot.
Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
// Key names a setting the manifest declares.
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Value is one of the setting's values, as SettingResponse holds it.
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
SetPlayerSettingRequest changes one of a player's settings.
func (*SetPlayerSettingRequest) CloneMessageVT ¶
func (m *SetPlayerSettingRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SetPlayerSettingRequest) CloneVT ¶
func (m *SetPlayerSettingRequest) CloneVT() *SetPlayerSettingRequest
func (*SetPlayerSettingRequest) EqualMessageVT ¶
func (this *SetPlayerSettingRequest) EqualMessageVT(thatMsg any) bool
func (*SetPlayerSettingRequest) EqualVT ¶
func (this *SetPlayerSettingRequest) EqualVT(that *SetPlayerSettingRequest) bool
func (*SetPlayerSettingRequest) GetKey ¶
func (x *SetPlayerSettingRequest) GetKey() string
func (*SetPlayerSettingRequest) GetPlayer ¶
func (x *SetPlayerSettingRequest) GetPlayer() int32
func (*SetPlayerSettingRequest) GetValue ¶
func (x *SetPlayerSettingRequest) GetValue() string
func (*SetPlayerSettingRequest) MarshalJSON ¶
func (x *SetPlayerSettingRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SetPlayerSettingRequest to JSON.
func (*SetPlayerSettingRequest) MarshalProtoJSON ¶
func (x *SetPlayerSettingRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SetPlayerSettingRequest message to JSON.
func (*SetPlayerSettingRequest) MarshalProtoText ¶
func (x *SetPlayerSettingRequest) MarshalProtoText() string
func (*SetPlayerSettingRequest) MarshalToSizedBufferVT ¶
func (m *SetPlayerSettingRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetPlayerSettingRequest) MarshalToVT ¶
func (m *SetPlayerSettingRequest) MarshalToVT(dAtA []byte) (int, error)
func (*SetPlayerSettingRequest) MarshalVT ¶
func (m *SetPlayerSettingRequest) MarshalVT() (dAtA []byte, err error)
func (*SetPlayerSettingRequest) ProtoMessage ¶
func (*SetPlayerSettingRequest) ProtoMessage()
func (*SetPlayerSettingRequest) Reset ¶
func (x *SetPlayerSettingRequest) Reset()
func (*SetPlayerSettingRequest) SizeVT ¶
func (m *SetPlayerSettingRequest) SizeVT() (n int)
func (*SetPlayerSettingRequest) String ¶
func (x *SetPlayerSettingRequest) String() string
func (*SetPlayerSettingRequest) UnmarshalJSON ¶
func (x *SetPlayerSettingRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SetPlayerSettingRequest from JSON.
func (*SetPlayerSettingRequest) UnmarshalProtoJSON ¶
func (x *SetPlayerSettingRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SetPlayerSettingRequest message from JSON.
func (*SetPlayerSettingRequest) UnmarshalVT ¶
func (m *SetPlayerSettingRequest) UnmarshalVT(dAtA []byte) error
type Setting ¶
type Setting struct {
// Key names the setting in the mod's code: up to 64 letters, digits and
// underscores, not starting with a digit.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Label names the setting to players.
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
Kind Setting_Kind `protobuf:"varint,3,opt,name=kind,proto3" json:"kind,omitempty"`
// Choices are a choice setting's values, in the order players see them.
Choices []*SettingChoice `protobuf:"bytes,4,rep,name=choices,proto3" json:"choices,omitempty"`
// Min, max and step bound a number setting.
Min float64 `protobuf:"fixed64,5,opt,name=min,proto3" json:"min,omitempty"`
Max float64 `protobuf:"fixed64,6,opt,name=max,proto3" json:"max,omitempty"`
Step float64 `protobuf:"fixed64,7,opt,name=step,proto3" json:"step,omitempty"`
// Default is the value a player starts with. Empty means the first choice,
// off, or min.
DefaultValue string `protobuf:"bytes,8,opt,name=default_value,json=default,proto3" json:"default,omitempty"`
// contains filtered or unexported fields
}
Setting is one choice a player makes about a mod, such as a HUD layout. Each value is text: a choice's value, "true" or "false", or a number.
func (*Setting) CloneMessageVT ¶
func (m *Setting) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Setting) EqualMessageVT ¶
func (*Setting) GetChoices ¶
func (x *Setting) GetChoices() []*SettingChoice
func (*Setting) GetDefaultValue ¶
func (*Setting) GetKind ¶
func (x *Setting) GetKind() Setting_Kind
func (*Setting) MarshalJSON ¶
MarshalJSON marshals the Setting to JSON.
func (*Setting) MarshalProtoJSON ¶
func (x *Setting) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Setting message to JSON.
func (*Setting) MarshalProtoText ¶
func (*Setting) MarshalToSizedBufferVT ¶
func (*Setting) ProtoMessage ¶
func (*Setting) ProtoMessage()
func (*Setting) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Setting from JSON.
func (*Setting) UnmarshalProtoJSON ¶
func (x *Setting) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Setting message from JSON.
func (*Setting) UnmarshalVT ¶
type SettingChangedEvent ¶
type SettingChangedEvent struct {
// Player is the player's server slot.
Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
// Key names the setting.
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Value is the new value.
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
SettingChangedEvent is one player's new value of one setting.
func (*SettingChangedEvent) CloneMessageVT ¶
func (m *SettingChangedEvent) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SettingChangedEvent) CloneVT ¶
func (m *SettingChangedEvent) CloneVT() *SettingChangedEvent
func (*SettingChangedEvent) EqualMessageVT ¶
func (this *SettingChangedEvent) EqualMessageVT(thatMsg any) bool
func (*SettingChangedEvent) EqualVT ¶
func (this *SettingChangedEvent) EqualVT(that *SettingChangedEvent) bool
func (*SettingChangedEvent) GetKey ¶
func (x *SettingChangedEvent) GetKey() string
func (*SettingChangedEvent) GetPlayer ¶
func (x *SettingChangedEvent) GetPlayer() int32
func (*SettingChangedEvent) GetValue ¶
func (x *SettingChangedEvent) GetValue() string
func (*SettingChangedEvent) MarshalJSON ¶
func (x *SettingChangedEvent) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SettingChangedEvent to JSON.
func (*SettingChangedEvent) MarshalProtoJSON ¶
func (x *SettingChangedEvent) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SettingChangedEvent message to JSON.
func (*SettingChangedEvent) MarshalProtoText ¶
func (x *SettingChangedEvent) MarshalProtoText() string
func (*SettingChangedEvent) MarshalToSizedBufferVT ¶
func (m *SettingChangedEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SettingChangedEvent) MarshalToVT ¶
func (m *SettingChangedEvent) MarshalToVT(dAtA []byte) (int, error)
func (*SettingChangedEvent) MarshalVT ¶
func (m *SettingChangedEvent) MarshalVT() (dAtA []byte, err error)
func (*SettingChangedEvent) ProtoMessage ¶
func (*SettingChangedEvent) ProtoMessage()
func (*SettingChangedEvent) Reset ¶
func (x *SettingChangedEvent) Reset()
func (*SettingChangedEvent) SizeVT ¶
func (m *SettingChangedEvent) SizeVT() (n int)
func (*SettingChangedEvent) String ¶
func (x *SettingChangedEvent) String() string
func (*SettingChangedEvent) UnmarshalJSON ¶
func (x *SettingChangedEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SettingChangedEvent from JSON.
func (*SettingChangedEvent) UnmarshalProtoJSON ¶
func (x *SettingChangedEvent) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SettingChangedEvent message from JSON.
func (*SettingChangedEvent) UnmarshalVT ¶
func (m *SettingChangedEvent) UnmarshalVT(dAtA []byte) error
type SettingChoice ¶
type SettingChoice struct {
// Value is the value the mod reads: letters, digits, dots, underscores
// and hyphens.
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// Label names the choice to players; empty shows the value.
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
SettingChoice is one value of a choice setting.
func (*SettingChoice) CloneMessageVT ¶
func (m *SettingChoice) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SettingChoice) CloneVT ¶
func (m *SettingChoice) CloneVT() *SettingChoice
func (*SettingChoice) EqualMessageVT ¶
func (this *SettingChoice) EqualMessageVT(thatMsg any) bool
func (*SettingChoice) EqualVT ¶
func (this *SettingChoice) EqualVT(that *SettingChoice) bool
func (*SettingChoice) GetLabel ¶
func (x *SettingChoice) GetLabel() string
func (*SettingChoice) GetValue ¶
func (x *SettingChoice) GetValue() string
func (*SettingChoice) MarshalJSON ¶
func (x *SettingChoice) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SettingChoice to JSON.
func (*SettingChoice) MarshalProtoJSON ¶
func (x *SettingChoice) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SettingChoice message to JSON.
func (*SettingChoice) MarshalProtoText ¶
func (x *SettingChoice) MarshalProtoText() string
func (*SettingChoice) MarshalToSizedBufferVT ¶
func (m *SettingChoice) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SettingChoice) MarshalToVT ¶
func (m *SettingChoice) MarshalToVT(dAtA []byte) (int, error)
func (*SettingChoice) MarshalVT ¶
func (m *SettingChoice) MarshalVT() (dAtA []byte, err error)
func (*SettingChoice) ProtoMessage ¶
func (*SettingChoice) ProtoMessage()
func (*SettingChoice) Reset ¶
func (x *SettingChoice) Reset()
func (*SettingChoice) SizeVT ¶
func (m *SettingChoice) SizeVT() (n int)
func (*SettingChoice) String ¶
func (x *SettingChoice) String() string
func (*SettingChoice) UnmarshalJSON ¶
func (x *SettingChoice) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SettingChoice from JSON.
func (*SettingChoice) UnmarshalProtoJSON ¶
func (x *SettingChoice) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SettingChoice message from JSON.
func (*SettingChoice) UnmarshalVT ¶
func (m *SettingChoice) UnmarshalVT(dAtA []byte) error
type SettingResponse ¶
type SettingResponse struct {
// Value is the value as text: a choice's value, "true" or "false", or a
// number.
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
SettingResponse holds a setting's value.
func (*SettingResponse) CloneMessageVT ¶
func (m *SettingResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SettingResponse) CloneVT ¶
func (m *SettingResponse) CloneVT() *SettingResponse
func (*SettingResponse) EqualMessageVT ¶
func (this *SettingResponse) EqualMessageVT(thatMsg any) bool
func (*SettingResponse) EqualVT ¶
func (this *SettingResponse) EqualVT(that *SettingResponse) bool
func (*SettingResponse) GetValue ¶
func (x *SettingResponse) GetValue() string
func (*SettingResponse) MarshalJSON ¶
func (x *SettingResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SettingResponse to JSON.
func (*SettingResponse) MarshalProtoJSON ¶
func (x *SettingResponse) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SettingResponse message to JSON.
func (*SettingResponse) MarshalProtoText ¶
func (x *SettingResponse) MarshalProtoText() string
func (*SettingResponse) MarshalToSizedBufferVT ¶
func (m *SettingResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SettingResponse) MarshalToVT ¶
func (m *SettingResponse) MarshalToVT(dAtA []byte) (int, error)
func (*SettingResponse) MarshalVT ¶
func (m *SettingResponse) MarshalVT() (dAtA []byte, err error)
func (*SettingResponse) ProtoMessage ¶
func (*SettingResponse) ProtoMessage()
func (*SettingResponse) Reset ¶
func (x *SettingResponse) Reset()
func (*SettingResponse) SizeVT ¶
func (m *SettingResponse) SizeVT() (n int)
func (*SettingResponse) String ¶
func (x *SettingResponse) String() string
func (*SettingResponse) UnmarshalJSON ¶
func (x *SettingResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SettingResponse from JSON.
func (*SettingResponse) UnmarshalProtoJSON ¶
func (x *SettingResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SettingResponse message from JSON.
func (*SettingResponse) UnmarshalVT ¶
func (m *SettingResponse) UnmarshalVT(dAtA []byte) error
type Setting_Kind ¶
type Setting_Kind int32
Kind is the kind of value a setting holds.
const ( // KIND_UNKNOWN is an unset or unsupported kind. Setting_KIND_UNKNOWN Setting_Kind = 0 // KIND_CHOICE is one of the setting's choices. Setting_KIND_CHOICE Setting_Kind = 1 // KIND_SWITCH is on or off. Setting_KIND_SWITCH Setting_Kind = 2 // KIND_NUMBER is a number from min to max, on a step from min when step // is above zero. Setting_KIND_NUMBER Setting_Kind = 3 )
func (Setting_Kind) Enum ¶
func (x Setting_Kind) Enum() *Setting_Kind
func (Setting_Kind) MarshalJSON ¶
func (x Setting_Kind) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Setting_Kind to JSON.
func (Setting_Kind) MarshalProtoJSON ¶
func (x Setting_Kind) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Setting_Kind to JSON.
func (Setting_Kind) MarshalProtoText ¶
func (x Setting_Kind) MarshalProtoText() string
func (Setting_Kind) MarshalText ¶
func (x Setting_Kind) MarshalText() ([]byte, error)
MarshalText marshals the Setting_Kind to text.
func (Setting_Kind) String ¶
func (x Setting_Kind) String() string
func (*Setting_Kind) UnmarshalJSON ¶
func (x *Setting_Kind) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Setting_Kind from JSON.
func (*Setting_Kind) UnmarshalProtoJSON ¶
func (x *Setting_Kind) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Setting_Kind from JSON.
func (*Setting_Kind) UnmarshalText ¶
func (x *Setting_Kind) UnmarshalText(b []byte) error
UnmarshalText unmarshals the Setting_Kind from text.
type StoredSetting ¶
type StoredSetting struct {
Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
SteamId uint64 `protobuf:"varint,2,opt,name=steam_id,json=steamId,proto3" json:"steamId,omitempty"`
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
StoredSetting is one player's value of one mod's setting.
func (*StoredSetting) CloneMessageVT ¶
func (m *StoredSetting) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*StoredSetting) CloneVT ¶
func (m *StoredSetting) CloneVT() *StoredSetting
func (*StoredSetting) EqualMessageVT ¶
func (this *StoredSetting) EqualMessageVT(thatMsg any) bool
func (*StoredSetting) EqualVT ¶
func (this *StoredSetting) EqualVT(that *StoredSetting) bool
func (*StoredSetting) GetKey ¶
func (x *StoredSetting) GetKey() string
func (*StoredSetting) GetMod ¶
func (x *StoredSetting) GetMod() string
func (*StoredSetting) GetSteamId ¶
func (x *StoredSetting) GetSteamId() uint64
func (*StoredSetting) GetValue ¶
func (x *StoredSetting) GetValue() string
func (*StoredSetting) MarshalJSON ¶
func (x *StoredSetting) MarshalJSON() ([]byte, error)
MarshalJSON marshals the StoredSetting to JSON.
func (*StoredSetting) MarshalProtoJSON ¶
func (x *StoredSetting) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the StoredSetting message to JSON.
func (*StoredSetting) MarshalProtoText ¶
func (x *StoredSetting) MarshalProtoText() string
func (*StoredSetting) MarshalToSizedBufferVT ¶
func (m *StoredSetting) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StoredSetting) MarshalToVT ¶
func (m *StoredSetting) MarshalToVT(dAtA []byte) (int, error)
func (*StoredSetting) MarshalVT ¶
func (m *StoredSetting) MarshalVT() (dAtA []byte, err error)
func (*StoredSetting) ProtoMessage ¶
func (*StoredSetting) ProtoMessage()
func (*StoredSetting) Reset ¶
func (x *StoredSetting) Reset()
func (*StoredSetting) SizeVT ¶
func (m *StoredSetting) SizeVT() (n int)
func (*StoredSetting) String ¶
func (x *StoredSetting) String() string
func (*StoredSetting) UnmarshalJSON ¶
func (x *StoredSetting) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the StoredSetting from JSON.
func (*StoredSetting) UnmarshalProtoJSON ¶
func (x *StoredSetting) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the StoredSetting message from JSON.
func (*StoredSetting) UnmarshalVT ¶
func (m *StoredSetting) UnmarshalVT(dAtA []byte) error
type StoredSettings ¶
type StoredSettings struct {
Values []*StoredSetting `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
StoredSettings is the file a host without a settings service keeps players' settings in.
func (*StoredSettings) CloneMessageVT ¶
func (m *StoredSettings) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*StoredSettings) CloneVT ¶
func (m *StoredSettings) CloneVT() *StoredSettings
func (*StoredSettings) EqualMessageVT ¶
func (this *StoredSettings) EqualMessageVT(thatMsg any) bool
func (*StoredSettings) EqualVT ¶
func (this *StoredSettings) EqualVT(that *StoredSettings) bool
func (*StoredSettings) GetValues ¶
func (x *StoredSettings) GetValues() []*StoredSetting
func (*StoredSettings) MarshalJSON ¶
func (x *StoredSettings) MarshalJSON() ([]byte, error)
MarshalJSON marshals the StoredSettings to JSON.
func (*StoredSettings) MarshalProtoJSON ¶
func (x *StoredSettings) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the StoredSettings message to JSON.
func (*StoredSettings) MarshalProtoText ¶
func (x *StoredSettings) MarshalProtoText() string
func (*StoredSettings) MarshalToSizedBufferVT ¶
func (m *StoredSettings) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StoredSettings) MarshalToVT ¶
func (m *StoredSettings) MarshalToVT(dAtA []byte) (int, error)
func (*StoredSettings) MarshalVT ¶
func (m *StoredSettings) MarshalVT() (dAtA []byte, err error)
func (*StoredSettings) ProtoMessage ¶
func (*StoredSettings) ProtoMessage()
func (*StoredSettings) Reset ¶
func (x *StoredSettings) Reset()
func (*StoredSettings) SizeVT ¶
func (m *StoredSettings) SizeVT() (n int)
func (*StoredSettings) String ¶
func (x *StoredSettings) String() string
func (*StoredSettings) UnmarshalJSON ¶
func (x *StoredSettings) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the StoredSettings from JSON.
func (*StoredSettings) UnmarshalProtoJSON ¶
func (x *StoredSettings) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the StoredSettings message from JSON.
func (*StoredSettings) UnmarshalVT ¶
func (m *StoredSettings) UnmarshalVT(dAtA []byte) error