예제 #1
0
 /// <summary>
 /// Checks if the flags contains any of the other specified flags.
 /// </summary>
 /// <param name="flags">The flags to check.</param>
 /// <param name="other">The other flags to check for.</param>
 public static bool HasAny(this Tween.Flag flags, Tween.Flag other)
 {
     return(((int)flags & (int)other) != 0);
 }
예제 #2
0
 /// <summary>
 /// Checks if the flags contains a specified flag.
 /// </summary>
 /// <param name="flags">The flags to check.</param>
 /// <param name="other">The other flag to check for.</param>
 public static bool Has(this Tween.Flag flags, Tween.Flag other)
 {
     return(((int)flags & (int)other) == (int)other);
 }