Пример #1
0
 public void PlaceModel(Model model, Position3D location)
 {
     // Set new location (for visual update)
     model.Position = location;
     // Set new area
     location.ForEachInRange(model.Template.Dimension, (l) =>
     {
         Model m = this[l];
         if (m != null)
         {
             // Remove object being replaced
             RemoveModel(m);
         }
         this[l] = model;
     });
 }