17 lines
434 B
Python
17 lines
434 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/SummonUnitData.json")
|
|
class SummonUnitData(BaseResource):
|
|
ID: int
|
|
JsonPath: str
|
|
DestroyOnEnterBattle: bool
|
|
RemoveMazeBuffOnDestroy: bool
|
|
IsClient: bool
|
|
|
|
def get_index(self) -> str:
|
|
return str(self.ID)
|