lsfn

package
v0.0.0-...-8c97bc2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ControlDescription_ControlType_name = map[int32]string{
	0: "Toggle",
	1: "Trigger",
	2: "Throttle",
}
View Source
var ControlDescription_ControlType_value = map[string]int32{
	"Toggle":   0,
	"Trigger":  1,
	"Throttle": 2,
}
View Source
var SensorDescription_SensorType_name = map[int32]string{
	0: "GalacticCoordinates",
	1: "VolumetricRadar",
	2: "IFFScanner",
}
View Source
var SensorDescription_SensorType_value = map[string]int32{
	"GalacticCoordinates": 0,
	"VolumetricRadar":     1,
	"IFFScanner":          2,
}

Functions

func RegisterLobbyServer

func RegisterLobbyServer(s *grpc.Server, srv LobbyServer)

Types

type ChangeControl

type ChangeControl struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are valid to be assigned to ControlTypeValue:
	//	*ChangeControl_Toggle
	//	*ChangeControl_Throttle
	ControlTypeValue     isChangeControl_ControlTypeValue `protobuf_oneof:"ControlTypeValue"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

Strutually this message is the same as ControlState, but semanticall it describes the changing of a control (as requested by the vessel) and not the description of it's state.

func (*ChangeControl) Descriptor

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

func (*ChangeControl) GetControlTypeValue

func (m *ChangeControl) GetControlTypeValue() isChangeControl_ControlTypeValue

func (*ChangeControl) GetId

func (m *ChangeControl) GetId() string

func (*ChangeControl) GetThrottle

func (m *ChangeControl) GetThrottle() int32

func (*ChangeControl) GetToggle

func (m *ChangeControl) GetToggle() bool

func (*ChangeControl) ProtoMessage

func (*ChangeControl) ProtoMessage()

func (*ChangeControl) Reset

func (m *ChangeControl) Reset()

func (*ChangeControl) String

func (m *ChangeControl) String() string

func (*ChangeControl) XXX_DiscardUnknown

func (m *ChangeControl) XXX_DiscardUnknown()

func (*ChangeControl) XXX_Marshal

func (m *ChangeControl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChangeControl) XXX_Merge

func (dst *ChangeControl) XXX_Merge(src proto.Message)

func (*ChangeControl) XXX_OneofFuncs

func (*ChangeControl) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ChangeControl) XXX_Size

func (m *ChangeControl) XXX_Size() int

func (*ChangeControl) XXX_Unmarshal

func (m *ChangeControl) XXX_Unmarshal(b []byte) error

type ChangeControl_Throttle

type ChangeControl_Throttle struct {
	Throttle int32 `protobuf:"varint,3,opt,name=throttle,proto3,oneof"`
}

type ChangeControl_Toggle

type ChangeControl_Toggle struct {
	Toggle bool `protobuf:"varint,2,opt,name=toggle,proto3,oneof"`
}

type ControlDescription

type ControlDescription struct {
	Id          string                         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string                         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ControlType ControlDescription_ControlType `protobuf:"varint,3,opt,name=controlType,proto3,enum=lsfn.ControlDescription_ControlType" json:"controlType,omitempty"`
	// Only given for Throttle types
	ThrottleRange        *ThrottleRange `protobuf:"bytes,4,opt,name=throttleRange,proto3" json:"throttleRange,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Describe a Control. Controls are things that the ship can do. For example firing lasers is a control, firing thrusters is a control, and throttling engines is a control.

func (*ControlDescription) Descriptor

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

func (*ControlDescription) GetControlType

func (*ControlDescription) GetId

func (m *ControlDescription) GetId() string

func (*ControlDescription) GetName

func (m *ControlDescription) GetName() string

func (*ControlDescription) GetThrottleRange

func (m *ControlDescription) GetThrottleRange() *ThrottleRange

func (*ControlDescription) ProtoMessage

func (*ControlDescription) ProtoMessage()

func (*ControlDescription) Reset

func (m *ControlDescription) Reset()

func (*ControlDescription) String

func (m *ControlDescription) String() string

func (*ControlDescription) XXX_DiscardUnknown

