UNPKG

@javelin/ecs

Version:

18 lines 516 B
import { $flat } from "@javelin/core"; import { createSignal } from "../signal"; export const UNSAFE_internals = { instanceTypeLookup: new WeakMap(), model: { [$flat]: {} }, schemaIndex: new WeakMap(), schemaPools: new Map(), worlds: [], currentWorldId: -1, worldIds: 0, }; export const UNSAFE_modelChanged = createSignal(); export function UNSAFE_setModel(model) { ; UNSAFE_internals.model = model; UNSAFE_modelChanged.dispatch(model); } //# sourceMappingURL=internals.js.map