BIT_FLAG() public static méthode

public static BIT_FLAG ( int num ) : uint
num int
Résultat uint
Exemple #1
0
 public void RemoveLayer(LayerID layerID)
 {
     if (LayerID.Min <= layerID && layerID < LayerID.Max)
     {
         MarkAsUINT &= ~(FlagUtil.BIT_FLAG((int)layerID));
     }
 }
Exemple #2
0
 public void AddLayer(LayerID layerID)
 {
     if (LayerID.Min <= layerID && layerID < LayerID.Max)
     {
         MarkAsUINT |= FlagUtil.BIT_FLAG((int)layerID);
     }
 }
Exemple #3
0
 public static uint LayerIDToUINTMark(LayerID layerID)
 {
     return((uint)FlagUtil.BIT_FLAG((int)layerID));
 }
Exemple #4
0
 public static LayerFlag LayerIDToFlag(int layerID)
 {
     return((LayerFlag)FlagUtil.BIT_FLAG(layerID));
 }
Exemple #5
0
 public static uint ConvertToMark(LayerID layerID)
 {
     return((uint)FlagUtil.BIT_FLAG((int)layerID));
 }
Exemple #6
0
 public static LayerFlag ConvertToLayerFlag(int layerID)
 {
     return((LayerFlag)FlagUtil.BIT_FLAG(layerID));
 }