UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

19 lines (17 loc) 347 B
export class StateGraph { /** * * @param {SimpleStateMachine} graph */ constructor(graph) { /** * * @type {SimpleStateMachine} */ this.graph = graph; this.inputs = []; } declareInputs(state, events) { this.inputs[state] = events; } }