2023-10-01 03:54:23 +02:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from core.config import CoreConfig
|
|
|
|
from titles.idac.config import IDACConfig
|
|
|
|
from titles.idac.const import IDACConstants
|
|
|
|
from titles.idac.database import IDACData
|
|
|
|
|
|
|
|
|
|
|
|
class IDACBase:
|
2023-11-06 18:11:30 +01:00
|
|
|
def __init__(self, core_cfg: CoreConfig, game_cfg: IDACConfig) -> None:
|
|
|
|
self.core_cfg = core_cfg
|
2023-10-01 03:54:23 +02:00
|
|
|
self.game_config = game_cfg
|
|
|
|
self.game = IDACConstants.GAME_CODE
|
|
|
|
self.version = IDACConstants.VER_IDAC_SEASON_1
|
2023-11-06 18:11:30 +01:00
|
|
|
self.data = IDACData(core_cfg)
|
2023-10-01 03:54:23 +02:00
|
|
|
self.logger = logging.getLogger("idac")
|