This commit is contained in:
Schluffe
2026-03-07 13:37:51 +01:00
parent eef8adfa5f
commit 75bbe67730
6 changed files with 52 additions and 59 deletions
+4 -1
View File
@@ -108,7 +108,10 @@ const [loadScene, sceneCache] = useWithAsyncCache(async (name: string) => {
data.entities.map(
async (entityData: EntityData<unknown>, index: number) => {
await import(`#/game/entities/${entityData.name}/entity.ts`);
// TODO
for (const blueprint of entityBlueprintMap
.get(entityData.name)!
.entries()) {
}
},
),
);
+1 -4
View File
@@ -7,7 +7,6 @@ import {
Show,
} from "solid-js";
import { render } from "solid-js/web";
import type { Entity } from "#/engine/Entity.ts";
import {
currentScene,
type SceneData,
@@ -73,9 +72,7 @@ const DevTools: Component<{ gameContainer: HTMLElement }> = ({
const [entities, setEntities] = createSignal(
mapSceneEntities(currentScene.data),
);
const [activeEntity, setActiveEntity] = createSignal<null | Entity<object>>(
null,
);
const [activeEntity, setActiveEntity] = createSignal<null | object>(null); // TODO
createEffect(() => {
setScale(currentScale());
+2 -2
View File
@@ -7,7 +7,7 @@ export default class MapProxy<K, V> {
this.map = new Map();
}
get(key: K): V | undefined {
return this.map.get(key)?.value;
get(key: K): Box<V> | undefined {
return this.map.get(key);
}
}