This commit is contained in:
沈瑗杰 2021-02-04 19:05:09 +08:00
parent eda86d67a4
commit 5ef109b9af
4 changed files with 20 additions and 8 deletions

View File

@ -25,9 +25,6 @@ class RenderThread(mp.Process, pyglet.window.Window):
def __init__(self, dev_list, dev_dic, logger, net_mode='local'):
"""
rua!
__init__ 内定义的变量都是必须用传入变量定义的
其他的都放在setup里了
:param dev_list: 共享内存
:param dev_dic: 共享内存
:param logger: logger

View File

@ -4,18 +4,21 @@ mail: 3695888@qq.com
"""
# import re
import bin
import time
import json5
import decimal
try:
import tools
except ModuleNotFoundError:
from bin import tools
def __basic_number(int_num=0, float_num=1, unit1=None, unit2=None) -> list:
if unit1 is None:
unit1 = []
if unit2 is None:
unit2 = []
if bin.tools.is_decimal(float_num): # is decimal class?
if tools.is_decimal(float_num): # is decimal class?
return [int_num, float_num, unit1, unit2] # is just return
else:
return [int_num, decimal.Decimal(str(float_num)), unit1, unit2] # no create a decimal class

View File

@ -25,5 +25,9 @@
'kg'
]
]
}
},
'defaut ship':
[
]
}

View File

@ -23,7 +23,7 @@
[
'float',
'float'
],
]
// 贴图偏移量
// 指的是部件的碰撞箱左上角到贴图左上角的距离
],
@ -51,7 +51,15 @@
0.1
],
[
'parts/Beam'
'parts/Beam.png',
[
0.0,
0.0
]
],
[
3.0,
2.0
]
]
}