@game-vir/entity - v15.1.1
    Preparing search index...

    Type Alias EntityStoreConstructorParams<Context, RegisteredEntities>

    EntityStoreConstructorParams: (
        IsNever<Extract<Context, undefined | null>> extends true
            ? { context: Context }
            : { context?: Context }
    ) & {
        hitboxSystem?: System;
        pixi: Application;
        registeredEntities: ReadonlyArray<RegisteredEntities>;
    }

    Parameters for the constructor of EntityStore.

    Type Parameters

    Type declaration

    • OptionalhitboxSystem?: System

      A System instance from the detect-collisions package. If this property is omitted or undefined, the EntityStore instance will create its own.

    • pixi: Application

      An Application instance from the pixi.js package.

    • registeredEntities: ReadonlyArray<RegisteredEntities>

      An array of all entity constructors that will be registered with this EntityStore instance. If an entity is added to the store without it being registered here, adding it will fail.