func (m *ControlDescription) XXX_DiscardUnknown()

func (*ControlDescription) XXX_Marshal

func (m *ControlDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ControlDescription) XXX_Merge

func (dst *ControlDescription) XXX_Merge(src proto.Message)

func (*ControlDescription) XXX_Size

func (m *ControlDescription) XXX_Size() int

func (*ControlDescription) XXX_Unmarshal

func (m *ControlDescription) XXX_Unmarshal(b []byte) error

type ControlDescription_ControlType

type ControlDescription_ControlType int32

This gives the difference between a control that is boolean, one that's an int, and one that's a float.

const (
	// Toggle: It's on or off, but when toggled it stays in it's on/off position until toggled again.
	ControlDescription_Toggle ControlDescription_ControlType = 0
	// Trigger: It's something that happens every time you trigger it then stops until triggered again.
	ControlDescription_Trigger ControlDescription_ControlType = 1
	// Throttle: It's a sliding value within a defined range (see below)
	ControlDescription_Throttle ControlDescription_ControlType = 2
)

func (ControlDescription_ControlType) EnumDescriptor

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

func (ControlDescription_ControlType) String

type ControlState

type ControlState struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are valid to be assigned to ControlTypeValue:
	//	*ControlState_Toggle
	//	*ControlState_Throttle
	ControlTypeValue     isControlState_ControlTypeValue `protobuf_oneof:"ControlTypeValue"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

Describe the state of a control. This is a message sent from the environment to the vessel to describe the current state.

func (*ControlState) Descriptor

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

func (*ControlState) GetControlTypeValue

func (m *ControlState) GetControlTypeValue() isControlState_ControlTypeValue

func (*ControlState) GetId

func (m *ControlState) GetId() string

func (*ControlState) GetThrottle

func (m *ControlState) GetThrottle() int32

func (*ControlState) GetToggle

func (m *ControlState) GetToggle() bool

func (*ControlState) ProtoMessage

func (*ControlState) ProtoMessage()

func (*ControlState) Reset

func (m *ControlState) Reset()

func (*ControlState) String

func (m *ControlState) String() string

func (*ControlState) XXX_DiscardUnknown

func (m *ControlState) XXX_DiscardUnknown()

func (*ControlState) XXX_Marshal

func (m *ControlState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ControlState) XXX_Merge

func (dst *ControlState) XXX_Merge(src proto.Message)

func (*ControlState) XXX_OneofFuncs

func (*ControlState) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ControlState) XXX_Size

func (m *ControlState) XXX_Size() int

func (*ControlState) XXX_Unmarshal

func (m *ControlState) XXX_Unmarshal(b []byte) error

type ControlState_Throttle

type ControlState_Throttle struct {
	Throttle int32 `protobuf:"varint,3,opt,name=throttle,proto3,oneof"`
}

type ControlState_Toggle

type ControlState_Toggle struct {
	Toggle bool `protobuf:"varint,2,opt,name=toggle,proto3,oneof"`
}

type GalacticCoordinate

type GalacticCoordinate struct {
	// Okay we're totally cheating here and using X, Y, and Z. This should be more
	// complex. https://en.wikipedia.org/wiki/Galactic_coordinate_system Regardless, these are *global* coordinates and
	// are not relative to the ship like the IFF and Radar coordinates are.
	X                    float64  `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
	Y                    float64  `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	Z                    float64  `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GalacticCoordinate) Descriptor

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

func (*GalacticCoordinate) GetX

func (m *GalacticCoordinate) GetX() float64

func (*GalacticCoordinate) GetY

func (m *GalacticCoordinate) GetY() float64

func (*GalacticCoordinate) GetZ

func (m *GalacticCoordinate) GetZ() float64

func (*GalacticCoordinate) ProtoMessage

func (*GalacticCoordinate) ProtoMessage()

func (*GalacticCoordinate) Reset

func (m *GalacticCoordinate) Reset()

func (*GalacticCoordinate) String

func (m *GalacticCoordinate) String() string

func (*GalacticCoordinate) XXX_DiscardUnknown

