planes

package
v0.0.0-...-3257b51 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const USER_AIRCRAFT = 0

Variables

This section is empty.

Functions

func AcquirePlanes

func AcquirePlanes(planes []string, callback PlanesAvailable, ref interface{}) int

func CountAircraft

func CountAircraft() (totalAircraft int, activeAircraft int, pluginId plugins.PluginId)

func DisableAIForPlane

func DisableAIForPlane(index int)

func DrawAircraft

func DrawAircraft(index int, x, y, z, pitch, roll, yaw float32, fullDraw bool, drawState PlaneDrawState)

func GetNthAircraftModel

func GetNthAircraftModel(index int) (fileName, path string)

func PlaceUserAtAirport

func PlaceUserAtAirport(airportCode string)

func ReinitUsersPlane

func ReinitUsersPlane()

func ReleasePlanes

func ReleasePlanes()

func SetActiveAircraftCount

func SetActiveAircraftCount(count int)

func SetAircraftModel

func SetAircraftModel(index int, path string)

func SetUsersAircraft

func SetUsersAircraft(aircraft string)

Types

type PlaneDrawState

type PlaneDrawState struct {
	GearPosition    float32
	FlapRatio       float32
	SpoilerRatio    float32
	SpeedBrakeRatio float32
	SlatRatio       float32
	WingSweep       float32
	Thrust          float32
	YokePitch       float32
	YokeHeading     float32
	YokeRoll        float32
	// contains filtered or unexported fields
}

type PlanesAvailable

type PlanesAvailable func(ref interface{})

Jump to

Keyboard shortcuts

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