namespace gdjs { export namespace evtTools { /** * The namespace containing tools to interact with the debugger. * @namespace */ export namespace debuggerTools { /** * Stop the game execution. * @param instanceContainer - The current container. */ export const pause = function ( instanceContainer: gdjs.RuntimeInstanceContainer ) { instanceContainer.getGame().pause(true); }; /** * Logs a message to the console. * @param message - The message to log. * @param type - The type of log (info, warning or error). * @param group - The group of messages it belongs to. */ export const log = function ( message: string, type: 'info' | 'warning' | 'error', group: string ) { gdjs.Logger.getLoggerOutput().log(group, message, type, false); }; /** * Enable or disable the debug draw. * @param instanceContainer - The current container. * @param enableDebugDraw - true to enable the debug draw, false to disable it. * @param showHiddenInstances - true to apply the debug draw to hidden objects. * @param showPointsNames - true to show point names. * @param showCustomPoints - true to show custom points of Sprite objects. */ export const enableDebugDraw = function ( instanceContainer: gdjs.RuntimeInstanceContainer, enableDebugDraw: boolean, showHiddenInstances: boolean, showPointsNames: boolean, showCustomPoints: boolean ) { instanceContainer.enableDebugDraw( enableDebugDraw, showHiddenInstances, showPointsNames, showCustomPoints ); }; } } }