func (m *GalacticCoordinate) XXX_DiscardUnknown()

func (*GalacticCoordinate) XXX_Marshal

func (m *GalacticCoordinate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GalacticCoordinate) XXX_Merge

func (dst *GalacticCoordinate) XXX_Merge(src proto.Message)

func (*GalacticCoordinate) XXX_Size

func (m *GalacticCoordinate) XXX_Size() int

func (*GalacticCoordinate) XXX_Unmarshal

func (m *GalacticCoordinate) XXX_Unmarshal(b []byte) error

type IFFPing

type IFFPing struct {
	Location             *ShipRelativeCoordinate `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	Name                 string                  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*IFFPing) Descriptor

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

func (*IFFPing) GetLocation

func (m *IFFPing) GetLocation() *ShipRelativeCoordinate

func (*IFFPing) GetName

func (m *IFFPing) GetName() string

func (*IFFPing) ProtoMessage

func (*IFFPing) ProtoMessage()

func (*IFFPing) Reset

func (m *IFFPing) Reset()

func (*IFFPing) String

func (m *IFFPing) String() string

func (*IFFPing) XXX_DiscardUnknown

func (m *IFFPing) XXX_DiscardUnknown()

func (*IFFPing) XXX_Marshal

func (m *IFFPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IFFPing) XXX_Merge

func (dst *IFFPing) XXX_Merge(src proto.Message)

func (*IFFPing) XXX_Size

func (m *IFFPing) XXX_Size() int

func (*IFFPing) XXX_Unmarshal

func (m *IFFPing) XXX_Unmarshal(b []byte) error

type IFFReadout

type IFFReadout struct {
	Pings                []*IFFPing `protobuf:"bytes,1,rep,name=pings,proto3" json:"pings,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*IFFReadout) Descriptor

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

func (*IFFReadout) GetPings

func (m *IFFReadout) GetPings() []*IFFPing

func (*IFFReadout) ProtoMessage

func (*IFFReadout) ProtoMessage()

func (*IFFReadout) Reset

func (m *IFFReadout) Reset()

func (*IFFReadout) String

func (m *IFFReadout) String() string

func (*IFFReadout) XXX_DiscardUnknown

func (m *IFFReadout) XXX_DiscardUnknown()

func (*IFFReadout) XXX_Marshal

func (m *IFFReadout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IFFReadout) XXX_Merge

func (dst *IFFReadout) XXX_Merge(src proto.Message)

func (*IFFReadout) XXX_Size

func (m *IFFReadout) XXX_Size() int

func (*IFFReadout) XXX_Unmarshal

func (m *IFFReadout) XXX_Unmarshal(b []byte) error

type JoinServer

type JoinServer struct {
	// No authentication yet, just say the ID of the ship you're joining as.
	ShipId               string   `protobuf:"bytes,1,opt,name=shipId,proto3" json:"shipId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*JoinServer) Descriptor

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

func (*JoinServer) GetShipId

func (m *JoinServer) GetShipId() string

func (*JoinServer) ProtoMessage

func (*JoinServer) ProtoMessage()

func (*JoinServer) Reset

func (m *JoinServer) Reset()

func (*JoinServer) String

func (m *JoinServer) String() string

func (*JoinServer) XXX_DiscardUnknown

func (m *JoinServer) XXX_DiscardUnknown()

func (*JoinServer) XXX_Marshal

func (m *JoinServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JoinServer) XXX_Merge

func (dst *JoinServer) XXX_Merge(src proto.Message)

func (*JoinServer) XXX_Size

func (m *JoinServer) XXX_Size() int

func (*JoinServer) XXX_Unmarshal

func (m *JoinServer) XXX_Unmarshal(b []byte) error

type LobbyClient

type LobbyClient interface {
	Join(ctx context.Context, in *JoinServer, opts ...grpc.CallOption) (*Welcome, error)
	Command(ctx context.Context, opts ...grpc.CallOption) (Lobby_CommandClient, error)
}

LobbyClient is the client API for Lobby service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLobbyClient

func NewLobbyClient(cc *grpc.ClientConn) LobbyClient

type LobbyServer

type LobbyServer interface {
	Join(context.Context, *JoinServer) (*Welcome, error)
	Command(Lobby_CommandServer) error
}

LobbyServer is the server API for Lobby service.

type Lobby_CommandClient

type Lobby_CommandClient interface {
	Send(*ShipCommand) error
	Recv() (*ShipUpdate, error)
	grpc.ClientStream
}

type Lobby_CommandServer

type Lobby_CommandServer interface {
	Send(*ShipUpdate) error
	Recv() (*ShipCommand, error)
	grpc.ServerStream
}

type SensorDescription

type SensorDescription struct {
	Id         string                       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name       string                       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	SensorType SensorDescription_SensorType `protobuf:"varint,3,opt,name=sensorType,proto3,enum=lsfn.SensorDescription_SensorType" json:"sensorType,omitempty"`
	// Only provided for Volumetric Radar type
	RadarRange *VolumetricRange `protobuf:"bytes,4,opt,name=radarRange,proto3" json:"radarRange,omitempty"`
	// Only provided for IFF Detector type
	IffDetectorRange     *VolumetricRange `protobuf:"bytes,5,opt,name=iffDetectorRange,proto3" json:"iffDetectorRange,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Describe a Sensor. Sensors are things that the ship knows. For example it's galactic position is a sensor, radar is a sensor. Sensors aren't changed, only described.

func (*SensorDescription) Descriptor

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

func (*SensorDescription) GetId

func (m *SensorDescription) GetId() string

func (*SensorDescription) GetIffDetectorRange

func (m *SensorDescription) GetIffDetectorRange() *VolumetricRange

func (*SensorDescription) GetName

func (m *SensorDescription) GetName() string

func (*SensorDescription) GetRadarRange

func (m *SensorDescription) GetRadarRange() *VolumetricRange

func (*SensorDescription) GetSensorType

func (*SensorDescription) ProtoMessage

func (*SensorDescription) ProtoMessage()

func (*SensorDescription) Reset

func (m *SensorDescription) Reset()

func (*SensorDescription) String

func (m *SensorDescription) String() string

func (*SensorDescription) XXX_DiscardUnknown

func (m *SensorDescription) XXX_DiscardUnknown()

func (*SensorDescription) XXX_Marshal

func (m *SensorDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SensorDescription) XXX_Merge

func (dst *SensorDescription) XXX_Merge(src proto.Message)

func (*SensorDescription) XXX_Size

func (m *SensorDescription) XXX_Size() int

func (*SensorDescription) XXX_Unmarshal

func (m *SensorDescription) XXX_Unmarshal(b []byte) error

type SensorDescription_SensorType

type SensorDescription_SensorType int32

This gives the difference between a control that is boolean, one that's an int, and one that's a float.

const (
	// Galactic Coordinates defined as a position in the Galaxy.
	SensorDescription_GalacticCoordinates SensorDescription_SensorType = 0
	// Radar
	SensorDescription_VolumetricRadar SensorDescription_SensorType = 1
	// Identify-Friend-Foe Detector
	SensorDescription_IFFScanner SensorDescription_SensorType = 2
)

func (SensorDescription_SensorType) EnumDescriptor

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

func (SensorDescription_SensorType) String

type SensorState

type SensorState struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are valid to be assigned to SensorTypeValue:
	//	*SensorState_GalacticCoordinate
	//	*SensorState_RadarData
	//	*SensorState_IffData
	SensorTypeValue      isSensorState_SensorTypeValue `protobuf_oneof:"SensorTypeValue"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

Describe the state of a Sensor. This is a message sent from the environment to the vessel to describe the current state.

func (*SensorState) Descriptor

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

func (*SensorState) GetGalacticCoordinate

func (m *SensorState) GetGalacticCoordinate() *GalacticCoordinate

func (*SensorState) GetId

func (m *SensorState) GetId() string

func (*SensorState) GetIffData

func (m *SensorState) GetIffData() *IFFReadout

func (*SensorState) GetRadarData

func (m *SensorState) GetRadarData() *VolumetricData

func (*SensorState) GetSensorTypeValue

func (m *SensorState) GetSensorTypeValue() isSensorState_SensorTypeValue

func (*SensorState) ProtoMessage

func (*SensorState) ProtoMessage()

func (*SensorState) Reset

func (m *SensorState) Reset()

func (*SensorState) String

func (m *SensorState) String() string

func (*SensorState) XXX_DiscardUnknown

func (m *SensorState) XXX_DiscardUnknown()

func (*SensorState) XXX_Marshal

func (m *SensorState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SensorState) XXX_Merge

func (dst *SensorState) XXX_Merge(src proto.Message)

func (*SensorState) XXX_OneofFuncs

func (*SensorState) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*SensorState) XXX_Size

func (m *SensorState) XXX_Size() int

func (*SensorState) XXX_Unmarshal

func (m *SensorState) XXX_Unmarshal(b []byte) error

type SensorState_GalacticCoordinate

type SensorState_GalacticCoordinate struct {
	GalacticCoordinate *GalacticCoordinate `protobuf:"bytes,2,opt,name=galacticCoordinate,proto3,oneof"`
}

type SensorState_IffData

type SensorState_IffData struct {
	IffData *IFFReadout `protobuf:"bytes,4,opt,name=iffData,proto3,oneof"`
}

type SensorState_RadarData

type SensorState_RadarData struct {
	RadarData *VolumetricData `protobuf:"bytes,3,opt,name=radarData,proto3,oneof"`
}

type ShipCommand

type ShipCommand struct {
	Control              *ChangeControl `protobuf:"bytes,1,opt,name=control,proto3" json:"control,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ShipCommand) Descriptor

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

func (*ShipCommand) GetControl

func (m *ShipCommand) GetControl() *ChangeControl

func (*ShipCommand) ProtoMessage

func (*ShipCommand) ProtoMessage()

func (*ShipCommand) Reset

func (m *ShipCommand) Reset()

func (*ShipCommand) String

func (m *ShipCommand) String() string

func (*ShipCommand) XXX_DiscardUnknown

func (m *ShipCommand) XXX_DiscardUnknown()

func (*ShipCommand) XXX_Marshal

func (m *ShipCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShipCommand) XXX_Merge

func (dst *ShipCommand) XXX_Merge(src proto.Message)

func (*ShipCommand) XXX_Size

func (m *ShipCommand) XXX_Size() int

func (*ShipCommand) XXX_Unmarshal

func (m *ShipCommand) XXX_Unmarshal(b []byte) error

type ShipDescription

type ShipDescription struct {
	Id                   string                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string                `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Controls             []*ControlDescription `protobuf:"bytes,3,rep,name=controls,proto3" json:"controls,omitempty"`
	Sensors              []*SensorDescription  `protobuf:"bytes,4,rep,name=sensors,proto3" json:"sensors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ShipDescription) Descriptor

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

func (*ShipDescription) GetControls

func (m *ShipDescription) GetControls() []*ControlDescription

func (*ShipDescription) GetId

func (m *ShipDescription) GetId() string

func (*ShipDescription) GetName

func (m *ShipDescription) GetName() string

func (*ShipDescription) GetSensors

func (m *ShipDescription) GetSensors() []*SensorDescription

func (*ShipDescription) ProtoMessage

func (*ShipDescription) ProtoMessage()

func (*ShipDescription) Reset

func (m *ShipDescription) Reset()

func (*ShipDescription) String

func (m *ShipDescription) String() string

func (*ShipDescription) XXX_DiscardUnknown

func (m *ShipDescription) XXX_DiscardUnknown()

func (*ShipDescription) XXX_Marshal

func (m *ShipDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShipDescription) XXX_Merge

func (dst *ShipDescription) XXX_Merge(src proto.Message)

func (*ShipDescription) XXX_Size

func (m *ShipDescription) XXX_Size() int

func (*ShipDescription) XXX_Unmarshal

func (m *ShipDescription) XXX_Unmarshal(b []byte) error

type ShipRelativeCoordinate

type ShipRelativeCoordinate struct {
	// XYZ coordinate centered on the ship at `(0, 0, 0)`. Scale the same as volumetric data.
	X                    float64  `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
	Y                    float64  `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	Z                    float64  `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ShipRelativeCoordinate) Descriptor

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

func (*ShipRelativeCoordinate) GetX

func (m *ShipRelativeCoordinate) GetX() float64

func (*ShipRelativeCoordinate) GetY

func (m *ShipRelativeCoordinate) GetY() float64

func (*ShipRelativeCoordinate) GetZ

func (m *ShipRelativeCoordinate) GetZ() float64

func (*ShipRelativeCoordinate) ProtoMessage

func (*ShipRelativeCoordinate) ProtoMessage()

func (*ShipRelativeCoordinate) Reset

func (m *ShipRelativeCoordinate) Reset()

func (*ShipRelativeCoordinate) String

func (m *ShipRelativeCoordinate) String() string

func (*ShipRelativeCoordinate) XXX_DiscardUnknown

func (m *ShipRelativeCoordinate) XXX_DiscardUnknown()

func (*ShipRelativeCoordinate) XXX_Marshal

func (m *ShipRelativeCoordinate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShipRelativeCoordinate) XXX_Merge

func (dst *ShipRelativeCoordinate) XXX_Merge(src proto.Message)

func (*ShipRelativeCoordinate) XXX_Size

func (m *ShipRelativeCoordinate) XXX_Size() int

func (*ShipRelativeCoordinate) XXX_Unmarshal

func (m *ShipRelativeCoordinate) XXX_Unmarshal(b []byte) error

type ShipUpdate

type ShipUpdate struct {
	// Types that are valid to be assigned to Union:
	//	*ShipUpdate_Control
	//	*ShipUpdate_Sensor
	Union                isShipUpdate_Union `protobuf_oneof:"Union"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*ShipUpdate) Descriptor

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

func (*ShipUpdate) GetControl

func (m *ShipUpdate) GetControl() *ControlState

func (*ShipUpdate) GetSensor

func (m *ShipUpdate) GetSensor() *SensorState

func (*ShipUpdate) GetUnion

func (m *ShipUpdate) GetUnion() isShipUpdate_Union

func (*ShipUpdate) ProtoMessage

func (*ShipUpdate) ProtoMessage()

func (*ShipUpdate) Reset

func (m *ShipUpdate) Reset()

func (*ShipUpdate) String

func (m *ShipUpdate) String() string

func (*ShipUpdate) XXX_DiscardUnknown

func (m *ShipUpdate) XXX_DiscardUnknown()

func (*ShipUpdate) XXX_Marshal

func (m *ShipUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShipUpdate) XXX_Merge

func (dst *ShipUpdate) XXX_Merge(src proto.Message)

func (*ShipUpdate) XXX_OneofFuncs

func (*ShipUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ShipUpdate) XXX_Size

func (m *ShipUpdate) XXX_Size() int

func (*ShipUpdate) XXX_Unmarshal

func (m *ShipUpdate) XXX_Unmarshal(b []byte) error

type ShipUpdate_Control

type ShipUpdate_Control struct {
	Control *ControlState `protobuf:"bytes,1,opt,name=control,proto3,oneof"`
}

type ShipUpdate_Sensor

type ShipUpdate_Sensor struct {
	Sensor *SensorState `protobuf:"bytes,2,opt,name=sensor,proto3,oneof"`
}

type ThrottleRange

type ThrottleRange struct {
	// The range of a throttle. These are ints, so you can safely do `(maximum - minimum) / step` to get the number of
	// steps. It's safe to assume that `minimum < maximum` and `step > 0`.
	Minimum              int32    `protobuf:"varint,1,opt,name=minimum,proto3" json:"minimum,omitempty"`
	Maximum              int32    `protobuf:"varint,2,opt,name=maximum,proto3" json:"maximum,omitempty"`
	Step                 int32    `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ThrottleRange) Descriptor

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

func (*ThrottleRange) GetMaximum

func (m *ThrottleRange) GetMaximum() int32

func (*ThrottleRange) GetMinimum

func (m *ThrottleRange) GetMinimum() int32

func (*ThrottleRange) GetStep

func (m *ThrottleRange) GetStep() int32

func (*ThrottleRange) ProtoMessage

func (*ThrottleRange) ProtoMessage()

func (*ThrottleRange) Reset

func (m *ThrottleRange) Reset()

func (*ThrottleRange) String

func (m *ThrottleRange) String() string

func (*ThrottleRange) XXX_DiscardUnknown

func (m *ThrottleRange) XXX_DiscardUnknown()

func (*ThrottleRange) XXX_Marshal

func (m *ThrottleRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThrottleRange) XXX_Merge

func (dst *ThrottleRange) XXX_Merge(src proto.Message)

func (*ThrottleRange) XXX_Size

func (m *ThrottleRange) XXX_Size() int

func (*ThrottleRange) XXX_Unmarshal

func (m *ThrottleRange) XXX_Unmarshal(b []byte) error

type VolumetricData

type VolumetricData struct {
	Palnes               []*VolumetricDataPlane `protobuf:"bytes,1,rep,name=palnes,proto3" json:"palnes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*VolumetricData) Descriptor

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

func (*VolumetricData) GetPalnes

func (m *VolumetricData) GetPalnes() []*VolumetricDataPlane

func (*VolumetricData) ProtoMessage

func (*VolumetricData) ProtoMessage()

func (*VolumetricData) Reset

func (m *VolumetricData) Reset()

func (*VolumetricData) String

func (m *VolumetricData) String() string

func (*VolumetricData) XXX_DiscardUnknown

func (m *VolumetricData) XXX_DiscardUnknown()

func (*VolumetricData) XXX_Marshal

func (m *VolumetricData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VolumetricData) XXX_Merge

func (dst *VolumetricData) XXX_Merge(src proto.Message)

func (*VolumetricData) XXX_Size

func (m *VolumetricData) XXX_Size() int

func (*VolumetricData) XXX_Unmarshal

func (m *VolumetricData) XXX_Unmarshal(b []byte) error

type VolumetricDataPlane

type VolumetricDataPlane struct {
	Lines                []*VolumetricDataPlaneLine `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Okay three dimentional volumetric data is hard okay! Each cell is a float that describes the intensity of the thinig in that cell from 0.0f to 1.0f.

func (*VolumetricDataPlane) Descriptor

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

func (*VolumetricDataPlane) GetLines

func (*VolumetricDataPlane) ProtoMessage

func (*VolumetricDataPlane) ProtoMessage()

func (*VolumetricDataPlane) Reset

func (m *VolumetricDataPlane) Reset()

func (*VolumetricDataPlane) String

func (m *VolumetricDataPlane) String() string

func (*VolumetricDataPlane) XXX_DiscardUnknown

func (m *VolumetricDataPlane) XXX_DiscardUnknown()

func (*VolumetricDataPlane) XXX_Marshal

func (m *VolumetricDataPlane) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VolumetricDataPlane) XXX_Merge

func (dst *VolumetricDataPlane) XXX_Merge(src proto.Message)

func (*VolumetricDataPlane) XXX_Size

func (m *VolumetricDataPlane) XXX_Size() int

func (*VolumetricDataPlane) XXX_Unmarshal

func (m *VolumetricDataPlane) XXX_Unmarshal(b []byte) error

type VolumetricDataPlaneLine

type VolumetricDataPlaneLine struct {
	Cell                 []float32 `protobuf:"fixed32,1,rep,packed,name=cell,proto3" json:"cell,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*VolumetricDataPlaneLine) Descriptor

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

func (*VolumetricDataPlaneLine) GetCell

func (m *VolumetricDataPlaneLine) GetCell() []float32

func (*VolumetricDataPlaneLine) ProtoMessage

func (*VolumetricDataPlaneLine) ProtoMessage()

func (*VolumetricDataPlaneLine) Reset

func (m *VolumetricDataPlaneLine) Reset()

func (*VolumetricDataPlaneLine) String

func (m *VolumetricDataPlaneLine) String() string

func (*VolumetricDataPlaneLine) XXX_DiscardUnknown

func (m *VolumetricDataPlaneLine) XXX_DiscardUnknown()

func (*VolumetricDataPlaneLine) XXX_Marshal

func (m *VolumetricDataPlaneLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VolumetricDataPlaneLine) XXX_Merge

func (dst *VolumetricDataPlaneLine) XXX_Merge(src proto.Message)

func (*VolumetricDataPlaneLine) XXX_Size

func (m *VolumetricDataPlaneLine) XXX_Size() int

func (*VolumetricDataPlaneLine) XXX_Unmarshal

func (m *VolumetricDataPlaneLine) XXX_Unmarshal(b []byte) error

type VolumetricRange

type VolumetricRange struct {
	// This is a little complex as the volumentric data is just given as a 3D array. So this gives you the offests to
	// figure out where the ship is in that (as it's centered on the ship). So if `upY` is 20 and `downY` is 40 then you
	// expect a y dimention in the volumetric data of size 60, where the ship is 20 from the top.
	LeftX                int32    `protobuf:"varint,1,opt,name=leftX,proto3" json:"leftX,omitempty"`
	RightX               int32    `protobuf:"varint,2,opt,name=rightX,proto3" json:"rightX,omitempty"`
	UpY                  int32    `protobuf:"varint,3,opt,name=upY,proto3" json:"upY,omitempty"`
	DownY                int32    `protobuf:"varint,4,opt,name=downY,proto3" json:"downY,omitempty"`
	ForwardsZ            int32    `protobuf:"varint,5,opt,name=forwardsZ,proto3" json:"forwardsZ,omitempty"`
	BackwardsZ           int32    `protobuf:"varint,6,opt,name=backwardsZ,proto3" json:"backwardsZ,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VolumetricRange) Descriptor

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

func (*VolumetricRange) GetBackwardsZ

func (m *VolumetricRange) GetBackwardsZ() int32

func (*VolumetricRange) GetDownY

func (m *VolumetricRange) GetDownY() int32

func (*VolumetricRange) GetForwardsZ

func (m *VolumetricRange) GetForwardsZ() int32

func (*VolumetricRange) GetLeftX

func (m *VolumetricRange) GetLeftX() int32

func (*VolumetricRange) GetRightX

func (m *VolumetricRange) GetRightX() int32

func (*VolumetricRange) GetUpY

func (m *VolumetricRange) GetUpY() int32

func (*VolumetricRange) ProtoMessage

func (*VolumetricRange) ProtoMessage()

func (*VolumetricRange) Reset

func (m *VolumetricRange) Reset()

func (*VolumetricRange) String

func (m *VolumetricRange) String() string

func (*VolumetricRange) XXX_DiscardUnknown

func (m *VolumetricRange) XXX_DiscardUnknown()

func (*VolumetricRange) XXX_Marshal

func (m *VolumetricRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VolumetricRange) XXX_Merge

func (dst *VolumetricRange) XXX_Merge(src proto.Message)

func (*VolumetricRange) XXX_Size

func (m *VolumetricRange) XXX_Size() int

func (*VolumetricRange) XXX_Unmarshal

func (m *VolumetricRange) XXX_Unmarshal(b []byte) error

type Welcome

type Welcome struct {
	// You get back a description of your ship.
	Ship                 *ShipDescription `protobuf:"bytes,1,opt,name=ship,proto3" json:"ship,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Welcome) Descriptor

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

func (*Welcome) GetShip

func (m *Welcome) GetShip() *ShipDescription

func (*Welcome) ProtoMessage

func (*Welcome) ProtoMessage()

func (*Welcome) Reset

func (m *Welcome) Reset()

func (*Welcome) String

func (m *Welcome) String() string

func (*Welcome) XXX_DiscardUnknown

func (m *Welcome) XXX_DiscardUnknown()

func (*Welcome) XXX_Marshal

func (m *Welcome) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Welcome) XXX_Merge

func (dst *Welcome) XXX_Merge(src proto.Message)

func (*Welcome) XXX_Size

func (m *Welcome) XXX_Size() int

func (*Welcome) XXX_Unmarshal

func (m *Welcome) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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