UNPKG

@megavr/ecsy-babylon

Version:

babylon.js ecsy binding and helpers

11 lines (10 loc) 292 B
import { System, World } from "ecsy"; /** * @hidden * Hack on ecsy to get World instance from system itself. * @param system A registered ecsy System class * @returns ecsy world */ export function getWorld(system: System): World { return (system as any)["world"] as World; }