From 49ac2b9d2995156d73b8df604b4348588166146f Mon Sep 17 00:00:00 2001 From: shenjack-5600u <3695888@qq.com> Date: Wed, 15 May 2024 21:13:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=A7=E5=A0=86?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8A=A5=E9=94=99=EF=BC=88=E8=99=BD=E8=AF=B4?= =?UTF-8?q?=E6=98=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 以及一个拼写(?)错误 --- mods/dr_game/Difficult_Rocket_rs/__init__.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mods/dr_game/Difficult_Rocket_rs/__init__.py b/mods/dr_game/Difficult_Rocket_rs/__init__.py index 5d5171f..7d4b94c 100644 --- a/mods/dr_game/Difficult_Rocket_rs/__init__.py +++ b/mods/dr_game/Difficult_Rocket_rs/__init__.py @@ -20,6 +20,7 @@ if TYPE_CHECKING: 获取版本号 :return: 版本号 """ + ... def part_list_read_test( file_name: Optional[str] = "./assets/builtin/PartList.xml" @@ -42,6 +43,7 @@ if TYPE_CHECKING: :param part_type: :return: """ + ... class SR1PartType_rs: # NOQA """ @@ -53,34 +55,42 @@ if TYPE_CHECKING: @property def name(self) -> str: """零件的名字""" + ... @property def description(self) -> str: """零件的描述""" + ... @property def sprite(self) -> str: """零件的贴图""" + ... @property def mass(self) -> float: """零件的质量""" + ... @property def width(self) -> int: """零件的宽度""" + ... @property def height(self) -> int: """零件的高度""" + ... @property def friction(self) -> float: """零件的摩擦系数""" + ... @property def hidden(self) -> bool: """零件是否隐藏""" + ... @property def type(self): @@ -194,15 +204,18 @@ if TYPE_CHECKING: @property def mass(self) -> float: - """获取整搜船的质量""" + """获取整艘船的质量""" + ... @property def img_pos(self) -> Tuple[int, int, int, int]: """-x -y +x +y 左下右上""" + ... @property def connection(self) -> List[Tuple[int, int, int, int]]: """获取所有连接信息""" + ... def get_part_box( self, part_id: int @@ -211,9 +224,11 @@ if TYPE_CHECKING: def as_list(self) -> List[Tuple[SR1PartType_rs, SR1PartData_rs]]: """用于返回一个包含所有已连接零件的列表""" + ... def as_dict(self) -> Dict[int, List[Tuple[SR1PartType_rs, SR1PartData_rs]]]: """用于返回一个包含所有已连接零件的字典""" + ... def save( self, file_path: str, save_status: Optional[SaveStatus_rs] = None