gameforge - v0.1.12
    Preparing search index...

    Variable INSTALLEDConst Readonly

    INSTALLED: IResourcePlugin<any, any>[]

    Collection of installed resource types, class must extend PIXI.Resource.

    class CustomResource extends PIXI.Resource {
    // MUST have source, options constructor signature
    // for auto-detected resources to be created.
    constructor(source, options) {
    super();
    }
    upload(renderer, baseTexture, glTexture) {
    // Upload with GL
    return true;
    }
    // Used to auto-detect resource
    static test(source, extension) {
    return extension === 'xyz' || source instanceof SomeClass;
    }
    }
    // Install the new resource type
    PIXI.INSTALLED.push(CustomResource);

    PIXI