Beispiel #1
0
 void dialog_OnClosed(Dialog.ReturnStatus status)
 {
     if (status == Dialog.ReturnStatus.Ok)
     {
         DeleteDescriptor(SelectedDescriptor);
     }
 }
Beispiel #2
0
        void destroyDialog_OnClosed(Dialog.ReturnStatus status, Room room)
        {
            if (status == Dialog.ReturnStatus.Ok)
            {
                DesignatedRooms.Remove(room);

                List <BuildVoxelOrder> existingDesignations = GetDesignationsAssociatedWithRoom(room);
                BuildRoomOrder         buildRoomDes         = null;
                foreach (BuildVoxelOrder des in existingDesignations)
                {
                    des.Order.VoxelOrders.Remove(des);
                    buildRoomDes = des.Order;
                }

                BuildDesignations.Remove(buildRoomDes);

                room.Destroy();
            }
        }
 void deleteDialog_OnClosed(Dialog.ReturnStatus status)
 {
     DeleteDescriptor(SelectedDescriptor);
 }
Beispiel #4
0
 void HireDialog_OnClosed(Dialog.ReturnStatus status)
 {
 }
Beispiel #5
0
 private void Dialog_OnClosed(Dialog.ReturnStatus status)
 {
     // nothing
 }