Initial
This commit is contained in:
41
resources/app/client/data/collections/tables.js
Normal file
41
resources/app/client/data/collections/tables.js
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* 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})
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user