pw-guild-icon-parser
Version:
Parser for Perfect World guild icon lists - converts PNG icons to DDS atlas format with DXT5 compression
21 lines • 933 B
TypeScript
import { AddIconOptions } from './types.js';
/**
* Add a new icon to the guild icon list
*
* @param options - Configuration options
* @param options.fid - Faction ID
* @param options.serverId - Server ID
* @param options.pngPath - Path to the 16x16 PNG file (valid PNG format)
* @param options.txtPath - Path to the iconlist_guild.txt file
* @param options.ddsPath - Path to the iconlist_guild.dds file (will be created/updated)
* @param options.iconsDir - Optional directory where PNG icons are stored (default: same as txtPath/../icones)
*
* @throws Error if PNG is invalid, dimensions are wrong, or file operations fail
*/
export declare function addIcon(options: AddIconOptions & {
iconsDir?: string;
}): Promise<void>;
export * from './types.js';
export { parseIconList, calculateIconPosition } from './parser.js';
export { validateAndConvertPNG } from './image/converter.js';
//# sourceMappingURL=index.d.ts.map