Level (class)

From Moondust Wiki
Revision as of 16:59, 19 September 2015 by Kevsoft (talk | contribs) (Created page with "Category:LunaLua API Category:LunaLua classes This class provides fields/functions for managing Levels in the overworld. {{Class table‎|Level class||2= {{Class tabl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This class provides fields/functions for managing Levels in the overworld.

Level class
Type Function/Field Return values/Value type Description
function Level:mem(int offset, int fieldtype, object value) nil Sets a value of the Level struct at a specific address-offset.
function Level:mem(int offset, int fieldtype) object Returns a value of the Level struct at a specific address-offset.
Field Level.x double The x position of the level.
Field Level.y double The y position of the level.
Field (ro) Level.title string The level title.
Field (ro) Level.filename string The level filename.