Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.01 KB

trview.md

File metadata and controls

19 lines (14 loc) · 1.01 KB

trview

The trview library provides information about the program in general.

Properties

Name Type Mode Description
camera Camera R The current camera
level Level RW The current level, or nil if no level loaded. Can be set to a Level instance. Will raise an error if the level could not be loaded or the user cancelled the operation.
recent_files string[] R The table of recently opened filenames
local_levels string[] R Filenames of levels that are in the level switcher
route Route RW The current route. Setting this property will cause the route to be bound to this level. This will resolve any unresolved references in waypoints.

Functions

Name Returns Parameters Description
load Level string filename Load a level from the file provided. This will not automatically load the level in the viewer.