-
Notifications
You must be signed in to change notification settings - Fork 0
ams.core.kernel
Captain Spaulding edited this page Mar 9, 2021
·
22 revisions
The kernel contains the core methods and functions needed to execute and handle the background tasks.
<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 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_LOOPams.C.DRAW_LOOPams.C.OFTEN_LOOPams.C.SOMETIMES_LOOPams.C.GUI_LOOPams.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
-
<core>- array pointer to the internal data structure
- socket
- ams.core.config
- ams.core.debug
- ams.lua_extended.constants
- ams.sys
- ams.SDK.processing
AMS an Advanced Library Package for FlyWithLua
Updated to v.1.55a (private alpha)
Copyright (C) 2021 Pasquale Croce
- ams.core.kernel
-
ams.core.dref_mgr
- ams:create_dref()
- ams:create_command()
- ams:map_dref()
- ams.core.wm
- ams:register_window()
- ams.core.for_loop
- ams:for_loop()
- ams.core.spc
- ams:spc()
-
ams.core.procs_mon
- ams:procs_mon()
- ams.core.debug
- ams.core.config
- ams.sys.info
- ams.sys.timer
- ams.sys.win.timer
- 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.xlua.math
- ams.xlua.strings
- ams.xlua.table
- ams.xlua.Vec2D
- ams.xlua.Const
- ams.xlua.Stack
- ams.carillon.carillon
- ams.utils.tts
- ams.install.loader