BGO (class)

From Moondust Wiki
Revision as of 20:54, 14 February 2017 by Rockythechao (talk | contribs) (added a section for offsets (will fill it with info from github later))
Jump to navigation Jump to search

This class provides fields/functions for managing BGOs in the current level. (LunaLua ≥v0.7)

BGO class
Type Function/Field Return values/Value type Description
Constructor myBGO = BGO(int internalIndex) BGO Construct a new BGO-Object. Only use this constructor with caution. Use BGO.get() instead!
Field BGO.id int The BGO-id of the BGO.
Field (ro) BGO.isHidden boolean True, if the BGO item is hidden.
Field BGO.x double The x coordinate of the BGO.
Field BGO.y double The y coordinate of the BGO.
Field BGO.width double The width of the BGO.
Field BGO.height double The height of the BGO.
Field BGO.speedX double The x-speed of the BGO.
Field BGO.speedY double The y-speed of the BGO.
Field BGO.layer Layer The layer of the BGO.
Field BGO.layerName string The layer name of the BGO.

Offsets

(Section under construction)

BGO Memory (0x__ bytes)
Name Memory address Memory type Description
Unknown BGO+0x00 FIELD_WORD Unknown
Unknown BGO+0x02 FIELD_WORD Unknown