public static void SetupABFormats(this IHostBuilder hostBuilder) { hostBuilder.ConfigureServices((hostContext, services) => { services.AddSingleton((s) => { var formatMan = new DataFormatMan(); formatMan.RegisterFormat("ABSE_MAP", new ABSEMAPFormat()); formatMan.RegisterFormat("ABHC_MAP", new ABHCMAPFormat()); formatMan.RegisterFormat("ABTA_MAP", new ABTAMAPFormat()); formatMan.RegisterFormat("ABTABLK", new ABTABLKFormat()); formatMan.RegisterFormat("ABTASPR", new ABTASPRFormat()); formatMan.RegisterFormat("ABTAODDSPR", new ABTAODDSPRFormat()); formatMan.RegisterFormat("ACBM_TILE_SET", new ACBMTileSetFormat()); formatMan.RegisterFormat("ACBM_IMAGE", new ACBMImageFormat()); formatMan.RegisterFormat("IFF_IMAGE", new IFFImageFormat()); formatMan.RegisterFormat("BINARY", new BinaryFormat()); formatMan.RegisterFormat("PCM_SOUND", new PCMSoundFormat()); formatMan.RegisterFormat("TEXT", new TextFormat()); return(formatMan); }); }); }
public AssetsDataProvider(IRepositoryProvider repositoryProvider, DataSourceProvider dataSources, DataFormatMan formatMan) { this.repositoryProvider = repositoryProvider; this.dataSources = dataSources; this.formatMan = formatMan; }