Level (class)
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 | Level.goToX | double | The x position to the destination position. |
| Field | Level.goToY | double | The y position to the destination position. |
| Field | Level.topExitType | number | The exit type which triggers the top path. |
| Field | Level.leftExitType | number | The exit type which triggers the left path. |
| Field | Level.bottomExitType | number | The exit type which triggers the bottom path. |
| Field | Level.rightExitType | number | The exit type which triggers the right path. |
| Field | Level.levelWarpNumber | number | The warp id in the level which should be used, when the Player enters the level. |
| Field | Level.isPathBackground | boolean | If the level item has a path background. |
| Field | Level.isBigBackground | boolean | If the level item has a big path background. |
| Field | Level.isGameStartPoint | boolean | If the level item is the game start point. |
| Field | Level.isAlwaysVisible | boolean | If the level is always visible. |
| Field (ro) | Level.title | string | The level title. |
| Field (ro) | Level.filename | string | The level filename. |