Files
Foundry-VTT-Docker/resources/app/client/data/collections/tables.js
2025-01-04 00:34:03 +01:00

42 lines
1.1 KiB
JavaScript

/**
* The singleton collection of RollTable documents which exist within the active World.
* This Collection is accessible within the Game object as game.tables.
* @extends {WorldCollection}
*
* @see {@link RollTable} The RollTable document
* @see {@link RollTableDirectory} The RollTableDirectory sidebar directory
*/
class RollTables extends WorldCollection {
/* -------------------------------------------- */
/* Properties */
/* -------------------------------------------- */
/** @override */
static documentName = "RollTable";
/* -------------------------------------------- */
/** @override */
get directory() {
return ui.tables;
}
/* -------------------------------------------- */
/**
* Register world settings related to RollTable documents
*/
static registerSettings() {
// Show Player Cursors
game.settings.register("core", "animateRollTable", {
name: "TABLE.AnimateSetting",
hint: "TABLE.AnimateSettingHint",
scope: "world",
config: true,
type: new foundry.data.fields.BooleanField({initial: true})
});
}
}