@league-of-foundry-developers/foundry-vtt-types 0.8.9-8 → 9.242.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -27
- package/index.d.ts +2 -2
- package/package.json +34 -15
- package/src/foundry/common/abstract/document.mjs.d.ts +24 -10
- package/src/foundry/common/config.mjs/index.d.ts +1 -0
- package/src/foundry/common/config.mjs/releaseData.d.ts +98 -0
- package/src/foundry/common/constants.mjs.d.ts +403 -213
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +36 -29
- package/src/foundry/common/data/data.mjs/actorData.d.ts +32 -21
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +165 -0
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +45 -124
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +49 -77
- package/src/foundry/common/data/data.mjs/animationData.d.ts +17 -9
- package/src/foundry/common/data/data.mjs/cardData.d.ts +265 -0
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +66 -0
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +238 -0
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +51 -39
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +18 -11
- package/src/foundry/common/data/data.mjs/combatData.d.ts +51 -25
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +48 -30
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +8 -7
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +68 -67
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +21 -25
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +24 -23
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +23 -16
- package/src/foundry/common/data/data.mjs/folderData.d.ts +28 -25
- package/src/foundry/common/data/data.mjs/index.d.ts +5 -0
- package/src/foundry/common/data/data.mjs/itemData.d.ts +26 -18
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +24 -23
- package/src/foundry/common/data/data.mjs/lightData.d.ts +228 -0
- package/src/foundry/common/data/data.mjs/macroData.d.ts +52 -35
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +41 -38
- package/src/foundry/common/data/data.mjs/noteData.d.ts +47 -37
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +55 -26
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +32 -16
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +7 -11
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +30 -24
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +132 -111
- package/src/foundry/common/data/data.mjs/settingData.d.ts +11 -8
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +30 -26
- package/src/foundry/common/data/data.mjs/tileData.d.ts +43 -36
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +10 -9
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +6 -3
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +105 -157
- package/src/foundry/common/data/data.mjs/userData.d.ts +118 -33
- package/src/foundry/common/data/data.mjs/videoData.d.ts +9 -8
- package/src/foundry/common/data/data.mjs/wallData.d.ts +67 -39
- package/src/foundry/common/data/fields.mjs.d.ts +180 -83
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +9 -3
- package/src/foundry/common/documents.mjs/baseActor.d.ts +17 -45
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +38 -0
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +3 -1
- package/src/foundry/common/documents.mjs/baseCard.d.ts +62 -0
- package/src/foundry/common/documents.mjs/baseCards.d.ts +39 -0
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +5 -2
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +9 -2
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +11 -1
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +4 -3
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +10 -1
- package/src/foundry/common/documents.mjs/baseItem.d.ts +11 -29
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +4 -1
- package/src/foundry/common/documents.mjs/baseNote.d.ts +2 -2
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +1 -0
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +2 -1
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseScene.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +10 -3
- package/src/foundry/common/documents.mjs/baseTile.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseToken.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseUser.d.ts +7 -1
- package/src/foundry/common/documents.mjs/baseWall.d.ts +7 -10
- package/src/foundry/common/documents.mjs/index.d.ts +3 -0
- package/src/foundry/common/module.mjs.d.ts +3 -0
- package/src/foundry/common/packages.mjs/moduleData.d.ts +12 -9
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +24 -24
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +27 -21
- package/src/foundry/common/packages.mjs/packageData.d.ts +108 -82
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +18 -11
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +16 -15
- package/src/foundry/common/packages.mjs/systemData.d.ts +21 -20
- package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +3 -3
- package/src/foundry/common/packages.mjs/worldData.d.ts +29 -18
- package/src/foundry/common/types.mjs.d.ts +95 -0
- package/src/foundry/common/utils/geometry.mjs.d.ts +148 -0
- package/src/foundry/common/utils/helpers.mjs.d.ts +64 -39
- package/src/foundry/common/utils/module.mjs.d.ts +1 -0
- package/src/foundry/common/utils/primitives.mjs.d.ts +99 -16
- package/src/foundry/foundry.js/application.d.ts +2 -2
- package/src/foundry/foundry.js/applications/filePicker.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplication.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +104 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +1 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/lightConfig.d.ts +5 -79
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +5 -5
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +5 -8
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/index.d.ts +1 -0
- package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +257 -0
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +8 -9
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +6 -6
- package/src/foundry/foundry.js/applications/sidebarTab.d.ts +1 -1
- package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +7 -6
- package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/cardsDirectory.d.ts +7 -0
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/index.d.ts +1 -0
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/playlistDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/audioContainer.d.ts +28 -10
- package/src/foundry/foundry.js/avSettings.d.ts +7 -7
- package/src/foundry/foundry.js/canvas.d.ts +148 -46
- package/src/foundry/foundry.js/canvasAnimation.d.ts +31 -8
- package/src/foundry/foundry.js/canvasDocumentMixin.d.ts +7 -0
- package/src/foundry/foundry.js/clientDocumentMixin.d.ts +45 -91
- package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +3 -2
- package/src/foundry/foundry.js/clientDocuments/actor.d.ts +3 -7
- package/src/foundry/foundry.js/clientDocuments/canvasDocuments/ambientSoundDocument.d.ts +1 -6
- package/src/foundry/foundry.js/clientDocuments/card.d.ts +133 -0
- package/src/foundry/foundry.js/clientDocuments/cards.d.ts +375 -0
- package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +11 -10
- package/src/foundry/foundry.js/clientDocuments/combat.d.ts +46 -48
- package/src/foundry/foundry.js/clientDocuments/combatant.d.ts +15 -18
- package/src/foundry/foundry.js/clientDocuments/folder.d.ts +4 -6
- package/src/foundry/foundry.js/clientDocuments/index.d.ts +2 -0
- package/src/foundry/foundry.js/clientDocuments/item.d.ts +3 -4
- package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +4 -3
- package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/scene.d.ts +30 -23
- package/src/foundry/foundry.js/clientKeybindings.d.ts +309 -0
- package/src/foundry/foundry.js/clientSettings.d.ts +11 -9
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/cardStacks.d.ts +9 -0
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/index.d.ts +1 -0
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +3 -2
- package/src/foundry/foundry.js/collisionResult.d.ts +60 -0
- package/src/foundry/foundry.js/config.d.ts +484 -907
- package/src/foundry/foundry.js/dragDrop.d.ts +2 -2
- package/src/foundry/foundry.js/game.d.ts +171 -50
- package/src/foundry/foundry.js/gamepadManager.d.ts +41 -0
- package/src/foundry/foundry.js/handlebarsHelpers.d.ts +4 -4
- package/src/foundry/foundry.js/hooks.d.ts +210 -84
- package/src/foundry/foundry.js/imageHelper.d.ts +26 -2
- package/src/foundry/foundry.js/keyboardManager.d.ts +165 -213
- package/src/foundry/foundry.js/mouseManager.d.ts +18 -0
- package/src/foundry/foundry.js/newUserExperience.d.ts +34 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainer.d.ts +8 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainers/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainers/primaryCanvasGroup.d.ts +42 -0
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/gridLayer.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/index.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +3 -3
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/{effectsLayer.d.ts → weatherLayer.d.ts} +7 -7
- package/src/foundry/foundry.js/pixi/containers/effectsCanvasGroup.d.ts +29 -0
- package/src/foundry/foundry.js/pixi/containers/index.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/containers/interfaceCanvasGroup.d.ts +27 -0
- package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +3 -3
- package/src/foundry/foundry.js/pixi/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/points/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/points/wallEndpoint.d.ts +92 -0
- package/src/foundry/foundry.js/pixi/polygons/index.d.ts +2 -1
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygon.d.ts +98 -0
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/clockwiseSweepPolygon.d.ts +388 -0
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShader.d.ts +11 -37
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShader.d.ts +114 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveBackgroundShader.d.ts +57 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShader.d.ts +47 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/bewitchingWaveColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/chromaColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/emanationColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/energyFieldColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fairyLightColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fogColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/ghostLightColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/hexaDomeColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/index.d.ts +5 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/lightDomeColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/pulseColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/radialRainbowColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/sunburstColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/swirlingRainbowColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/torchColorationShader.d.ts +3 -2
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/vortexColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/waveColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShader.d.ts +63 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/bewitchingWaveIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/blackHoleIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/fairyLightIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/ghostLightIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/index.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/pulseIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/roilingIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/sunburstIlluminationShader.d.ts +1 -2
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/torchIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/vortexIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/waveIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/index.d.ts +5 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/baseSamplerShader.d.ts +22 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/index.d.ts +3 -4
- package/src/foundry/foundry.js/pixi/texts/preciseText.d.ts +10 -2
- package/src/foundry/foundry.js/pointSource.d.ts +59 -328
- package/src/foundry/foundry.js/pointSources/index.d.ts +3 -0
- package/src/foundry/foundry.js/pointSources/lightSource.d.ts +417 -0
- package/src/foundry/foundry.js/pointSources/soundSource.d.ts +46 -0
- package/src/foundry/foundry.js/pointSources/visionSource.d.ts +125 -0
- package/src/foundry/foundry.js/polygonEdge.d.ts +26 -0
- package/src/foundry/foundry.js/polygonVertex.d.ts +89 -0
- package/src/foundry/foundry.js/quadtreeCulling.d.ts +11 -0
- package/src/foundry/foundry.js/ray.d.ts +156 -162
- package/src/foundry/foundry.js/rays/index.d.ts +1 -0
- package/src/foundry/foundry.js/rays/sightRay.d.ts +34 -0
- package/src/foundry/foundry.js/roll.d.ts +49 -65
- package/src/foundry/foundry.js/rollTerm.d.ts +7 -4
- package/src/foundry/foundry.js/rollTerms/diceTerm.d.ts +4 -22
- package/src/foundry/foundry.js/rollTerms/mathTerm.d.ts +3 -0
- package/src/foundry/foundry.js/rollTerms/parentheticalTerm.d.ts +3 -0
- package/src/foundry/foundry.js/rollTerms/poolTerm.d.ts +3 -5
- package/src/foundry/foundry.js/rollTerms/stringTerm.d.ts +4 -1
- package/src/foundry/foundry.js/screenCulling.d.ts +19 -0
- package/src/foundry/foundry.js/searchFilter.d.ts +1 -1
- package/src/foundry/foundry.js/specialEffect.d.ts +1 -1
- package/src/foundry/foundry.js/textEditor.d.ts +1 -1
- package/src/foundry/index.d.ts +29 -26
- package/src/types/utils.d.ts +11 -3
- package/src/foundry/foundry.js/pixi/polygons/sourcePolygon.d.ts +0 -25
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShader.d.ts +0 -21
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/chromaColorationShader.d.ts +0 -18
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/emanationColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/energyFieldColorationShader.d.ts +0 -18
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/fogColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/hexaDomeColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/lightDomeColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardIlluminationShader.d.ts +0 -22
@@ -0,0 +1,265 @@
|
|
1
|
+
import type {
|
2
|
+
ConfiguredData,
|
3
|
+
ConfiguredFlags,
|
4
|
+
ConfiguredSource,
|
5
|
+
FieldReturnType,
|
6
|
+
PropertiesToSource
|
7
|
+
} from '../../../../types/helperTypes.js';
|
8
|
+
import type DocumentData from '../../abstract/data.mjs.js';
|
9
|
+
import * as documents from '../../documents.mjs';
|
10
|
+
import * as fields from '../fields.mjs';
|
11
|
+
import type { CardFaceData, CardFaceDataConstructorData } from './cardFaceData.js';
|
12
|
+
|
13
|
+
interface CardDataSchema extends DocumentSchema {
|
14
|
+
_id: fields.DocumentId;
|
15
|
+
name: fields.RequiredString;
|
16
|
+
description: fields.BlankString;
|
17
|
+
type: FieldReturnType<
|
18
|
+
fields.RequiredString,
|
19
|
+
{
|
20
|
+
default: () => string;
|
21
|
+
validate: (t: unknown) => boolean;
|
22
|
+
validationError: '{name} {field} "{value}" is not a valid type';
|
23
|
+
}
|
24
|
+
>;
|
25
|
+
data: fields.SystemDataField;
|
26
|
+
suit: fields.BlankString;
|
27
|
+
value: fields.NumericField;
|
28
|
+
back: DocumentField<CardFaceData> & {
|
29
|
+
type: typeof CardFaceData;
|
30
|
+
required: true;
|
31
|
+
default: Record<string, never>;
|
32
|
+
};
|
33
|
+
faces: DocumentField<CardFaceData[]> & {
|
34
|
+
type: [typeof CardFaceData];
|
35
|
+
required: true;
|
36
|
+
default: [];
|
37
|
+
};
|
38
|
+
face: DocumentField<number> & {
|
39
|
+
type: typeof Number;
|
40
|
+
required: true;
|
41
|
+
default: null;
|
42
|
+
nullable: true;
|
43
|
+
validate: (f: unknown) => boolean;
|
44
|
+
validationError: '{name} {field} "{value}" must have a non-negative integer value or null';
|
45
|
+
};
|
46
|
+
drawn: fields.BooleanField;
|
47
|
+
origin: fields.DocumentId;
|
48
|
+
width: fields.PositiveIntegerField;
|
49
|
+
height: fields.PositiveIntegerField;
|
50
|
+
rotation: fields.AngleField;
|
51
|
+
sort: fields.IntegerSortField;
|
52
|
+
flags: fields.ObjectField;
|
53
|
+
}
|
54
|
+
|
55
|
+
interface CardDataBaseProperties {
|
56
|
+
/**
|
57
|
+
* The _id which uniquely identifies this Card document
|
58
|
+
* @defaultValue `null`
|
59
|
+
*/
|
60
|
+
_id: string | null;
|
61
|
+
|
62
|
+
/** The text name of this card */
|
63
|
+
name: string;
|
64
|
+
|
65
|
+
/**
|
66
|
+
* A text description of this card which applies to all faces
|
67
|
+
* @defaultValue `""`
|
68
|
+
*/
|
69
|
+
description: string;
|
70
|
+
|
71
|
+
/**
|
72
|
+
* A category of card (for example, a suit) to which this card belongs
|
73
|
+
* @defaultValue `game.system.documentTypes.Card[0]`
|
74
|
+
*/
|
75
|
+
type: string;
|
76
|
+
|
77
|
+
/**
|
78
|
+
* Game system data which is defined by the system template.json model
|
79
|
+
* @defaultValue template from template.json for type or `{}`
|
80
|
+
*/
|
81
|
+
data: object;
|
82
|
+
|
83
|
+
/**
|
84
|
+
* An optional suit designation which is used by default sorting
|
85
|
+
* @defaultValue `""`
|
86
|
+
*/
|
87
|
+
suit: string;
|
88
|
+
|
89
|
+
/** An optional numeric value of the card which is used by default sorting */
|
90
|
+
value: number | null | undefined;
|
91
|
+
|
92
|
+
/**
|
93
|
+
* An object of face data which describes the back of this card
|
94
|
+
* @defaultValue `new CardFaceData({})`
|
95
|
+
*/
|
96
|
+
back: CardFaceData;
|
97
|
+
|
98
|
+
/**
|
99
|
+
* An array of face data which represent displayable faces of this card
|
100
|
+
* @defaultValue `[]`
|
101
|
+
*/
|
102
|
+
faces: CardFaceData[];
|
103
|
+
|
104
|
+
/**
|
105
|
+
* The index of the currently displayed face
|
106
|
+
* @defaultValue `null`
|
107
|
+
*/
|
108
|
+
face: number | null;
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Whether this card is currently drawn from its source deck
|
112
|
+
* @defaultValue `false`
|
113
|
+
*/
|
114
|
+
drawn: boolean;
|
115
|
+
|
116
|
+
/**
|
117
|
+
* The document ID of the origin deck to which this card belongs
|
118
|
+
* @defaultValue `null`
|
119
|
+
*/
|
120
|
+
origin: string | null;
|
121
|
+
|
122
|
+
/** The visible width of this card */
|
123
|
+
width: number | undefined;
|
124
|
+
|
125
|
+
/** The visible height of this card */
|
126
|
+
height: number | undefined;
|
127
|
+
|
128
|
+
/**
|
129
|
+
* The angle of rotation of this card
|
130
|
+
* @defaultValue `360`
|
131
|
+
*/
|
132
|
+
rotation: number;
|
133
|
+
|
134
|
+
/**
|
135
|
+
* The sort order of this card relative to others in the same stack
|
136
|
+
* @defaultValue `0`
|
137
|
+
*/
|
138
|
+
sort: number;
|
139
|
+
|
140
|
+
/**
|
141
|
+
* An object of optional key/value flags
|
142
|
+
* @defaultValue `{}`
|
143
|
+
*/
|
144
|
+
flags: ConfiguredFlags<'Card'>;
|
145
|
+
}
|
146
|
+
|
147
|
+
interface CardDataConstructorData {
|
148
|
+
/**
|
149
|
+
* The _id which uniquely identifies this Card document
|
150
|
+
* @defaultValue `null`
|
151
|
+
*/
|
152
|
+
_id?: string | null | undefined;
|
153
|
+
|
154
|
+
/** The text name of this card */
|
155
|
+
name: string;
|
156
|
+
|
157
|
+
/**
|
158
|
+
* A text description of this card which applies to all faces
|
159
|
+
* @defaultValue `""`
|
160
|
+
*/
|
161
|
+
description?: string | null | undefined;
|
162
|
+
|
163
|
+
/**
|
164
|
+
* A category of card (for example, a suit) to which this card belongs
|
165
|
+
* @defaultValue `game.system.documentTypes.Card[0]`
|
166
|
+
*/
|
167
|
+
type?: CardDataSource['type'] | null | undefined;
|
168
|
+
|
169
|
+
/**
|
170
|
+
* Game system data which is defined by the system template.json model
|
171
|
+
* @defaultValue template from template.json for type or `{}`
|
172
|
+
*/
|
173
|
+
data?: DeepPartial<CardDataSource['data']> | null | undefined;
|
174
|
+
|
175
|
+
/**
|
176
|
+
* An optional suit designation which is used by default sorting
|
177
|
+
* @defaultValue `""`
|
178
|
+
*/
|
179
|
+
suit?: string | null | undefined;
|
180
|
+
|
181
|
+
/** An optional numeric value of the card which is used by default sorting */
|
182
|
+
value?: number | null | undefined;
|
183
|
+
|
184
|
+
/**
|
185
|
+
* An object of face data which describes the back of this card
|
186
|
+
* @defaultValue `new CardFaceData({})`
|
187
|
+
*/
|
188
|
+
back?: CardFaceDataConstructorData | null | undefined;
|
189
|
+
|
190
|
+
/**
|
191
|
+
* An array of face data which represent displayable faces of this card
|
192
|
+
* @defaultValue `[]`
|
193
|
+
*/
|
194
|
+
faces?: CardFaceDataConstructorData[] | null | undefined;
|
195
|
+
|
196
|
+
/**
|
197
|
+
* The index of the currently displayed face
|
198
|
+
* @defaultValue `null`
|
199
|
+
*/
|
200
|
+
face?: number | null | undefined;
|
201
|
+
|
202
|
+
/**
|
203
|
+
* Whether this card is currently drawn from its source deck
|
204
|
+
* @defaultValue `false`
|
205
|
+
*/
|
206
|
+
drawn?: boolean | null | undefined;
|
207
|
+
|
208
|
+
/**
|
209
|
+
* The document ID of the origin deck to which this card belongs
|
210
|
+
* @defaultValue `null`
|
211
|
+
*/
|
212
|
+
origin?: string | null | undefined;
|
213
|
+
|
214
|
+
/** The visible width of this card */
|
215
|
+
width?: number | null | undefined;
|
216
|
+
|
217
|
+
/** The visible height of this card */
|
218
|
+
height?: number | null | undefined;
|
219
|
+
|
220
|
+
/**
|
221
|
+
* The angle of rotation of this card
|
222
|
+
* @defaultValue `360`
|
223
|
+
*/
|
224
|
+
rotation?: number | null | undefined;
|
225
|
+
|
226
|
+
/**
|
227
|
+
* The sort order of this card relative to others in the same stack
|
228
|
+
* @defaultValue `0`
|
229
|
+
*/
|
230
|
+
sort?: number | null | undefined;
|
231
|
+
|
232
|
+
/**
|
233
|
+
* An object of optional key/value flags
|
234
|
+
* @defaultValue `{}`
|
235
|
+
*/
|
236
|
+
flags?: ConfiguredFlags<'Card'> | null | undefined;
|
237
|
+
}
|
238
|
+
|
239
|
+
type CardDataBaseSource = PropertiesToSource<CardDataBaseProperties>;
|
240
|
+
type CardDataProperties = CardDataBaseProperties & ConfiguredData<'Card'>;
|
241
|
+
type CardDataSource = CardDataBaseSource & ConfiguredSource<'Card'>;
|
242
|
+
|
243
|
+
type DocumentDataConstructor = Pick<typeof DocumentData, keyof typeof DocumentData>;
|
244
|
+
|
245
|
+
interface CardDataConstructor extends DocumentDataConstructor {
|
246
|
+
new (data: CardDataConstructorData, document?: documents.BaseCard | null | undefined): CardData;
|
247
|
+
|
248
|
+
/** @override */
|
249
|
+
defineSchema(): CardDataSchema;
|
250
|
+
}
|
251
|
+
|
252
|
+
/**
|
253
|
+
* The data schema of a single Card document.
|
254
|
+
* @see BaseCard
|
255
|
+
*/
|
256
|
+
export type CardData = DocumentData<
|
257
|
+
CardDataSchema,
|
258
|
+
CardDataProperties,
|
259
|
+
CardDataSource,
|
260
|
+
CardDataConstructorData,
|
261
|
+
documents.BaseCard
|
262
|
+
> &
|
263
|
+
CardDataProperties;
|
264
|
+
|
265
|
+
export const CardData: CardDataConstructor;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import type { PropertiesToSource } from '../../../../types/helperTypes.js';
|
2
|
+
import type DocumentData from '../../abstract/data.mjs.js';
|
3
|
+
import * as fields from '../fields.mjs';
|
4
|
+
|
5
|
+
interface CardFaceDataSchema extends DocumentSchema {
|
6
|
+
name: fields.BlankString;
|
7
|
+
text: fields.BlankString;
|
8
|
+
img: fields.VideoField;
|
9
|
+
}
|
10
|
+
|
11
|
+
interface CardFaceDataProperties {
|
12
|
+
/**
|
13
|
+
* A name for this card face
|
14
|
+
* @defaultValue `""`
|
15
|
+
*/
|
16
|
+
name: string;
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Displayed text that belongs to this face
|
20
|
+
* @defaultValue `""`
|
21
|
+
*/
|
22
|
+
text: string;
|
23
|
+
|
24
|
+
/** A displayed image or video file which depicts the face */
|
25
|
+
img: string | null | undefined;
|
26
|
+
}
|
27
|
+
|
28
|
+
interface CardFaceDataConstructorData {
|
29
|
+
/**
|
30
|
+
* A name for this card face
|
31
|
+
* @defaultValue `""`
|
32
|
+
*/
|
33
|
+
name?: string | null | undefined;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Displayed text that belongs to this face
|
37
|
+
* @defaultValue `""`
|
38
|
+
*/
|
39
|
+
text?: string | null | undefined;
|
40
|
+
|
41
|
+
/** A displayed image or video file which depicts the face */
|
42
|
+
img?: string | null | undefined;
|
43
|
+
}
|
44
|
+
|
45
|
+
/**
|
46
|
+
* The data schema of a single card face which belongs to a specific Card.
|
47
|
+
* @see CardData
|
48
|
+
*/
|
49
|
+
export class CardFaceData extends DocumentData<
|
50
|
+
CardFaceDataSchema,
|
51
|
+
CardFaceDataProperties,
|
52
|
+
PropertiesToSource<CardFaceDataProperties>,
|
53
|
+
CardFaceDataConstructorData
|
54
|
+
> {
|
55
|
+
/** @override */
|
56
|
+
static defineSchema(): CardFaceDataSchema;
|
57
|
+
|
58
|
+
/**
|
59
|
+
* The default icon used for a card face that does not have a custom image set
|
60
|
+
* @defaultValue `"icons/svg/card-joker.svg"`
|
61
|
+
*/
|
62
|
+
static DEFAULT_ICON: string;
|
63
|
+
}
|
64
|
+
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
66
|
+
export interface CardFaceData extends CardFaceDataProperties {}
|
@@ -0,0 +1,238 @@
|
|
1
|
+
import {
|
2
|
+
ConfiguredData,
|
3
|
+
ConfiguredDocumentClass,
|
4
|
+
ConfiguredFlags,
|
5
|
+
ConfiguredSource,
|
6
|
+
FieldReturnType,
|
7
|
+
PropertiesToSource
|
8
|
+
} from '../../../../types/helperTypes.js';
|
9
|
+
import type EmbeddedCollection from '../../abstract/embedded-collection.mjs.js';
|
10
|
+
import { DocumentData } from '../../abstract/module.mjs.js';
|
11
|
+
import * as documents from '../../documents.mjs';
|
12
|
+
import * as fields from '../fields.mjs';
|
13
|
+
|
14
|
+
interface CardsDataSchema extends DocumentSchema {
|
15
|
+
_id: fields.DocumentId;
|
16
|
+
name: fields.RequiredString;
|
17
|
+
type: FieldReturnType<
|
18
|
+
fields.RequiredString,
|
19
|
+
{
|
20
|
+
default: () => string;
|
21
|
+
validate: (t: unknown) => boolean;
|
22
|
+
validationError: '{name} {field} "{value}" is not a valid type';
|
23
|
+
}
|
24
|
+
>;
|
25
|
+
description: fields.BlankString;
|
26
|
+
img: FieldReturnType<fields.VideoField, { default: () => string }>;
|
27
|
+
data: fields.SystemDataField;
|
28
|
+
cards: fields.EmbeddedCollectionField<typeof documents.BaseCard>;
|
29
|
+
width: fields.PositiveIntegerField;
|
30
|
+
heigth: fields.PositiveIntegerField;
|
31
|
+
rotation: fields.AngleField;
|
32
|
+
displayCount: fields.BooleanField;
|
33
|
+
folder: fields.ForeignDocumentField<{ type: typeof documents.BaseFolder }>;
|
34
|
+
sort: fields.IntegerSortField;
|
35
|
+
permission: fields.DocumentPermissions;
|
36
|
+
flags: fields.ObjectField;
|
37
|
+
}
|
38
|
+
|
39
|
+
interface CardsDataBaseProperties {
|
40
|
+
/**
|
41
|
+
* The _id which uniquely identifies this stack of Cards document
|
42
|
+
* @defaultValue `null`
|
43
|
+
*/
|
44
|
+
_id: string | null;
|
45
|
+
|
46
|
+
/** The text name of this stack */
|
47
|
+
name: string;
|
48
|
+
|
49
|
+
/**
|
50
|
+
* The type of this stack, in BaseCards.metadata.types
|
51
|
+
* @defaultValue `game.system.documentTypes.Cards[0]`
|
52
|
+
*/
|
53
|
+
type: string;
|
54
|
+
|
55
|
+
/**
|
56
|
+
* A text description of this stack
|
57
|
+
* @defaultValue `""`
|
58
|
+
*/
|
59
|
+
description: string;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* An image or video which is used to represent the stack of cards
|
63
|
+
* @defaultValue `CardsData.DEFAULT_ICON`
|
64
|
+
*/
|
65
|
+
img: string | null;
|
66
|
+
|
67
|
+
/**
|
68
|
+
* Game system data which is defined by the system template.json model
|
69
|
+
* @defaultValue template from template.json for type or `{}`
|
70
|
+
*/
|
71
|
+
data: object;
|
72
|
+
|
73
|
+
/**
|
74
|
+
* A collection of Card documents which currently belong to this stack
|
75
|
+
* @defaultValue `new EmbeddedCollection(CardData, [], BaseCard.implementation)`
|
76
|
+
*/
|
77
|
+
cards: EmbeddedCollection<ConfiguredDocumentClass<typeof documents.BaseCard>, CardsData>;
|
78
|
+
|
79
|
+
/** The visible width of this stack */
|
80
|
+
width: number | undefined;
|
81
|
+
|
82
|
+
/** The visible height of this stack */
|
83
|
+
height: number | undefined;
|
84
|
+
|
85
|
+
/**
|
86
|
+
* The angle of rotation of this stack
|
87
|
+
* @defaultValue `360`
|
88
|
+
*/
|
89
|
+
rotation: number;
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Whether or not to publicly display the number of cards in this stack
|
93
|
+
* @defaultValue `false`
|
94
|
+
*/
|
95
|
+
displayCount: boolean;
|
96
|
+
|
97
|
+
/**
|
98
|
+
* The _id of a Folder which contains this document
|
99
|
+
* @defaultValue `null`
|
100
|
+
*/
|
101
|
+
folder: string | null;
|
102
|
+
|
103
|
+
/**
|
104
|
+
* The sort order of this stack relative to others in its parent collection
|
105
|
+
* @defaultValue `0`
|
106
|
+
*/
|
107
|
+
sort: number;
|
108
|
+
|
109
|
+
/**
|
110
|
+
* An object which configures user permissions to this stack
|
111
|
+
* @defaultValue `{ default: CONST.ENTITY_PERMISSIONS.NONE }`
|
112
|
+
*/
|
113
|
+
permission: Record<string, foundry.CONST.DOCUMENT_PERMISSION_LEVELS>;
|
114
|
+
|
115
|
+
/**
|
116
|
+
* An object of optional key/value flags
|
117
|
+
* @defaultValue `{}`
|
118
|
+
*/
|
119
|
+
flags: ConfiguredFlags<'Cards'>;
|
120
|
+
}
|
121
|
+
|
122
|
+
interface CardsDataConstructorData {
|
123
|
+
/**
|
124
|
+
* The _id which uniquely identifies this stack of Cards document
|
125
|
+
* @defaultValue `null`
|
126
|
+
*/
|
127
|
+
_id?: string | null | undefined;
|
128
|
+
|
129
|
+
/** The text name of this stack */
|
130
|
+
name: string;
|
131
|
+
|
132
|
+
/**
|
133
|
+
* The type of this stack, in BaseCards.metadata.types
|
134
|
+
* @defaultValue `game.system.documentTypes.Cards[0]`
|
135
|
+
*/
|
136
|
+
type?: CardsDataSource['type'] | null | undefined;
|
137
|
+
|
138
|
+
/**
|
139
|
+
* A text description of this stack
|
140
|
+
* @defaultValue `""`
|
141
|
+
*/
|
142
|
+
description?: string | null | undefined;
|
143
|
+
|
144
|
+
/**
|
145
|
+
* An image or video which is used to represent the stack of cards
|
146
|
+
* @defaultValue `CardsData.DEFAULT_ICON`
|
147
|
+
*/
|
148
|
+
img?: string | null | undefined;
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Game system data which is defined by the system template.json model
|
152
|
+
* @defaultValue template from template.json for type or `{}`
|
153
|
+
*/
|
154
|
+
data?: DeepPartial<CardsDataSource['data']> | null | undefined;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* A collection of Card documents which currently belong to this stack
|
158
|
+
* @defaultValue `new EmbeddedCollection(CardData, [], BaseCard.implementation)`
|
159
|
+
*/
|
160
|
+
cards?: ConstructorParameters<ConfiguredDocumentClass<typeof documents.BaseCard>>[0][] | null | undefined;
|
161
|
+
|
162
|
+
/** The visible width of this stack */
|
163
|
+
width?: number | null | undefined;
|
164
|
+
|
165
|
+
/** The visible height of this stack */
|
166
|
+
height?: number | null | undefined;
|
167
|
+
|
168
|
+
/**
|
169
|
+
* The angle of rotation of this stack
|
170
|
+
* @defaultValue `360`
|
171
|
+
*/
|
172
|
+
rotation?: number | null | undefined;
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Whether or not to publicly display the number of cards in this stack
|
176
|
+
* @defaultValue `false`
|
177
|
+
*/
|
178
|
+
displayCount?: boolean | null | undefined;
|
179
|
+
|
180
|
+
/**
|
181
|
+
* The _id of a Folder which contains this document
|
182
|
+
* @defaultValue `null`
|
183
|
+
*/
|
184
|
+
folder?: InstanceType<ConfiguredDocumentClass<typeof documents.BaseFolder>> | string | null | undefined;
|
185
|
+
|
186
|
+
/**
|
187
|
+
* The sort order of this stack relative to others in its parent collection
|
188
|
+
* @defaultValue `0`
|
189
|
+
*/
|
190
|
+
sort?: number | null | undefined;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* An object which configures user permissions to this stack
|
194
|
+
* @defaultValue `{ default: CONST.ENTITY_PERMISSIONS.NONE }`
|
195
|
+
*/
|
196
|
+
permission?: Record<string, foundry.CONST.DOCUMENT_PERMISSION_LEVELS> | null | undefined;
|
197
|
+
|
198
|
+
/**
|
199
|
+
* An object of optional key/value flags
|
200
|
+
* @defaultValue `{}`
|
201
|
+
*/
|
202
|
+
flags?: ConfiguredFlags<'Cards'> | null | undefined;
|
203
|
+
}
|
204
|
+
|
205
|
+
type CardsDataBaseSource = PropertiesToSource<CardsDataBaseProperties>;
|
206
|
+
type CardsDataProperties = CardsDataBaseProperties & ConfiguredData<'Cards'>;
|
207
|
+
type CardsDataSource = CardsDataBaseSource & ConfiguredSource<'Cards'>;
|
208
|
+
|
209
|
+
type DocumentDataConstructor = Pick<typeof DocumentData, keyof typeof DocumentData>;
|
210
|
+
|
211
|
+
interface CardsDataConstructor extends DocumentDataConstructor {
|
212
|
+
new (data: CardsDataConstructorData, document?: documents.BaseCards | null | undefined): CardsData;
|
213
|
+
|
214
|
+
/** @override */
|
215
|
+
defineSchema(): CardsDataSchema;
|
216
|
+
|
217
|
+
/**
|
218
|
+
* The default icon used for a cards stack that does not have a custom image set
|
219
|
+
* @defaultValue `"icons/svg/card-hand.svg"`
|
220
|
+
*/
|
221
|
+
DEFAULT_ICON: string;
|
222
|
+
}
|
223
|
+
|
224
|
+
/**
|
225
|
+
* The data schema of a stack of multiple Cards.
|
226
|
+
* Each stack can represent a Deck, a Hand, or a Pile.
|
227
|
+
* @see BaseCards
|
228
|
+
*/
|
229
|
+
export type CardsData = DocumentData<
|
230
|
+
CardsDataSchema,
|
231
|
+
CardsDataProperties,
|
232
|
+
CardsDataSource,
|
233
|
+
CardsDataConstructorData,
|
234
|
+
documents.BaseCards
|
235
|
+
> &
|
236
|
+
CardsDataProperties;
|
237
|
+
|
238
|
+
export const CardsData: CardsDataConstructor;
|