foundry-vtt-types
foundry-vtt-types copied to clipboard
Implement Regions
All files related to regions. Requires #2571 and many steps will involve #2572
- [ ] Core document implementation
- [ ] Add
resources/app/common/documents/region.mjs - [ ] Add
resources/app/common/documents/region-behavior.mjs - [ ] Add
resources/app/client/data/documents/region.js - [ ] Add
resources/app/client/data/documents/region-behavior.js
- [ ] Add
- [ ] Secondary document updates
- [ ] Update BaseScene
- [ ] Update BaseToken
- [ ] Update TokenDocument
- [ ] Applications
- [ ] Add
resources/app/client-esm/applications/sheets/region-behavior-config.mjs - [ ] Add
resources/app/client-esm/applications/sheets/region-config.mjs
- [ ] Add
- [ ] Canvas Layers
- [ ] Add
resources/app/client/pixi/layers/placeables/regions.js - [ ] Add
resources/app/client/pixi/placeables/region.js
- [ ] Add
- [ ] Shaders
- [ ] Add
resources/app/client/pixi/webgl/shaders/region/base.js - [ ] Add
resources/app/client/pixi/webgl/shaders/region/adjust-darkness-level.js - [ ] Add
resources/app/client/pixi/webgl/shaders/region/highlight.js
- [ ] Add
Update regions in resources/app/client/data/documents/token.d.mts when RegionDocument is implemented.
Document has some functions that should reference embedded document types rather than all document types, but since the const currently includes regions they throw errors. There are TODOs marking these spots that should be revisited once this ticket is tackled.
Also, need to update the appropriate space in CONFIG and types in common/documents/_types.d.mts
I added a stub in src/foundry/client/pixi/placeables/region.d.mts for the time being.
I'll see about getting this started today