EditorDebugConsole class
Commands to test the level editor without input, only in debug builds.
The commands given on the command line by /console <command> run in order once the view of the editor exists, /wait <frames> delays the rest and /quit ends the game. They go through the editor as the user would, mostly through the same functions the input and the actions use. Also adds up the frame statistics for /perf and moves the view for /drift.
Constructors, destructors, conversion operators
- EditorDebugConsole(EditorSession& session, DocumentFiles& files, EditorInputRouter& input, TileLod& tileLod)
- Creates the commands of an editor, with what they reach past the public interface of the session.
- ~EditorDebugConsole()
- EditorDebugConsole(const EditorDebugConsole&) deleted
Public functions
- auto operator=(const EditorDebugConsole&) -> EditorDebugConsole& deleted
- void ReadStartupCommands()
- Takes the commands given on the command line by
/console <command>, they're run from the second frame. - void Update()
- Runs the commands from the command line that are due, adds up the frame statistics and moves the view, every frame.
- auto Execute(StringView line) -> bool
- Runs a debug command, returns
falseif it's unknown or it failed. -
auto GetLodMode() const -> std::
int32_t - Returns whether the images of the layers from far away are forced on (1) or off (0) by
/lod, -1 by the zoom as usual.