Expand description
Developer console — command dispatcher, log ring-buffer, expression evaluator, auto-complete and history.
Structs§
- Command
Auto Complete - Tab-completion engine: prefix-matches command names.
- Command
History - Stores the last N typed commands for up/down arrow recall.
- Command
Output - The result returned by a command handler.
- Command
Registration - Metadata and handler for a registered command.
- Command
Registry - Holds all registered commands and dispatches them.
- Console
Filter - Controls which log entries are visible.
- Console
Line - A single log entry.
- Console
Printer - Renders the console to a box-drawing ASCII string.
- Console
Sink - A sink that can receive log records from the
logcrate. Callers hold a reference and push into the DevConsole. - Console
State - The mutable game/engine state that console commands can inspect or modify.
In a real engine this would hold references; here we use owned copies so
the struct is
'staticand thread-safe. - DevConsole
- The developer console: log viewer + command input.
Enums§
- LogLevel
- Severity level for console log entries.
Functions§
- eval_
expression - Evaluate a simple infix mathematical expression. Supports: + - * / ^ ( ) sin cos tan sqrt abs pi e