sslcommon

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Team_name = map[int32]string{
		0: "UNKNOWN",
		1: "YELLOW",
		2: "BLUE",
	}
	Team_value = map[string]int32{
		"UNKNOWN": 0,
		"YELLOW":  1,
		"BLUE":    2,
	}
)

Enum value maps for Team.

View Source
var (
	Division_name = map[int32]string{
		0: "DIV_UNKNOWN",
		1: "DIV_A",
		2: "DIV_B",
	}
	Division_value = map[string]int32{
		"DIV_UNKNOWN": 0,
		"DIV_A":       1,
		"DIV_B":       2,
	}
)

Enum value maps for Division.

View Source
var File_ssl_gc_common_proto protoreflect.FileDescriptor
View Source
var File_ssl_gc_geometry_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Division

type Division int32

Division denotes the current division, which influences some rules

const (
	Division_DIV_UNKNOWN Division = 0
	Division_DIV_A       Division = 1
	Division_DIV_B       Division = 2
)

func (Division) Descriptor

func (Division) Descriptor() protoreflect.EnumDescriptor

func (Division) Enum

func (x Division) Enum() *Division

func (Division) EnumDescriptor deprecated

func (Division) EnumDescriptor() ([]byte, []int)

Deprecated: Use Division.Descriptor instead.

func (Division) Number

func (x Division) Number() protoreflect.EnumNumber

func (Division) String

func (x Division) String() string

func (Division) Type

func (*Division) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type RobotId

type RobotId struct {

	// the robot number
	Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// the team that the robot belongs to
	Team *Team `protobuf:"varint,2,opt,name=team,enum=Team" json:"team,omitempty"`
	// contains filtered or unexported fields
}

RobotId is the combination of a team and a robot id

func (*RobotId) Descriptor deprecated

func (*RobotId) Descriptor() ([]byte, []int)

Deprecated: Use RobotId.ProtoReflect.Descriptor instead.

func (*RobotId) GetId

func (x *RobotId) GetId() uint32

func (*RobotId) GetTeam

func (x *RobotId) GetTeam() Team

func (*RobotId) ProtoMessage

func (*RobotId) ProtoMessage()

func (*RobotId) ProtoReflect

func (x *RobotId) ProtoReflect() protoreflect.Message

func (*RobotId) Reset

func (x *RobotId) Reset()

func (*RobotId) String

func (x *RobotId) String() string

type Team

type Team int32

Team is either blue or yellow

const (
	// team not set
	Team_UNKNOWN Team = 0
	// yellow team
	Team_YELLOW Team = 1
	// blue team
	Team_BLUE Team = 2
)

func (Team) Descriptor

func (Team) Descriptor() protoreflect.EnumDescriptor

func (Team) Enum

func (x Team) Enum() *Team

func (Team) EnumDescriptor deprecated

func (Team) EnumDescriptor() ([]byte, []int)

Deprecated: Use Team.Descriptor instead.

func (Team) Number

func (x Team) Number() protoreflect.EnumNumber

func (Team) String

func (x Team) String() string

func (Team) Type

func (Team) Type() protoreflect.EnumType

func (*Team) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type Vector2

type Vector2 struct {
	X *float32 `protobuf:"fixed32,1,req,name=x" json:"x,omitempty"`
	Y *float32 `protobuf:"fixed32,2,req,name=y" json:"y,omitempty"`
	// contains filtered or unexported fields
}

A vector with two dimensions

func (*Vector2) Descriptor deprecated

func (*Vector2) Descriptor() ([]byte, []int)

Deprecated: Use Vector2.ProtoReflect.Descriptor instead.

func (*Vector2) GetX

func (x *Vector2) GetX() float32

func (*Vector2) GetY

func (x *Vector2) GetY() float32

func (*Vector2) ProtoMessage

func (*Vector2) ProtoMessage()

func (*Vector2) ProtoReflect

func (x *Vector2) ProtoReflect() protoreflect.Message

func (*Vector2) Reset

func (x *Vector2) Reset()

func (*Vector2) String

func (x *Vector2) String() string

type Vector3

type Vector3 struct {
	X *float32 `protobuf:"fixed32,1,req,name=x" json:"x,omitempty"`
	Y *float32 `protobuf:"fixed32,2,req,name=y" json:"y,omitempty"`
	Z *float32 `protobuf:"fixed32,3,req,name=z" json:"z,omitempty"`
	// contains filtered or unexported fields
}

A vector with three dimensions

func (*Vector3) Descriptor deprecated

func (*Vector3) Descriptor() ([]byte, []int)

Deprecated: Use Vector3.ProtoReflect.Descriptor instead.

func (*Vector3) GetX

func (x *Vector3) GetX() float32

func (*Vector3) GetY

func (x *Vector3) GetY() float32

func (*Vector3) GetZ

func (x *Vector3) GetZ() float32

func (*Vector3) ProtoMessage

func (*Vector3) ProtoMessage()

func (*Vector3) ProtoReflect

func (x *Vector3) ProtoReflect() protoreflect.Message

func (*Vector3) Reset

func (x *Vector3) Reset()

func (*Vector3) String

func (x *Vector3) String() string

Jump to

Keyboard shortcuts

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