Exemple #1
0
 public void SetFlag(E_EntityFlags f, bool b)
 {
     if (b)
     {
         if (this.HasFlag(f))
         {
             return;
         }
         this.EntityFlags |= f;
     }
     else
     {
         if (!this.HasFlag(f))
         {
             return;
         }
         this.EntityFlags &= ~f;
     }
 }
Exemple #2
0
 public bool HasFlag(E_EntityFlags f)
 {
     return((this.EntityFlags & f) == f);
 }