@javelin/devtool
TypeScript icon, indicating that this package has built-in type declarations

0.19.2 • Public • Published

@javelin/devtool

Developer tool for Javelin ECS.

Usage

import { createDevtool } from "@javelin/devtool"
import { createMessageHandler } from "@javelin/ecs"

const systems = []
const world = createWorld(systems)
const messageHandler = createMessageHandler({ world })
const devtool = createDevtool({
  worlds: {
    client: world,
  },
  onMessage(world, message) {
    messageHandler.applyMessage(message)
  },
})

const { log } = devtool.mount(document.getElementById("devtool"))

log.info("Devtool mounted!")

Package Sidebar

Install

npm i @javelin/devtool

Weekly Downloads

1

Version

0.19.2

License

MIT

Unpacked Size

40.8 kB

Total Files

36

Last publish

Collaborators

  • ericmcdaniel