register sheets

pull/14/head
macniel 2025-09-25 19:57:52 +02:00
parent 32e44a5cf9
commit e91fe82e95
1 changed files with 14 additions and 3 deletions

View File

@ -1,8 +1,10 @@
import { PlayerCharacterDataModel } from "./module/character/character.mjs"; import { PlayerCharacterDataModel } from "./module/character/character.mjs";
import { DsaActor } from "./module/Actors/dsa-actor.mjs"; import { DsaActor } from "./module/Actors/dsa-actor.mjs";
import { Skill } from "./module/Items/Skill.mjs" import { Skill } from "./module/Items/Skill.mjs"
import { SkillSheet } from "./module/Items/SkillSheet.mjs";
Hooks.once("init", () => { Hooks.once("init", () => {
// Configure custom Document implementations. // Configure custom Document implementations.
CONFIG.Actor.documentClass = DsaActor; CONFIG.Actor.documentClass = DsaActor;
@ -16,4 +18,13 @@ Hooks.once("init", () => {
} }
console.log("DSA 4.1 is ready for development!") console.log("DSA 4.1 is ready for development!")
// Register sheet application classes
Items.registerSheet('dsa41.skill', SkillSheet, {
makeDefault: true,
label: 'DSA41.SheetLabels.Item',
});
return preloadHandlebarsTemplates();
}) })