public void SetFilterTheme(CardTheme theme, bool allow) { if (allow) { themeFilter = themeFilter | 1 << (int)theme; } else { themeFilter = themeFilter & (~(1 << (int)theme)); } }
protected bool FilterThemeFunction(CardTheme theme) { return(((1 << (int)theme) & themeFilter) != 0); }