Initial module scaffold
This commit is contained in:
22
scripts/main.js
Normal file
22
scripts/main.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { runRuntimeAnalysis } from "./adapters/foundry-runtime.js";
|
||||
import { StorageAuditReportApp } from "./apps/audit-report-app.js";
|
||||
|
||||
Hooks.once("init", () => {
|
||||
console.log("kosmos-storage-audit | init");
|
||||
game.settings.registerMenu("kosmos-storage-audit", "report", {
|
||||
name: "Kosmos Storage Audit",
|
||||
label: "Open Report",
|
||||
hint: "Run the storage audit and inspect prioritized findings.",
|
||||
icon: "fa-solid fa-broom-ball",
|
||||
type: StorageAuditReportApp,
|
||||
restricted: true
|
||||
});
|
||||
game.modules.get("kosmos-storage-audit").api = {
|
||||
runRuntimeAnalysis,
|
||||
StorageAuditReportApp
|
||||
};
|
||||
});
|
||||
|
||||
Hooks.once("ready", () => {
|
||||
console.log("kosmos-storage-audit | ready");
|
||||
});
|
||||
Reference in New Issue
Block a user