Skip to content

Commit

Permalink
Update system-manager.js
Browse files Browse the repository at this point in the history
support to core module 1.4
  • Loading branch information
mrcomac authored Apr 19, 2024
1 parent 8163ca6 commit e919caa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/system-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export let SystemManager = null
Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
SystemManager = class SystemManager extends coreModule.api.SystemManager {
/** @override */
doGetCategoryManager () {
getCategoryManager () {
return new coreModule.api.CategoryManager()
}

/** @override */
doGetActionHandler (categoryManager) {
getActionHandler (categoryManager) {
console.log("ACTIONHANDLER")
const actionHandler = new ActionHandler(categoryManager)
return actionHandler
Expand All @@ -28,7 +28,7 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
}

/** @override */
doGetRollHandler (handlerId) {
getRollHandler (handlerId) {
let rollHandler
switch (handlerId) {
case 'core':
Expand All @@ -41,14 +41,14 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
}

/** @override */
doRegisterSettings (updateFunc) {
registerSettings (updateFunc) {
// systemSettings.register(updateFunc)
}

/** @override */
async doRegisterDefaultFlags () {
async registerDefaults () {
const defaults = DEFAULTS
return defaults
}
}
})
})

0 comments on commit e919caa

Please sign in to comment.