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-24 01:04:52 +00:00
|
|
|
|
2023-04-23 08:38:28 +00:00
|
|
|
class IDZHandlerSaveTopic(IDZHandlerBase):
|
|
|
|
cmd_codes = [0x009A, 0x009A, 0x0091, 0x0091]
|
|
|
|
rsp_codes = [0x009B, 0x009B, 0x0092, 0x0092]
|
|
|
|
name = "save_topic"
|
|
|
|
|
|
|
|
def __init__(self, core_cfg: CoreConfig, game_cfg: IDZConfig, version: int) -> None:
|
|
|
|
super().__init__(core_cfg, game_cfg, version)
|
2023-04-24 01:04:52 +00:00
|
|
|
self.size = 0x05D0
|
|
|
|
|
2023-04-23 08:38:28 +00:00
|
|
|
def handle(self, data: bytes) -> bytearray:
|
|
|
|
return super().handle(data)
|