dacha
    Preparing search index...

    Class BehaviorSystem

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

    Pass your behavior classes to the engine in resources, under BehaviorSystem.systemName.

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

    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.