Beispiel #1
0
        public override async Task <IWorkbook> Generate()
        {
            CacheService cacheService = new CacheService();

            _demo.WeaponFired = await cacheService.GetDemoWeaponFiredAsync(_demo);

            _generalSheet = new GeneralSheet(Workbook, _demo);
            await _generalSheet.Generate();

            _playersSheet = new PlayersSheet(Workbook, _demo);
            await _playersSheet.Generate();

            _roundsSheet = new RoundsSheet(Workbook, _demo);
            await _roundsSheet.Generate();

            _killsSheet = new KillsSheet(Workbook, _demo);
            await _killsSheet.Generate();

            _entryHoldKillsRoundSheet = new EntryHoldKillsRoundSheet(Workbook, _demo);
            await _entryHoldKillsRoundSheet.Generate();

            _entryHoldKillsPlayerSheet = new EntryHoldKillsPlayerSheet(Workbook, _demo);
            await _entryHoldKillsPlayerSheet.Generate();

            _entryHoldKillsTeamSheet = new EntryHoldKillsTeamSheet(Workbook, _demo);
            await _entryHoldKillsTeamSheet.Generate();

            _entryKillsRoundSheet = new EntryKillsRoundSheet(Workbook, _demo);
            await _entryKillsRoundSheet.Generate();

            _entryKillsPlayerSheet = new EntryKillsPlayerSheet(Workbook, _demo);
            await _entryKillsPlayerSheet.Generate();

            _entryKillsTeamSheet = new EntryKillsTeamSheet(Workbook, _demo);
            await _entryKillsTeamSheet.Generate();

            _killMatrixSheet = new KillMatrixSheet(Workbook, _demo);
            await _killMatrixSheet.Generate();

            _flashMatrixPlayersSheet = new FlashMatrixPlayersSheet(Workbook, _demo);
            await _flashMatrixPlayersSheet.Generate();

            _flashMatrixTeamsSheet = new FlashMatrixTeamsSheet(Workbook, _demo);
            await _flashMatrixTeamsSheet.Generate();

            return(Workbook);
        }
        public override async Task <IWorkbook> Generate()
        {
            CacheService cacheService = new CacheService();

            foreach (Demo demo in _demos)
            {
                demo.WeaponFired = await cacheService.GetDemoWeaponFiredAsync(demo);
            }

            _generalSheet = new GeneralSheet(Workbook, _demos);
            await _generalSheet.Generate();

            _playersSheet = new PlayersSheet(Workbook, _demos);
            await _playersSheet.Generate();

            _mapsSheet = new MapsSheet(Workbook, _demos, _selectedStatsAccountSteamId);
            await _mapsSheet.Generate();

            _teamsSheet = new TeamsSheet(Workbook, _demos);
            await _teamsSheet.Generate();

            _weaponsSheet = new WeaponsSheet(Workbook, _demos, _selectedStatsAccountSteamId);
            await _weaponsSheet.Generate();

            _roundsSheet = new RoundsSheet(Workbook, _demos);
            await _roundsSheet.Generate();

            _killsSheet = new KillsSheet(Workbook, _demos);
            await _killsSheet.Generate();

            _killMatrixSheet = new KillMatrixSheet(Workbook, _demos);
            await _killMatrixSheet.Generate();

            _flashMatrixPlayersSheet = new FlashMatrixPlayersSheet(Workbook, _demos);
            await _flashMatrixPlayersSheet.Generate();

            _flashMatrixTeamsSheet = new FlashMatrixTeamsSheet(Workbook, _demos);
            await _flashMatrixTeamsSheet.Generate();

            return(Workbook);
        }