Skip to main content
Module

x/oid/mod.ts>ECS

oidoid 2D game engine.
Go to Latest
namespace ECS
import { ECS } from "https://deno.land/x/oid@v0.0.4/mod.ts";
interface ECS
import { type ECS } from "https://deno.land/x/oid@v0.0.4/mod.ts";

Type Parameters

T
optional
Update extends ECSUpdate = ECSUpdate

Properties

factory: Ent
readonly
systems: Set<System<T, Update>>
readonly
entsBySystem: Map<System<T, Update>, Set<Ent>>
readonly
componentsByRef: Map<T[keyof T], T>
readonly
componentsByEnt: Map<Ent, Partial<T>>
readonly
systemsByEnt: Map<Ent, Set<System<T, Update>>>
readonly
pending: Command<T>[]
function ECS
import { ECS } from "https://deno.land/x/oid@v0.0.4/mod.ts";

Type Parameters

T
optional
Update extends ECSUpdate = ECSUpdate

Parameters

systems: Set<System<T, Update>>