Files
2025-01-04 00:34:03 +01:00

22 lines
616 B
JavaScript

/**
* The singleton collection of FogExploration documents which exist within the active World.
* @extends {WorldCollection}
* @see {@link FogExploration} The FogExploration document
*/
class FogExplorations extends WorldCollection {
static documentName = "FogExploration";
/**
* Activate Socket event listeners to handle for fog resets
* @param {Socket} socket The active web socket connection
* @internal
*/
static _activateSocketListeners(socket) {
socket.on("resetFog", ({sceneId}) => {
if ( sceneId === canvas.id ) {
canvas.fog._handleReset();
}
});
}
}