The Level library provides information about the currently loaded Level in trview.
Name | Type | Mode | Description |
---|---|---|---|
alternate_mode | boolean | RW | Whether the level flipmap is enabled (TR1-3) |
cameras_and_sinks | CameraSink[] | R | All cameras/sinks in the level |
filename | string | R | The path of the level file |
floordata | Table of number | R | All floordata |
items | Item[] | R | All items, no NG+ swap |
items_ng | Item[] | R | All items, NG+ swap |
lights | Light[] | R | All lights |
rooms | Room[] | R | All rooms |
selected_item | Item | RW | Currently selected item |
selected_room | Room | RW | Currently selected room |
selected_trigger | Trigger | RW | Currently selected trigger |
static_meshes | StaticMesh[] | R | All static meshes |
triggers | Trigger[] | R | All triggers |
version | number | R | The game number for which this level was made |
Name | Returns | Parameters | Description |
---|---|---|---|
add_scriptable | Scriptable | Add a scriptable to the level. Level does not own the scriptable. |