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

manifest

package
v0.1.48 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	Definition_File_name = map[int32]string{
		0: "FILE_ABILITIES",
		1: "FILE_HEROES",
	}
	Definition_File_value = map[string]int32{
		"FILE_ABILITIES": 0,
		"FILE_HEROES":    1,
	}
)

Enum value maps for Definition_File.

Functions

This section is empty.

Types

type Definition added in v0.1.20

type Definition struct {

	// File is the definition file that holds the entry.
	File Definition_File `protobuf:"varint,1,opt,name=file,proto3" json:"file,omitempty"`
	// Entry is the entry's name, such as hero_priest or
	// gunslinger_rocket_launcher.
	Entry string `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"`
	// Properties replaces the values of an ability's named properties, such as
	// AbilityCooldown. Only abilities have properties.
	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 entry's data, such as
	// CitadelAbilityVData.m_projectileInfo/ProjectileInfo_t.m_flSpeed. A last
	// step may name one value of an enum-keyed map, such as
	// CitadelHeroData_t.m_mapStartingStats[EStatsType.EMaxHealth].
	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
}

Definition changes one entry of a game definition file where the game keeps it parsed.

func (*Definition) CloneMessageVT added in v0.1.20

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

func (*Definition) CloneVT added in v0.1.20

func (m *Definition) CloneVT() *Definition

func (*Definition) EqualMessageVT added in v0.1.20

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

func (*Definition) EqualVT added in v0.1.20

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

func (*Definition) GetCopyFields added in v0.1.20

func (x *Definition) GetCopyFields() map[string]string

func (*Definition) GetEntry added in v0.1.20

func (x *Definition) GetEntry() string

func (*Definition) GetFields added in v0.1.20

func (x *Definition) GetFields() map[string]float32

func (*Definition) GetFile added in v0.1.20

func (x *Definition) GetFile() Definition_File

func (*Definition) GetProperties added in v0.1.20

func (x *Definition) GetProperties() map[string]float32

func (*Definition) MarshalJSON added in v0.1.20

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

MarshalJSON marshals the Definition to JSON.

func (*Definition) MarshalProtoJSON added in v0.1.20

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

MarshalProtoJSON marshals the Definition message to JSON.

func (*Definition) MarshalProtoText added in v0.1.20

func (x *Definition) MarshalProtoText() string

func (*Definition) MarshalToSizedBufferVT added in v0.1.20

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

func (*Definition) MarshalToVT added in v0.1.20

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

func (*Definition) MarshalVT added in v0.1.20

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

func (*Definition) ProtoMessage added in v0.1.20

func (*Definition) ProtoMessage()

func (*Definition) Reset added in v0.1.20

func (x *Definition) Reset()

func (*Definition) SizeVT added in v0.1.20

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

func (*Definition) String added in v0.1.20

func (x *Definition) String() string

func (*Definition) UnmarshalJSON added in v0.1.20

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

UnmarshalJSON unmarshals the Definition from JSON.

func (*Definition) UnmarshalProtoJSON added in v0.1.20

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

UnmarshalProtoJSON unmarshals the Definition message from JSON.

func (*Definition) UnmarshalVT added in v0.1.20

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

type Definition_CopyFieldsEntry added in v0.1.20

type Definition_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 (*Definition_CopyFieldsEntry) GetKey added in v0.1.20

func (x *Definition_CopyFieldsEntry) GetKey() string

func (*Definition_CopyFieldsEntry) GetValue added in v0.1.20

func (x *Definition_CopyFieldsEntry) GetValue() string

func (*Definition_CopyFieldsEntry) MarshalJSON added in v0.1.20

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

MarshalJSON marshals the Definition_CopyFieldsEntry to JSON.

func (*Definition_CopyFieldsEntry) MarshalProtoJSON added in v0.1.20

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

MarshalProtoJSON marshals the Definition_CopyFieldsEntry message to JSON.

func (*Definition_CopyFieldsEntry) MarshalProtoText added in v0.1.20

func (x *Definition_CopyFieldsEntry) MarshalProtoText() string

func (*Definition_CopyFieldsEntry) ProtoMessage added in v0.1.20

