不愧是我

This commit is contained in:
沈瑗杰 2021-01-28 22:07:57 +08:00
parent 26a2c19eb7
commit d154b99b2b
2 changed files with 38 additions and 14 deletions

View File

@ -54,7 +54,9 @@ class RenderThread(mp.Process, pyglet.window.Window):
def on_draw(self): def on_draw(self):
# render parts # render parts
for part in self.parts: for ship in self.parts:
ship_poi = ship
for part in ship:
pass pass
def on_mouse_motion(self, x, y, dx, dy): def on_mouse_motion(self, x, y, dx, dy):

View File

@ -9,19 +9,41 @@
}, },
'client': { 'client': {
'self.parts': { 'self.parts': {
'part ID': [ 'ship name': {
// shipId.partId 'control center': [
'part Type', 'part type',
// just id // part type
'turn',
// type:float
'is mirror',
// type:bool
[ [
'x', 'basic_config.basic_poi'
'y' ]
/*rua 我用中文了!
飞船的"控制中心"(直译)没有"特殊值"
也就是说控制中心只是一个"壳"(服务端同理)
只会计算位置、方向之类的统一数据
需要改的话发issue
*/
],
'part ID': [
// partId
'part type',
// part type
'turn',
// type:float 0 is up clockwise
'is mirror',
// type:bool
[
'basic_config.basic_poi'
], ],
//poi
{ {
'special value': 'xxx' 'special value 1': 'xxx',
'special value 2': 'xxx'
} }
] ]
} }
} }
} }
}