コード例 #1
0
ファイル: client.py プロジェクト: Plouc314/CodeShip
    def ship_config(self, arr):
        '''
        Store the new ship config of the client,  
        Store the ship status, send it to the client
        '''
        DataBase.set_ship(self.username, arr)
        DataBase.set_ship_status(self.username, 1)

        self.send(Message('shst', 1), pickling=True)
コード例 #2
0
ファイル: client.py プロジェクト: Plouc314/CodeShip
 def set_ship_status(self, content):
     '''
     Set the status of the user ship.
     '''
     DataBase.set_ship_status(self.username, content)