Revert "Chemistry JSON dump tool and companion GitHub Action (#6134)" (#6217)

This reverts commit 40e2e78e0f.
This commit is contained in:
Moony
2022-01-17 16:06:19 -06:00
committed by GitHub
parent 71ef2f4938
commit 5fd45fc82a
27 changed files with 44 additions and 591 deletions

View File

@@ -1,26 +0,0 @@
using System.IO;
using System.Linq;
using System.Text.Json;
using Content.Shared.Chemistry.Reaction;
using Content.Shared.FixedPoint;
using Robust.Shared.IoC;
using Robust.Shared.Prototypes;
namespace Content.Server.GuideGenerator;
public class ReactionJsonGenerator
{
public static void PublishJson(StreamWriter file)
{
var prototype = IoCManager.Resolve<IPrototypeManager>();
var reactions =
prototype
.EnumeratePrototypes<ReactionPrototype>()
.Select(x => new ReactionEntry(x))
.ToDictionary(x => x.Id, x => x);
file.Write(JsonSerializer.Serialize(reactions, new JsonSerializerOptions { WriteIndented = true, IncludeFields = true }));
}
}