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