generated from bomzheg/aiogram_template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from bomzheg/running_game_reader
Running game reader
- Loading branch information
Showing
21 changed files
with
260 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from typing import Protocol | ||
|
||
from shvatka.core.interfaces.dal.file_info import FileInfoGetter | ||
from shvatka.core.interfaces.dal.game import GameByIdGetter, ActiveGameFinder | ||
from shvatka.core.interfaces.dal.key_log import GameTeamKeyGetter | ||
from shvatka.core.interfaces.dal.level import LevelByGameAndNumberGetter | ||
from shvatka.core.interfaces.dal.level_times import LevelByTeamGetter | ||
from shvatka.core.interfaces.dal.player import PlayerByUserGetter, TeamByPlayerGetter | ||
from shvatka.core.interfaces.dal.waiver import WaiverChecker | ||
|
||
|
||
class GameFileReader(FileInfoGetter, GameByIdGetter, PlayerByUserGetter, Protocol): | ||
pass | ||
|
||
|
||
class GamePlayReader( | ||
ActiveGameFinder, | ||
PlayerByUserGetter, | ||
TeamByPlayerGetter, | ||
WaiverChecker, | ||
LevelByTeamGetter, | ||
LevelByGameAndNumberGetter, | ||
GameTeamKeyGetter, | ||
Protocol, | ||
): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from dataclasses import dataclass | ||
from datetime import datetime | ||
|
||
from shvatka.core.models import dto | ||
from shvatka.core.models.dto import scn | ||
|
||
|
||
@dataclass | ||
class CurrentHints: | ||
hints: list[scn.TimeHint] | ||
typed_keys: list[dto.KeyTime] | ||
level_number: int | ||
started_at: datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.