Documentation
¶
Index ¶
- Variables
- type AbilityTuning
- func (m *AbilityTuning) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AbilityTuning) CloneVT() *AbilityTuning
- func (this *AbilityTuning) EqualMessageVT(thatMsg any) bool
- func (this *AbilityTuning) EqualVT(that *AbilityTuning) bool
- func (x *AbilityTuning) GetAbility() string
- func (x *AbilityTuning) GetCopyFields() map[string]string
- func (x *AbilityTuning) GetFields() map[string]float32
- func (x *AbilityTuning) GetProperties() map[string]float32
- func (x *AbilityTuning) MarshalJSON() ([]byte, error)
- func (x *AbilityTuning) MarshalProtoJSON(s *json.MarshalState)
- func (x *AbilityTuning) MarshalProtoText() string
- func (m *AbilityTuning) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AbilityTuning) MarshalToVT(dAtA []byte) (int, error)
- func (m *AbilityTuning) MarshalVT() (dAtA []byte, err error)
- func (*AbilityTuning) ProtoMessage()
- func (x *AbilityTuning) Reset()
- func (m *AbilityTuning) SizeVT() (n int)
- func (x *AbilityTuning) String() string
- func (x *AbilityTuning) UnmarshalJSON(b []byte) error
- func (x *AbilityTuning) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AbilityTuning) UnmarshalVT(dAtA []byte) error
- type AbilityTuning_CopyFieldsEntry
- func (x *AbilityTuning_CopyFieldsEntry) GetKey() string
- func (x *AbilityTuning_CopyFieldsEntry) GetValue() string
- func (x *AbilityTuning_CopyFieldsEntry) MarshalJSON() ([]byte, error)
- func (x *AbilityTuning_CopyFieldsEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *AbilityTuning_CopyFieldsEntry) MarshalProtoText() string
- func (*AbilityTuning_CopyFieldsEntry) ProtoMessage()
- func (x *AbilityTuning_CopyFieldsEntry) Reset()
- func (x *AbilityTuning_CopyFieldsEntry) String() string
- func (x *AbilityTuning_CopyFieldsEntry) UnmarshalJSON(b []byte) error
- func (x *AbilityTuning_CopyFieldsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type AbilityTuning_FieldsEntry
- func (x *AbilityTuning_FieldsEntry) GetKey() string
- func (x *AbilityTuning_FieldsEntry) GetValue() float32
- func (x *AbilityTuning_FieldsEntry) MarshalJSON() ([]byte, error)
- func (x *AbilityTuning_FieldsEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *AbilityTuning_FieldsEntry) MarshalProtoText() string
- func (*AbilityTuning_FieldsEntry) ProtoMessage()
- func (x *AbilityTuning_FieldsEntry) Reset()
- func (x *AbilityTuning_FieldsEntry) String() string
- func (x *AbilityTuning_FieldsEntry) UnmarshalJSON(b []byte) error
- func (x *AbilityTuning_FieldsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type AbilityTuning_PropertiesEntry
- func (x *AbilityTuning_PropertiesEntry) GetKey() string
- func (x *AbilityTuning_PropertiesEntry) GetValue() float32
- func (x *AbilityTuning_PropertiesEntry) MarshalJSON() ([]byte, error)
- func (x *AbilityTuning_PropertiesEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *AbilityTuning_PropertiesEntry) MarshalProtoText() string
- func (*AbilityTuning_PropertiesEntry) ProtoMessage()
- func (x *AbilityTuning_PropertiesEntry) Reset()
- func (x *AbilityTuning_PropertiesEntry) String() string
- func (x *AbilityTuning_PropertiesEntry) UnmarshalJSON(b []byte) error
- func (x *AbilityTuning_PropertiesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type Manifest
- func (m *Manifest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Manifest) CloneVT() *Manifest
- func (this *Manifest) EqualMessageVT(thatMsg any) bool
- func (this *Manifest) EqualVT(that *Manifest) bool
- func (x *Manifest) GetAbilities() []*AbilityTuning
- func (x *Manifest) GetEntry() string
- func (x *Manifest) GetFreeForAll() bool
- func (x *Manifest) GetLanguage() Manifest_Language
- func (x *Manifest) GetMap() string
- func (x *Manifest) GetMetrics() []*metrics.Metric
- func (x *Manifest) GetMovement() *Movement
- func (x *Manifest) GetName() string
- func (x *Manifest) GetRuntime() Manifest_Runtime
- func (x *Manifest) GetSettings() []*settings.Setting
- func (x *Manifest) GetSlug() string
- func (x *Manifest) GetVersion() string
- func (x *Manifest) MarshalJSON() ([]byte, error)
- func (x *Manifest) MarshalProtoJSON(s *json.MarshalState)
- func (x *Manifest) MarshalProtoText() string
- func (m *Manifest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Manifest) MarshalToVT(dAtA []byte) (int, error)
- func (m *Manifest) MarshalVT() (dAtA []byte, err error)
- func (*Manifest) ProtoMessage()
- func (x *Manifest) Reset()
- func (m *Manifest) SizeVT() (n int)
- func (x *Manifest) String() string
- func (x *Manifest) UnmarshalJSON(b []byte) error
- func (x *Manifest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Manifest) UnmarshalVT(dAtA []byte) error
- type Manifest_Language
- func (x Manifest_Language) Enum() *Manifest_Language
- func (x Manifest_Language) MarshalJSON() ([]byte, error)
- func (x Manifest_Language) MarshalProtoJSON(s *json.MarshalState)
- func (x Manifest_Language) MarshalProtoText() string
- func (x Manifest_Language) MarshalText() ([]byte, error)
- func (x Manifest_Language) String() string
- func (x *Manifest_Language) UnmarshalJSON(b []byte) error
- func (x *Manifest_Language) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *Manifest_Language) UnmarshalText(b []byte) error
- type Manifest_Runtime
- func (x Manifest_Runtime) Enum() *Manifest_Runtime
- func (x Manifest_Runtime) MarshalJSON() ([]byte, error)
- func (x Manifest_Runtime) MarshalProtoJSON(s *json.MarshalState)
- func (x Manifest_Runtime) MarshalProtoText() string
- func (x Manifest_Runtime) MarshalText() ([]byte, error)
- func (x Manifest_Runtime) String() string
- func (x *Manifest_Runtime) UnmarshalJSON(b []byte) error
- func (x *Manifest_Runtime) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *Manifest_Runtime) UnmarshalText(b []byte) error
- type Movement
- func (m *Movement) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Movement) CloneVT() *Movement
- func (this *Movement) EqualMessageVT(thatMsg any) bool
- func (this *Movement) EqualVT(that *Movement) bool
- func (x *Movement) GetModel() Movement_Model
- func (x *Movement) GetScale() float32
- func (x *Movement) GetUnpredictedButtons() uint64
- func (x *Movement) MarshalJSON() ([]byte, error)
- func (x *Movement) MarshalProtoJSON(s *json.MarshalState)
- func (x *Movement) MarshalProtoText() string
- func (m *Movement) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Movement) MarshalToVT(dAtA []byte) (int, error)
- func (m *Movement) MarshalVT() (dAtA []byte, err error)
- func (*Movement) ProtoMessage()
- func (x *Movement) Reset()
- func (m *Movement) SizeVT() (n int)
- func (x *Movement) String() string
- func (x *Movement) UnmarshalJSON(b []byte) error
- func (x *Movement) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Movement) UnmarshalVT(dAtA []byte) error
- type Movement_Model
- func (x Movement_Model) Enum() *Movement_Model
- func (x Movement_Model) MarshalJSON() ([]byte, error)
- func (x Movement_Model) MarshalProtoJSON(s *json.MarshalState)
- func (x Movement_Model) MarshalProtoText() string
- func (x Movement_Model) MarshalText() ([]byte, error)
- func (x Movement_Model) String() string
- func (x *Movement_Model) UnmarshalJSON(b []byte) error
- func (x *Movement_Model) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *Movement_Model) UnmarshalText(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( Manifest_Runtime_name = map[int32]string{ 0: "RUNTIME_UNKNOWN", 1: "RUNTIME_WASM", 2: "RUNTIME_QUICKJS", 3: "RUNTIME_LUAU", 4: "RUNTIME_PYTHON", } Manifest_Runtime_value = map[string]int32{ "RUNTIME_UNKNOWN": 0, "RUNTIME_WASM": 1, "RUNTIME_QUICKJS": 2, "RUNTIME_LUAU": 3, "RUNTIME_PYTHON": 4, } )
Enum value maps for Manifest_Runtime.
var ( Manifest_Language_name = map[int32]string{ 0: "LANGUAGE_UNKNOWN", 1: "LANGUAGE_GO", 2: "LANGUAGE_TYPESCRIPT", 3: "LANGUAGE_JAVASCRIPT", 4: "LANGUAGE_LUAU", 5: "LANGUAGE_PYTHON", } Manifest_Language_value = map[string]int32{ "LANGUAGE_UNKNOWN": 0, "LANGUAGE_GO": 1, "LANGUAGE_TYPESCRIPT": 2, "LANGUAGE_JAVASCRIPT": 3, "LANGUAGE_LUAU": 4, "LANGUAGE_PYTHON": 5, } )
Enum value maps for Manifest_Language.
var ( Movement_Model_name = map[int32]string{ 0: "MODEL_NATIVE", 1: "MODEL_QUAKEWORLD", } Movement_Model_value = map[string]int32{ "MODEL_NATIVE": 0, "MODEL_QUAKEWORLD": 1, } )
Enum value maps for Movement_Model.
Functions ¶
This section is empty.
Types ¶
type AbilityTuning ¶
type AbilityTuning struct {
// Ability is the ability's name, such as gunslinger_rocket_launcher.
Ability string `protobuf:"bytes,1,opt,name=ability,proto3" json:"ability,omitempty"`
// Properties replaces the values of the ability's named properties, such
// as AbilityCooldown.
Properties map[string]float32 `` /* 163-byte string literal not displayed */
// Fields writes float schema fields, named as a path of class.field steps
// from the ability's data, such as
// CitadelAbilityVData.m_projectileInfo/ProjectileInfo_t.m_flSpeed.
Fields map[string]float32 `` /* 155-byte string literal not displayed */
// CopyFields copies the field at each value's path over the field at its
// key's path; both must be the same size.
CopyFields map[string]string `` /* 178-byte string literal not displayed */
// contains filtered or unexported fields
}
AbilityTuning changes one ability's data where the game keeps it parsed.
func (*AbilityTuning) CloneMessageVT ¶
func (m *AbilityTuning) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*AbilityTuning) CloneVT ¶
func (m *AbilityTuning) CloneVT() *AbilityTuning
func (*AbilityTuning) EqualMessageVT ¶
func (this *AbilityTuning) EqualMessageVT(thatMsg any) bool
func (*AbilityTuning) EqualVT ¶
func (this *AbilityTuning) EqualVT(that *AbilityTuning) bool
func (*AbilityTuning) GetAbility ¶
func (x *AbilityTuning) GetAbility() string
func (*AbilityTuning) GetCopyFields ¶
func (x *AbilityTuning) GetCopyFields() map[string]string
func (*AbilityTuning) GetFields ¶
func (x *AbilityTuning) GetFields() map[string]float32
func (*AbilityTuning) GetProperties ¶
func (x *AbilityTuning) GetProperties() map[string]float32
func (*AbilityTuning) MarshalJSON ¶
func (x *AbilityTuning) MarshalJSON() ([]byte, error)
MarshalJSON marshals the AbilityTuning to JSON.
func (*AbilityTuning) MarshalProtoJSON ¶
func (x *AbilityTuning) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the AbilityTuning message to JSON.
func (*AbilityTuning) MarshalProtoText ¶
func (x *AbilityTuning) MarshalProtoText() string
func (*AbilityTuning) MarshalToSizedBufferVT ¶
func (m *AbilityTuning) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*AbilityTuning) MarshalToVT ¶
func (m *AbilityTuning) MarshalToVT(dAtA []byte) (int, error)
func (*AbilityTuning) MarshalVT ¶
func (m *AbilityTuning) MarshalVT() (dAtA []byte, err error)
func (*AbilityTuning) ProtoMessage ¶
func (*AbilityTuning) ProtoMessage()
func (*AbilityTuning) Reset ¶
func (x *AbilityTuning) Reset()
func (*AbilityTuning) SizeVT ¶
func (m *AbilityTuning) SizeVT() (n int)
func (*AbilityTuning) String ¶
func (x *AbilityTuning) String() string
func (*AbilityTuning) UnmarshalJSON ¶
func (x *AbilityTuning) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the AbilityTuning from JSON.
func (*AbilityTuning) UnmarshalProtoJSON ¶
func (x *AbilityTuning) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the AbilityTuning message from JSON.
func (*AbilityTuning) UnmarshalVT ¶
func (m *AbilityTuning) UnmarshalVT(dAtA []byte) error
type AbilityTuning_CopyFieldsEntry ¶
type AbilityTuning_CopyFieldsEntry struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*AbilityTuning_CopyFieldsEntry) GetKey ¶
func (x *AbilityTuning_CopyFieldsEntry) GetKey() string
func (*AbilityTuning_CopyFieldsEntry) GetValue ¶
func (x *AbilityTuning_CopyFieldsEntry) GetValue() string
func (*AbilityTuning_CopyFieldsEntry) MarshalJSON ¶
func (x *AbilityTuning_CopyFieldsEntry) MarshalJSON() ([]byte, error)
MarshalJSON marshals the AbilityTuning_CopyFieldsEntry to JSON.
func (*AbilityTuning_CopyFieldsEntry) MarshalProtoJSON ¶
func (x *AbilityTuning_CopyFieldsEntry) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the AbilityTuning_CopyFieldsEntry message to JSON.
func (*AbilityTuning_CopyFieldsEntry) MarshalProtoText ¶
func (x *AbilityTuning_CopyFieldsEntry) MarshalProtoText() string
func (*AbilityTuning_CopyFieldsEntry) ProtoMessage ¶
func (*AbilityTuning_CopyFieldsEntry) ProtoMessage()
func (*AbilityTuning_CopyFieldsEntry) Reset ¶
func (x *AbilityTuning_CopyFieldsEntry) Reset()
func (*AbilityTuning_CopyFieldsEntry) String ¶
func (x *AbilityTuning_CopyFieldsEntry) String() string
func (*AbilityTuning_CopyFieldsEntry) UnmarshalJSON ¶
func (x *AbilityTuning_CopyFieldsEntry) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the AbilityTuning_CopyFieldsEntry from JSON.
func (*AbilityTuning_CopyFieldsEntry) UnmarshalProtoJSON ¶
func (x *AbilityTuning_CopyFieldsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the AbilityTuning_CopyFieldsEntry message from JSON.
type AbilityTuning_FieldsEntry ¶
type AbilityTuning_FieldsEntry struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*AbilityTuning_FieldsEntry) GetKey ¶
func (x *AbilityTuning_FieldsEntry) GetKey() string
func (*AbilityTuning_FieldsEntry) GetValue ¶
func (x *AbilityTuning_FieldsEntry) GetValue() float32
func (*AbilityTuning_FieldsEntry) MarshalJSON ¶
func (x *AbilityTuning_FieldsEntry) MarshalJSON() ([]byte, error)
MarshalJSON marshals the AbilityTuning_FieldsEntry to JSON.
func (*AbilityTuning_FieldsEntry) MarshalProtoJSON ¶
func (x *AbilityTuning_FieldsEntry) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the AbilityTuning_FieldsEntry message to JSON.
func (*AbilityTuning_FieldsEntry) MarshalProtoText ¶
func (x *AbilityTuning_FieldsEntry) MarshalProtoText() string
func (*AbilityTuning_FieldsEntry) ProtoMessage ¶
func (*AbilityTuning_FieldsEntry) ProtoMessage()
func (*AbilityTuning_FieldsEntry) Reset ¶
func (x *AbilityTuning_FieldsEntry) Reset()
func (*AbilityTuning_FieldsEntry) String ¶
func (x *AbilityTuning_FieldsEntry) String() string
func (*AbilityTuning_FieldsEntry) UnmarshalJSON ¶
func (x *AbilityTuning_FieldsEntry) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the AbilityTuning_FieldsEntry from JSON.
func (*AbilityTuning_FieldsEntry) UnmarshalProtoJSON ¶
func (x *AbilityTuning_FieldsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the AbilityTuning_FieldsEntry message from JSON.
type AbilityTuning_PropertiesEntry ¶
type AbilityTuning_PropertiesEntry struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*AbilityTuning_PropertiesEntry) GetKey ¶
func (x *AbilityTuning_PropertiesEntry) GetKey() string
func (*AbilityTuning_PropertiesEntry) GetValue ¶
func (x *AbilityTuning_PropertiesEntry) GetValue() float32
func (*AbilityTuning_PropertiesEntry) MarshalJSON ¶
func (x *AbilityTuning_PropertiesEntry) MarshalJSON() ([]byte, error)
MarshalJSON marshals the AbilityTuning_PropertiesEntry to JSON.
func (*AbilityTuning_PropertiesEntry) MarshalProtoJSON ¶
func (x *AbilityTuning_PropertiesEntry) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the AbilityTuning_PropertiesEntry message to JSON.
func (*AbilityTuning_PropertiesEntry) MarshalProtoText ¶
func (x *AbilityTuning_PropertiesEntry) MarshalProtoText() string
func (*AbilityTuning_PropertiesEntry) ProtoMessage ¶
func (*AbilityTuning_PropertiesEntry) ProtoMessage()
func (*AbilityTuning_PropertiesEntry) Reset ¶
func (x *AbilityTuning_PropertiesEntry) Reset()
func (*AbilityTuning_PropertiesEntry) String ¶
func (x *AbilityTuning_PropertiesEntry) String() string
func (*AbilityTuning_PropertiesEntry) UnmarshalJSON ¶
func (x *AbilityTuning_PropertiesEntry) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the AbilityTuning_PropertiesEntry from JSON.
func (*AbilityTuning_PropertiesEntry) UnmarshalProtoJSON ¶
func (x *AbilityTuning_PropertiesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the AbilityTuning_PropertiesEntry message from JSON.
type Manifest ¶
type Manifest struct {
// Slug identifies the mod: lowercase letters, digits and hyphens.
Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
// Name is the mod's display name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Version is the mod's semantic version.
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// Language is the source language, set in a source project.
Language Manifest_Language `protobuf:"varint,4,opt,name=language,proto3" json:"language,omitempty"`
// Runtime is the module that runs the built mod. A script mod's source
// project sets RUNTIME_WASM to publish a module compiled with scriptc
// instead of a bundle for QuickJS.
Runtime Manifest_Runtime `protobuf:"varint,5,opt,name=runtime,proto3" json:"runtime,omitempty"`
// Entry is the built mod's entry file, relative to mod.json.
Entry string `protobuf:"bytes,6,opt,name=entry,proto3" json:"entry,omitempty"`
// Map is the map the mod plays on; empty plays the default map.
Map string `protobuf:"bytes,7,opt,name=map,proto3" json:"map,omitempty"`
// Movement replaces how heroes move on the server and in each player's
// game.
Movement *Movement `protobuf:"bytes,8,opt,name=movement,proto3" json:"movement,omitempty"`
// Abilities change abilities' data on the server and in each player's
// game.
Abilities []*AbilityTuning `protobuf:"bytes,9,rep,name=abilities,proto3" json:"abilities,omitempty"`
// Settings are the choices each player makes about the mod, which the mod
// reads with PlayerSetting.
Settings []*settings.Setting `protobuf:"bytes,10,rep,name=settings,proto3" json:"settings,omitempty"`
// Metrics are the measures the mod keeps for each player, which the mod
// adds to with AddMetric.
Metrics []*metrics.Metric `protobuf:"bytes,11,rep,name=metrics,proto3" json:"metrics,omitempty"`
// FreeForAll starts the mod in free-for-all: the game shows no team screen,
// the host seats each new player on the smaller team and opens the hero
// picker, and every hero can damage every other. The mod can change it
// while it runs with SetFreeForAll. Meant for dedicated servers.
FreeForAll bool `protobuf:"varint,12,opt,name=free_for_all,json=freeForAll,proto3" json:"freeForAll,omitempty"`
// contains filtered or unexported fields
}
Manifest describes a mod in its mod.json. A source project's manifest names its language; modlock build writes a built mod's manifest beside the entry, naming its runtime and entry instead.
func (*Manifest) CloneMessageVT ¶
func (m *Manifest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Manifest) EqualMessageVT ¶
func (*Manifest) GetAbilities ¶
func (x *Manifest) GetAbilities() []*AbilityTuning
func (*Manifest) GetFreeForAll ¶
func (*Manifest) GetLanguage ¶
func (x *Manifest) GetLanguage() Manifest_Language
func (*Manifest) GetMetrics ¶
func (*Manifest) GetMovement ¶
func (*Manifest) GetRuntime ¶
func (x *Manifest) GetRuntime() Manifest_Runtime
func (*Manifest) GetSettings ¶
func (*Manifest) GetVersion ¶
func (*Manifest) MarshalJSON ¶
MarshalJSON marshals the Manifest to JSON.
func (*Manifest) MarshalProtoJSON ¶
func (x *Manifest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Manifest message to JSON.
func (*Manifest) MarshalProtoText ¶
func (*Manifest) MarshalToSizedBufferVT ¶
func (*Manifest) ProtoMessage ¶
func (*Manifest) ProtoMessage()
func (*Manifest) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Manifest from JSON.
func (*Manifest) UnmarshalProtoJSON ¶
func (x *Manifest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Manifest message from JSON.
func (*Manifest) UnmarshalVT ¶
type Manifest_Language ¶
type Manifest_Language int32
Language is the language a mod's source is written in.
const ( // LANGUAGE_UNKNOWN is an unset or unsupported language. Manifest_LANGUAGE_UNKNOWN Manifest_Language = 0 // LANGUAGE_GO builds with Go into a module of its own. Manifest_LANGUAGE_GO Manifest_Language = 1 // LANGUAGE_TYPESCRIPT bundles to JavaScript for QuickJS. Manifest_LANGUAGE_TYPESCRIPT Manifest_Language = 2 // LANGUAGE_JAVASCRIPT bundles for QuickJS, type checked from JSDoc. Manifest_LANGUAGE_JAVASCRIPT Manifest_Language = 3 // LANGUAGE_LUAU runs on Luau. Manifest_LANGUAGE_LUAU Manifest_Language = 4 // LANGUAGE_PYTHON runs on CPython. Manifest_LANGUAGE_PYTHON Manifest_Language = 5 )
func (Manifest_Language) Enum ¶
func (x Manifest_Language) Enum() *Manifest_Language
func (Manifest_Language) MarshalJSON ¶
func (x Manifest_Language) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Manifest_Language to JSON.
func (Manifest_Language) MarshalProtoJSON ¶
func (x Manifest_Language) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Manifest_Language to JSON.
func (Manifest_Language) MarshalProtoText ¶
func (x Manifest_Language) MarshalProtoText() string
func (Manifest_Language) MarshalText ¶
func (x Manifest_Language) MarshalText() ([]byte, error)
MarshalText marshals the Manifest_Language to text.
func (Manifest_Language) String ¶
func (x Manifest_Language) String() string
func (*Manifest_Language) UnmarshalJSON ¶
func (x *Manifest_Language) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Manifest_Language from JSON.
func (*Manifest_Language) UnmarshalProtoJSON ¶
func (x *Manifest_Language) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Manifest_Language from JSON.
func (*Manifest_Language) UnmarshalText ¶
func (x *Manifest_Language) UnmarshalText(b []byte) error
UnmarshalText unmarshals the Manifest_Language from text.
type Manifest_Runtime ¶
type Manifest_Runtime int32
Runtime is the WebAssembly module that runs a built mod.
const ( // RUNTIME_UNKNOWN is an unset or unsupported runtime. Manifest_RUNTIME_UNKNOWN Manifest_Runtime = 0 // RUNTIME_WASM runs the entry itself, a module compiled from the mod. Manifest_RUNTIME_WASM Manifest_Runtime = 1 // RUNTIME_QUICKJS runs the entry, one JavaScript bundle, on QuickJS. Manifest_RUNTIME_QUICKJS Manifest_Runtime = 2 // RUNTIME_LUAU runs the entry, a zip of Luau sources, on Luau. Manifest_RUNTIME_LUAU Manifest_Runtime = 3 // RUNTIME_PYTHON runs the entry, a zip of Python sources, on CPython. Manifest_RUNTIME_PYTHON Manifest_Runtime = 4 )
func (Manifest_Runtime) Enum ¶
func (x Manifest_Runtime) Enum() *Manifest_Runtime
func (Manifest_Runtime) MarshalJSON ¶
func (x Manifest_Runtime) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Manifest_Runtime to JSON.
func (Manifest_Runtime) MarshalProtoJSON ¶
func (x Manifest_Runtime) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Manifest_Runtime to JSON.
func (Manifest_Runtime) MarshalProtoText ¶
func (x Manifest_Runtime) MarshalProtoText() string
func (Manifest_Runtime) MarshalText ¶
func (x Manifest_Runtime) MarshalText() ([]byte, error)
MarshalText marshals the Manifest_Runtime to text.
func (Manifest_Runtime) String ¶
func (x Manifest_Runtime) String() string
func (*Manifest_Runtime) UnmarshalJSON ¶
func (x *Manifest_Runtime) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Manifest_Runtime from JSON.
func (*Manifest_Runtime) UnmarshalProtoJSON ¶
func (x *Manifest_Runtime) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Manifest_Runtime from JSON.
func (*Manifest_Runtime) UnmarshalText ¶
func (x *Manifest_Runtime) UnmarshalText(b []byte) error
UnmarshalText unmarshals the Manifest_Runtime from text.
type Movement ¶
type Movement struct {
Model Movement_Model `protobuf:"varint,1,opt,name=model,proto3" json:"model,omitempty"`
// Scale is game units per Quake unit; zero means 1.
Scale float32 `protobuf:"fixed32,2,opt,name=scale,proto3" json:"scale,omitempty"`
// Unpredicted_buttons are left out of the commands the client predicts.
// They name inputs the mod remaps or blocks on the server, so the client
// predicts no cast or shot the server will not make.
UnpredictedButtons uint64 `protobuf:"varint,3,opt,name=unpredicted_buttons,json=unpredictedButtons,proto3" json:"unpredictedButtons,omitempty"`
// contains filtered or unexported fields
}
Movement selects the movement model heroes walk and jump with.
func (*Movement) CloneMessageVT ¶
func (m *Movement) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Movement) EqualMessageVT ¶
func (*Movement) GetModel ¶
func (x *Movement) GetModel() Movement_Model
func (*Movement) GetUnpredictedButtons ¶
func (*Movement) MarshalJSON ¶
MarshalJSON marshals the Movement to JSON.
func (*Movement) MarshalProtoJSON ¶
func (x *Movement) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Movement message to JSON.
func (*Movement) MarshalProtoText ¶
func (*Movement) MarshalToSizedBufferVT ¶
func (*Movement) ProtoMessage ¶
func (*Movement) ProtoMessage()
func (*Movement) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Movement from JSON.
func (*Movement) UnmarshalProtoJSON ¶
func (x *Movement) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Movement message from JSON.
func (*Movement) UnmarshalVT ¶
type Movement_Model ¶
type Movement_Model int32
Model is a movement model the host runs every tick.
const ( // MODEL_NATIVE is the game's own movement. Movement_MODEL_NATIVE Movement_Model = 0 // MODEL_QUAKEWORLD is QuakeWorld's player movement against the map's // Quake collision, maps/<map>.bsp, a version 29 BSP. Heroes are solid // boxes to each other, and a landing raises a Landed event. Movement_MODEL_QUAKEWORLD Movement_Model = 1 )
func (Movement_Model) Enum ¶
func (x Movement_Model) Enum() *Movement_Model
func (Movement_Model) MarshalJSON ¶
func (x Movement_Model) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Movement_Model to JSON.
func (Movement_Model) MarshalProtoJSON ¶
func (x Movement_Model) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Movement_Model to JSON.
func (Movement_Model) MarshalProtoText ¶
func (x Movement_Model) MarshalProtoText() string
func (Movement_Model) MarshalText ¶
func (x Movement_Model) MarshalText() ([]byte, error)
MarshalText marshals the Movement_Model to text.
func (Movement_Model) String ¶
func (x Movement_Model) String() string
func (*Movement_Model) UnmarshalJSON ¶
func (x *Movement_Model) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Movement_Model from JSON.
func (*Movement_Model) UnmarshalProtoJSON ¶
func (x *Movement_Model) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Movement_Model from JSON.
func (*Movement_Model) UnmarshalText ¶
func (x *Movement_Model) UnmarshalText(b []byte) error
UnmarshalText unmarshals the Movement_Model from text.