common

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ObjectCategory_name = map[int32]string{
		0: "OBJECT_CATEGORY_UNSPECIFIED",
		1: "OBJECT_CATEGORY_UNIT",
		2: "OBJECT_CATEGORY_WEAPON",
		3: "OBJECT_CATEGORY_STATIC",
		4: "OBJECT_CATEGORY_SCENERY",
		5: "OBJECT_CATEGORY_BASE",
		6: "OBJECT_CATEGORY_CARGO",
	}
	ObjectCategory_value = map[string]int32{
		"OBJECT_CATEGORY_UNSPECIFIED": 0,
		"OBJECT_CATEGORY_UNIT":        1,
		"OBJECT_CATEGORY_WEAPON":      2,
		"OBJECT_CATEGORY_STATIC":      3,
		"OBJECT_CATEGORY_SCENERY":     4,
		"OBJECT_CATEGORY_BASE":        5,
		"OBJECT_CATEGORY_CARGO":       6,
	}
)

Enum value maps for ObjectCategory.

View Source
var (
	AirbaseCategory_name = map[int32]string{
		0: "AIRBASE_CATEGORY_UNSPECIFIED",
		1: "AIRBASE_CATEGORY_AIRDROME",
		2: "AIRBASE_CATEGORY_HELIPAD",
		3: "AIRBASE_CATEGORY_SHIP",
	}
	AirbaseCategory_value = map[string]int32{
		"AIRBASE_CATEGORY_UNSPECIFIED": 0,
		"AIRBASE_CATEGORY_AIRDROME":    1,
		"AIRBASE_CATEGORY_HELIPAD":     2,
		"AIRBASE_CATEGORY_SHIP":        3,
	}
)

Enum value maps for AirbaseCategory.

View Source
var (
	Coalition_name = map[int32]string{
		0: "COALITION_ALL",
		1: "COALITION_NEUTRAL",
		2: "COALITION_RED",
		3: "COALITION_BLUE",
	}
	Coalition_value = map[string]int32{
		"COALITION_ALL":     0,
		"COALITION_NEUTRAL": 1,
		"COALITION_RED":     2,
		"COALITION_BLUE":    3,
	}
)

Enum value maps for Coalition.

View Source
var (
	Country_name = map[int32]string{
		0:  "COUNTRY_UNSPECIFIED",
		1:  "COUNTRY_RUSSIA",
		2:  "COUNTRY_UKRAINE",
		3:  "COUNTRY_UNITED_STATES_OF_AMERICA",
		4:  "COUNTRY_TURKEY",
		5:  "COUNTRY_UNITED_KINGDOM",
		6:  "COUNTRY_FRANCE",
		7:  "COUNTRY_GERMANY",
		8:  "COUNTRY_AGGRESSORS",
		9:  "COUNTRY_CANADA",
		10: "COUNTRY_SPAIN",
		11: "COUNTRY_THE_NETHERLANDS",
		12: "COUNTRY_BELGIUM",
		13: "COUNTRY_NORWAY",
		14: "COUNTRY_DENMARK",
		15: "COUNTRY_UNUSED",
		16: "COUNTRY_ISRAEL",
		17: "COUNTRY_GEORGIA",
		18: "COUNTRY_INSURGENTS",
		19: "COUNTRY_ABKHAZIA",
		20: "COUNTRY_SOUTH_OSETIA",
		21: "COUNTRY_ITALY",
		22: "COUNTRY_AUSTRALIA",
		23: "COUNTRY_SWITZERLAND",
		24: "COUNTRY_AUSTRIA",
		25: "COUNTRY_BELARUS",
		26: "COUNTRY_BULGARIA",
		27: "COUNTRY_CZECH_REPUBLIC",
		28: "COUNTRY_CHINA",
		29: "COUNTRY_CROATIA",
		30: "COUNTRY_EGYPT",
		31: "COUNTRY_FINLAND",
		32: "COUNTRY_GREECE",
		33: "COUNTRY_HUNGARY",
		34: "COUNTRY_INDIA",
		35: "COUNTRY_IRAN",
		36: "COUNTRY_IRAQ",
		37: "COUNTRY_JAPAN",
		38: "COUNTRY_KAZAKHSTAN",
		39: "COUNTRY_NORTH_KOREA",
		40: "COUNTRY_PAKISTAN",
		41: "COUNTRY_POLAND",
		42: "COUNTRY_ROMANIA",
		43: "COUNTRY_SAUDI_ARABIA",
		44: "COUNTRY_SERBIA",
		45: "COUNTRY_SLOVAKIA",
		46: "COUNTRY_SOUTH_KOREA",
		47: "COUNTRY_SWEDEN",
		48: "COUNTRY_SYRIA",
		49: "COUNTRY_YEMEN",
		50: "COUNTRY_VIETNAM",
		51: "COUNTRY_VENEZUELA",
		52: "COUNTRY_TUNISIA",
		53: "COUNTRY_THAILAND",
		54: "COUNTRY_SUDAN",
		55: "COUNTRY_PHILIPPINES",
		56: "COUNTRY_MOROCCO",
		57: "COUNTRY_MEXICO",
		58: "COUNTRY_MALAYSIA",
		59: "COUNTRY_LIBYA",
		60: "COUNTRY_JORDAN",
		61: "COUNTRY_INDONESIA",
		62: "COUNTRY_HONDURAS",
		63: "COUNTRY_ETHIOPIA",
		64: "COUNTRY_CHILE",
		65: "COUNTRY_BRAZIL",
		66: "COUNTRY_BAHRAIN",
		67: "COUNTRY_THIRDREICH",
		68: "COUNTRY_YUGOSLAVIA",
		69: "COUNTRY_SOVIET_UNION",
		70: "COUNTRY_ITALIAN_SOCIAL_REPUBLIC",
		71: "COUNTRY_ALGERIA",
		72: "COUNTRY_KUWAIT",
		73: "COUNTRY_QATAR",
		74: "COUNTRY_OMAN",
		75: "COUNTRY_UNITED_ARAB_EMIRATES",
		76: "COUNTRY_SOUTH_AFRICA",
		77: "COUNTRY_CUBA",
		78: "COUNTRY_PORTUGAL",
		79: "COUNTRY_GERMAN_DEMOCRATIC_REPUBLIC",
		80: "COUNTRY_LEBANON",
		81: "COUNTRY_COMBINED_JOINT_TASK_FORCE_BLUE",
		82: "COUNTRY_COMBINED_JOINT_TASK_FORCE_RED",
		83: "COUNTRY_UNITED_NATIONS_PEACEKEEPERS",
		84: "COUNTRY_ARGENTINA",
		85: "COUNTRY_CYPRUS",
		86: "COUNTRY_SLOVENIA",
	}
	Country_value = map[string]int32{
		"COUNTRY_UNSPECIFIED":                    0,
		"COUNTRY_RUSSIA":                         1,
		"COUNTRY_UKRAINE":                        2,
		"COUNTRY_UNITED_STATES_OF_AMERICA":       3,
		"COUNTRY_TURKEY":                         4,
		"COUNTRY_UNITED_KINGDOM":                 5,
		"COUNTRY_FRANCE":                         6,
		"COUNTRY_GERMANY":                        7,
		"COUNTRY_AGGRESSORS":                     8,
		"COUNTRY_CANADA":                         9,
		"COUNTRY_SPAIN":                          10,
		"COUNTRY_THE_NETHERLANDS":                11,
		"COUNTRY_BELGIUM":                        12,
		"COUNTRY_NORWAY":                         13,
		"COUNTRY_DENMARK":                        14,
		"COUNTRY_UNUSED":                         15,
		"COUNTRY_ISRAEL":                         16,
		"COUNTRY_GEORGIA":                        17,
		"COUNTRY_INSURGENTS":                     18,
		"COUNTRY_ABKHAZIA":                       19,
		"COUNTRY_SOUTH_OSETIA":                   20,
		"COUNTRY_ITALY":                          21,
		"COUNTRY_AUSTRALIA":                      22,
		"COUNTRY_SWITZERLAND":                    23,
		"COUNTRY_AUSTRIA":                        24,
		"COUNTRY_BELARUS":                        25,
		"COUNTRY_BULGARIA":                       26,
		"COUNTRY_CZECH_REPUBLIC":                 27,
		"COUNTRY_CHINA":                          28,
		"COUNTRY_CROATIA":                        29,
		"COUNTRY_EGYPT":                          30,
		"COUNTRY_FINLAND":                        31,
		"COUNTRY_GREECE":                         32,
		"COUNTRY_HUNGARY":                        33,
		"COUNTRY_INDIA":                          34,
		"COUNTRY_IRAN":                           35,
		"COUNTRY_IRAQ":                           36,
		"COUNTRY_JAPAN":                          37,
		"COUNTRY_KAZAKHSTAN":                     38,
		"COUNTRY_NORTH_KOREA":                    39,
		"COUNTRY_PAKISTAN":                       40,
		"COUNTRY_POLAND":                         41,
		"COUNTRY_ROMANIA":                        42,
		"COUNTRY_SAUDI_ARABIA":                   43,
		"COUNTRY_SERBIA":                         44,
		"COUNTRY_SLOVAKIA":                       45,
		"COUNTRY_SOUTH_KOREA":                    46,
		"COUNTRY_SWEDEN":                         47,
		"COUNTRY_SYRIA":                          48,
		"COUNTRY_YEMEN":                          49,
		"COUNTRY_VIETNAM":                        50,
		"COUNTRY_VENEZUELA":                      51,
		"COUNTRY_TUNISIA":                        52,
		"COUNTRY_THAILAND":                       53,
		"COUNTRY_SUDAN":                          54,
		"COUNTRY_PHILIPPINES":                    55,
		"COUNTRY_MOROCCO":                        56,
		"COUNTRY_MEXICO":                         57,
		"COUNTRY_MALAYSIA":                       58,
		"COUNTRY_LIBYA":                          59,
		"COUNTRY_JORDAN":                         60,
		"COUNTRY_INDONESIA":                      61,
		"COUNTRY_HONDURAS":                       62,
		"COUNTRY_ETHIOPIA":                       63,
		"COUNTRY_CHILE":                          64,
		"COUNTRY_BRAZIL":                         65,
		"COUNTRY_BAHRAIN":                        66,
		"COUNTRY_THIRDREICH":                     67,
		"COUNTRY_YUGOSLAVIA":                     68,
		"COUNTRY_SOVIET_UNION":                   69,
		"COUNTRY_ITALIAN_SOCIAL_REPUBLIC":        70,
		"COUNTRY_ALGERIA":                        71,
		"COUNTRY_KUWAIT":                         72,
		"COUNTRY_QATAR":                          73,
		"COUNTRY_OMAN":                           74,
		"COUNTRY_UNITED_ARAB_EMIRATES":           75,
		"COUNTRY_SOUTH_AFRICA":                   76,
		"COUNTRY_CUBA":                           77,
		"COUNTRY_PORTUGAL":                       78,
		"COUNTRY_GERMAN_DEMOCRATIC_REPUBLIC":     79,
		"COUNTRY_LEBANON":                        80,
		"COUNTRY_COMBINED_JOINT_TASK_FORCE_BLUE": 81,
		"COUNTRY_COMBINED_JOINT_TASK_FORCE_RED":  82,
		"COUNTRY_UNITED_NATIONS_PEACEKEEPERS":    83,
		"COUNTRY_ARGENTINA":                      84,
		"COUNTRY_CYPRUS":                         85,
		"COUNTRY_SLOVENIA":                       86,
	}
)

Enum value maps for Country.

View Source
var (
	GroupCategory_name = map[int32]string{
		0: "GROUP_CATEGORY_UNSPECIFIED",
		1: "GROUP_CATEGORY_AIRPLANE",
		2: "GROUP_CATEGORY_HELICOPTER",
		3: "GROUP_CATEGORY_GROUND",
		4: "GROUP_CATEGORY_SHIP",
		5: "GROUP_CATEGORY_TRAIN",
	}
	GroupCategory_value = map[string]int32{
		"GROUP_CATEGORY_UNSPECIFIED": 0,
		"GROUP_CATEGORY_AIRPLANE":    1,
		"GROUP_CATEGORY_HELICOPTER":  2,
		"GROUP_CATEGORY_GROUND":      3,
		"GROUP_CATEGORY_SHIP":        4,
		"GROUP_CATEGORY_TRAIN":       5,
	}
)

Enum value maps for GroupCategory.

View Source
var File_dcs_common_v0_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Airbase

