Пример #1
0
 public void SetActiveObjects(ObjectContainer lo, bool back = false)
 {
     if (!back && !lo.Same(activeObject))
     {
         NotificationCenter.postNotification("NOTIFICATION_ACTIVE_OBJECT_CHANGED", activeObject);
         var newaction = new ChangeActiveObject(activeObject);
         actions.AddNewAction(newaction);
     }
     activeObject = lo;
     int numActiveObj = lo.Length;
     uint[] ids = new uint[numActiveObj];
     for (int i = 0; i < numActiveObj; ++i)
     {
         ids[i] = lo[i].editorAspect.id;
     }
     MyGame.levelform.SetActiveObjects(ids, back);
     transformator.SetActiveObject(lo);
     transformator.UpdateView();
 }