not sure its better or not

This commit is contained in:
kolaflash
2026-01-11 20:55:37 +01:00
parent 775e8b66ec
commit 38428cf470
10 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ export const sceneGraph: Graph<string> = new Map();
export const [loadScene, sceneCache] = useWithAsyncCache(
async (name: string) => {
await import(`#/scenes/${name}/index.ts`);
await import(`#/scenes/${name}/scene.ts`);
const data = sceneDataMap.get(name)!;
const entityInstanceMap = sceneEntiyMap.get(name)!;
@@ -56,7 +56,7 @@ export const [loadScene, sceneCache] = useWithAsyncCache(
await Promise.all(
data.entities.map(async (entity: Entity<unknown>) => {
await import(`#/entities/${entity.name}/index.ts`);
await import(`#/entities/${entity.name}/entity.ts`);
if (!entityInstanceMap.has(entity.name)) {
entityInstanceMap.set(entity.name, {