sok.media.games.dlc
DLC class for downloadable content and game expansions.
DLC
class DLC(name: str, language: str, media_manager, platform: str = 'PC')Bases: Game
Class for managing game DLCs and expansions.
Extends Game class with DLC-specific attributes.
Additional Attributes:
base_game (str): Parent game title
base_game_id (str): Parent game ID
dlc_type (str): Type (expansion, cosmetic, season pass, etc.)
file_size (int): Download size in MB
Example:
>>> manager = UniversalMediaManager()>>> dlc = DLC("Blood and Wine", "en", manager, platform="PC")>>> dlc.base_game = "The Witcher 3: Wild Hunt">>> dlc.dlc_type = "expansion"Initialize a DLC instance.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
name | str | ||
language | str | ||
platform | str | 'PC' |
Attributes
| Name | Type |
|---|---|
base_game | Optional[str] |
base_game_id | Optional[str] |
dlc_type | str |
file_size | int |
get_formatted_name
def get_formatted_name() -> str:Returns formatted DLC name with base game.
Source