示例#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;
     }
 }
示例#2
0
 public bool HasFlag(E_EntityFlags f)
 {
     return((this.EntityFlags & f) == f);
 }