Beispiel #1
0
 private void MakeTrunks(short height, TreeType type)
 {
     for (short i = 0; i < height; ++i)
     {
         _map.QueueUpdate(new BlockUpdate(null, _x, _y, (short)(_z + i), Block.Log));
     }
     if (TreeType.Normal == type)
     {
         TreeGeneration.MakeNormalFoliage(_world, new Vector3I(_x, _y, _z), height + 1);
     }
     else
     {
         TreeGeneration.MakePalmFoliage(_world, new Vector3I(_x, _y, _z), height);
     }
 }