Finishing the Sync sheet and some other stuffs

This commit is contained in:
Oliver-Akins 2023-12-21 23:59:38 -07:00
parent a28718b115
commit 554fae5a93
26 changed files with 494 additions and 105 deletions

View file

@ -0,0 +1,32 @@
import { GenericSheet } from "../GenericSheet.mjs";
export class AbstractSyncSheet extends GenericSheet {
static get defaultOptions() {
let opts = mergeObject(
super.defaultOptions,
{
width: 200,
height: 200,
}
);
opts.classes.push(
`dotdungeon`,
`dotdungeon--sync-sheet`
);
return opts;
};
getData() {
const ctx = super.getData();
const actor = this.actor.toObject(false);
ctx.system = actor.system;
ctx.flags = actor.flags;
console.groupCollapsed(`SyncSheet.getData`);
console.log(`ctx`, ctx);
console.log(`actor`, actor);
console.groupEnd();
return ctx;
};
};