0.0.3 • Published 9 months ago

@rbxts/jecs-topo-runtime v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

jecs-topo-runtime

This package does not really depend on the jecs functionality. This package will probably eventually be branched out into an abstract topo runtime package.

Basic Setup

const world = new World()
const loop = new Loop(world, ...some other arguments that will be passed to systems)

const connection = loop.begin(RunService.Heartbeat)

const system = (arguments from loop constructor call) => {
    // some work
}

loop.scheduleSystem(system)

// hot reload stuff
loop.evictSystem(system)
// or more convenient
loop.replaceSystem(system, () => {})

Builtin hooks

useEvent useThrottle

There is useHookState function for implementing custom hooks.

Side note

Not a single test has been written for the package so it may contain There has not been written any test

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago