Skip to content

ams.xlua.Const

Captain Spaulding edited this page Nov 17, 2021 · 2 revisions

DESCRIPTION

Implements constants variables. Each key of the constants key can be written only once during the initialization, then it can not be modified anymore.

USAGE

local Const = require('ams.xlua.Const')

Defines a local Const constructor.

PROVIDES

  • Const([table]) - Creates a new constants table and returns it;

CONSTANTS CLASS

type description
<Const>:pairs() iterator Returns a key-value pair at each iteration
<Const>.<key> write_once The constant variable

RETURNS

Nothing.

DEPENDANCIES

None.

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