public void SetFlag(CollisionFlags_R2 flags, bool on) { if (on) { identifier_R2 = identifier_R2 | flags; } else { identifier_R2 = identifier_R2 & (~flags); } identifier = (ushort)(identifier_R2); }
public bool GetFlag(CollisionFlags_R2 flags) { return((identifier_R2 & flags) != CollisionFlags_R2.None); }