35 lines
800 B
TypeScript
35 lines
800 B
TypeScript
/**
|
|
* Copyright (c) 2026 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
/**
|
|
* Interface for the in-game developer console.
|
|
*/
|
|
interface ConsoleNamespace {
|
|
/**
|
|
* Prints one or more values to the in-game console, separated by tabs.
|
|
* Each argument is coerced to a string before printing.
|
|
*
|
|
* @param args - Values to print.
|
|
*
|
|
* @example
|
|
* Console.print("x =", player.x, "y =", player.y);
|
|
*/
|
|
print(...args: unknown[]): void;
|
|
|
|
/**
|
|
* Whether the in-game console overlay is currently visible.
|
|
* Set to `true` to show the console, `false` to hide it.
|
|
*
|
|
* @example
|
|
* Console.visible = true;
|
|
*/
|
|
visible: boolean;
|
|
}
|
|
|
|
/** In-game developer console. */
|
|
declare var Console: ConsoleNamespace;
|