예제 #1
0
 /// <summary>
 /// loop through all the blocks in xzy running a delegated method for each block, the delegated method will be bassed coordinated in xzy format
 /// </summary>
 /// <param name="FEBD">the delegate to call on each cycle</param>
 public void ForEachBlockXZY(ForEachBlockDelegateXZY FEBD)
 {
     for (int x = 0; x < CWMap.Size.x; x++)
     {
         for (int z = 0; z < CWMap.Size.y; z++)
         {
             for (int y = 0; y < CWMap.Size.z; y++)
             {
                 FEBD(x, z, y);
             }
         }
     }
 }
예제 #2
0
 /// <summary>
 /// loop through all the blocks in xzy running a delegated method for each block, the delegated method will be bassed coordinated in xzy format
 /// </summary>
 /// <param name="FEBD">the delegate to call on each cycle</param>
 public void ForEachBlockXZY(ForEachBlockDelegateXZY FEBD) {
     for (int x = 0; x < Size.x; x++) {
         for (int z = 0; z < Size.z; z++) {
             for (int y = 0; y < Size.y; y++) {
                 FEBD(x, z, y);
             }
         }
     }
 }