Combination
namespace Griff.Modules.Adventures;
public sealed class CombinationTwo items that go together (see Combinations): what they make, and what the walker says.
Properties
Section titled “Properties”public string First { get; init; }public string? Line { get; init; }public IReadOnlyList<ValueTuple<string, int>> Makes { get; init; }Second
Section titled “Second”public string Second { get; init; }Methods
Section titled “Methods”Deconstruct
Section titled “Deconstruct”public void Deconstruct(out string First, out string Second, out IReadOnlyList<ValueTuple<string, int>> Makes, out string? Line)Equals
Section titled “Equals”public override bool Equals(object? obj)Equals
Section titled “Equals”public bool Equals(Combination? other)GetHashCode
Section titled “GetHashCode”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.
ToString
Section titled “ToString”public override string ToString()