mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-29 18:50:51 +01:00
Fix converters
This commit is contained in:
parent
b45890d589
commit
43b4f95471
@ -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[] = [];
|
||||
|
@ -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[] = [];
|
||||
|
Loading…
Reference in New Issue
Block a user