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

fields

package
v0.1.55 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FieldType_name = map[int32]string{
		0:  "FIELD_TYPE_UNKNOWN",
		1:  "FIELD_TYPE_BOOL",
		2:  "FIELD_TYPE_INT8",
		3:  "FIELD_TYPE_INT16",
		4:  "FIELD_TYPE_INT32",
		5:  "FIELD_TYPE_UINT8",
		6:  "FIELD_TYPE_UINT16",
		7:  "FIELD_TYPE_UINT32",
		8:  "FIELD_TYPE_INT64",
		9:  "FIELD_TYPE_UINT64",
		10: "FIELD_TYPE_FLOAT32",
		11: "FIELD_TYPE_FLOAT64",
		12: "FIELD_TYPE_VECTOR",
		13: "FIELD_TYPE_HANDLE",
		14: "FIELD_TYPE_STRING",
	}
	FieldType_value = map[string]int32{
		"FIELD_TYPE_UNKNOWN": 0,
		"FIELD_TYPE_BOOL":    1,
		"FIELD_TYPE_INT8":    2,
		"FIELD_TYPE_INT16":   3,
		"FIELD_TYPE_INT32":   4,
		"FIELD_TYPE_UINT8":   5,
		"FIELD_TYPE_UINT16":  6,
		"FIELD_TYPE_UINT32":  7,
		"FIELD_TYPE_INT64":   8,
		"FIELD_TYPE_UINT64":  9,
		"FIELD_TYPE_FLOAT32": 10,
		"FIELD_TYPE_FLOAT64": 11,
		"FIELD_TYPE_VECTOR":  12,
		"FIELD_TYPE_HANDLE":  13,
		"FIELD_TYPE_STRING":  14,
	}
)

Enum value maps for FieldType.

Functions

This section is empty.

Types

type FieldListResponse

