Add basic controls

This commit is contained in:
kolaflash
2026-01-23 14:21:21 +01:00
parent 589af23e8c
commit f9a2409dad
19 changed files with 225 additions and 47 deletions
+4 -4
View File
@@ -1,5 +1,3 @@
import { useWithAsyncCache } from "#/lib/cache.ts";
import { type Graph, getNeighbours } from "#/lib/Graph.ts";
import {
type Animate as AnimateEntity,
type Entity,
@@ -8,7 +6,9 @@ import {
entityProcessMap,
type Indirect,
type Process as ProcessEntity,
} from "./Entity.ts";
} from "#/engine/Entity.ts";
import { useWithAsyncCache } from "#/lib/cache.ts";
import { type Graph, getNeighbours } from "#/lib/Graph.ts";
export type SceneData = {
name: string;
@@ -121,7 +121,7 @@ function linkScenes(a: string, b: string): void {
}
}
export function useScene(data: SceneData): {
export function defineScene(data: SceneData): {
linkScenes: <T extends readonly string[]>(
names: T,
) => (name: T[number]) => Promise<void>;