completed game importing; partial work on version importing

This commit is contained in:
DecDuck
2024-10-11 00:37:08 +11:00
parent 718f5ba514
commit a7c33e7d43
42 changed files with 1499 additions and 281 deletions

View File

@ -1,11 +1,10 @@
import { FsObjectBackend } from "../internal/objects/fsBackend";
// To-do insert logic surrounding deciding what object backend to use
export const GlobalObjectHandler = new FsObjectBackend();
export default defineNitroPlugin((nitro) => {
const currentObjectHandler = new FsObjectBackend();
// To-do insert logic surrounding deciding what object backend to use
nitro.hooks.hook("request", (h3) => {
h3.context.objects = currentObjectHandler;
h3.context.objects = GlobalObjectHandler;
});
});