Files
neonsr/game_server/resource/configdb/item_config.py
Naruse ec8972d5d6 init
2025-04-15 19:36:05 +08:00

14 lines
345 B
Python

from dataclasses import dataclass
from game_server.resource.base_resource import BaseResource
from game_server.resource.decorators import GameResource
@dataclass
@GameResource("resources/ExcelOutput/ItemConfig.json")
class ItemConfig(BaseResource):
ID: int
ItemSubType: str
def get_index(self) -> str:
return str(self.ID)