示例#1
0
    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
 def set_ship_status(self, content):
     '''
     Set the status of the user ship.
     '''
     DataBase.set_ship_status(self.username, content)