2023-02-17 06:02:21 +00:00
|
|
|
from core.data import Data
|
|
|
|
from core.config import CoreConfig
|
|
|
|
from titles.chuni.schema import *
|
2024-09-16 01:20:45 +00:00
|
|
|
from .config import ChuniConfig
|
2023-03-09 16:38:58 +00:00
|
|
|
|
2023-02-17 06:02:21 +00:00
|
|
|
class ChuniData(Data):
|
2024-09-16 01:20:45 +00:00
|
|
|
def __init__(self, cfg: CoreConfig, chuni_cfg: ChuniConfig = None) -> None:
|
2023-02-17 06:02:21 +00:00
|
|
|
super().__init__(cfg)
|
|
|
|
|
|
|
|
self.item = ChuniItemData(cfg, self.session)
|
|
|
|
self.profile = ChuniProfileData(cfg, self.session)
|
|
|
|
self.score = ChuniScoreData(cfg, self.session)
|
2023-03-09 16:38:58 +00:00
|
|
|
self.static = ChuniStaticData(cfg, self.session)
|
2024-09-16 01:20:45 +00:00
|
|
|
|
|
|
|
# init rom versioning for use with score playlog data
|
|
|
|
if chuni_cfg:
|
|
|
|
ChuniRomVersion.init_versions(chuni_cfg)
|