objects

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TextAlign_name = map[int32]string{
		0: "TEXT_ALIGN_LEFT",
		1: "TEXT_ALIGN_CENTER",
		2: "TEXT_ALIGN_RIGHT",
	}
	TextAlign_value = map[string]int32{
		"TEXT_ALIGN_LEFT":   0,
		"TEXT_ALIGN_CENTER": 1,
		"TEXT_ALIGN_RIGHT":  2,
	}
)

Enum value maps for TextAlign.

View Source
var (
	TextVerticalAlign_name = map[int32]string{
		0: "TEXT_VERTICAL_ALIGN_BOTTOM",
		1: "TEXT_VERTICAL_ALIGN_CENTER",
		2: "TEXT_VERTICAL_ALIGN_TOP",
	}
	TextVerticalAlign_value = map[string]int32{
		"TEXT_VERTICAL_ALIGN_BOTTOM": 0,
		"TEXT_VERTICAL_ALIGN_CENTER": 1,
		"TEXT_VERTICAL_ALIGN_TOP":    2,
	}
)

Enum value maps for TextVerticalAlign.

Functions

This section is empty.

Types

type FogOptions

type FogOptions struct {

	// Position is the box's origin.
	Position *geometry.Vec3 `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	// Facing is the box's rotation.
	Facing *geometry.EulerAngles `protobuf:"bytes,2,opt,name=facing,proto3,oneof" json:"facing,omitempty"`
	// Mins is the box's lower corner, relative to position.
	Mins *geometry.Vec3 `protobuf:"bytes,3,opt,name=mins,proto3" json:"mins,omitempty"`
	// Maxs is the box's upper corner, relative to position.
	Maxs *geometry.Vec3 `protobuf:"bytes,4,opt,name=maxs,proto3" json:"maxs,omitempty"`
	// Strength is the fog's density.
	Strength float32 `protobuf:"fixed32,5,opt,name=strength,proto3" json:"strength,omitempty"`
	// Color tints the fog as 0xRRGGBBAA; alpha is ignored.
	Color uint32 `protobuf:"fixed32,6,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

FogOptions describes an oriented box of tinted fog.

func (*FogOptions) CloneMessageVT

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

func (*FogOptions) CloneVT

func (m *FogOptions) CloneVT() *FogOptions

func (*FogOptions) EqualMessageVT

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

func (*FogOptions) EqualVT

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

func (*FogOptions) GetColor

func (x *FogOptions) GetColor() uint32

func (*FogOptions) GetFacing

func (x *FogOptions) GetFacing() *geometry.EulerAngles

func (*FogOptions) GetMaxs

func (x *FogOptions) GetMaxs() *geometry.Vec3

func (*FogOptions) GetMins

func (x *FogOptions) GetMins() *geometry.Vec3

func (*FogOptions) GetPosition

func (x *FogOptions) GetPosition() *geometry.Vec3

func (*FogOptions) GetStrength

func (x *FogOptions) GetStrength() float32

func (*FogOptions) MarshalJSON

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

MarshalJSON marshals the FogOptions to JSON.

func (*FogOptions) MarshalProtoJSON

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

MarshalProtoJSON marshals the FogOptions message to JSON.

func (*FogOptions) MarshalProtoText

func (x *FogOptions) MarshalProtoText() string

func (*FogOptions) MarshalToSizedBufferVT

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

func (*FogOptions) MarshalToVT

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

func (*FogOptions) MarshalVT

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

func (*FogOptions) ProtoMessage

func (*FogOptions) ProtoMessage()

func (*FogOptions) Reset

func (x *FogOptions) Reset()

func (*FogOptions) SizeVT

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

func (*FogOptions) String

func (x *FogOptions) String() string

func (*FogOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the FogOptions from JSON.

func (*FogOptions) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the FogOptions message from JSON.

func (*FogOptions) UnmarshalVT

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

type ModelOptions

type ModelOptions struct {

	// Resource is the model's path, which the mod precached, with {addon} for
	// the mod's content addon, as in models/{addon}/pawn.vmdl.
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Position is the model's origin.
	Position *geometry.Vec3 `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	// Facing is the model's rotation.
	Facing *geometry.EulerAngles `protobuf:"bytes,3,opt,name=facing,proto3,oneof" json:"facing,omitempty"`
	// Scale multiplies the model's size; the default is 1.
	Scale *float32 `protobuf:"fixed32,4,opt,name=scale,proto3,oneof" json:"scale,omitempty"`
	// Color tints the model as 0xRRGGBBAA; an alpha below 0xff draws it
	// translucent.
	Color *uint32 `protobuf:"fixed32,5,opt,name=color,proto3,oneof" json:"color,omitempty"`
	// Glow outlines the model through walls.
	Glow *bool `protobuf:"varint,6,opt,name=glow,proto3,oneof" json:"glow,omitempty"`
	// Solid makes heroes and traces collide with the model's physics shape,
	// scaled with the model. Without it, everything passes through.
	Solid *bool `protobuf:"varint,7,opt,name=solid,proto3,oneof" json:"solid,omitempty"`
	// contains filtered or unexported fields
}

ModelOptions describes a model placed in the world.

func (*ModelOptions) CloneMessageVT

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

func (*ModelOptions) CloneVT

func (m *ModelOptions) CloneVT() *ModelOptions

func (*ModelOptions) EqualMessageVT

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

func (*ModelOptions) EqualVT

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

func (*ModelOptions) GetColor

func (x *ModelOptions) GetColor() uint32

func (*ModelOptions) GetFacing

func (x *ModelOptions) GetFacing() *geometry.EulerAngles

func (*ModelOptions) GetGlow

func (x *ModelOptions) GetGlow() bool

func (*ModelOptions) GetPosition

func (x *ModelOptions) GetPosition() *geometry.Vec3

func (*ModelOptions) GetResource

func (x *ModelOptions) GetResource() string

func (*ModelOptions) GetScale

func (x *ModelOptions) GetScale() float32

func (*ModelOptions) GetSolid

func (x *ModelOptions) GetSolid() bool

func (*ModelOptions) MarshalJSON

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

MarshalJSON marshals the ModelOptions to JSON.

func (*ModelOptions) MarshalProtoJSON

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

MarshalProtoJSON marshals the ModelOptions message to JSON.

func (*ModelOptions) MarshalProtoText

func (x *ModelOptions) MarshalProtoText() string

func (*ModelOptions) MarshalToSizedBufferVT

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

func (*ModelOptions) MarshalToVT

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

func (*ModelOptions) MarshalVT

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

func (*ModelOptions) ProtoMessage

func (*ModelOptions) ProtoMessage()

func (*ModelOptions) Reset

func (x *ModelOptions) Reset()

func (*ModelOptions) SizeVT

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

func (*ModelOptions) String

func (x *ModelOptions) String() string

func (*ModelOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the ModelOptions from JSON.

func (*ModelOptions) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ModelOptions message from JSON.

func (*ModelOptions) UnmarshalVT

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

type MoveObjectRequest

type MoveObjectRequest struct {
	Object uint32 `protobuf:"varint,1,opt,name=object,proto3" json:"object,omitempty"`
	// Position is the object's new origin.
	Position *geometry.Vec3 `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	// Facing is the object's new rotation, kept when omitted.
	Facing *geometry.EulerAngles `protobuf:"bytes,3,opt,name=facing,proto3,oneof" json:"facing,omitempty"`
	// contains filtered or unexported fields
}

MoveObjectRequest moves one object the mod created.

func (*MoveObjectRequest) CloneMessageVT

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

func (*MoveObjectRequest) CloneVT

func (m *MoveObjectRequest) CloneVT() *MoveObjectRequest

func (*MoveObjectRequest) EqualMessageVT

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

func (*MoveObjectRequest) EqualVT

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

func (*MoveObjectRequest) GetFacing

func (x *MoveObjectRequest) GetFacing() *geometry.EulerAngles

func (*MoveObjectRequest) GetObject

func (x *MoveObjectRequest) GetObject() uint32

func (*MoveObjectRequest) GetPosition

func (x *MoveObjectRequest) GetPosition() *geometry.Vec3

func (*MoveObjectRequest) MarshalJSON

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

MarshalJSON marshals the MoveObjectRequest to JSON.

func (*MoveObjectRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the MoveObjectRequest message to JSON.

func (*MoveObjectRequest) MarshalProtoText

func (x *MoveObjectRequest) MarshalProtoText() string

func (*MoveObjectRequest) MarshalToSizedBufferVT

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

func (*MoveObjectRequest) MarshalToVT

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

func (*MoveObjectRequest) MarshalVT

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

func (*MoveObjectRequest) ProtoMessage

func (*MoveObjectRequest) ProtoMessage()

func (*MoveObjectRequest) Reset

func (x *MoveObjectRequest) Reset()

func (*MoveObjectRequest) SizeVT

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

func (*MoveObjectRequest) String

func (x *MoveObjectRequest) String() string

func (*MoveObjectRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the MoveObjectRequest from JSON.

func (*MoveObjectRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the MoveObjectRequest message from JSON.

func (*MoveObjectRequest) UnmarshalVT

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

type ObjectRequest

type ObjectRequest struct {

	// Object identifies the object among the mod's objects.
	Object uint32 `protobuf:"varint,1,opt,name=object,proto3" json:"object,omitempty"`
	// contains filtered or unexported fields
}

ObjectRequest addresses one object the mod created.

func (*ObjectRequest) CloneMessageVT

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

func (*ObjectRequest) CloneVT

func (m *ObjectRequest) CloneVT() *ObjectRequest

func (*ObjectRequest) EqualMessageVT

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

func (*ObjectRequest) EqualVT

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

func (*ObjectRequest) GetObject

func (x *ObjectRequest) GetObject() uint32

func (*ObjectRequest) MarshalJSON

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

MarshalJSON marshals the ObjectRequest to JSON.

func (*ObjectRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the ObjectRequest message to JSON.

func (*ObjectRequest) MarshalProtoText

func (x *ObjectRequest) MarshalProtoText() string

func (*ObjectRequest) MarshalToSizedBufferVT

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

func (*ObjectRequest) MarshalToVT

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

func (*ObjectRequest) MarshalVT

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

func (*ObjectRequest) ProtoMessage

func (*ObjectRequest) ProtoMessage()

func (*ObjectRequest) Reset

func (x *ObjectRequest) Reset()

func (*ObjectRequest) SizeVT

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

func (*ObjectRequest) String

func (x *ObjectRequest) String() string

func (*ObjectRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the ObjectRequest from JSON.

func (*ObjectRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ObjectRequest message from JSON.

func (*ObjectRequest) UnmarshalVT

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

type ObjectResponse

type ObjectResponse struct {
	Object uint32 `protobuf:"varint,1,opt,name=object,proto3" json:"object,omitempty"`
	// contains filtered or unexported fields
}

ObjectResponse holds the object a Create call placed.

func (*ObjectResponse) CloneMessageVT

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

func (*ObjectResponse) CloneVT

func (m *ObjectResponse) CloneVT() *ObjectResponse

func (*ObjectResponse) EqualMessageVT

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

func (*ObjectResponse) EqualVT

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

func (*ObjectResponse) GetObject

func (x *ObjectResponse) GetObject() uint32

func (*ObjectResponse) MarshalJSON

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

MarshalJSON marshals the ObjectResponse to JSON.

func (*ObjectResponse) MarshalProtoJSON

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

MarshalProtoJSON marshals the ObjectResponse message to JSON.

func (*ObjectResponse) MarshalProtoText

func (x *ObjectResponse) MarshalProtoText() string

func (*ObjectResponse) MarshalToSizedBufferVT

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

func (*ObjectResponse) MarshalToVT

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

func (*ObjectResponse) MarshalVT

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

func (*ObjectResponse) ProtoMessage

func (*ObjectResponse) ProtoMessage()

func (*ObjectResponse) Reset

func (x *ObjectResponse) Reset()

func (*ObjectResponse) SizeVT

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

func (*ObjectResponse) String

func (x *ObjectResponse) String() string

func (*ObjectResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the ObjectResponse from JSON.

func (*ObjectResponse) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ObjectResponse message from JSON.

func (*ObjectResponse) UnmarshalVT

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

type ParticleAnchor

type ParticleAnchor struct {

	// Index is the control point's number.
	Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Entity is the handle of the entity the control point follows.
	Entity uint32 `protobuf:"varint,2,opt,name=entity,proto3" json:"entity,omitempty"`
	// contains filtered or unexported fields
}

ParticleAnchor ties one control point of a particle effect to an entity.

func (*ParticleAnchor) CloneMessageVT

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

func (*ParticleAnchor) CloneVT

func (m *ParticleAnchor) CloneVT() *ParticleAnchor

func (*ParticleAnchor) EqualMessageVT

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

func (*ParticleAnchor) EqualVT

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

func (*ParticleAnchor) GetEntity

func (x *ParticleAnchor) GetEntity() uint32

func (*ParticleAnchor) GetIndex

func (x *ParticleAnchor) GetIndex() int32

func (*ParticleAnchor) MarshalJSON

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

MarshalJSON marshals the ParticleAnchor to JSON.

func (*ParticleAnchor) MarshalProtoJSON

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

MarshalProtoJSON marshals the ParticleAnchor message to JSON.

func (*ParticleAnchor) MarshalProtoText

func (x *ParticleAnchor) MarshalProtoText() string

func (*ParticleAnchor) MarshalToSizedBufferVT

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

func (*ParticleAnchor) MarshalToVT

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

func (*ParticleAnchor) MarshalVT

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

func (*ParticleAnchor) ProtoMessage

func (*ParticleAnchor) ProtoMessage()

func (*ParticleAnchor) Reset

func (x *ParticleAnchor) Reset()

func (*ParticleAnchor) SizeVT

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

func (*ParticleAnchor) String

func (x *ParticleAnchor) String() string

func (*ParticleAnchor) UnmarshalJSON

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

UnmarshalJSON unmarshals the ParticleAnchor from JSON.

func (*ParticleAnchor) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ParticleAnchor message from JSON.

func (*ParticleAnchor) UnmarshalVT

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

type ParticleOptions

type ParticleOptions struct {

	// Resource is the particle system's path, which the mod precached, such
	// as particles/abilities/assassinate_laser_targetting.vpcf, with {addon}
	// for the mod's content addon, as in particles/{addon}/glow.vpcf.
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Position is the effect's origin.
	Position *geometry.Vec3 `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	// Facing is the effect's rotation.
	Facing *geometry.EulerAngles `protobuf:"bytes,3,opt,name=facing,proto3,oneof" json:"facing,omitempty"`
	// Color tints the effect as 0xRRGGBBAA.
	Color *uint32 `protobuf:"fixed32,4,opt,name=color,proto3,oneof" json:"color,omitempty"`
	// TintPoint is the control point the color sets.
	TintPoint *int32 `protobuf:"varint,5,opt,name=tint_point,json=tintPoint,proto3,oneof" json:"tintPoint,omitempty"`
	// Point sets one control point to a position, such as a beam's far end.
	Point *ParticlePoint `protobuf:"bytes,6,opt,name=point,proto3,oneof" json:"point,omitempty"`
	// Parent is the handle of an entity the effect follows, such as a hero's.
	Parent *uint32 `protobuf:"varint,7,opt,name=parent,proto3,oneof" json:"parent,omitempty"`
	// Anchors tie control points to entities, which the points follow as the
	// entities move, such as both ends of a beam.
	Anchors []*ParticleAnchor `protobuf:"bytes,8,rep,name=anchors,proto3" json:"anchors,omitempty"`
	// Inactive spawns the effect without starting it: it draws nothing, but
	// other effects' anchors can follow it as it moves.
	Inactive *bool `protobuf:"varint,9,opt,name=inactive,proto3,oneof" json:"inactive,omitempty"`
	// contains filtered or unexported fields
}

ParticleOptions describes a particle effect.

func (*ParticleOptions) CloneMessageVT

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

func (*ParticleOptions) CloneVT

func (m *ParticleOptions) CloneVT() *ParticleOptions

func (*ParticleOptions) EqualMessageVT

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

func (*ParticleOptions) EqualVT

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

func (*ParticleOptions) GetAnchors

func (x *ParticleOptions) GetAnchors() []*ParticleAnchor

func (*ParticleOptions) GetColor

func (x *ParticleOptions) GetColor() uint32

func (*ParticleOptions) GetFacing

func (x *ParticleOptions) GetFacing() *geometry.EulerAngles

func (*ParticleOptions) GetInactive

func (x *ParticleOptions) GetInactive() bool

func (*ParticleOptions) GetParent

func (x *ParticleOptions) GetParent() uint32

func (*ParticleOptions) GetPoint

func (x *ParticleOptions) GetPoint() *ParticlePoint

func (*ParticleOptions) GetPosition

func (x *ParticleOptions) GetPosition() *geometry.Vec3

func (*ParticleOptions) GetResource

func (x *ParticleOptions) GetResource() string

func (*ParticleOptions) GetTintPoint

func (x *ParticleOptions) GetTintPoint() int32

func (*ParticleOptions) MarshalJSON

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

MarshalJSON marshals the ParticleOptions to JSON.

func (*ParticleOptions) MarshalProtoJSON

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

MarshalProtoJSON marshals the ParticleOptions message to JSON.

func (*ParticleOptions) MarshalProtoText

func (x *ParticleOptions) MarshalProtoText() string

func (*ParticleOptions) MarshalToSizedBufferVT

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

func (*ParticleOptions) MarshalToVT

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

func (*ParticleOptions) MarshalVT

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

func (*ParticleOptions) ProtoMessage

func (*ParticleOptions) ProtoMessage()

func (*ParticleOptions) Reset

func (x *ParticleOptions) Reset()

func (*ParticleOptions) SizeVT

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

func (*ParticleOptions) String

func (x *ParticleOptions) String() string

func (*ParticleOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the ParticleOptions from JSON.

func (*ParticleOptions) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ParticleOptions message from JSON.

func (*ParticleOptions) UnmarshalVT

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

type ParticlePoint

type ParticlePoint struct {

	// Index is the control point's number.
	Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Position is the control point's value.
	Position *geometry.Vec3 `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

ParticlePoint places one control point of a particle effect.

func (*ParticlePoint) CloneMessageVT

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

func (*ParticlePoint) CloneVT

func (m *ParticlePoint) CloneVT() *ParticlePoint

func (*ParticlePoint) EqualMessageVT

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

func (*ParticlePoint) EqualVT

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

func (*ParticlePoint) GetIndex

func (x *ParticlePoint) GetIndex() int32

func (*ParticlePoint) GetPosition

func (x *ParticlePoint) GetPosition() *geometry.Vec3

func (*ParticlePoint) MarshalJSON

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

MarshalJSON marshals the ParticlePoint to JSON.

func (*ParticlePoint) MarshalProtoJSON

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

MarshalProtoJSON marshals the ParticlePoint message to JSON.

func (*ParticlePoint) MarshalProtoText

func (x *ParticlePoint) MarshalProtoText() string

func (*ParticlePoint) MarshalToSizedBufferVT

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

func (*ParticlePoint) MarshalToVT

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

func (*ParticlePoint) MarshalVT

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

func (*ParticlePoint) ProtoMessage

func (*ParticlePoint) ProtoMessage()

func (*ParticlePoint) Reset

func (x *ParticlePoint) Reset()

func (*ParticlePoint) SizeVT

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

func (*ParticlePoint) String

func (x *ParticlePoint) String() string

func (*ParticlePoint) UnmarshalJSON

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

UnmarshalJSON unmarshals the ParticlePoint from JSON.

func (*ParticlePoint) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ParticlePoint message from JSON.

func (*ParticlePoint) UnmarshalVT

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

type SetObjectHiddenRequest

type SetObjectHiddenRequest struct {
	Object uint32 `protobuf:"varint,1,opt,name=object,proto3" json:"object,omitempty"`
	// Player is the server slot of the player who stops or resumes seeing it.
	Player int32 `protobuf:"varint,2,opt,name=player,proto3" json:"player,omitempty"`
	// Hidden is true to hide the object and false to show it.
	Hidden bool `protobuf:"varint,3,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// contains filtered or unexported fields
}

SetObjectHiddenRequest hides one object from one player or shows it again.

func (*SetObjectHiddenRequest) CloneMessageVT

func (*SetObjectHiddenRequest) CloneVT

func (*SetObjectHiddenRequest) EqualMessageVT

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

func (*SetObjectHiddenRequest) EqualVT

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

func (*SetObjectHiddenRequest) GetHidden

func (x *SetObjectHiddenRequest) GetHidden() bool

func (*SetObjectHiddenRequest) GetObject

func (x *SetObjectHiddenRequest) GetObject() uint32

func (*SetObjectHiddenRequest) GetPlayer

func (x *SetObjectHiddenRequest) GetPlayer() int32

func (*SetObjectHiddenRequest) MarshalJSON

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

MarshalJSON marshals the SetObjectHiddenRequest to JSON.

func (*SetObjectHiddenRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the SetObjectHiddenRequest message to JSON.

func (*SetObjectHiddenRequest) MarshalProtoText

func (x *SetObjectHiddenRequest) MarshalProtoText() string

func (*SetObjectHiddenRequest) MarshalToSizedBufferVT

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

func (*SetObjectHiddenRequest) MarshalToVT

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

func (*SetObjectHiddenRequest) MarshalVT

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

func (*SetObjectHiddenRequest) ProtoMessage

func (*SetObjectHiddenRequest) ProtoMessage()

func (*SetObjectHiddenRequest) Reset

func (x *SetObjectHiddenRequest) Reset()

func (*SetObjectHiddenRequest) SizeVT

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

func (*SetObjectHiddenRequest) String

func (x *SetObjectHiddenRequest) String() string

func (*SetObjectHiddenRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the SetObjectHiddenRequest from JSON.

func (*SetObjectHiddenRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the SetObjectHiddenRequest message from JSON.

func (*SetObjectHiddenRequest) UnmarshalVT

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

type SetTextRequest

type SetTextRequest struct {
	Object uint32 `protobuf:"varint,1,opt,name=object,proto3" json:"object,omitempty"`
	// Text is the new words.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

SetTextRequest replaces a text object's words.

func (*SetTextRequest) CloneMessageVT

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

func (*SetTextRequest) CloneVT

func (m *SetTextRequest) CloneVT() *SetTextRequest

func (*SetTextRequest) EqualMessageVT

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

func (*SetTextRequest) EqualVT

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

func (*SetTextRequest) GetObject

func (x *SetTextRequest) GetObject() uint32

func (*SetTextRequest) GetText

func (x *SetTextRequest) GetText() string

func (*SetTextRequest) MarshalJSON

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

MarshalJSON marshals the SetTextRequest to JSON.

func (*SetTextRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the SetTextRequest message to JSON.

func (*SetTextRequest) MarshalProtoText

func (x *SetTextRequest) MarshalProtoText() string

func (*SetTextRequest) MarshalToSizedBufferVT

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

func (*SetTextRequest) MarshalToVT

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

func (*SetTextRequest) MarshalVT

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

func (*SetTextRequest) ProtoMessage

func (*SetTextRequest) ProtoMessage()

func (*SetTextRequest) Reset

func (x *SetTextRequest) Reset()

func (*SetTextRequest) SizeVT

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

func (*SetTextRequest) String

func (x *SetTextRequest) String() string

func (*SetTextRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the SetTextRequest from JSON.

func (*SetTextRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the SetTextRequest message from JSON.

func (*SetTextRequest) UnmarshalVT

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

type ShowObjectOnlyToRequest added in v0.1.27

type ShowObjectOnlyToRequest struct {
	Object uint32 `protobuf:"varint,1,opt,name=object,proto3" json:"object,omitempty"`
	// Players are the server slots of the players who see the object.
	Players []int32 `protobuf:"varint,2,rep,packed,name=players,proto3" json:"players,omitempty"`
	// contains filtered or unexported fields
}

ShowObjectOnlyToRequest names the only players who receive an object.

func (*ShowObjectOnlyToRequest) CloneMessageVT added in v0.1.27

func (*ShowObjectOnlyToRequest) CloneVT added in v0.1.27

func (*ShowObjectOnlyToRequest) EqualMessageVT added in v0.1.27

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

func (*ShowObjectOnlyToRequest) EqualVT added in v0.1.27

func (*ShowObjectOnlyToRequest) GetObject added in v0.1.27

func (x *ShowObjectOnlyToRequest) GetObject() uint32

func (*ShowObjectOnlyToRequest) GetPlayers added in v0.1.27

func (x *ShowObjectOnlyToRequest) GetPlayers() []int32

func (*ShowObjectOnlyToRequest) MarshalJSON added in v0.1.27

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

MarshalJSON marshals the ShowObjectOnlyToRequest to JSON.

func (*ShowObjectOnlyToRequest) MarshalProtoJSON added in v0.1.27

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

MarshalProtoJSON marshals the ShowObjectOnlyToRequest message to JSON.

func (*ShowObjectOnlyToRequest) MarshalProtoText added in v0.1.27

func (x *ShowObjectOnlyToRequest) MarshalProtoText() string

func (*ShowObjectOnlyToRequest) MarshalToSizedBufferVT added in v0.1.27

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

func (*ShowObjectOnlyToRequest) MarshalToVT added in v0.1.27

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

func (*ShowObjectOnlyToRequest) MarshalVT added in v0.1.27

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

func (*ShowObjectOnlyToRequest) ProtoMessage added in v0.1.27

func (*ShowObjectOnlyToRequest) ProtoMessage()

func (*ShowObjectOnlyToRequest) Reset added in v0.1.27

func (x *ShowObjectOnlyToRequest) Reset()

func (*ShowObjectOnlyToRequest) SizeVT added in v0.1.27

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

func (*ShowObjectOnlyToRequest) String added in v0.1.27

func (x *ShowObjectOnlyToRequest) String() string

func (*ShowObjectOnlyToRequest) UnmarshalJSON added in v0.1.27

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

UnmarshalJSON unmarshals the ShowObjectOnlyToRequest from JSON.

func (*ShowObjectOnlyToRequest) UnmarshalProtoJSON added in v0.1.27

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

UnmarshalProtoJSON unmarshals the ShowObjectOnlyToRequest message from JSON.

func (*ShowObjectOnlyToRequest) UnmarshalVT added in v0.1.27

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

type TextAlign added in v0.1.56

type TextAlign int32

TextAlign places text across its position.

const (
	// TEXT_ALIGN_LEFT starts the text at its position.
	TextAlign_TEXT_ALIGN_LEFT TextAlign = 0
	// TEXT_ALIGN_CENTER centers the text on its position.
	TextAlign_TEXT_ALIGN_CENTER TextAlign = 1
	// TEXT_ALIGN_RIGHT ends the text at its position.
	TextAlign_TEXT_ALIGN_RIGHT TextAlign = 2
)

func (TextAlign) Enum added in v0.1.56

func (x TextAlign) Enum() *TextAlign

func (TextAlign) MarshalJSON added in v0.1.56

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

MarshalJSON marshals the TextAlign to JSON.

func (TextAlign) MarshalProtoJSON added in v0.1.56

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

MarshalProtoJSON marshals the TextAlign to JSON.

func (TextAlign) MarshalProtoText added in v0.1.56

func (x TextAlign) MarshalProtoText() string

func (TextAlign) MarshalText added in v0.1.56

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

MarshalText marshals the TextAlign to text.

func (TextAlign) String added in v0.1.56

func (x TextAlign) String() string

func (*TextAlign) UnmarshalJSON added in v0.1.56

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

UnmarshalJSON unmarshals the TextAlign from JSON.

func (*TextAlign) UnmarshalProtoJSON added in v0.1.56

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

UnmarshalProtoJSON unmarshals the TextAlign from JSON.

func (*TextAlign) UnmarshalText added in v0.1.56

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

UnmarshalText unmarshals the TextAlign from text.

type TextOptions

type TextOptions struct {

	// Text is the words to show; a newline starts a second line.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// Position is the text's origin.
	Position *geometry.Vec3 `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	// Facing is the text's rotation. When the text faces the camera it stands
	// upright and ignores this; otherwise it lies flat, face up, at zero angles
	// and stands with roll 90.
	Facing *geometry.EulerAngles `protobuf:"bytes,3,opt,name=facing,proto3,oneof" json:"facing,omitempty"`
	// FontSize is the text's size; the default is 100.
	FontSize *float32 `protobuf:"fixed32,4,opt,name=font_size,json=fontSize,proto3,oneof" json:"fontSize,omitempty"`
	// Color is the text's color as 0xRRGGBBAA; the default is white.
	Color *uint32 `protobuf:"fixed32,5,opt,name=color,proto3,oneof" json:"color,omitempty"`
	// FaceCamera turns the text toward each viewer.
	FaceCamera *bool `protobuf:"varint,6,opt,name=face_camera,json=faceCamera,proto3,oneof" json:"faceCamera,omitempty"`
	// Scale multiplies the text's size in the world; the default is 1.
	Scale *float32 `protobuf:"fixed32,7,opt,name=scale,proto3,oneof" json:"scale,omitempty"`
	// Align is where the text sits across its position; the default is left,
	// with the text starting there.
	Align *TextAlign `protobuf:"varint,8,opt,name=align,proto3,oneof" json:"align,omitempty"`
	// VerticalAlign is where the text sits up and down its position; the
	// default is bottom, with the text standing on it.
	VerticalAlign *TextVerticalAlign `protobuf:"varint,9,opt,name=vertical_align,json=verticalAlign,proto3,oneof" json:"verticalAlign,omitempty"`
	// contains filtered or unexported fields
}

TextOptions describes text that floats in the world.

func (*TextOptions) CloneMessageVT

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

func (*TextOptions) CloneVT

func (m *TextOptions) CloneVT() *TextOptions

func (*TextOptions) EqualMessageVT

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

func (*TextOptions) EqualVT

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

func (*TextOptions) GetAlign added in v0.1.56

func (x *TextOptions) GetAlign() TextAlign

func (*TextOptions) GetColor

func (x *TextOptions) GetColor() uint32

func (*TextOptions) GetFaceCamera

func (x *TextOptions) GetFaceCamera() bool

func (*TextOptions) GetFacing

func (x *TextOptions) GetFacing() *geometry.EulerAngles

func (*TextOptions) GetFontSize

func (x *TextOptions) GetFontSize() float32

func (*TextOptions) GetPosition

func (x *TextOptions) GetPosition() *geometry.Vec3

func (*TextOptions) GetScale

func (x *TextOptions) GetScale() float32

func (*TextOptions) GetText

func (x *TextOptions) GetText() string

func (*TextOptions) GetVerticalAlign added in v0.1.56

func (x *TextOptions) GetVerticalAlign() TextVerticalAlign

func (*TextOptions) MarshalJSON

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

MarshalJSON marshals the TextOptions to JSON.

func (*TextOptions) MarshalProtoJSON

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

MarshalProtoJSON marshals the TextOptions message to JSON.

func (*TextOptions) MarshalProtoText

func (x *TextOptions) MarshalProtoText() string

func (*TextOptions) MarshalToSizedBufferVT

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

func (*TextOptions) MarshalToVT

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

func (*TextOptions) MarshalVT

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

func (*TextOptions) ProtoMessage

func (*TextOptions) ProtoMessage()

func (*TextOptions) Reset

func (x *TextOptions) Reset()

func (*TextOptions) SizeVT

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

func (*TextOptions) String

func (x *TextOptions) String() string

func (*TextOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the TextOptions from JSON.

func (*TextOptions) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the TextOptions message from JSON.

func (*TextOptions) UnmarshalVT

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

type TextVerticalAlign added in v0.1.56

type TextVerticalAlign int32

TextVerticalAlign places text up and down its position.

const (
	// TEXT_VERTICAL_ALIGN_BOTTOM stands the text on its position.
	TextVerticalAlign_TEXT_VERTICAL_ALIGN_BOTTOM TextVerticalAlign = 0
	// TEXT_VERTICAL_ALIGN_CENTER centers the text on its position.
	TextVerticalAlign_TEXT_VERTICAL_ALIGN_CENTER TextVerticalAlign = 1
	// TEXT_VERTICAL_ALIGN_TOP hangs the text from its position.
	TextVerticalAlign_TEXT_VERTICAL_ALIGN_TOP TextVerticalAlign = 2
)

func (TextVerticalAlign) Enum added in v0.1.56

func (TextVerticalAlign) MarshalJSON added in v0.1.56

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

MarshalJSON marshals the TextVerticalAlign to JSON.

func (TextVerticalAlign) MarshalProtoJSON added in v0.1.56

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

MarshalProtoJSON marshals the TextVerticalAlign to JSON.

func (TextVerticalAlign) MarshalProtoText added in v0.1.56

func (x TextVerticalAlign) MarshalProtoText() string

func (TextVerticalAlign) MarshalText added in v0.1.56

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

MarshalText marshals the TextVerticalAlign to text.

func (TextVerticalAlign) String added in v0.1.56

func (x TextVerticalAlign) String() string

func (*TextVerticalAlign) UnmarshalJSON added in v0.1.56

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

UnmarshalJSON unmarshals the TextVerticalAlign from JSON.

func (*TextVerticalAlign) UnmarshalProtoJSON added in v0.1.56

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

UnmarshalProtoJSON unmarshals the TextVerticalAlign from JSON.

func (*TextVerticalAlign) UnmarshalText added in v0.1.56

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

UnmarshalText unmarshals the TextVerticalAlign from text.

Jump to

Keyboard shortcuts

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