mirror of
https://github.com/PaiGramTeam/genshin-wiki.git
synced 2024-11-21 22:58:02 +00:00
45 lines
813 B
Python
45 lines
813 B
Python
from model.enums import ItemType, MaterialType
|
|
|
|
from model.enums import FoodQuality
|
|
from model._base import Model as BaseModel
|
|
|
|
|
|
class Item(BaseModel):
|
|
id: int
|
|
"""ID"""
|
|
name: str
|
|
"""名称"""
|
|
type: str | None
|
|
"""类型"""
|
|
icon: str
|
|
"""图标名"""
|
|
rarity: int | None
|
|
"""星级"""
|
|
description: str
|
|
"""描述"""
|
|
special_description: str | None
|
|
"""特殊描述"""
|
|
item_type: ItemType
|
|
"""物品类型"""
|
|
|
|
|
|
class Material(Item):
|
|
material_type: MaterialType
|
|
"""材料类型"""
|
|
|
|
|
|
class Food(Item):
|
|
quality: FoodQuality | None
|
|
"""食物质量"""
|
|
effect: str
|
|
"""效果"""
|
|
effect_icon: str
|
|
"""效果图标"""
|
|
effect_name: str
|
|
"""效果名称"""
|
|
|
|
|
|
class Namecard(Item):
|
|
pictures: list[str]
|
|
"""其它图标名"""
|