2021-02-17 06:14:07 +01:00
|
|
|
import 'reflect-metadata';
|
|
|
|
import { container } from 'tsyringe';
|
|
|
|
import { Configuration } from './common/config/Configuration';
|
2021-02-18 07:03:08 +01:00
|
|
|
import { FigureConverter } from './converters/figure/FigureConverter';
|
2021-02-17 06:14:07 +01:00
|
|
|
import { FurnitureConverter } from './converters/furniture/FurnitureConverter';
|
|
|
|
import { PetConverter } from './converters/pet/PetConverter';
|
|
|
|
|
|
|
|
(async () =>
|
|
|
|
{
|
2021-02-15 17:13:43 +01:00
|
|
|
const config = container.resolve(Configuration);
|
2021-01-28 09:12:04 +01:00
|
|
|
await config.init();
|
|
|
|
|
2021-02-18 07:03:08 +01:00
|
|
|
if(config.getBoolean('convert.figure'))
|
|
|
|
{
|
|
|
|
const figureConverter = container.resolve(FigureConverter);
|
|
|
|
await figureConverter.convertAsync();
|
|
|
|
}
|
2021-02-17 06:14:07 +01:00
|
|
|
|
|
|
|
if(config.getBoolean('convert.furniture'))
|
|
|
|
{
|
2021-02-15 17:13:43 +01:00
|
|
|
const furnitureConverter = container.resolve(FurnitureConverter);
|
|
|
|
await furnitureConverter.convertAsync();
|
2021-02-02 04:43:38 +01:00
|
|
|
}
|
|
|
|
|
2021-02-17 06:14:07 +01:00
|
|
|
if(config.getBoolean('convert.pet'))
|
|
|
|
{
|
2021-02-15 17:13:43 +01:00
|
|
|
const petConverter = container.resolve(PetConverter);
|
|
|
|
await petConverter.convertAsync();
|
|
|
|
}
|
2021-02-02 04:43:38 +01:00
|
|
|
|
2021-02-17 06:14:07 +01:00
|
|
|
// if(config.getBoolean('convert.effect'))
|
|
|
|
// {
|
|
|
|
// const effectConverter = container.resolve(EffectConverter);
|
|
|
|
// await effectConverter.convertAsync();
|
|
|
|
// }
|
|
|
|
})();
|