예제 #1
0
 void dialog_OnClosed(Dialog.ReturnStatus status)
 {
     if (status == Dialog.ReturnStatus.Ok)
     {
         DeleteDescriptor(SelectedDescriptor);
     }
 }
예제 #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();
            }
        }
예제 #3
0
 void deleteDialog_OnClosed(Dialog.ReturnStatus status)
 {
     DeleteDescriptor(SelectedDescriptor);
 }
예제 #4
0
 void HireDialog_OnClosed(Dialog.ReturnStatus status)
 {
 }
예제 #5
0
 private void Dialog_OnClosed(Dialog.ReturnStatus status)
 {
     // nothing
 }