Table of Contents

Method SameKind

Namespace
GrindFest
Assembly
GrindFest.dll

SameKind(string, int, string, int)

True when two things are the same kind: their displayed names compared with each stack's own amount taken off, so "10 Gold" and "15 Gold" are both Gold. This is the one rule the nameplate piles and the hover-pickup collect both use, so a pile shown as one label is exactly the set that gets picked up together. Compares in place (no copies of the strings), so it costs no allocation per frame.

public static bool SameKind(string nameA, int amountA, string nameB, int amountB)

Parameters

nameA string
amountA int
nameB string
amountB int

Returns

bool