found right trigger for syncingSt and gameSt after finishing a Round

This commit is contained in:
Chauntalle Schüle 2020-06-02 02:18:50 +02:00
parent 079ae4a6f6
commit 35ff2208fb

View File

@ -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]]] {