Skip to content

ams.core.kernel

Captain Spaulding edited this page Mar 9, 2021 · 22 revisions

DESCRIPTION

The kernel contains the core methods and functions needed to execute and handle the background tasks.

USAGE

<core> = require('ams.core.kernel')

Initializes the global class 'ams' which contains all the data and the methods for the kernel handling. It returns a pointer to the internal data structure, <core>, used to expand the kernel's functionalities.

PROVIDES

Provides the following public methods:

  • ams:exec() - creates a task object to execute a function in background.
  • ams:kill() - kills an existing task.
  • ams:pause() - pauses a running task, putting it in 'sleep' status.
  • ams:resume() - resumes sleeping task.

Provides the following constants:

  • ams.C.FRAME_LOOP
  • ams.C.DRAW_LOOP
  • ams.C.OFTEN_LOOP
  • ams.C.SOMETIMES_LOOP
  • ams.C.GUI_LOOP
  • ams.C.EXIT_LOOP

It also provides variables with general informations about the package:

  • ams.version - contains the actual version of AMS
  • ams.stage - a string that indicates the current development stage

RETURNS

  • <core> - array pointer to the internal data structure

DEPENDANCIES

  • socket
  • ams.core.config
  • ams.core.debug
  • ams.lua_extended.constants
  • ams.sys
  • ams.SDK.processing

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