Skip to content

MatchInfo

namespace Griff.Modules.Match3;
public sealed class MatchInfo

Gems of one kind lined up and cleared together on a MatchBoard.

public IReadOnlyList<ValueTuple<int, int>> Cells { get; init; }

The cells cleared.

public int Chain { get; init; }

1 for a match the swap made, 2 and on for those that lined up as gems landed.

public int Count { get; }

How many gems it cleared.

public int Kind { get; init; }

The gem’s tile number.

public void Deconstruct(out int Kind, out IReadOnlyList<ValueTuple<int, int>> Cells, out int Chain)
public override bool Equals(object? obj)
public bool Equals(MatchInfo? other)
public override int GetHashCode()
public override string ToString()