async def get_game_library_settings(self, game_id: str, context: t.Any) -> GameLibrarySettings: gls = GameLibrarySettings(game_id, None, None) game = self._humble_games[game_id] if isinstance(game, Key): gls.tags = ['Key'] if game.key_val is None: gls.tags.append('Unrevealed') if isinstance(game, TroveGame): gls.tags = [] # remove redundant tags since Galaxy support for subscripitons return gls
async def get_game_library_settings(self, game_id: str, context: Any) -> GameLibrarySettings: gls = GameLibrarySettings(game_id, None, None) game = self._owned_games[game_id] if isinstance(game, Key): gls.tags = ['Key'] if game.key_val is None: gls.tags.append('Unrevealed') if isinstance(game, TroveGame): gls.tags = ['Trove'] return gls