ScriptManager

Manages all scripts in the project.

Remarks

Auto importes all the Scripts in each file.

Author

Ansh Sharma

Hierarchy

  • ScriptManager

Properties

scripts: Script[] = []

Methods

  • A static method in the ScriptManager class that adds a new script to the scripts array.

    Parameters

    • script: Script

      An object representing a script to be added.

    Returns void

  • A static method in the ScriptManager class that removes a script from the scripts array.

    Parameters

    • script: Script

      An object representing the script to be removed. This method removes the specified script object from the scripts array.

    Returns void

  • A static method in the ScriptManager class that checks if a script has already been added to the scripts array.

    Returns

    • true if the script has already been added, false otherwise.

    Parameters

    • script: Script

      An object representing the script to check.

    Returns boolean

  • A static method in the ScriptManager class that returns a string containing the JavaScript code of all scripts that have been added to the scripts array and have a type of "inline".

    Returns

    • The JavaScript code of all inline scripts.

    Returns string

  • A static method in the ScriptManager class that returns an array containing all scripts that have been added to the scripts array and have a type of "external".

    Returns

    • An array of all external scripts.

    Returns Script[]

Constructors