Пример #1
0
 private void setVehicleType(LaneDescription lane, int index, accessValues v, VehicleTypes type, bool[,,] dicts)
 {
     for (int i = 0; (1 << i) <= (int)type; i++)
     {
         var n = (VehicleTypes)(1 << i);
         if (type.HasFlag(n))
         {
             dicts[index, i, (int)v] = true;
         }
     }
 }