Skip to content

@modoki/engine / index / registerSystem

Function: registerSystem() ​

registerSystem(name, fn, priority, opts?): void

Register a system to run each frame. Lower priority numbers run first. Systems at the same priority run in registration order. Pass opts.actions to register UIAction handlers owned by this system (removed on unregister).

Parameters ​

name ​

string

fn ​

SystemFn

priority ​

number

opts? ​

SystemOptions

Returns ​

void

Built with Modoki.