type Airbase struct {

	// Information about the unit, if the airbase is one (e.g. in case of a
	// carrier).
	Unit *Unit `protobuf:"bytes,1,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
	// TODO: Fill this in
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// TODO: Fill this in
	Callsign string `protobuf:"bytes,3,opt,name=callsign,proto3" json:"callsign,omitempty"`
	// The coalition the unit belongs to. This can change mid-mission if an
	// airfield is captured
	Coalition Coalition `protobuf:"varint,4,opt,name=coalition,proto3,enum=dcs.common.v0.Coalition" json:"coalition,omitempty"`
	// The position of the center point of the airfield.
	Position *Position `protobuf:"bytes,6,opt,name=position,proto3" json:"position,omitempty"`
	// What category the airfield belongs to.
	Category AirbaseCategory `protobuf:"varint,7,opt,name=category,proto3,enum=dcs.common.v0.AirbaseCategory" json:"category,omitempty"`
	// TODO: Fill this in
	DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

* An instance of a DCS Airfield

func (*Airbase) Descriptor deprecated

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

Deprecated: Use Airbase.ProtoReflect.Descriptor instead.

func (*Airbase) GetCallsign

func (x *Airbase) GetCallsign() string

func (*Airbase) GetCategory

func (x *Airbase) GetCategory() AirbaseCategory

func (*Airbase) GetCoalition

func (x *Airbase) GetCoalition() Coalition

func (*Airbase) GetDisplayName

func (x *Airbase) GetDisplayName() string

func (*Airbase) GetName

func (x *Airbase) GetName() string

func (*Airbase) GetPosition

func (x *Airbase) GetPosition() *Position

func (*Airbase) GetUnit

func (x *Airbase) GetUnit() *Unit

func (*Airbase) ProtoMessage

func (*Airbase) ProtoMessage()

func (*Airbase) ProtoReflect

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

func (*Airbase) Reset

func (x *Airbase) Reset()

func (*Airbase) String

func (x *Airbase) String() string

type AirbaseCategory

type AirbaseCategory int32

* The category the object belongs to

Some of these are less than obvious. For example an oilrig counts as a HELIPAD airfield.

const (
	AirbaseCategory_AIRBASE_CATEGORY_UNSPECIFIED AirbaseCategory = 0
	AirbaseCategory_AIRBASE_CATEGORY_AIRDROME    AirbaseCategory = 1
	AirbaseCategory_AIRBASE_CATEGORY_HELIPAD     AirbaseCategory = 2
	AirbaseCategory_AIRBASE_CATEGORY_SHIP        AirbaseCategory = 3
)

func (AirbaseCategory) Descriptor

func (AirbaseCategory) Enum

func (x AirbaseCategory) Enum() *AirbaseCategory

func (AirbaseCategory) EnumDescriptor deprecated

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

Deprecated: Use AirbaseCategory.Descriptor instead.

func (AirbaseCategory) Number

func (AirbaseCategory) String

func (x AirbaseCategory) String() string

func (AirbaseCategory) Type

type Cargo

type Cargo struct {
	// contains filtered or unexported fields
}

* An instance of a DCS Cargo object

func (*Cargo) Descriptor deprecated

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

Deprecated: Use Cargo.ProtoReflect.Descriptor instead.

func (*Cargo) ProtoMessage

func (*Cargo) ProtoMessage()

func (*Cargo) ProtoReflect

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

func (*Cargo) Reset

func (x *Cargo) Reset()

func (*Cargo) String

func (x *Cargo) String() string

type Coalition

type Coalition int32

* Coalitions in DCS

The coalitions supported by DCS. The NEUTRAL coalition is a relatively new one and may not be as supported as the belligerant ones.

const (
	// protolint:disable:next ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH
	Coalition_COALITION_ALL     Coalition = 0
	Coalition_COALITION_NEUTRAL Coalition = 1
	Coalition_COALITION_RED     Coalition = 2
	Coalition_COALITION_BLUE    Coalition = 3
)

func (Coalition) Descriptor

func (Coalition) Descriptor() protoreflect.EnumDescriptor

func (Coalition) Enum

func (x Coalition) Enum() *Coalition

func (Coalition) EnumDescriptor deprecated

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

Deprecated: Use Coalition.Descriptor instead.

func (Coalition) Number

func (x Coalition) Number() protoreflect.EnumNumber

func (Coalition) String

func (x Coalition) String() string

func (Coalition) Type

type Contact

type Contact struct {

	// The DCS generated ID
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Can the sensor see the contact
	Visible bool `protobuf:"varint,2,opt,name=visible,proto3" json:"visible,omitempty"`
	// Does the controller know the distance to the contact?
	Distance bool `protobuf:"varint,3,opt,name=distance,proto3" json:"distance,omitempty"`
	// Either the basic information, or Unit or Weapon export object
	//
	// Types that are assignable to Target:
	//
	//	*Contact_Object
	//	*Contact_Unit
	//	*Contact_Weapon
	Target isContact_Target `protobuf_oneof:"target"`
	// contains filtered or unexported fields
}

* An instance of a contact in a DCS AI controller's detection table

This is a target that the AI controller has detected and is actively tracking

func (*Contact) Descriptor deprecated

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

Deprecated: Use Contact.ProtoReflect.Descriptor instead.

func (*Contact) GetDistance

func (x *Contact) GetDistance() bool

func (*Contact) GetId

func (x *Contact) GetId() uint32

func (*Contact) GetObject

func (x *Contact) GetObject() *Unknown

func (*Contact) GetTarget

func (m *Contact) GetTarget() isContact_Target

func (*Contact) GetUnit

func (x *Contact) GetUnit() *Unit

func (*Contact) GetVisible

func (x *Contact) GetVisible() bool

func (*Contact) GetWeapon

func (x *Contact) GetWeapon() *Weapon

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) ProtoReflect

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

func (*Contact) Reset

func (x *Contact) Reset()

func (*Contact) String

func (x *Contact) String() string

type Contact_Object

type Contact_Object struct {
	Object *Unknown `protobuf:"bytes,4,opt,name=object,proto3,oneof"`
}

type Contact_Unit

type Contact_Unit struct {
	Unit *Unit `protobuf:"bytes,5,opt,name=unit,proto3,oneof"`
}

type Contact_Weapon

type Contact_Weapon struct {
	Weapon *Weapon `protobuf:"bytes,6,opt,name=weapon,proto3,oneof"`
}

type Country

type Country int32

* Countries in DCS

Every country belongs to a coalition and this association is set per mission. The values of these enums are correct such that they will work with DCS however the text names have been Made to follow gRPC conventions to to aid in language bindings and acronyms have been replaced with their full english names to aid in recognition. In some cases this can be a big change (e.g. USSR -> Soviet Union).

We have also added a dummy value for the missing enum value 14 to prevent possible issues in the various language bindings

See https://wiki.hoggitworld.com/view/DCS_enum_country for more information

const (
	Country_COUNTRY_UNSPECIFIED                    Country = 0
	Country_COUNTRY_RUSSIA                         Country = 1
	Country_COUNTRY_UKRAINE                        Country = 2
	Country_COUNTRY_UNITED_STATES_OF_AMERICA       Country = 3
	Country_COUNTRY_TURKEY                         Country = 4
	Country_COUNTRY_UNITED_KINGDOM                 Country = 5
	Country_COUNTRY_FRANCE                         Country = 6
	Country_COUNTRY_GERMANY                        Country = 7
	Country_COUNTRY_AGGRESSORS                     Country = 8
	Country_COUNTRY_CANADA                         Country = 9
	Country_COUNTRY_SPAIN                          Country = 10
	Country_COUNTRY_THE_NETHERLANDS                Country = 11
	Country_COUNTRY_BELGIUM                        Country = 12
	Country_COUNTRY_NORWAY                         Country = 13
	Country_COUNTRY_DENMARK                        Country = 14
	Country_COUNTRY_UNUSED                         Country = 15
	Country_COUNTRY_ISRAEL                         Country = 16
	Country_COUNTRY_GEORGIA                        Country = 17
	Country_COUNTRY_INSURGENTS                     Country = 18
	Country_COUNTRY_ABKHAZIA                       Country = 19
	Country_COUNTRY_SOUTH_OSETIA                   Country = 20
	Country_COUNTRY_ITALY                          Country = 21
	Country_COUNTRY_AUSTRALIA                      Country = 22
	Country_COUNTRY_SWITZERLAND                    Country = 23
	Country_COUNTRY_AUSTRIA                        Country = 24
	Country_COUNTRY_BELARUS                        Country = 25
	Country_COUNTRY_BULGARIA                       Country = 26
	Country_COUNTRY_CZECH_REPUBLIC                 Country = 27
	Country_COUNTRY_CHINA                          Country = 28
	Country_COUNTRY_CROATIA                        Country = 29
	Country_COUNTRY_EGYPT                          Country = 30
	Country_COUNTRY_FINLAND                        Country = 31
	Country_COUNTRY_GREECE                         Country = 32
	Country_COUNTRY_HUNGARY                        Country = 33
	Country_COUNTRY_INDIA                          Country = 34
	Country_COUNTRY_IRAN                           Country = 35
	Country_COUNTRY_IRAQ                           Country = 36
	Country_COUNTRY_JAPAN                          Country = 37
	Country_COUNTRY_KAZAKHSTAN                     Country = 38
	Country_COUNTRY_NORTH_KOREA                    Country = 39
	Country_COUNTRY_PAKISTAN                       Country = 40
	Country_COUNTRY_POLAND                         Country = 41
	Country_COUNTRY_ROMANIA                        Country = 42
	Country_COUNTRY_SAUDI_ARABIA                   Country = 43
	Country_COUNTRY_SERBIA                         Country = 44
	Country_COUNTRY_SLOVAKIA                       Country = 45
	Country_COUNTRY_SOUTH_KOREA                    Country = 46
	Country_COUNTRY_SWEDEN                         Country = 47
	Country_COUNTRY_SYRIA                          Country = 48
	Country_COUNTRY_YEMEN                          Country = 49
	Country_COUNTRY_VIETNAM                        Country = 50
	Country_COUNTRY_VENEZUELA                      Country = 51
	Country_COUNTRY_TUNISIA                        Country = 52
	Country_COUNTRY_THAILAND                       Country = 53
	Country_COUNTRY_SUDAN                          Country = 54
	Country_COUNTRY_PHILIPPINES                    Country = 55
	Country_COUNTRY_MOROCCO                        Country = 56
	Country_COUNTRY_MEXICO                         Country = 57
	Country_COUNTRY_MALAYSIA                       Country = 58
	Country_COUNTRY_LIBYA                          Country = 59
	Country_COUNTRY_JORDAN                         Country = 60
	Country_COUNTRY_INDONESIA                      Country = 61
	Country_COUNTRY_HONDURAS                       Country = 62
	Country_COUNTRY_ETHIOPIA                       Country = 63
	Country_COUNTRY_CHILE                          Country = 64
	Country_COUNTRY_BRAZIL                         Country = 65
	Country_COUNTRY_BAHRAIN                        Country = 66
	Country_COUNTRY_THIRDREICH                     Country = 67
	Country_COUNTRY_YUGOSLAVIA                     Country = 68
	Country_COUNTRY_SOVIET_UNION                   Country = 69
	Country_COUNTRY_ITALIAN_SOCIAL_REPUBLIC        Country = 70
	Country_COUNTRY_ALGERIA                        Country = 71
	Country_COUNTRY_KUWAIT                         Country = 72
	Country_COUNTRY_QATAR                          Country = 73
	Country_COUNTRY_OMAN                           Country = 74
	Country_COUNTRY_UNITED_ARAB_EMIRATES           Country = 75
	Country_COUNTRY_SOUTH_AFRICA                   Country = 76
	Country_COUNTRY_CUBA                           Country = 77
	Country_COUNTRY_PORTUGAL                       Country = 78
	Country_COUNTRY_GERMAN_DEMOCRATIC_REPUBLIC     Country = 79
	Country_COUNTRY_LEBANON                        Country = 80
	Country_COUNTRY_COMBINED_JOINT_TASK_FORCE_BLUE Country = 81
	Country_COUNTRY_COMBINED_JOINT_TASK_FORCE_RED  Country = 82
	Country_COUNTRY_UNITED_NATIONS_PEACEKEEPERS    Country = 83
	Country_COUNTRY_ARGENTINA                      Country = 84
	Country_COUNTRY_CYPRUS                         Country = 85
	Country_COUNTRY_SLOVENIA                       Country = 86
)

func (Country) Descriptor

func (Country) Descriptor() protoreflect.EnumDescriptor

func (Country) Enum

func (x Country) Enum() *Country

func (Country) EnumDescriptor deprecated

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

Deprecated: Use Country.Descriptor instead.

func (Country) Number

func (x Country) Number() protoreflect.EnumNumber

func (Country) String

func (x Country) String() string

func (Country) Type

func (Country) Type() protoreflect.EnumType

type Group

type Group struct {
	Id        uint32        `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                              // The DCS generated ID
	Name      string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                           // The name of the group as assigned in the mission editor
	Coalition Coalition     `protobuf:"varint,3,opt,name=coalition,proto3,enum=dcs.common.v0.Coalition" json:"coalition,omitempty"`   // The coalition of the group
	Category  GroupCategory `protobuf:"varint,4,opt,name=category,proto3,enum=dcs.common.v0.GroupCategory" json:"category,omitempty"` // The group category.
	// contains filtered or unexported fields
}

