2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-10-24 15:25:52 +00:00

chore: generalize IAssetDumper interface

This commit is contained in:
Jan Laupetin
2025-10-15 20:06:01 +01:00
parent c6e9cbedda
commit 6a84d1ea68
152 changed files with 1051 additions and 586 deletions

View File

@@ -562,8 +562,8 @@ namespace
GivenMaterial("wc/ch_plasterwall_long", materialPool, memory);
material::JsonDumperIW3 dumper;
dumper.DumpPool(context, materialPool);
material::JsonDumperIW3 dumper(materialPool);
dumper.Dump(context);
const auto* file = mockOutput.GetMockedFile("materials/wc/ch_plasterwall_long.json");
REQUIRE(file);

View File

@@ -543,8 +543,8 @@ namespace
GivenMaterial("mc/ch_rubble01", materialPool, memory);
material::JsonDumperIW4 dumper;
dumper.DumpPool(context, materialPool);
material::JsonDumperIW4 dumper(materialPool);
dumper.Dump(context);
const auto* file = mockOutput.GetMockedFile("materials/mc/ch_rubble01.json");
REQUIRE(file);

View File

@@ -596,8 +596,8 @@ namespace
GivenMaterial("wc/me_metal_rust_02", materialPool, memory);
material::JsonDumperIW5 dumper;
dumper.DumpPool(context, materialPool);
material::JsonDumperIW5 dumper(materialPool);
dumper.Dump(context);
const auto* file = mockOutput.GetMockedFile("materials/wc/me_metal_rust_02.json");
REQUIRE(file);

View File

@@ -625,8 +625,8 @@ namespace
GivenMaterial("mc/ch_rubble01", materialPool, memory);
material::JsonDumperT5 dumper;
dumper.DumpPool(context, materialPool);
material::JsonDumperT5 dumper(materialPool);
dumper.Dump(context);
const auto* file = mockOutput.GetMockedFile("materials/mc/ch_rubble01.json");
REQUIRE(file);

View File

@@ -151,8 +151,8 @@ namespace
AssetPoolDynamic<FontIcon> fontIconPool(0);
GivenFontIcon("fonticon/test.csv", fontIconPool, memory);
font_icon::JsonDumperT6 dumper;
dumper.DumpPool(context, fontIconPool);
font_icon::JsonDumperT6 dumper(fontIconPool);
dumper.Dump(context);
const auto* file = mockOutput.GetMockedFile("fonticon/test.json");
REQUIRE(file);

View File

@@ -472,8 +472,8 @@ namespace
AssetPoolDynamic<Material> materialPool(0);
GivenMaterial("wpc/metal_ac_duct", materialPool, memory);
material::JsonDumperT6 dumper;
dumper.DumpPool(context, materialPool);
material::JsonDumperT6 dumper(materialPool);
dumper.Dump(context);
const auto* file = mockOutput.GetMockedFile("materials/wpc/metal_ac_duct.json");
REQUIRE(file);