mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
34 lines
1,004 B
JavaScript
34 lines
1,004 B
JavaScript
/**
|
|
* Describes metadata about the actor data model type
|
|
* @typedef {Object} ActorDataModelMetadata
|
|
* @property {string} label - A localizable label used on application.
|
|
* @property {string} type - The system type that this data model represents.
|
|
*/
|
|
export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|
/** @returns {ActorDataModelMetadata}*/
|
|
static get metadata() {
|
|
return {
|
|
label: 'Base Actor',
|
|
type: 'base'
|
|
};
|
|
}
|
|
|
|
/** @inheritDoc */
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
|
|
return {
|
|
description: new fields.HTMLField({ required: true, nullable: true })
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Obtain a data object used to evaluate any dice rolls associated with this Item Type
|
|
* @param {object} [options] - Options which modify the getRollData method.
|
|
* @returns {object}
|
|
*/
|
|
getRollData() {
|
|
const data = { ...this };
|
|
return data;
|
|
}
|
|
}
|