예제 #1
0
 public static dfSpriteFlip SetFlag(this dfSpriteFlip value, dfSpriteFlip flag, bool on)
 {
     if (on)
     {
         return(value | flag);
     }
     return(value & ~flag);
 }
예제 #2
0
 public static bool IsSet(this dfSpriteFlip value, dfSpriteFlip flag)
 {
     return(flag == (value & flag));
 }
예제 #3
0
 public static dfSpriteFlip SetFlag( this dfSpriteFlip value, dfSpriteFlip flag, bool on )
 {
     if( on )
         return value | flag;
     else
         return value & ~flag;
 }
예제 #4
0
 public static bool IsSet( this dfSpriteFlip value, dfSpriteFlip flag )
 {
     return flag == ( value & flag );
 }