* An instance of a DCS group

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetCategory

func (x *Group) GetCategory() GroupCategory

func (*Group) GetCoalition

func (x *Group) GetCoalition() Coalition

func (*Group) GetId

func (x *Group) GetId() uint32

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type GroupCategory

type GroupCategory int32

* Group category enumerator.

const (
	GroupCategory_GROUP_CATEGORY_UNSPECIFIED GroupCategory = 0
	GroupCategory_GROUP_CATEGORY_AIRPLANE    GroupCategory = 1
	GroupCategory_GROUP_CATEGORY_HELICOPTER  GroupCategory = 2
	GroupCategory_GROUP_CATEGORY_GROUND      GroupCategory = 3
	GroupCategory_GROUP_CATEGORY_SHIP        GroupCategory = 4
	GroupCategory_GROUP_CATEGORY_TRAIN       GroupCategory = 5
)

func (GroupCategory) Descriptor

func (GroupCategory) Enum

func (x GroupCategory) Enum() *GroupCategory

func (GroupCategory) EnumDescriptor deprecated

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

Deprecated: Use GroupCategory.Descriptor instead.

func (GroupCategory) Number

func (GroupCategory) String

func (x GroupCategory) String() string

func (GroupCategory) Type

type Initiator

type Initiator struct {

	// Types that are assignable to Initiator:
	//
	//	*Initiator_Unknown
	//	*Initiator_Unit
	//	*Initiator_Weapon
	//	*Initiator_Static
	//	*Initiator_Scenery
	//	*Initiator_Airbase
	//	*Initiator_Cargo
	Initiator isInitiator_Initiator `protobuf_oneof:"initiator"`
	// contains filtered or unexported fields
}

