Skip to content

Amounts

namespace Griff.Scenes;
public static class Amounts

Names and how many of each joined with “+” (“Wood + Coal 2”), as a Amounts cell holds them.

public static IReadOnlyList<ValueTuple<string, int>> Read(string? text)

The names and counts in text, a count of 1 where it doesn’t say.

public static string Write(IEnumerable<ValueTuple<string, int>> amounts)

Written back: “Wood + Coal 2”, a count of 1 left out.