WIP
This commit is contained in:
+4
-1
@@ -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
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user