func (*Definition_CopyFieldsEntry) ProtoMessage()

func (*Definition_CopyFieldsEntry) Reset added in v0.1.20

func (x *Definition_CopyFieldsEntry) Reset()

func (*Definition_CopyFieldsEntry) String added in v0.1.20

func (x *Definition_CopyFieldsEntry) String() string

func (*Definition_CopyFieldsEntry) UnmarshalJSON added in v0.1.20

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

UnmarshalJSON unmarshals the Definition_CopyFieldsEntry from JSON.

func (*Definition_CopyFieldsEntry) UnmarshalProtoJSON added in v0.1.20

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

UnmarshalProtoJSON unmarshals the Definition_CopyFieldsEntry message from JSON.

type Definition_FieldsEntry added in v0.1.20

type Definition_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 (*Definition_FieldsEntry) GetKey added in v0.1.20

func (x *Definition_FieldsEntry) GetKey() string

func (*Definition_FieldsEntry) GetValue added in v0.1.20

func (x *Definition_FieldsEntry) GetValue() float32

func (*Definition_FieldsEntry) MarshalJSON added in v0.1.20

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

MarshalJSON marshals the Definition_FieldsEntry to JSON.

func (*Definition_FieldsEntry) MarshalProtoJSON added in v0.1.20

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

MarshalProtoJSON marshals the Definition_FieldsEntry message to JSON.

func (*Definition_FieldsEntry) MarshalProtoText added in v0.1.20

func (x *Definition_FieldsEntry) MarshalProtoText() string

func (*Definition_FieldsEntry) ProtoMessage added in v0.1.20

func (*Definition_FieldsEntry) ProtoMessage()

func (*Definition_FieldsEntry) Reset added in v0.1.20

func (x *Definition_FieldsEntry) Reset()

func (*Definition_FieldsEntry) String added in v0.1.20

func (x *Definition_FieldsEntry) String() string

func (*Definition_FieldsEntry) UnmarshalJSON added in v0.1.20

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

UnmarshalJSON unmarshals the Definition_FieldsEntry from JSON.

func (*Definition_FieldsEntry) UnmarshalProtoJSON added in v0.1.20

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

UnmarshalProtoJSON unmarshals the Definition_FieldsEntry message from JSON.

type Definition_File added in v0.1.20

type Definition_File int32

File names a definition file.

const (
	// FILE_ABILITIES is scripts/abilities.vdata, the abilities and items.
	Definition_FILE_ABILITIES Definition_File = 0
	// FILE_HEROES is scripts/heroes.vdata, the heroes.
	Definition_FILE_HEROES Definition_File = 1
)

func (Definition_File) Enum added in v0.1.20

func (x Definition_File) Enum() *Definition_File

func (Definition_File) MarshalJSON added in v0.1.20

func (x Definition_File) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Definition_File to JSON.

func (Definition_File) MarshalProtoJSON added in v0.1.20

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

MarshalProtoJSON marshals the Definition_File to JSON.

func (Definition_File) MarshalProtoText added in v0.1.20

func (x Definition_File) MarshalProtoText() string

func (Definition_File) MarshalText added in v0.1.20

func (x Definition_File) MarshalText() ([]byte, error)

MarshalText marshals the Definition_File to text.

func (Definition_File) String added in v0.1.20

func (x Definition_File) String() string

func (*Definition_File) UnmarshalJSON added in v0.1.20

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

UnmarshalJSON unmarshals the Definition_File from JSON.

func (*Definition_File) UnmarshalProtoJSON added in v0.1.20

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

UnmarshalProtoJSON unmarshals the Definition_File from JSON.

func (*Definition_File) UnmarshalText added in v0.1.20

func (x *Definition_File) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Definition_File from text.

type Definition_PropertiesEntry added in v0.1.20

type Definition_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 (*Definition_PropertiesEntry) GetKey added in v0.1.20

func (x *Definition_PropertiesEntry) GetKey() string

func (*Definition_PropertiesEntry) GetValue added in v0.1.20

func (x *Definition_PropertiesEntry) GetValue() float32

