--======================================================================================================================
-- 1) SCRIPT META DATA (optional)
--
-- Laminar XLua Template Version 1.0
-- COPYRIGHT © 2023 by Awesome Programmer
--
-- Script Description: Don't spare words. Write meaningful stuff here to remind you what the script does.
--
--======================================================================================================================
-- 2) SCRIPT NOTES / SCRATCHPAD
--
-- This is an example Lua file template that is typical and suitable for all XLua scripts. Not all sections
-- may be utilized, but all probable sections are accounted for and in the recommended order. This section is
-- a sandbox section for whatever you want, notes, equation references, reminders, etc.
-- Default XLua Global Vars:
-- 1) SIM_PERIOD
-- 2) IN_REPLAY
--======================================================================================================================
-- 3) DECLARE MODULE CONSTANTS
--======================================================================================================================
SOME_CONSTANT = 100
--======================================================================================================================
-- 4) GLOBAL VARIABLES
--======================================================================================================================
g_global_var_name = 0 -- available in this file and also in any Lua file "DOFILE'd" from this Lua file.
--======================================================================================================================
-- 5) FILE SCOPE LOCAL VARIABLES
--======================================================================================================================
local l_variable_name = 0 -- available as a "global" in this Lua file (local to THIS file) only.
--======================================================================================================================
-- 6) FETCH X-PLANE DATAREFS
--======================================================================================================================
--======================================================================================================================
-- 7) FETCH X-PLANE COMMANDS
--======================================================================================================================
-- Command Callback Definitions
--------------------------------------------------------------------------------------------------------------
-- X-Plane Command Declarations (wrap / augment / replace / filter)
--======================================================================================================================
-- 8) CREATE CUSTOM DATAREFS
--======================================================================================================================
-- Read only Custom Dataref Declarations
--------------------------------------------------------------------------------------------------------------
-- Write Dataref Callback Definitions
-------------------------------------------------------------------------------------------------------------
-- Custom Dataref Declarations
--======================================================================================================================
-- 9) CREATE CUSTOM COMMANDS
--======================================================================================================================
-- Custom Command Callback Definitions 1st
--------------------------------------------------------------------------------------------------------------
-- Custom Command Declarations
--======================================================================================================================
-- 10 LUA OBJECT CONSTRUCTORS
--======================================================================================================================
--======================================================================================================================
-- 11) LUA OBJECTS INSTANTIATION
--======================================================================================================================
--======================================================================================================================
-- 12) UTILITY FUNCTION DEFINITIONS
--======================================================================================================================
--======================================================================================================================
-- 13) TIMERS
--======================================================================================================================
-- Timer Function Definitions
--------------------------------------------------------------------------------------------------------------
-- Timer Assignments
--======================================================================================================================
-- 14) X-PLANE MAJOR CALLBACKS
--======================================================================================================================
function aircraft_load()
end
--======================================================================================================================
function flight_start()
end
--======================================================================================================================
function before_physics()
-- A FLCB (Flight Loop CallBack) This runs every frame.
end
--======================================================================================================================
function after_physics()
-- A FLCB (Flight Loop CallBack) This runs every frame.
end
--======================================================================================================================
function after_replay()
end
--======================================================================================================================
function flight_crash()
end
--======================================================================================================================
function aircraft_unload()
end
--======================================================================================================================
-- 15) SUB-SCRIPTS (dofile) LOADING
--======================================================================================================================
-- dofile("fileName.lua")