public static bool Match(TypeBind tb, int index, IPuzzlePiece ipp) { return (ipp != null && tb.type.IsAssignableFrom(ipp.GetType()) && (tb.index == -0x01 || tb.index == index)); }