func (*Definition_PropertiesEntry) MarshalJSON added in v0.1.20

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

MarshalJSON marshals the Definition_PropertiesEntry to JSON.

func (*Definition_PropertiesEntry) MarshalProtoJSON added in v0.1.20

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

MarshalProtoJSON marshals the Definition_PropertiesEntry message to JSON.

func (*Definition_PropertiesEntry) MarshalProtoText added in v0.1.20

func (x *Definition_PropertiesEntry) MarshalProtoText() string

func (*Definition_PropertiesEntry) ProtoMessage added in v0.1.20

func (*Definition_PropertiesEntry) ProtoMessage()

func (*Definition_PropertiesEntry) Reset added in v0.1.20

func (x *Definition_PropertiesEntry) Reset()

func (*Definition_PropertiesEntry) String added in v0.1.20

func (x *Definition_PropertiesEntry) String() string

func (*Definition_PropertiesEntry) UnmarshalJSON added in v0.1.20

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

UnmarshalJSON unmarshals the Definition_PropertiesEntry from JSON.

func (*Definition_PropertiesEntry) UnmarshalProtoJSON added in v0.1.20

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

UnmarshalProtoJSON unmarshals the Definition_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"`
	// Definitions change entries of the game's definition files on the server
	// and in each player's game.
	Definitions []*Definition `protobuf:"bytes,9,rep,name=definitions,proto3" json:"definitions,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, where the mod gives
	// them a hero with SelectHero, 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) CloneVT

func (m *Manifest) CloneVT() *Manifest

func (*Manifest) EqualMessageVT

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

func (*Manifest) EqualVT

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

func (*Manifest) GetDefinitions added in v0.1.20

func (x *Manifest) GetDefinitions() []*Definition

func (*Manifest) GetEntry

func (x *Manifest) GetEntry() string

func (*Manifest) GetFreeForAll

func (x *Manifest) GetFreeForAll() bool

func (*Manifest) GetLanguage

func (x *Manifest) GetLanguage() Manifest_Language

func (*Manifest) GetMap

func (x *Manifest) GetMap() string

func (*Manifest) GetMetrics

func (x *Manifest) GetMetrics() []*metrics.Metric

func (*Manifest) GetMovement

func (x *Manifest) GetMovement() *Movement

func (*Manifest) GetName

func (x *Manifest) GetName() string

func (*Manifest) GetRuntime

func (x *Manifest) GetRuntime() Manifest_Runtime

func (*Manifest) GetSettings

func (x *Manifest) GetSettings() []*settings.Setting

func (*Manifest) GetSlug

func (x *Manifest) GetSlug() string

func (*Manifest) GetVersion

func (x *Manifest) GetVersion() string

func (*Manifest) MarshalJSON

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

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

func (*Manifest) MarshalToSizedBufferVT

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

func (*Manifest) MarshalToVT

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

func (*Manifest) MarshalVT

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

func (*Manifest) ProtoMessage

func (*Manifest) ProtoMessage()

func (*Manifest) Reset

func (x *Manifest) Reset()

func (*Manifest) SizeVT

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

func (*Manifest) String

func (x *Manifest) String() string

func (*Manifest) UnmarshalJSON

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

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

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

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

func (m *Movement) CloneVT() *Movement

func (*Movement) EqualMessageVT

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

func (*Movement) EqualVT

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

func (*Movement) GetModel

func (x *Movement) GetModel() Movement_Model

func (*Movement) GetScale

func (x *Movement) GetScale() float32

func (*Movement) GetUnpredictedButtons

func (x *Movement) GetUnpredictedButtons() uint64

func (*Movement) MarshalJSON

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

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

func (*Movement) MarshalToSizedBufferVT

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

func (*Movement) MarshalToVT

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

func (*Movement) MarshalVT

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

func (*Movement) ProtoMessage

func (*Movement) ProtoMessage()

func (*Movement) Reset

func (x *Movement) Reset()

func (*Movement) SizeVT

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

func (*Movement) String

func (x *Movement) String() string

func (*Movement) UnmarshalJSON

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

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

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

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.

Jump to

Keyboard shortcuts

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