mwg API
    Preparing search index...

    Interface ImageTextureProbe

    Resolves a nested ~BLIT/~MASK image path to a texture already loaded by the caller, and (~RC/~PAL) a named colour that is not hex. resolveTexture receives the raw argument text exactly as written, nested modifiers included (unit.png~RC(magenta>red), not stripped down to unit.png) - parsing and applying those is the caller's own recursive call into parseImagePath/applyImageModifiers/applyTextureModifiers, not something this function does on the caller's behalf, since a caller with no sibling asset resolver has nothing to recurse into anyway.

    interface ImageTextureProbe {
        createCanvas?(width: number, height: number): RemapCanvas | null;
        resolveColor?(name: string): number | undefined;
        resolveTexture?(
            pathWithModifiers: string,
        ): Texture<TextureSource<any>> | undefined;
    }

    Hierarchy (View Summary)

    Index
    • Parameters

      • pathWithModifiers: string

      Returns Texture<TextureSource<any>> | undefined