/// <summary> /// Removes the given flags from the <see cref="ThreadPointer"/>'s <see cref="Flags"/> property. /// </summary> /// <param name="flags">The given flags to add.</param> public void RemoveFlags(CommandPointerFlags flags) { ////Note: Removing a flag is done by ANDing the complement: ////Flags &= ~(CommandPointerFlags.CompletedCommands); ////You can also OR commands together before taking the complement to remove multiple flags from the value. Flags &= ~flags; }
/// <summary> /// Adds the given flags to the <see cref="ThreadPointer"/>'s <see cref="Flags"/> property. /// </summary> /// <param name="flags">The given flags to add.</param> public void AddFlags(CommandPointerFlags flags) { Flags |= flags; }