Example #1
0
        private void BattleResult(kcsapi_battleresult data)
        {
            var arg = new BattleResultEventArgs
            {
                IsFirstCombat = isFirstCombat,
                MapAreaId     = mapId,
                EnemyName     = data.api_enemy_info.api_deck_name,
                EnemyShips    = enemyShips,
                Rank          = data.api_win_rank
            };

            isFirstCombat = false;

            BattleResultEvent?.Invoke(this, arg);
        }
Example #2
0
        private void BattleResult(kcsapi_battleresult data)
        {
            var arg = new BattleResultEventArgs
                      {
                          IsFirstCombat = isFirstCombat,
                          MapAreaId = mapId,
                          EnemyName = data.api_enemy_info.api_deck_name,
                          EnemyShips = enemyShips,
                          Rank = data.api_win_rank
                      };

            isFirstCombat = false;

            BattleResultEvent?.Invoke(this, arg);
        }