dacha
    Preparing search index...

    Class BehaviorSystem

    Runs the behaviors listed in the Behaviors component of each actor.

    Pass your behavior classes with BehaviorSystem.with({ behaviors }), see BehaviorSystemDependencies.

    const engine = new Engine({
    config,
    systems: [
    BehaviorSystem.with({ behaviors: gameBehaviors }),
    ...gameSystems,
    ],
    components: [Behaviors, ...gameComponents],
    assets: [],
    });

    Hierarchy (View Summary)

    Index
    systemName: string

    The name the configuration uses for the system.

    DefineSystem sets it, so a game usually does not assign it.