public void Update() { _context.AddCase( Content.bank_balance_request, () => _out.WriteFormat(Content.bank_balance_response, _money.GetBalance(_country.PlayerCountry))); AddCaseIfNonEmpty(Content.income_request, Content.income_response, _money.GetIncome(_country.PlayerCountry, _time.CurDate)); AddCaseIfNonEmpty(Content.outcome_request, Content.outcome_response, _money.GetExpenses(_country.PlayerCountry, _time.CurDate)); _context.AddBackCase(); }
public void Update() { _context.AddCase( Content.army_recruit_request, TryRecruit); if (_army.GetAvailableCount(_country.PlayerCountry) > 0) { _context.AddCase( Content.army_conquest_request, () => _context.GoToRelatedContext <ConquestController>()); } _context.AddBackCase(); }