- Get XML from https://github.com/KeenSoftwareHouse/SpaceEngineers/blob/master/Sources/SpaceEngineers/Content/Data/Blueprints.sbc
- Convert to JSON using https://convertxmljson.com/
- run jq:
pbpaste | jq '
.Definitions.Blueprints.Blueprint | map(
"public static readonly ItemType \(.Result._SubtypeId) = new ItemType(\"\(.Result._TypeId)\", \"\(.Result._SubtypeId)\", \"\(.Id.TypeId)\", \"\(.Id.SubtypeId)\");"
) | .[]' -r