private void _SetShipExp(DeckModel deck, ShipModel_BattleResult ship, Dictionary <int, int> exp_rates_before)
        {
            if (deck == null)
            {
                ship.__InitResultData__(0, null, 0, null);
                return;
            }
            ShipModel shipFromMemId   = deck.GetShipFromMemId(ship.TmpId);
            int       exp_rate_before = 0;

            exp_rates_before.TryGetValue(ship.TmpId, ref exp_rate_before);
            int exp = 0;

            this._fmt.GetShipExp.TryGetValue(ship.TmpId, out exp);
            List <int> levelup_info = null;

            this._fmt.LevelUpInfo.TryGetValue(ship.TmpId, out levelup_info);
            ship.__InitResultData__(exp_rate_before, shipFromMemId, exp, levelup_info);
        }
Пример #2
0
        private void _SetShipExp(DeckModel deck, ShipModel_BattleResult ship, Dictionary <int, int> exp_rates_before)
        {
            if (deck == null)
            {
                ship.__InitResultData__(0, null, 0, null);
                return;
            }
            ShipModel shipFromMemId = deck.GetShipFromMemId(ship.TmpId);
            int       value         = 0;

            exp_rates_before.TryGetValue(ship.TmpId, out value);
            int value2 = 0;

            _fmt.GetShipExp.TryGetValue(ship.TmpId, out value2);
            List <int> value3 = null;

            _fmt.LevelUpInfo.TryGetValue(ship.TmpId, out value3);
            ship.__InitResultData__(value, shipFromMemId, value2, value3);
        }