diff options
Diffstat (limited to 'swiftstory/Player.py')
-rw-r--r-- | swiftstory/Player.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/swiftstory/Player.py b/swiftstory/Player.py index 786569c..7193b64 100644 --- a/swiftstory/Player.py +++ b/swiftstory/Player.py @@ -17,9 +17,9 @@ class Player: def pop_card(self, card_id): return self.cards.pop(card_id) - async def inc_score(self): + def inc_score(self): self.score += 1 - await self.send_notification({ + self.register_notification({ 'op': 'updated_score', 'content': self.score, }) @@ -29,10 +29,10 @@ class Player: self.next_idx += 1 return self.next_idx - 1 - async def send_notification(self, obj): + def register_notification(self, obj): if self.client is None: return message = json.dumps({'type': 'notification', 'content': obj}) - await self.client.send_notification(message) + self.client.register_notification(message) |