coalitions

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 0 Imported by: 8

Documentation

Overview

Package coalitions defines the coalitions in DCS World.

Index

Constants

View Source
const (
	// Red is the ID of the red coalition.
	Red = 1
	// Blue is the ID of the blue coalition.
	Blue = 2
	// Neutrals is the ID of the neutral coalition.
	Neutrals = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Coalition

type Coalition int

Coalition is the ID of a coalition in DCS World.

func All

func All() []Coalition

All returns all coalitions.

func (Coalition) Opposite

func (c Coalition) Opposite() Coalition

Opposite returns the opposing coalition.

func (Coalition) String added in v0.2.0

func (c Coalition) String() string

String returns the string representation of a coalition.

Jump to

Keyboard shortcuts

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