public void RemoveLayer(LayerID layerID) { if (LayerID.Min <= layerID && layerID < LayerID.Max) { MarkAsUINT &= ~(FlagUtil.BIT_FLAG((int)layerID)); } }
public void AddLayer(LayerID layerID) { if (LayerID.Min <= layerID && layerID < LayerID.Max) { MarkAsUINT |= FlagUtil.BIT_FLAG((int)layerID); } }
public static uint LayerIDToUINTMark(LayerID layerID) { return((uint)FlagUtil.BIT_FLAG((int)layerID)); }
public static LayerFlag LayerIDToFlag(int layerID) { return((LayerFlag)FlagUtil.BIT_FLAG(layerID)); }
public static uint ConvertToMark(LayerID layerID) { return((uint)FlagUtil.BIT_FLAG((int)layerID)); }
public static LayerFlag ConvertToLayerFlag(int layerID) { return((LayerFlag)FlagUtil.BIT_FLAG(layerID)); }