Function Statebot

  • Create a TStatebotFsm object.

    Example

    import { Statebot } from 'statebot'

    let machine = Statebot('lemming', {
    chart: `
    walking -> (digging | building | falling) ->
    walking

    falling -> splatting
    walking -> exiting
    `
    })

    Parameters

    Returns TStatebotFsm

Generated using TypeDoc