Example #1
0
        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();
        }