Skip to content

Combination

namespace Griff.Modules.Adventures;
public sealed class Combination

Two items that go together (see Combinations): what they make, and what the walker says.

public string First { get; init; }
public string? Line { get; init; }
public IReadOnlyList<ValueTuple<string, int>> Makes { get; init; }
public string Second { get; init; }
public void Deconstruct(out string First, out string Second, out IReadOnlyList<ValueTuple<string, int>> Makes, out string? Line)
public override bool Equals(object? obj)
public bool Equals(Combination? other)
public override int GetHashCode()
public bool Joins(string a, string b)

True if it’s a and b, either way round.

public static Combination? Parse(string? row)

Reads “Grappling Hook = Rope + Hook: I tie them together.” (what it makes may be nothing, or several joined with “+”); null if it isn’t one.

public override string ToString()