Esempio n. 1
0
 public void SetFlag(E_ItemContainerType _f, bool _b)
 {
     if (_b)
     {
         if (!this.HasFlag(_f))
         {
             this.ItemContainerType |= _f;
         }
     }
     else
     {
         if (this.HasFlag(_f))
         {
             this.ItemContainerType &= ~_f;
         }
     }
 }
Esempio n. 2
0
 public bool HasFlag(E_ItemContainerType _f) => ((this.ItemContainerType & _f) == _f);