void dialog_OnClosed(Dialog.ReturnStatus status) { if (status == Dialog.ReturnStatus.Ok) { DeleteDescriptor(SelectedDescriptor); } }
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); }
void HireDialog_OnClosed(Dialog.ReturnStatus status) { }
private void Dialog_OnClosed(Dialog.ReturnStatus status) { // nothing }