Create and modify players function.

This commit is contained in:
luxick
2018-03-14 13:56:11 +01:00
parent c3e6793f69
commit ec71d4415f
3 changed files with 24 additions and 11 deletions

View File

@@ -67,6 +67,11 @@ class GtkUi:
self.data_client.send_request('update_enemy', enemy)
self.full_reload()
def update_player(self, player: 'models.Player'):
with util.network_operation(self):
self.data_client.send_request('update_player', player)
self.full_reload()
def update_season(self, season: 'models.Season'):
with util.network_operation(self):
self.data_client.send_request('update_season', season)