type FieldListResponse struct {
	Values []*FieldValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

FieldListResponse holds the elements ReadFieldList read.

func (*FieldListResponse) CloneMessageVT

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

func (*FieldListResponse) CloneVT

func (m *FieldListResponse) CloneVT() *FieldListResponse

func (*FieldListResponse) EqualMessageVT

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

func (*FieldListResponse) EqualVT

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

func (*FieldListResponse) GetValues

func (x *FieldListResponse) GetValues() []*FieldValue

func (*FieldListResponse) MarshalJSON

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

MarshalJSON marshals the FieldListResponse to JSON.

func (*FieldListResponse) MarshalProtoJSON

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

MarshalProtoJSON marshals the FieldListResponse message to JSON.

func (*FieldListResponse) MarshalProtoText

func (x *FieldListResponse) MarshalProtoText() string

func (*FieldListResponse) MarshalToSizedBufferVT

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

func (*FieldListResponse) MarshalToVT

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

func (*FieldListResponse) MarshalVT

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

func (*FieldListResponse) ProtoMessage

func (*FieldListResponse) ProtoMessage()

func (*FieldListResponse) Reset

func (x *FieldListResponse) Reset()

func (*FieldListResponse) SizeVT

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

func (*FieldListResponse) String

func (x *FieldListResponse) String() string

func (*FieldListResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the FieldListResponse from JSON.

func (*FieldListResponse) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the FieldListResponse message from JSON.

func (*FieldListResponse) UnmarshalVT

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

type FieldResponse

type FieldResponse struct {
	Value *FieldValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

FieldResponse holds the value ReadField read.

func (*FieldResponse) CloneMessageVT

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

func (*FieldResponse) CloneVT

func (m *FieldResponse) CloneVT() *FieldResponse

func (*FieldResponse) EqualMessageVT

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

func (*FieldResponse) EqualVT

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

func (*FieldResponse) GetValue

func (x *FieldResponse) GetValue() *FieldValue

func (*FieldResponse) MarshalJSON

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

MarshalJSON marshals the FieldResponse to JSON.

func (*FieldResponse) MarshalProtoJSON

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

MarshalProtoJSON marshals the FieldResponse message to JSON.

func (*FieldResponse) MarshalProtoText

func (x *FieldResponse) MarshalProtoText() string

func (*FieldResponse) MarshalToSizedBufferVT

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

func (*FieldResponse) MarshalToVT

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

func (*FieldResponse) MarshalVT

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

func (*FieldResponse) ProtoMessage

func (*FieldResponse) ProtoMessage()

func (*FieldResponse) Reset

func (x *FieldResponse) Reset()

func (*FieldResponse) SizeVT

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

func (*FieldResponse) String

func (x *FieldResponse) String() string

func (*FieldResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the FieldResponse from JSON.

func (*FieldResponse) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the FieldResponse message from JSON.

func (*FieldResponse) UnmarshalVT

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

type FieldType

type FieldType int32

FieldType is how ReadField and WriteField interpret a field's storage.

const (
	// FIELD_TYPE_UNKNOWN is an unset type, which the host refuses.
	FieldType_FIELD_TYPE_UNKNOWN FieldType = 0
	// FIELD_TYPE_BOOL is one byte read as a boolean.
	FieldType_FIELD_TYPE_BOOL FieldType = 1
	// FIELD_TYPE_INT8 through FIELD_TYPE_UINT32 are integers read as numbers.
	FieldType_FIELD_TYPE_INT8   FieldType = 2
	FieldType_FIELD_TYPE_INT16  FieldType = 3
	FieldType_FIELD_TYPE_INT32  FieldType = 4
	FieldType_FIELD_TYPE_UINT8  FieldType = 5
	FieldType_FIELD_TYPE_UINT16 FieldType = 6
	FieldType_FIELD_TYPE_UINT32 FieldType = 7
	// FIELD_TYPE_INT64 and FIELD_TYPE_UINT64 are 64-bit integers.
	FieldType_FIELD_TYPE_INT64  FieldType = 8
	FieldType_FIELD_TYPE_UINT64 FieldType = 9
	// FIELD_TYPE_FLOAT32 and FIELD_TYPE_FLOAT64 are floating point numbers.
	FieldType_FIELD_TYPE_FLOAT32 FieldType = 10
	FieldType_FIELD_TYPE_FLOAT64 FieldType = 11
	// FIELD_TYPE_VECTOR is three floats, such as a position or angles.
	FieldType_FIELD_TYPE_VECTOR FieldType = 12
	// FIELD_TYPE_HANDLE is an entity handle, read as a number.
	FieldType_FIELD_TYPE_HANDLE FieldType = 13
	// FIELD_TYPE_STRING is a string the field points to.
	FieldType_FIELD_TYPE_STRING FieldType = 14
)

func (FieldType) Enum

func (x FieldType) Enum() *FieldType

func (FieldType) MarshalJSON

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

MarshalJSON marshals the FieldType to JSON.

func (FieldType) MarshalProtoJSON

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

MarshalProtoJSON marshals the FieldType to JSON.

func (FieldType) MarshalProtoText

func (x FieldType) MarshalProtoText() string

func (FieldType) MarshalText

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

MarshalText marshals the FieldType to text.

func (FieldType) String

func (x FieldType) String() string

func (*FieldType) UnmarshalJSON

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

UnmarshalJSON unmarshals the FieldType from JSON.

func (*FieldType) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the FieldType from JSON.

func (*FieldType) UnmarshalText

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

UnmarshalText unmarshals the FieldType from text.

type FieldValue

type FieldValue struct {

	// Types that are assignable to Value:
	//	*FieldValue_Boolean
	//	*FieldValue_Number
	//	*FieldValue_Integer
	//	*FieldValue_Text
	//	*FieldValue_Vector
	Value isFieldValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

FieldValue is one field's value. The host accepts any numeric case for a numeric type and answers with the case its type reads as: a boolean, a number for a type of 32 bits or less and a handle, an integer for a 64-bit type, a vector or text.

func (*FieldValue) CloneMessageVT

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

func (*FieldValue) CloneVT

func (m *FieldValue) CloneVT() *FieldValue

func (*FieldValue) EqualMessageVT

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

func (*FieldValue) EqualVT

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

func (*FieldValue) GetBoolean

func (x *FieldValue) GetBoolean() bool

func (*FieldValue) GetInteger

func (x *FieldValue) GetInteger() int64

func (*FieldValue) GetNumber

func (x *FieldValue) GetNumber() float64

func (*FieldValue) GetText

func (x *FieldValue) GetText() string

func (*FieldValue) GetValue

func (m *FieldValue) GetValue() isFieldValue_Value

func (*FieldValue) GetVector

func (x *FieldValue) GetVector() *geometry.Vec3

func (*FieldValue) MarshalJSON

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

MarshalJSON marshals the FieldValue to JSON.

func (*FieldValue) MarshalProtoJSON

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

MarshalProtoJSON marshals the FieldValue message to JSON.

func (*FieldValue) MarshalProtoText

func (x *FieldValue) MarshalProtoText() string

func (*FieldValue) MarshalToSizedBufferVT

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

func (*FieldValue) MarshalToVT

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

func (*FieldValue) MarshalVT

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

func (*FieldValue) ProtoMessage

func (*FieldValue) ProtoMessage()

func (*FieldValue) Reset

func (x *FieldValue) Reset()

func (*FieldValue) SizeVT

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

func (*FieldValue) String

func (x *FieldValue) String() string

func (*FieldValue) UnmarshalJSON

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

UnmarshalJSON unmarshals the FieldValue from JSON.

func (*FieldValue) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the FieldValue message from JSON.

func (*FieldValue) UnmarshalVT

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

type FieldValue_Boolean

type FieldValue_Boolean struct {
	Boolean bool `protobuf:"varint,1,opt,name=boolean,proto3,oneof"`
}

func (*FieldValue_Boolean) CloneOneofVT

func (m *FieldValue_Boolean) CloneOneofVT() isFieldValue_Value

func (*FieldValue_Boolean) CloneVT

func (m *FieldValue_Boolean) CloneVT() *FieldValue_Boolean

func (*FieldValue_Boolean) EqualVT

func (this *FieldValue_Boolean) EqualVT(thatIface isFieldValue_Value) bool

func (*FieldValue_Boolean) MarshalToSizedBufferVT

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

func (*FieldValue_Boolean) MarshalToVT

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

func (*FieldValue_Boolean) SizeVT

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

type FieldValue_Integer

type FieldValue_Integer struct {
	Integer int64 `protobuf:"varint,3,opt,name=integer,proto3,oneof"`
}

func (*FieldValue_Integer) CloneOneofVT

func (m *FieldValue_Integer) CloneOneofVT() isFieldValue_Value

func (*FieldValue_Integer) CloneVT

func (m *FieldValue_Integer) CloneVT() *FieldValue_Integer

func (*FieldValue_Integer) EqualVT

func (this *FieldValue_Integer) EqualVT(thatIface isFieldValue_Value) bool

func (*FieldValue_Integer) MarshalToSizedBufferVT

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

func (*FieldValue_Integer) MarshalToVT

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

func (*FieldValue_Integer) SizeVT

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

type FieldValue_Number

type FieldValue_Number struct {
	Number float64 `protobuf:"fixed64,2,opt,name=number,proto3,oneof"`
}

func (*FieldValue_Number) CloneOneofVT

func (m *FieldValue_Number) CloneOneofVT() isFieldValue_Value

func (*FieldValue_Number) CloneVT

func (m *FieldValue_Number) CloneVT() *FieldValue_Number

func (*FieldValue_Number) EqualVT

func (this *FieldValue_Number) EqualVT(thatIface isFieldValue_Value) bool

func (*FieldValue_Number) MarshalToSizedBufferVT

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

func (*FieldValue_Number) MarshalToVT

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

func (*FieldValue_Number) SizeVT

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

type FieldValue_Text

type FieldValue_Text struct {
	Text string `protobuf:"bytes,4,opt,name=text,proto3,oneof"`
}

func (*FieldValue_Text) CloneOneofVT

func (m *FieldValue_Text) CloneOneofVT() isFieldValue_Value

func (*FieldValue_Text) CloneVT

func (m *FieldValue_Text) CloneVT() *FieldValue_Text

func (*FieldValue_Text) EqualVT

func (this *FieldValue_Text) EqualVT(thatIface isFieldValue_Value) bool

func (*FieldValue_Text) MarshalToSizedBufferVT

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

func (*FieldValue_Text) MarshalToVT

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

func (*FieldValue_Text) SizeVT

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

type FieldValue_Vector

type FieldValue_Vector struct {
	Vector *geometry.Vec3 `protobuf:"bytes,5,opt,name=vector,proto3,oneof"`
}

func (*FieldValue_Vector) CloneOneofVT

func (m *FieldValue_Vector) CloneOneofVT() isFieldValue_Value

func (*FieldValue_Vector) CloneVT

func (m *FieldValue_Vector) CloneVT() *FieldValue_Vector

func (*FieldValue_Vector) EqualVT

func (this *FieldValue_Vector) EqualVT(thatIface isFieldValue_Value) bool

func (*FieldValue_Vector) MarshalToSizedBufferVT

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

func (*FieldValue_Vector) MarshalToVT

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

func (*FieldValue_Vector) SizeVT

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

type FieldWrite

type FieldWrite struct {

	// ClassName is the server class that declares the field, or a subclass.
	ClassName string `protobuf:"bytes,1,opt,name=class_name,json=className,proto3" json:"className,omitempty"`
	// Field is the field's schema name, such as m_iLane. A dotted path, such as
	// m_Collision.m_CollisionGroup, names a field inside an embedded structure.
	Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	// Type is how to write the field.
	Type FieldType `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
	// Value is the field's value.
	Value *FieldValue `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

FieldWrite writes one schema field of an entity the host creates.

func (*FieldWrite) CloneMessageVT

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

func (*FieldWrite) CloneVT

func (m *FieldWrite) CloneVT() *FieldWrite

func (*FieldWrite) EqualMessageVT

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

func (*FieldWrite) EqualVT

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

func (*FieldWrite) GetClassName

func (x *FieldWrite) GetClassName() string

func (*FieldWrite) GetField

func (x *FieldWrite) GetField() string

func (*FieldWrite) GetType

func (x *FieldWrite) GetType() FieldType

func (*FieldWrite) GetValue

func (x *FieldWrite) GetValue() *FieldValue

func (*FieldWrite) MarshalJSON

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

MarshalJSON marshals the FieldWrite to JSON.

func (*FieldWrite) MarshalProtoJSON

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

MarshalProtoJSON marshals the FieldWrite message to JSON.

func (*FieldWrite) MarshalProtoText

func (x *FieldWrite) MarshalProtoText() string

func (*FieldWrite) MarshalToSizedBufferVT

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

func (*FieldWrite) MarshalToVT

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

func (*FieldWrite) MarshalVT

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

func (*FieldWrite) ProtoMessage

func (*FieldWrite) ProtoMessage()

func (*FieldWrite) Reset

func (x *FieldWrite) Reset()

func (*FieldWrite) SizeVT

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

func (*FieldWrite) String

func (x *FieldWrite) String() string

func (*FieldWrite) UnmarshalJSON

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

UnmarshalJSON unmarshals the FieldWrite from JSON.

func (*FieldWrite) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the FieldWrite message from JSON.

func (*FieldWrite) UnmarshalVT

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

type ReadFieldRequest

type ReadFieldRequest struct {

	// Entity is the entity's handle.
	Entity uint32 `protobuf:"varint,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// ClassName is the server class that declares the field, or a subclass.
	ClassName string `protobuf:"bytes,2,opt,name=class_name,json=className,proto3" json:"className,omitempty"`
	// Field is the field's schema name, such as m_iHealth. A dotted path, such as
	// m_Collision.m_CollisionGroup, names a field inside an embedded structure.
	Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
	// Type is how to read the field.
	Type FieldType `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

ReadFieldRequest names one schema field of a live entity.

func (*ReadFieldRequest) CloneMessageVT

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

func (*ReadFieldRequest) CloneVT

func (m *ReadFieldRequest) CloneVT() *ReadFieldRequest

func (*ReadFieldRequest) EqualMessageVT

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

func (*ReadFieldRequest) EqualVT

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

func (*ReadFieldRequest) GetClassName

func (x *ReadFieldRequest) GetClassName() string

func (*ReadFieldRequest) GetEntity

func (x *ReadFieldRequest) GetEntity() uint32

func (*ReadFieldRequest) GetField

func (x *ReadFieldRequest) GetField() string

func (*ReadFieldRequest) GetType

func (x *ReadFieldRequest) GetType() FieldType

func (*ReadFieldRequest) MarshalJSON

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

MarshalJSON marshals the ReadFieldRequest to JSON.

func (*ReadFieldRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the ReadFieldRequest message to JSON.

func (*ReadFieldRequest) MarshalProtoText

func (x *ReadFieldRequest) MarshalProtoText() string

func (*ReadFieldRequest) MarshalToSizedBufferVT

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

func (*ReadFieldRequest) MarshalToVT

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

func (*ReadFieldRequest) MarshalVT

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

func (*ReadFieldRequest) ProtoMessage

func (*ReadFieldRequest) ProtoMessage()

func (*ReadFieldRequest) Reset

func (x *ReadFieldRequest) Reset()

func (*ReadFieldRequest) SizeVT

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

func (*ReadFieldRequest) String

func (x *ReadFieldRequest) String() string

func (*ReadFieldRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the ReadFieldRequest from JSON.

func (*ReadFieldRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ReadFieldRequest message from JSON.

func (*ReadFieldRequest) UnmarshalVT

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

type ReadModifierFieldRequest added in v0.1.17

type ReadModifierFieldRequest struct {

	// Entity is the handle of the entity that holds the modifier.
	Entity uint32 `protobuf:"varint,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// Modifier is the modifier's name, such as modifier_citadel_orbit_camera.
	Modifier string `protobuf:"bytes,2,opt,name=modifier,proto3" json:"modifier,omitempty"`
	// ClassName is the server class of the modifier that declares the field,
	// such as CCitadel_Modifier_OrbitCamera.
	ClassName string `protobuf:"bytes,3,opt,name=class_name,json=className,proto3" json:"className,omitempty"`
	// Field is the field's schema name, such as m_nCameraLevel.
	Field string `protobuf:"bytes,4,opt,name=field,proto3" json:"field,omitempty"`
	// Type is how to read the field.
	Type FieldType `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

ReadModifierFieldRequest names one schema field of a modifier on a live entity.

func (*ReadModifierFieldRequest) CloneMessageVT added in v0.1.17

func (*ReadModifierFieldRequest) CloneVT added in v0.1.17

func (*ReadModifierFieldRequest) EqualMessageVT added in v0.1.17

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

func (*ReadModifierFieldRequest) EqualVT added in v0.1.17

func (*ReadModifierFieldRequest) GetClassName added in v0.1.17

func (x *ReadModifierFieldRequest) GetClassName() string

func (*ReadModifierFieldRequest) GetEntity added in v0.1.17

func (x *ReadModifierFieldRequest) GetEntity() uint32

func (*ReadModifierFieldRequest) GetField added in v0.1.17

func (x *ReadModifierFieldRequest) GetField() string

func (*ReadModifierFieldRequest) GetModifier added in v0.1.17

func (x *ReadModifierFieldRequest) GetModifier() string

func (*ReadModifierFieldRequest) GetType added in v0.1.17

func (x *ReadModifierFieldRequest) GetType() FieldType

func (*ReadModifierFieldRequest) MarshalJSON added in v0.1.17

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

MarshalJSON marshals the ReadModifierFieldRequest to JSON.

func (*ReadModifierFieldRequest) MarshalProtoJSON added in v0.1.17

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

MarshalProtoJSON marshals the ReadModifierFieldRequest message to JSON.

func (*ReadModifierFieldRequest) MarshalProtoText added in v0.1.17

func (x *ReadModifierFieldRequest) MarshalProtoText() string

func (*ReadModifierFieldRequest) MarshalToSizedBufferVT added in v0.1.17

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

func (*ReadModifierFieldRequest) MarshalToVT added in v0.1.17

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

func (*ReadModifierFieldRequest) MarshalVT added in v0.1.17

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

func (*ReadModifierFieldRequest) ProtoMessage added in v0.1.17

func (*ReadModifierFieldRequest) ProtoMessage()

func (*ReadModifierFieldRequest) Reset added in v0.1.17

func (x *ReadModifierFieldRequest) Reset()

func (*ReadModifierFieldRequest) SizeVT added in v0.1.17

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

func (*ReadModifierFieldRequest) String added in v0.1.17

func (x *ReadModifierFieldRequest) String() string

func (*ReadModifierFieldRequest) UnmarshalJSON added in v0.1.17

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

UnmarshalJSON unmarshals the ReadModifierFieldRequest from JSON.

func (*ReadModifierFieldRequest) UnmarshalProtoJSON added in v0.1.17

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

UnmarshalProtoJSON unmarshals the ReadModifierFieldRequest message from JSON.

func (*ReadModifierFieldRequest) UnmarshalVT added in v0.1.17

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

type WriteFieldListRequest

type WriteFieldListRequest struct {

	// Entity is the entity's handle.
	Entity uint32 `protobuf:"varint,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// ClassName is the server class that declares the field, or a subclass.
	ClassName string `protobuf:"bytes,2,opt,name=class_name,json=className,proto3" json:"className,omitempty"`
	// Field is the field's schema name, such as m_vecBannedHeroes.
	Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
	// Type is how to write each element.
	Type FieldType `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
	// Values are the list's new elements, each in the form WriteField takes.
	Values []*FieldValue `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

WriteFieldListRequest replaces the elements of one list field of a live entity.

func (*WriteFieldListRequest) CloneMessageVT

func (*WriteFieldListRequest) CloneVT

func (*WriteFieldListRequest) EqualMessageVT

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

func (*WriteFieldListRequest) EqualVT

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

func (*WriteFieldListRequest) GetClassName

func (x *WriteFieldListRequest) GetClassName() string

func (*WriteFieldListRequest) GetEntity

func (x *WriteFieldListRequest) GetEntity() uint32

func (*WriteFieldListRequest) GetField

func (x *WriteFieldListRequest) GetField() string

func (*WriteFieldListRequest) GetType

func (x *WriteFieldListRequest) GetType() FieldType

func (*WriteFieldListRequest) GetValues

func (x *WriteFieldListRequest) GetValues() []*FieldValue

func (*WriteFieldListRequest) MarshalJSON

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

MarshalJSON marshals the WriteFieldListRequest to JSON.

func (*WriteFieldListRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the WriteFieldListRequest message to JSON.

func (*WriteFieldListRequest) MarshalProtoText

func (x *WriteFieldListRequest) MarshalProtoText() string

func (*WriteFieldListRequest) MarshalToSizedBufferVT

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

func (*WriteFieldListRequest) MarshalToVT

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

func (*WriteFieldListRequest) MarshalVT

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

func (*WriteFieldListRequest) ProtoMessage

func (*WriteFieldListRequest) ProtoMessage()

func (*WriteFieldListRequest) Reset

func (x *WriteFieldListRequest) Reset()

func (*WriteFieldListRequest) SizeVT

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

func (*WriteFieldListRequest) String

func (x *WriteFieldListRequest) String() string

func (*WriteFieldListRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the WriteFieldListRequest from JSON.

func (*WriteFieldListRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the WriteFieldListRequest message from JSON.

func (*WriteFieldListRequest) UnmarshalVT

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

type WriteFieldRequest

type WriteFieldRequest struct {

	// Entity is the entity's handle.
	Entity uint32 `protobuf:"varint,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// ClassName is the server class that declares the field, or a subclass.
	ClassName string `protobuf:"bytes,2,opt,name=class_name,json=className,proto3" json:"className,omitempty"`
	// Field is the field's schema name, such as m_iClip. A dotted path, such as
	// m_Collision.m_CollisionGroup, names a field inside an embedded structure.
	Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
	// Type is how to write the field.
	Type FieldType `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
	// Value is the field's new value.
	Value *FieldValue `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

WriteFieldRequest writes one schema field of a live entity.

func (*WriteFieldRequest) CloneMessageVT

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

func (*WriteFieldRequest) CloneVT

func (m *WriteFieldRequest) CloneVT() *WriteFieldRequest

func (*WriteFieldRequest) EqualMessageVT

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

func (*WriteFieldRequest) EqualVT

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

func (*WriteFieldRequest) GetClassName

func (x *WriteFieldRequest) GetClassName() string

func (*WriteFieldRequest) GetEntity

func (x *WriteFieldRequest) GetEntity() uint32

func (*WriteFieldRequest) GetField

func (x *WriteFieldRequest) GetField() string

func (*WriteFieldRequest) GetType

func (x *WriteFieldRequest) GetType() FieldType

func (*WriteFieldRequest) GetValue

func (x *WriteFieldRequest) GetValue() *FieldValue

func (*WriteFieldRequest) MarshalJSON

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

MarshalJSON marshals the WriteFieldRequest to JSON.

func (*WriteFieldRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the WriteFieldRequest message to JSON.

func (*WriteFieldRequest) MarshalProtoText

func (x *WriteFieldRequest) MarshalProtoText() string

func (*WriteFieldRequest) MarshalToSizedBufferVT

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

func (*WriteFieldRequest) MarshalToVT

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

func (*WriteFieldRequest) MarshalVT

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

func (*WriteFieldRequest) ProtoMessage

func (*WriteFieldRequest) ProtoMessage()

func (*WriteFieldRequest) Reset

func (x *WriteFieldRequest) Reset()

func (*WriteFieldRequest) SizeVT

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

func (*WriteFieldRequest) String

func (x *WriteFieldRequest) String() string

func (*WriteFieldRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the WriteFieldRequest from JSON.

func (*WriteFieldRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the WriteFieldRequest message from JSON.

func (*WriteFieldRequest) UnmarshalVT

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

Jump to

Keyboard shortcuts

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