artemis/titles/idz/handlers/load_team_ranking.py

32 lines
952 B
Python
Raw Normal View History

2023-04-23 08:38:28 +00:00
import struct
from .base import IDZHandlerBase
from core.config import CoreConfig
from ..config import IDZConfig
2023-04-23 08:38:28 +00:00
class IDZHandlerLoadTeamRankingA(IDZHandlerBase):
cmd_codes = [0x00B9, 0x00B9, 0x00A7, 0x00A7]
rsp_codes = [0x00B1] * 4
2023-04-23 08:38:28 +00:00
name = "load_team_ranking_a"
def __init__(self, core_cfg: CoreConfig, game_cfg: IDZConfig, version: int) -> None:
super().__init__(core_cfg, game_cfg, version)
self.size = 0x0BA0
2023-04-23 08:38:28 +00:00
def handle(self, data: bytes) -> bytearray:
return super().handle(data)
2023-04-23 08:38:28 +00:00
class IDZHandlerLoadTeamRankingB(IDZHandlerBase):
cmd_codes = [0x00BB, 0x00BB, 0x00A9, 0x00A9]
rsp_codes = [0x00A8] * 4
2023-04-23 08:38:28 +00:00
name = "load_team_ranking_b"
def __init__(self, core_cfg: CoreConfig, game_cfg: IDZConfig, version: int) -> None:
super().__init__(core_cfg, game_cfg, version)
self.size = 0x0BA0
2023-04-23 08:38:28 +00:00
def handle(self, data: bytes) -> bytearray:
return super().handle(data)