示例#1
0
 private void method_5(Track<int, int[]> difficulty, Track<int, int> sp, Track<int, NotesAtOffset> notes)
 {
     foreach (int current in sp.Keys)
     {
         int num = this.calculateOffset(current);
         int num2 = 0;
         if (sp[current] == 0)
         {
             num2 = 1;
         }
         else
         {
             int num4 = 0;
             if ((sp.Keys[sp.method_1(current + sp[current])] > current))
             {
                 num4 = notes.Keys[notes.method_1(sp.Keys[sp.method_1(current + sp[current])] - 1)];
             }
             else
             {
                 num4 = (current + sp[current]);
             }
             int num3 = this.calculateOffset(num4);
             //int num3 = this.method_2((sp.Keys[sp.method_1(current + sp[current])] > current) ? notes.Keys[notes.method_1(sp.Keys[sp.method_1(current + sp[current])] - 1)] : (current + sp[current]));
             num2 = (num3 - num);
         }
         //int num2 = (sp[current] == 0) ? 1 : (this.method_2((sp.Keys[sp.method_1(current + sp[current])] > current) ? notes.Keys[notes.method_1(sp.Keys[sp.method_1(current + sp[current])] - 1)] : (current + sp[current])) - num);
         difficulty.Add(num, new int[]
         {
             num2,
             notes.method_3(current, current + sp[current])
         });
     }
 }