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