From df9202636b15f793eb5f88265e3b665fc5d809ac Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 1 May 2023 21:54:47 +0800 Subject: [PATCH] clean DR.api --- Difficult_Rocket/api/__init__.py | 4 ++- Difficult_Rocket/api/delivery.py | 28 -------------------- Difficult_Rocket/api/exception/__init__.py | 2 ++ Difficult_Rocket/api/types/data_type.py | 30 ---------------------- 4 files changed, 5 insertions(+), 59 deletions(-) delete mode 100644 Difficult_Rocket/api/delivery.py delete mode 100644 Difficult_Rocket/api/types/data_type.py diff --git a/Difficult_Rocket/api/__init__.py b/Difficult_Rocket/api/__init__.py index 647bc4f..b1c05bb 100644 --- a/Difficult_Rocket/api/__init__.py +++ b/Difficult_Rocket/api/__init__.py @@ -14,4 +14,6 @@ gitee: @shenjackyuanjie from typing import TYPE_CHECKING if TYPE_CHECKING: - from Difficult_Rocket.api import delivery, screen, mod, exception + from Difficult_Rocket.api import screen, mod, exception + +__all__ = ['screen', 'mod', 'exception'] diff --git a/Difficult_Rocket/api/delivery.py b/Difficult_Rocket/api/delivery.py deleted file mode 100644 index d8f9b48..0000000 --- a/Difficult_Rocket/api/delivery.py +++ /dev/null @@ -1,28 +0,0 @@ -# ------------------------------- -# Difficult Rocket -# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com -# All rights reserved -# ------------------------------- - -""" -writen by shenjackyuanjie -mail: 3695888@qq.com -github: @shenjackyuanjie -gitee: @shenjackyuanjie -""" - - -class Delivery: - def __init__(self): - # bool - self.using = False - self.read = False - self.key_board_get = False - # dic - self.ship_info = {} - self.planet_system = {} - self.main_ship_parts = {} - self.this_planet_info = {} - self.back_ground_element = {} - # value - self.back_ground_image = '' diff --git a/Difficult_Rocket/api/exception/__init__.py b/Difficult_Rocket/api/exception/__init__.py index 05239ad..413b75d 100644 --- a/Difficult_Rocket/api/exception/__init__.py +++ b/Difficult_Rocket/api/exception/__init__.py @@ -15,3 +15,5 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: from Difficult_Rocket.api.exception import command, logger, main, threading, unsupport + +__all__ = ['command', 'logger', 'main', 'threading', 'unsupport'] diff --git a/Difficult_Rocket/api/types/data_type.py b/Difficult_Rocket/api/types/data_type.py deleted file mode 100644 index 448d6ec..0000000 --- a/Difficult_Rocket/api/types/data_type.py +++ /dev/null @@ -1,30 +0,0 @@ -# ------------------------------- -# Difficult Rocket -# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com -# All rights reserved -# ------------------------------- - -""" -writen by shenjackyuanjie -mail: 3695888@qq.com -github: @shenjackyuanjie -gitee: @shenjackyuanjie -""" - -# system function -import ctypes - -# Difficult_Rocket function - -# libs function -# from MCDR.serializer import Serializable - -""" -DR 内部数据传输格式类型 -""" - - -class datas(ctypes.Structure): - _fields_: list = [("name", ctypes.c_char_p), - ("uuid", ctypes.c_char_p), - ]