/// <summary>
 /// Handle terrain mutations.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The event args.</param>
 private void Mutator_MutationOccurred(object sender, MutationArgs e)
 {
     // Update all individual positions that mutated
     foreach (Position position in e.Mutations)
     {
         this.MeshGenerator.UpdateVoxel(position, true);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Indicates that the terrain has been mutated.
 /// </summary>
 /// <param name="e">The event args.</param>
 protected void OnMutationOccurred(MutationArgs e)
 {
     if (this.MutationOccurred != null)
     {
         this.MutationOccurred(this, e);
     }
 }