Showing the changes to libraries/script-engine/src/ScriptManagerScriptingInterface.h (1 of 8 files). Show all
Unified · Split
| @@ -644,6 +644,53 @@ signals: · 643 unmodified lines | |||
| 644 | */ | 644 | */ |
| 645 | void infoMessage(const QString& message, const QString& scriptName); | 645 | void infoMessage(const QString& message, const QString& scriptName); |
| 646 | 646 | ||
| 647 | /*@jsdoc | ||
| 648 | * Triggered when a client side entity script prints a message to the program log via {@link print}, {@link Script.print}, | ||
| 649 | * {@link console.log}, {@link console.debug}, {@link console.group}, {@link console.groupEnd}, {@link console.time}, or | ||
| 650 | * {@link console.timeEnd}. | ||
| 651 | * @function Script.printedMessage | ||
| 652 | * @param {string} message - The message. | ||
| 653 | * @param {string} fileName - Name of the file in which message was generated. Empty string when no file name is available. | ||
| 654 | * @param {number} lineNumber - Number of the line on which message was generated. -1 if there line number is not available. | ||
| 655 | * @param {Uuid} entityID - Entity ID. | ||
| 656 | * @returns {Signal} | ||
| 657 | */ | ||
| 658 | void printedEntityMessage(const QString& message, const QString& fileName, int lineNumber, const EntityItemID& entityID); | ||
| 659 | |||
| 660 | /*@jsdoc | ||
| 661 | * Triggered when a client side entity script generates an error, {@link console.error} or {@link console.exception} is called, or | ||
| 662 | * {@link console.assert} is called and fails. | ||
| 663 | * @function Script.errorMessage | ||
| 664 | * @param {string} message - The error message. | ||
| 665 | * @param {string} fileName - Name of the file in which message was generated. Empty string when no file name is available. | ||
| 666 | * @param {number} lineNumber - Number of the line on which message was generated. -1 if there line number is not available. | ||
| 667 | * @param {Uuid} entityID - Entity ID. | ||
| 668 | * @returns {Signal} | ||
| 669 | */ | ||
| 670 | void errorEntityMessage(const QString& message, const QString& fileName, int lineNumber, const EntityItemID& entityID); | ||
| 671 | |||
| 672 | /*@jsdoc | ||
| 673 | * Triggered when a client side entity script generates a warning or {@link console.warn} is called. | ||
| 674 | * @function Script.warningMessage | ||
| 675 | * @param {string} message - The warning message. | ||
| 676 | * @param {string} fileName - Name of the file in which message was generated. Empty string when no file name is available. | ||
| 677 | * @param {number} lineNumber - Number of the line on which message was generated. -1 if there line number is not available. | ||
| 678 | * @param {Uuid} entityID - Entity ID. | ||
| 679 | * @returns {Signal} | ||
| 680 | */ | ||
| 681 | void warningEntityMessage(const QString& message, const QString& fileName, int lineNumber, const EntityItemID& entityID); | ||
| 682 | |||
| 683 | /*@jsdoc | ||
| 684 | * Triggered when a client side entity script generates an information message or {@link console.info} is called. | ||
| 685 | * @function Script.infoMessage | ||
| 686 | * @param {string} message - The information message. | ||
| 687 | * @param {string} fileName - Name of the file in which message was generated. Empty string when no file name is available. | ||
| 688 | * @param {number} lineNumber - Number of the line on which message was generated. -1 if there line number is not available. | ||
| 689 | * @param {Uuid} entityID - Entity ID. | ||
| 690 | * @returns {Signal} | ||
| 691 | */ | ||
| 692 | void infoEntityMessage(const QString& message, const QString& fileName, int lineNumber, const EntityItemID& entityID); | ||
| 693 | |||
| 647 | /*@jsdoc | 694 | /*@jsdoc |
| 648 | * Triggered when the running state of the script changes, e.g., from running to stopping. | 695 | * Triggered when the running state of the script changes, e.g., from running to stopping. |
| 649 | * @function Script.runningStateChanged | 696 | * @function Script.runningStateChanged |