Skip to content

core.kernel.mainloop()

Captain Spaulding edited this page Feb 24, 2021 · 2 revisions

DESCRIPTION

This core function is invoked by FlyWithLua's callbacks and takes care of executing all the tasks in the specific queue.

An instance of this function is used to manage some recurrent loops (FRAME_LOOP, DRAW_LOOP, OFTEN_LOOP, SOMETIMES_LOOP).
The specific loop is passed as number (see ams.C) by the callback; if it's 0 (meaning the FRAME_LOOP), the function automatically executes the kernel task (task #1) before anything else.

FLOWCHART

mainloop - Flow

ams.core

ams.sys

  • ams.sys.info
  • ams.sys.timer
  • ams.sys.win.timer

ams.SDK

  • ams.SDK.XPML
  • ams.SDK.scenery
  • ams.SDK.map
  • ams.SDK.datarefs
  • ams.SDK.AIplanes
  • ams.SDK.menus
  • ams.SDK.processing
  • ams.SDK.graphics

ams.carillon

  • ams.carillon.carillon

ams.utils

  • ams.utils.tts

ams.install

  • ams.install.loader

ams.ext

kickstarter

AMS Scripts

Clone this wiki locally