mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46:12 +01:00
REFACTOR: remove unused methods
REFACTOR: create method on BaseActorSheet REFACTOR: make Datamodel metadata getter
This commit is contained in:
parent
72e6bf055c
commit
79a4c13a1b
12 changed files with 103 additions and 75 deletions
|
|
@ -4,6 +4,7 @@
|
|||
* @property {string} label - A localizable label used on application.
|
||||
* @property {string} type - The system type that this data model represents.
|
||||
* @property {Boolean} isNPC - This data model represents a NPC?
|
||||
* @property {typeof foundry.applications.api.DocumentSheetV2} settingSheet - The sheet class used to render the settings UI for this actor type.
|
||||
*/
|
||||
export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
||||
/** @returns {ActorDataModelMetadata}*/
|
||||
|
|
@ -12,9 +13,15 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
label: 'Base Actor',
|
||||
type: 'base',
|
||||
isNPC: true,
|
||||
settingSheet: null,
|
||||
};
|
||||
}
|
||||
|
||||
/**@returns {ActorDataModelMetadata}*/
|
||||
get metadata() {
|
||||
return this.constructor.metadata;
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue