public void SubmitVisitSummary(AncestralVisitSummary summary) { double sumApprovals = summary.visitHistories.Sum(p => p.ApprovalDelta); this.UpdateHistory(sumApprovals); if (sumApprovals > 0) { Messages.Message("Your Ancestors have concluded their visit. They were pleased.", MessageSound.Negative); } else { Messages.Message("Your Ancestors have concluded their visit. They were not impressed.", MessageSound.Negative); } }
public void Notify_VisitEnded(AncestralVisitSummary summary) { this.approval.SubmitVisitSummary(summary); }
private void SubmitApprovalChanges() { var summary = new AncestralVisitSummary(this.visitors, this.visitInfoMap); AncestorUtils.GetMapComponent().Notify_VisitEnded(summary); }