Fix converters

This commit is contained in:
Bill 2021-02-23 14:04:06 -05:00
parent b45890d589
commit 43b4f95471
2 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ import { HabboAssetSWF } from '../../swf/HabboAssetSWF';
import File from '../../utils/File';
import { FileUtilities } from '../../utils/FileUtilities';
import { Logger } from '../../utils/Logger';
import { EffectConverter } from './EffectConverter';
import { EffectMapConverter } from '../effectmap/EffectMapConverter';
@singleton()
export class EffectDownloader
@ -13,14 +13,14 @@ export class EffectDownloader
public static EFFECT_TYPES: Map<string, string> = new Map();
constructor(
private readonly _effectConverter: EffectConverter,
private readonly _effectMapConverter: EffectMapConverter,
private readonly _configuration: Configuration,
private readonly _logger: Logger)
{}
public async download(directory: File, callback: (habboAssetSwf: HabboAssetSWF, className: string) => Promise<void>): Promise<void>
{
await this._effectConverter.convertAsync();
await this._effectMapConverter.convertAsync();
const effectMap = await this.parseEffectMap();
const classNames: string[] = [];

View File

@ -5,7 +5,7 @@ import { HabboAssetSWF } from '../../swf/HabboAssetSWF';
import File from '../../utils/File';
import { FileUtilities } from '../../utils/FileUtilities';
import { Logger } from '../../utils/Logger';
import { FigureConverter } from './FigureConverter';
import { FigureMapConverter } from '../figuremap/FigureMapConverter';
@singleton()
export class FigureDownloader
@ -13,14 +13,14 @@ export class FigureDownloader
public static FIGURE_TYPES: Map<string, string> = new Map();
constructor(
private readonly _figureConverter: FigureConverter,
private readonly _figureMapConverter: FigureMapConverter,
private readonly _configuration: Configuration,
private readonly _logger: Logger)
{}
public async download(directory: File, callback: (habboAssetSwf: HabboAssetSWF, className: string) => Promise<void>): Promise<void>
{
await this._figureConverter.convertAsync();
await this._figureMapConverter.convertAsync();
const figureMap = await this.parseFigureMap();
const classNames: string[] = [];