Migrate static container output into each locations sub folder
This commit is contained in:
parent
949a066519
commit
87ff9ecb0c
@ -59,8 +59,16 @@ public class FileWriter : IWriter
|
|||||||
break;
|
break;
|
||||||
case OutputFileType.StaticContainer:
|
case OutputFileType.StaticContainer:
|
||||||
var staticContainer = (Dictionary<string, MapStaticLoot>)data;
|
var staticContainer = (Dictionary<string, MapStaticLoot>)data;
|
||||||
File.WriteAllText($@"{_outputPath}\loot\staticContainers.json",
|
foreach (var (key, value) in staticContainer)
|
||||||
_jsonSerializer.Serialize(staticContainer));
|
{
|
||||||
|
foreach (var s in LootDumpProcessorContext.GetDirectoryMappings()[key].Name)
|
||||||
|
{
|
||||||
|
if (!Directory.Exists($@"{_outputPath}\locations\{s}"))
|
||||||
|
Directory.CreateDirectory($@"{_outputPath}\locations\{s}");
|
||||||
|
File.WriteAllText($@"{_outputPath}\locations\{s}\staticContainers.json",
|
||||||
|
_jsonSerializer.Serialize(value));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case OutputFileType.StaticLoot:
|
case OutputFileType.StaticLoot:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user