diff --git a/bin/client.py b/bin/client.py index 9857c3c..2870727 100644 --- a/bin/client.py +++ b/bin/client.py @@ -54,8 +54,10 @@ class RenderThread(mp.Process, pyglet.window.Window): def on_draw(self): # render parts - for part in self.parts: - pass + for ship in self.parts: + ship_poi = ship + for part in ship: + pass def on_mouse_motion(self, x, y, dx, dy): pass diff --git a/docs/configes sample/in_file_config.json5 b/docs/configes sample/in_file_config.json5 index 278b218..58704b3 100644 --- a/docs/configes sample/in_file_config.json5 +++ b/docs/configes sample/in_file_config.json5 @@ -9,19 +9,41 @@ }, 'client': { 'self.parts': { - 'part ID': [ - // shipId.partId - 'part Type', - // just id - [ - 'x', - 'y' + 'ship name': { + 'control center': [ + 'part type', + // part type + 'turn', + // type:float + 'is mirror', + // type:bool + [ + 'basic_config.basic_poi' + ] + /*rua! 我用中文了! + 飞船的"控制中心"(直译)没有"特殊值" + 也就是说控制中心只是一个"壳"(服务端同理) + 只会计算位置、方向之类的统一数据 + 需要改的话发issue + */ ], - //poi - { - 'special value': 'xxx' - } - ] + 'part ID': [ + // partId + 'part type', + // part type + 'turn', + // type:float 0 is up clockwise + 'is mirror', + // type:bool + [ + 'basic_config.basic_poi' + ], + { + 'special value 1': 'xxx', + 'special value 2': 'xxx' + } + ] + } } } } \ No newline at end of file