Merge remote-tracking branch 'origin/main'

This commit is contained in:
Billchyi 2022-12-12 13:09:18 +08:00
commit d80b30c24c
5 changed files with 25 additions and 13 deletions

View File

@ -20,6 +20,15 @@ import traceback
from typing import List, Union
from decimal import Decimal
# third function
import tomlkit
import pyglet
# from pyglet import gl
from pyglet.gl import *
# from pyglet.libs.win32 import _user32
from pyglet.window import Window
from pyglet.window import key, mouse
# Difficult_Rocket function
from Difficult_Rocket import Options, DR_runtime
from Difficult_Rocket.command import line, tree
@ -32,14 +41,6 @@ from Difficult_Rocket.client.fps.fps_log import FpsLogger
from Difficult_Rocket.client.guis.widgets import InputBox
from Difficult_Rocket.exception.command import CommandError
import tomlkit
import pyglet
# from pyglet import gl
from pyglet.gl import *
# from pyglet.libs.win32 import _user32
from pyglet.window import Window
from pyglet.window import key, mouse
class Client:
def __init__(self, net_mode='local'):

View File

@ -0,0 +1,12 @@
# -------------------------------
# Difficult Rocket
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
# All rights reserved
# -------------------------------
# third party package
from defusedxml.ElementTree import parse
# Difficult Rocket
from Difficult_Rocket.client.screen import BaseScreen

View File

@ -22,7 +22,7 @@ if __name__ == '__main__': # been start will not run this
sys.path.append('/bin/libs')
sys.path.append('/bin')
from Difficult_Rocket import client, server, DR_option
from Difficult_Rocket import client, DR_option
from Difficult_Rocket.utils import tools
from Difficult_Rocket.utils.translate import tr
@ -56,7 +56,6 @@ class Game:
def setup(self) -> None:
self.client = client.Client(net_mode='local')
self.server = server.Server(net_mode='local')
def python_version_check(self) -> None: # best 3.8+ and write at 3.8.10
self.logger.info('{} {}'.format(tr['main']['version.now_on'], self.on_python_v))
@ -69,7 +68,6 @@ class Game:
# @new_thread('main')
def _start(self):
self.server.run()
threaded = False
if threaded:
try:

View File

@ -18,8 +18,9 @@ setuptools = "^65.5.0"
viztracer = "^0.15.4"
vizplugins = "^0.1.2"
Cython = "^0.29.32"
defusedxml = "*"
[build-system]
requires = ["poetry-core"]
requires = ["setuptools"]
build-backend = "poetry.core.masonry.api"

View File

@ -2,7 +2,7 @@ psutil
pillow
objprint
# selenium
defusedxml
tomlkit
pymunk
rtoml