The initiator of an event

The initiator of an event. For things like shooting events it is usually a vehicle but it can be almost anything depending on the event

func (*Initiator) Descriptor deprecated

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

Deprecated: Use Initiator.ProtoReflect.Descriptor instead.

func (*Initiator) GetAirbase

func (x *Initiator) GetAirbase() *Airbase

func (*Initiator) GetCargo

func (x *Initiator) GetCargo() *Cargo

func (*Initiator) GetInitiator

func (m *Initiator) GetInitiator() isInitiator_Initiator

func (*Initiator) GetScenery

func (x *Initiator) GetScenery() *Scenery

func (*Initiator) GetStatic

func (x *Initiator) GetStatic() *Static

func (*Initiator) GetUnit

func (x *Initiator) GetUnit() *Unit

func (*Initiator) GetUnknown

func (x *Initiator) GetUnknown() *Unknown

func (*Initiator) GetWeapon

func (x *Initiator) GetWeapon() *Weapon

func (*Initiator) ProtoMessage

func (*Initiator) ProtoMessage()

func (*Initiator) ProtoReflect

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

func (*Initiator) Reset

func (x *Initiator) Reset()

func (*Initiator) String

func (x *Initiator) String() string

type Initiator_Airbase

type Initiator_Airbase struct {
	Airbase *Airbase `protobuf:"bytes,6,opt,name=airbase,proto3,oneof"`
}

type Initiator_Cargo

type Initiator_Cargo struct {
	Cargo *Cargo `protobuf:"bytes,7,opt,name=cargo,proto3,oneof"`
}

type Initiator_Scenery

type Initiator_Scenery struct {
	Scenery *Scenery `protobuf:"bytes,5,opt,name=scenery,proto3,oneof"`
}

type Initiator_Static

type Initiator_Static struct {
	Static *Static `protobuf:"bytes,4,opt,name=static,proto3,oneof"`
}

type Initiator_Unit

type Initiator_Unit struct {
	Unit *Unit `protobuf:"bytes,2,opt,name=unit,proto3,oneof"`
}

type Initiator_Unknown

type Initiator_Unknown struct {
	Unknown *Unknown `protobuf:"bytes,1,opt,name=unknown,proto3,oneof"`
}

type Initiator_Weapon

type Initiator_Weapon struct {
	Weapon *Weapon `protobuf:"bytes,3,opt,name=weapon,proto3,oneof"`
}

type InputPosition

type InputPosition struct {

	// Latitude in Decimal Degrees format
	Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	// Longitude in Decimal Degrees format
	Lon float64 `protobuf:"fixed64,2,opt,name=lon,proto3" json:"lon,omitempty"`
	// Altitude in Meters above Mean Sea Level (MSL)
	Alt float64 `protobuf:"fixed64,3,opt,name=alt,proto3" json:"alt,omitempty"`
	// contains filtered or unexported fields
}

* Position used in requests to DCS-gRPC.

Latitude and Longitude are in Decimal Degrees format (e.g. 41.33 / 37.21). Negative values are used for West of the meridian and south of the equator.

Altitude is given in meters above Mean Sea Level (MSL) and can be a decimal value.

func (*InputPosition) Descriptor deprecated

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

Deprecated: Use InputPosition.ProtoReflect.Descriptor instead.

func (*InputPosition) GetAlt

func (x *InputPosition) GetAlt() float64

func (*InputPosition) GetLat

func (x *InputPosition) GetLat() float64

func (*InputPosition) GetLon

func (x *InputPosition) GetLon() float64

func (*InputPosition) ProtoMessage

func (*InputPosition) ProtoMessage()

func (*InputPosition) ProtoReflect

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

func (*InputPosition) Reset

func (x *InputPosition) Reset()

func (*InputPosition) String

func (x *InputPosition) String() string

type MarkPanel

