You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flightgear-addon-aerotow-ev.../aerotow.nas

41 lines
749 B

#
# Aerotow Everywhere - Add-on for FlightGear
#
# Written and developer by Roman Ludwicki (PlayeRom, SP-ROM)
#
# Copyright (C) 2022 Roman Ludwicki
#
# Aerotow Everywhere is an Open Source project and it is licensed
# under the GNU Public License v3 (GPLv3)
#
#
# Global aliases for boolean types to distinguish the use of "int" from "bool".
# NOTE: unfortunately, it doesn't work as an assignment of a default value for a function parameter!
#
var true = 1;
var false = 0;
#
# Global object of Aerotow
#
var g_Aerotow = nil;
#
# Initialize Aerotow
#
# addon - Addon object
#
var init = func (addon) {
g_Aerotow = Aerotow.new(addon);
}
#
# Uninitialize Aerotow
#
var uninit = func () {
if (g_Aerotow) {
g_Aerotow.del();
}
}