Return a reference to the Scene which is currently active
Return the current Scene target. This is the viewed scene if the canvas is active, otherwise it is the currently active scene.
Return a reference to the Scene which is currently viewed
Return a reference to the SidebarDirectory application for this WorldCollection.
A reference to the Document class definition which is contained within this DocumentCollection.
The Collection class name
Return a reference to the singleton instance of this WorldCollection, or null if it has not yet been created.
Return an array of currently registered sheet classes for this Document type.
Handle preloading the art assets for a Scene
The Scene id to begin loading
Trigger other connected clients to also preload Scene resources
Apply data transformations when importing a Document from a Compendium pack
The source Document, or a plain data object
Additional options which modify how the document is imported
The processed data ready for world Document creation
Import a Document from a Compendium collection, adding it to the current World.
The CompendiumCollection instance from which to import
The ID of the compendium entry to import
The imported Document instance
Obtain a temporary Document instance for a document id which currently has invalid source data.
A document ID with invalid source data.
An in-memory instance for the invalid Document
Render any Applications associated with this DocumentCollection.
Update all objects in this DocumentCollection with a provided transformation. Conditionally filter to only apply to Entities which match a certain condition.
An object of data or function to apply to all matched objects
A function which tests whether to target each object
An array of updated data once the operation is complete
Preliminary actions taken before a set of Documents in this Collection are created.
An Array of created data objects
Options which modified the creation operation
The ID of the User who triggered the operation
Follow-up actions taken after a set of Documents in this Collection are created.
An Array of created Documents
An Array of created data objects
Options which modified the creation operation
The ID of the User who triggered the operation
Preliminary actions taken before a set of Documents in this Collection are updated.
An Array of incremental data objects
Options which modified the update operation
The ID of the User who triggered the operation
Follow-up actions taken after a set of Documents in this Collection are updated.
An Array of updated Documents
An Array of incremental data objects
Options which modified the update operation
The ID of the User who triggered the operation
Preliminary actions taken before a set of Documents in this Collection are deleted.
An Array of document IDs being deleted
Options which modified the deletion operation
The ID of the User who triggered the operation
Follow-up actions taken after a set of Documents in this Collection are deleted.
An Array of deleted Documents
An Array of document IDs being deleted
Options which modified the deletion operation
The ID of the User who triggered the operation
Register a Document sheet class as a candidate which can be used to display Documents of a given type. See DocumentSheetConfig.registerSheet for details.
Arguments forwarded to the DocumentSheetConfig.registerSheet method
Unregister a Document sheet class, removing it from the list of available sheet Applications to use. See DocumentSheetConfig.unregisterSheet for detauls.
Arguments forwarded to the DocumentSheetConfig.unregisterSheet method
Handle requests pulling the current User to a specific Scene
An Array of application references which will be automatically updated when the collection content changes
Record the set of document ids where the Document was not initialized because of invalid source data
The singleton collection of Scene documents which exist within the active World. This Collection is accessible within the Game object as game.scenes.
Scene The Scene document
SceneDirectory The SceneDirectory sidebar directory