type MarkPanel struct {

	// The id of the mark panel.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The time in seconds relative to the mission start the mark got created.
	Time float64 `protobuf:"fixed64,2,opt,name=time,proto3" json:"time,omitempty"`
	// The unit of the player that created the mark. Not set if the player isn't
	// controlling any unit anymore (disconnected, spectator, game master, ...).
	Initiator *Unit `protobuf:"bytes,3,opt,name=initiator,proto3,oneof" json:"initiator,omitempty"`
	// If set, the mark is only visible for the specified coalition.
	Coalition *Coalition `protobuf:"varint,4,opt,name=coalition,proto3,enum=dcs.common.v0.Coalition,oneof" json:"coalition,omitempty"`
	// The ID of the group the player was in when creating the mark panel. This
	// will still be set even if the player isn't controlling the unit in that
	// group anymore.
	GroupId *uint32 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3,oneof" json:"group_id,omitempty"`
	// The text content of the mark.
	Text *string `protobuf:"bytes,6,opt,name=text,proto3,oneof" json:"text,omitempty"`
	// The position of the mark.
	Position *Position `protobuf:"bytes,7,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

A MarkPanel

A MarkPanel visible on the F10 map. These can be used for reference by players but can also be used by things like Jester for setting waypoints

func (*MarkPanel) Descriptor deprecated

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

Deprecated: Use MarkPanel.ProtoReflect.Descriptor instead.

func (*MarkPanel) GetCoalition

func (x *MarkPanel) GetCoalition() Coalition

func (*MarkPanel) GetGroupId

func (x *MarkPanel) GetGroupId() uint32

func (*MarkPanel) GetId

func (x *MarkPanel) GetId() uint32

func (*MarkPanel) GetInitiator

func (x *MarkPanel) GetInitiator() *Unit

func (*MarkPanel) GetPosition

func (x *MarkPanel) GetPosition() *Position

func (*MarkPanel) GetText

func (x *MarkPanel) GetText() string

func (*MarkPanel) GetTime

func (x *MarkPanel) GetTime() float64

func (*MarkPanel) ProtoMessage

func (*MarkPanel) ProtoMessage()

func (*MarkPanel) ProtoReflect

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

func (*MarkPanel) Reset

func (x *MarkPanel) Reset()

func (*MarkPanel) String

func (x *MarkPanel) String() string

type ObjectCategory

type ObjectCategory int32

* The category the object belongs to

All DCS objects are one of the following categories. Unlike many other enums created by DCS, this one is not 0 indexed. Therefore we do not need to do any modification of the value by incrementing it by one to make it work with gRPC and DCS.

See https://wiki.hoggitworld.com/view/DCS_Class_Object for more information

const (
	ObjectCategory_OBJECT_CATEGORY_UNSPECIFIED ObjectCategory = 0
	ObjectCategory_OBJECT_CATEGORY_UNIT        ObjectCategory = 1
	ObjectCategory_OBJECT_CATEGORY_WEAPON      ObjectCategory = 2
	ObjectCategory_OBJECT_CATEGORY_STATIC      ObjectCategory = 3
	ObjectCategory_OBJECT_CATEGORY_SCENERY     ObjectCategory = 4
	ObjectCategory_OBJECT_CATEGORY_BASE        ObjectCategory = 5
	ObjectCategory_OBJECT_CATEGORY_CARGO       ObjectCategory = 6
)

func (ObjectCategory) Descriptor

func (ObjectCategory) Enum

func (x ObjectCategory) Enum() *ObjectCategory

func (ObjectCategory) EnumDescriptor deprecated

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

Deprecated: Use ObjectCategory.Descriptor instead.

func (ObjectCategory) Number

func (ObjectCategory) String

func (x ObjectCategory) String() string

func (ObjectCategory) Type

type Orientation

type Orientation struct {

	// The heading the nose of the object points to on a flat world.
	Heading float64 `protobuf:"fixed64,1,opt,name=heading,proto3" json:"heading,omitempty"`
	// Yaw in degrees - clockwise relative to the true north (this is similar to
	// the heading, just corrected by the projection error when going from a flat
	// to a spherical world).
	Yaw float64 `protobuf:"fixed64,2,opt,name=yaw,proto3" json:"yaw,omitempty"`
	// Pitch in degrees - positive when taking-off.
	Pitch float64 `protobuf:"fixed64,3,opt,name=pitch,proto3" json:"pitch,omitempty"`
	// Roll in degrees - positive when rolling the aircraft to the right.
	Roll float64 `protobuf:"fixed64,4,opt,name=roll,proto3" json:"roll,omitempty"`
	// The normalized direction the object is pointing to.
	Forward *Vector `protobuf:"bytes,5,opt,name=forward,proto3" json:"forward,omitempty"`
	// The normalized direction the three line (right wing) is pointing to.
	Right *Vector `protobuf:"bytes,6,opt,name=right,proto3" json:"right,omitempty"`
	// The normalized up vector (orthogonal to forward and right).
	Up *Vector `protobuf:"bytes,7,opt,name=up,proto3" json:"up,omitempty"`
	// contains filtered or unexported fields
}

* The orientation of an object in 3D space.

func (*Orientation) Descriptor deprecated

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

Deprecated: Use Orientation.ProtoReflect.Descriptor instead.

func (*Orientation) GetForward

func (x *Orientation) GetForward() *Vector

func (*Orientation) GetHeading

func (x *Orientation) GetHeading() float64

func (*Orientation) GetPitch

func (x *Orientation) GetPitch() float64

func (*Orientation) GetRight

func (x *Orientation) GetRight() *Vector

func (*Orientation) GetRoll

func (x *Orientation) GetRoll() float64

func (*Orientation) GetUp

func (x *Orientation) GetUp() *Vector

func (*Orientation) GetYaw

func (x *Orientation) GetYaw() float64

func (*Orientation) ProtoMessage

func (*Orientation) ProtoMessage()

func (*Orientation) ProtoReflect

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

func (*Orientation) Reset

func (x *Orientation) Reset()

func (*Orientation) String

func (x *Orientation) String() string

type Position

type Position struct {

	// Latitude in Decimal Degrees format
	Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	// Longitude in Decimal Degrees format
	Lon float64 `protobuf:"fixed64,2,opt,name=lon,proto3" json:"lon,omitempty"`
	// Altitude in Meters above Mean Sea Level (MSL)
	Alt float64 `protobuf:"fixed64,3,opt,name=alt,proto3" json:"alt,omitempty"`
	// Distance between DCS' map origin to object in meters on west-east axis.
	U float64 `protobuf:"fixed64,4,opt,name=u,proto3" json:"u,omitempty"`
	// Distance between DCS' map origin to object in meters on north-south axis.
	V float64 `protobuf:"fixed64,5,opt,name=v,proto3" json:"v,omitempty"`
	// contains filtered or unexported fields
}

* Position of an object in DCS

Latitude and Longitude are in Decimal Degrees format (e.g. 41.33 / 37.21). Negative values are used for West of the meridian and south of the equator

Altitude is given in meters above Mean Sea Level (MSL) and can be a decimal value.

func (*Position) Descriptor deprecated

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

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetAlt

func (x *Position) GetAlt() float64

func (*Position) GetLat

func (x *Position) GetLat() float64

func (*Position) GetLon

func (x *Position) GetLon() float64

func (*Position) GetU

func (x *Position) GetU() float64

func (*Position) GetV

func (x *Position) GetV() float64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

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

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type Scenery

type Scenery struct {

	// The id of the scenery
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The DCS type-name of the scenery
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// The position of the scenery
	Position *Position `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

* An instance of a DCS scenery object

func (*Scenery) Descriptor deprecated

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

Deprecated: Use Scenery.ProtoReflect.Descriptor instead.

func (*Scenery) GetId

func (x *Scenery) GetId() uint32

func (*Scenery) GetPosition

func (x *Scenery) GetPosition() *Position

func (*Scenery) GetType

func (x *Scenery) GetType() string

func (*Scenery) ProtoMessage

func (*Scenery) ProtoMessage()

func (*Scenery) ProtoReflect

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

func (*Scenery) Reset

func (x *Scenery) Reset()

func (*Scenery) String

func (x *Scenery) String() string

type Static

type Static struct {

	// The DCS generated ID
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The DCS type-name of the static
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// The name of the static
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The coalition the static belongs to
	Coalition Coalition `protobuf:"varint,4,opt,name=coalition,proto3,enum=dcs.common.v0.Coalition" json:"coalition,omitempty"`
	// The position of the static
	Position *Position `protobuf:"bytes,5,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

* An instance of a DCS static object

These objects are often buildings but can also be vehicles that have no AI or other game behaviour aside from being destroyable

func (*Static) Descriptor deprecated

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

Deprecated: Use Static.ProtoReflect.Descriptor instead.

func (*Static) GetCoalition

func (x *Static) GetCoalition() Coalition

func (*Static) GetId

func (x *Static) GetId() uint32

func (*Static) GetName

func (x *Static) GetName() string

func (*Static) GetPosition

func (x *Static) GetPosition() *Position

func (*Static) GetType

func (x *Static) GetType() string

func (*Static) ProtoMessage

func (*Static) ProtoMessage()

func (*Static) ProtoReflect

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

func (*Static) Reset

func (x *Static) Reset()

func (*Static) String

func (x *Static) String() string

type Target

type Target struct {

	// Types that are assignable to Target:
	//
	//	*Target_Unknown
	//	*Target_Unit
	//	*Target_Weapon
	//	*Target_Static
	//	*Target_Scenery
	//	*Target_Airbase
	//	*Target_Cargo
	Target isTarget_Target `protobuf_oneof:"target"`
	// contains filtered or unexported fields
}

The target of an event

The target of an event. For things like shooting events it is usually a vehicle but it can be almost anything depending on the event

func (*Target) Descriptor deprecated

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

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetAirbase

func (x *Target) GetAirbase() *Airbase

func (*Target) GetCargo

func (x *Target) GetCargo() *Cargo

func (*Target) GetScenery

func (x *Target) GetScenery() *Scenery

func (*Target) GetStatic

func (x *Target) GetStatic() *Static

func (*Target) GetTarget

func (m *Target) GetTarget() isTarget_Target

func (*Target) GetUnit

func (x *Target) GetUnit() *Unit

func (*Target) GetUnknown

func (x *Target) GetUnknown() *Unknown

func (*Target) GetWeapon

func (x *Target) GetWeapon() *Weapon

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

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

func (*Target) Reset

func (x *Target) Reset()

func (*Target) String

func (x *Target) String() string

type Target_Airbase

type Target_Airbase struct {
	Airbase *Airbase `protobuf:"bytes,6,opt,name=airbase,proto3,oneof"`
}

type Target_Cargo

type Target_Cargo struct {
	Cargo *Cargo `protobuf:"bytes,7,opt,name=cargo,proto3,oneof"`
}

type Target_Scenery

type Target_Scenery struct {
	Scenery *Scenery `protobuf:"bytes,5,opt,name=scenery,proto3,oneof"`
}

type Target_Static

type Target_Static struct {
	Static *Static `protobuf:"bytes,4,opt,name=static,proto3,oneof"`
}

type Target_Unit

type Target_Unit struct {
	Unit *Unit `protobuf:"bytes,2,opt,name=unit,proto3,oneof"`
}

type Target_Unknown

type Target_Unknown struct {
	Unknown *Unknown `protobuf:"bytes,1,opt,name=unknown,proto3,oneof"`
}

type Target_Weapon

type Target_Weapon struct {
	Weapon *Weapon `protobuf:"bytes,3,opt,name=weapon,proto3,oneof"`
}

type Unit

type Unit struct {

	// The DCS generated ID
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The name of the unit as assigned in the mission editor
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The DCS assigned callsign if one exists. e.g. "Enfield 11"
	Callsign string `protobuf:"bytes,3,opt,name=callsign,proto3" json:"callsign,omitempty"`
	// The coalition the unit belongs to
	Coalition Coalition `protobuf:"varint,4,opt,name=coalition,proto3,enum=dcs.common.v0.Coalition" json:"coalition,omitempty"`
	// The DCS type-name of the unit. e.g "MiG-29A", "ZSU_57_2" or "Hawk ln"
	Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	// The position of the unit
	Position *Position `protobuf:"bytes,6,opt,name=position,proto3" json:"position,omitempty"`
	// The orientation of the unit in both 2D and 3D space
	Orientation *Orientation `protobuf:"bytes,7,opt,name=orientation,proto3" json:"orientation,omitempty"`
	// The velocity of the unit in both 2D and 3D space
	Velocity *Velocity `protobuf:"bytes,8,opt,name=velocity,proto3" json:"velocity,omitempty"`
	// The name of the player if one is in control of the unit
	PlayerName *string `protobuf:"bytes,9,opt,name=player_name,json=playerName,proto3,oneof" json:"player_name,omitempty"`
	// The group that the unit belongs to
	Group *Group `protobuf:"bytes,10,opt,name=group,proto3" json:"group,omitempty"`
	// The number of this unit in the group. Does not change as units are
	// destroyed
	NumberInGroup uint32 `protobuf:"varint,11,opt,name=number_in_group,json=numberInGroup,proto3" json:"number_in_group,omitempty"`
	// contains filtered or unexported fields
}

* An instance of a DCS Unit

A unit is an "active" unit in a DCS mission. This means it has an attached AI that moves and shoots. Units include aircraft, ground units, ships, weapons etc.

func (*Unit) Descriptor deprecated

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

Deprecated: Use Unit.ProtoReflect.Descriptor instead.

func (*Unit) GetCallsign

func (x *Unit) GetCallsign() string

func (*Unit) GetCoalition

func (x *Unit) GetCoalition() Coalition

func (*Unit) GetGroup

func (x *Unit) GetGroup() *Group

func (*Unit) GetId

func (x *Unit) GetId() uint32

func (*Unit) GetName

func (x *Unit) GetName() string

func (*Unit) GetNumberInGroup

func (x *Unit) GetNumberInGroup() uint32

func (*Unit) GetOrientation

func (x *Unit) GetOrientation() *Orientation

func (*Unit) GetPlayerName

func (x *Unit) GetPlayerName() string

func (*Unit) GetPosition

func (x *Unit) GetPosition() *Position

func (*Unit) GetType

func (x *Unit) GetType() string

func (*Unit) GetVelocity

func (x *Unit) GetVelocity() *Velocity

func (*Unit) ProtoMessage

func (*Unit) ProtoMessage()

func (*Unit) ProtoReflect

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

func (*Unit) Reset

func (x *Unit) Reset()

func (*Unit) String

func (x *Unit) String() string

type Unknown

type Unknown struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

* This type is returned if an object category cannot be determined

The base object includes the `getName()` function so even for an unknown type we _should_ be able to get the name

func (*Unknown) Descriptor deprecated

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

Deprecated: Use Unknown.ProtoReflect.Descriptor instead.

func (*Unknown) GetName

func (x *Unknown) GetName() string

func (*Unknown) ProtoMessage

func (*Unknown) ProtoMessage()

func (*Unknown) ProtoReflect

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

func (*Unknown) Reset

func (x *Unknown) Reset()

func (*Unknown) String

func (x *Unknown) String() string

type Vector

type Vector struct {
	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"`
	// contains filtered or unexported fields
}

* A vector in a right-handed coordinate system where +x is north, -x south, +z is east, -z west, +y up and -y down.

func (*Vector) Descriptor deprecated

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

Deprecated: Use Vector.ProtoReflect.Descriptor instead.

func (*Vector) GetX

func (x *Vector) GetX() float64

func (*Vector) GetY

func (x *Vector) GetY() float64

func (*Vector) GetZ

func (x *Vector) GetZ() float64

func (*Vector) ProtoMessage

func (*Vector) ProtoMessage()

func (*Vector) ProtoReflect

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

func (*Vector) Reset

func (x *Vector) Reset()

func (*Vector) String

func (x *Vector) String() string

type Velocity

type Velocity struct {

	// The heading the object is moving to (use `orientation.heading` to get the
	// heading the nose is pointing to).
	Heading float64 `protobuf:"fixed64,1,opt,name=heading,proto3" json:"heading,omitempty"`
	// The horizontal speed of the unit. If it is doing mach one straight up then
	// the speed will be 0
	Speed float64 `protobuf:"fixed64,2,opt,name=speed,proto3" json:"speed,omitempty"`
	// The direction the object is traveling to, and speed (magnitude of the
	// vector) the object is traveling with.
	Velocity *Vector `protobuf:"bytes,3,opt,name=velocity,proto3" json:"velocity,omitempty"`
	// contains filtered or unexported fields
}

* The orientation of an object in 3D space.

func (*Velocity) Descriptor deprecated

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

Deprecated: Use Velocity.ProtoReflect.Descriptor instead.

func (*Velocity) GetHeading

func (x *Velocity) GetHeading() float64

func (*Velocity) GetSpeed

func (x *Velocity) GetSpeed() float64

func (*Velocity) GetVelocity

func (x *Velocity) GetVelocity() *Vector

func (*Velocity) ProtoMessage

func (*Velocity) ProtoMessage()

func (*Velocity) ProtoReflect

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

func (*Velocity) Reset

func (x *Velocity) Reset()

func (*Velocity) String

func (x *Velocity) String() string

type Weapon

type Weapon struct {

	// The DCS generated ID
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The DCS type-name of the weapon. e.g "Matra_S530D", "HAWK_RAKETA" or
	// "weapons.shells.53-UOR-281U"
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// The position of the Weapon
	Position *Position `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"`
	// The orientation of the unit in both 2D and 3D space
	Orientation *Orientation `protobuf:"bytes,4,opt,name=orientation,proto3" json:"orientation,omitempty"`
	// The velocity of the unit in both 2D and 3D space
	Velocity *Velocity `protobuf:"bytes,5,opt,name=velocity,proto3" json:"velocity,omitempty"`
	// contains filtered or unexported fields
}

* An instance of a DCS weapon

These weapons include everything from autocannon HE shells up to massive ship-killer missiles

func (*Weapon) Descriptor deprecated

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

Deprecated: Use Weapon.ProtoReflect.Descriptor instead.

func (*Weapon) GetId

func (x *Weapon) GetId() uint32

func (*Weapon) GetOrientation

func (x *Weapon) GetOrientation() *Orientation

func (*Weapon) GetPosition

func (x *Weapon) GetPosition() *Position

func (*Weapon) GetType

func (x *Weapon) GetType() string

func (*Weapon) GetVelocity

func (x *Weapon) GetVelocity() *Velocity

func (*Weapon) ProtoMessage

func (*Weapon) ProtoMessage()

func (*Weapon) ProtoReflect

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

func (*Weapon) Reset

func (x *Weapon) Reset()

func (*Weapon) String

func (x *Weapon) String() string

Jump to

Keyboard shortcuts

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