static void registerExtraIncome(EventInfo info) { ExtraIncomeInfo extra = (ExtraIncomeInfo)info; IncomeSource incomeSource = new IncomeSource(extra.extraIncomeAmount, true); incomeSources().Add(incomeSource); TaxationSystem.getIncomeafterMandatoryPayments(getAllIncomeSourceGrossTotals(12)); OnNewIncome.Invoke(); }
public override void PerformAction() { ExtraIncomeInfo valueChangeAction = new ExtraIncomeInfo(); valueChangeAction.extraIncomeAmount = amount; valueChangeAction.isAnExtra = true; thisEvent_Type = Event_Type.EXTRA_INCOME; GameEventSystem.DoEvent( thisEvent_Type, valueChangeAction ); }