Skip to content

Commit

Permalink
Switched to tick, added clients to tojson
Browse files Browse the repository at this point in the history
  • Loading branch information
HagenSR committed Jul 31, 2021
1 parent b8c423c commit d0808ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game/controllers/master_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def turn_logic(self, clients, turn):
# Return serialized version of game
def create_turn_log(self, clients, turn):
data = dict()
data['turn'] = turn
data['tick'] = turn
data['clients'] = [client.to_json() for client in clients]
# Add things that should be thrown into the turn logs here.
data['game_map'] = self.current_world_data["game_map"].to_json()

Expand Down

0 comments on commit d0808ca

Please sign in to comment.