mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
[Feature] Transform Linked Actors (#2046)
* Added ability to transform linked actors * Updated to use the utils getWorldActor function * Animate change and fix error when converting to unlinked --------- Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
This commit is contained in:
parent
44dd3bd2e1
commit
98fedf3990
9 changed files with 101 additions and 32 deletions
23
daggerheart.d.ts
vendored
23
daggerheart.d.ts
vendored
|
|
@ -4,6 +4,15 @@ import '@common/primitives/global.mjs';
|
|||
import Canvas from '@client/canvas/board.mjs';
|
||||
import { ResourceUpdateMap } from './module/data/action/baseAction.mjs';
|
||||
|
||||
import * as applications from './module/applications/_module.mjs';
|
||||
import * as data from './module/data/_module.mjs';
|
||||
import * as models from './module/data/_module.mjs';
|
||||
import * as documents from './module/documents/_module.mjs';
|
||||
import { macros } from './module/_module.mjs';
|
||||
import * as dice from './module/dice/_module.mjs';
|
||||
import * as fields from './module/data/fields/_module.mjs';
|
||||
|
||||
|
||||
// Foundry's use of `Object.assign(globalThis) means many globally available objects are not read as such
|
||||
// This declare global hopefully fixes that
|
||||
// Note: eslint is not aware of these, whatever is added here should go in the eslint's globals list
|
||||
|
|
@ -80,3 +89,17 @@ declare global {
|
|||
damageOptions: object;
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@client/packages/system.mjs' {
|
||||
export default interface System {
|
||||
api: {
|
||||
applications: typeof applications,
|
||||
data: typeof data,
|
||||
models: typeof models,
|
||||
documents: typeof documents,
|
||||
macros: typeof macros,
|
||||
dice: typeof dice,
|
||||
fields: typeof fields
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue