From 35ff2208fbcaf37c52d00d1c67d8f3323a4c35de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chauntalle=20Schu=CC=88le?= Date: Tue, 2 Jun 2020 02:18:50 +0200 Subject: [PATCH] found right trigger for syncingSt and gameSt after finishing a Round --- GoldWars/GoldWars/RoundCalculatorService.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GoldWars/GoldWars/RoundCalculatorService.swift b/GoldWars/GoldWars/RoundCalculatorService.swift index a68ad9c..c7707b2 100644 --- a/GoldWars/GoldWars/RoundCalculatorService.swift +++ b/GoldWars/GoldWars/RoundCalculatorService.swift @@ -32,6 +32,9 @@ class RoundCalculatorService { roundNr += 1 print("roundNR \(roundNr)") + print("entered syncingSt in calculateRound") + StateManager.sharedInstance.changeState(wantedState: .syncingSt) + os_log("Started calculating Round", log: RoundCalculatorService.LOG, type: .info) isCalculating = true let currentSnapshotModel = DataService.sharedInstance.snapshotModel @@ -174,6 +177,8 @@ class RoundCalculatorService { entityManager.updateSnapshotModel(snapshotModel: currentSnapshotModel!) entityManager.getHUD()?.startWithDuration() os_log("Finished calculating Round", log: RoundCalculatorService.LOG, type: .info) + print("entered gameSt in calculateRound") + StateManager.sharedInstance.changeState(wantedState: .gameSt) } func collectBaseSpecificMoves() -> [Int: [String: [PlayerMove]]] {