uaaaaa
This commit is contained in:
parent
a5c4ae871b
commit
683908bb01
@ -215,7 +215,7 @@ class ClientWindow(Window):
|
|||||||
def read_input(self):
|
def read_input(self):
|
||||||
self.logger.debug('read_input start')
|
self.logger.debug('read_input start')
|
||||||
while self.run_input:
|
while self.run_input:
|
||||||
get = input()
|
get = input(">")
|
||||||
if get in ('', ' ', '\n', '\r'):
|
if get in ('', ' ', '\n', '\r'):
|
||||||
continue
|
continue
|
||||||
if get == 'stop':
|
if get == 'stop':
|
||||||
@ -287,6 +287,7 @@ class ClientWindow(Window):
|
|||||||
|
|
||||||
@_call_screen_after
|
@_call_screen_after
|
||||||
def on_command(self, command: line.CommandText):
|
def on_command(self, command: line.CommandText):
|
||||||
|
print(command.re_match('/'))
|
||||||
self.logger.info(tr().window.command.text().format(command))
|
self.logger.info(tr().window.command.text().format(command))
|
||||||
if command.re_match('stop'):
|
if command.re_match('stop'):
|
||||||
# self.dispatch_event('on_exit')
|
# self.dispatch_event('on_exit')
|
||||||
|
@ -17,7 +17,7 @@ import re
|
|||||||
from typing import Union, Optional, Type, Tuple, List
|
from typing import Union, Optional, Type, Tuple, List
|
||||||
|
|
||||||
# DR
|
# DR
|
||||||
from Difficult_Rocket.exception.command import *
|
# from Difficult_Rocket.exception.command import *
|
||||||
|
|
||||||
search_re = re.compile(r'(?<!\\)"')
|
search_re = re.compile(r'(?<!\\)"')
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ class Game:
|
|||||||
self.server.run()
|
self.server.run()
|
||||||
if DR_option.use_multiprocess:
|
if DR_option.use_multiprocess:
|
||||||
try:
|
try:
|
||||||
game_process = multiprocessing.Process(target=self.client.start(), name='pyglet app')
|
game_process = multiprocessing.Process(target=self.client.start, name='pyglet app')
|
||||||
game_process.start()
|
game_process.start()
|
||||||
game_process.join()
|
game_process.join()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
@ -14,6 +14,9 @@ crate-type = ["cdylib"]
|
|||||||
[profile.dev.package.rapier2d-f64]
|
[profile.dev.package.rapier2d-f64]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
codegen-units = 1
|
||||||
|
|
||||||
[dependencies.rapier2d-f64]
|
[dependencies.rapier2d-f64]
|
||||||
version = "0.17.1"
|
version = "0.17.1"
|
||||||
features = ["simd-stable"]
|
features = ["simd-stable"]
|
||||||
|
Loading…
Reference in New Issue
Block a user