MAPG-235 information of the current restrictions displayed on the ribbon in the top

This commit is contained in:
balazs committed 2021-05-22 20:54:58 +02:00
1 parent c965713c9c
commit a5238234d2
3 files changed
+76 -17

No files matched your search

+8 -7
View File
@@ -226,15 +226,16 @@ class GameFlowController implements ISecured
}
}
}
$response['restrictions'] = [
'timeLimit' => $challenge->getTimeLimit() * 1000,
'noMove' => $challenge->getNoMove(),
'noPan' => $challenge->getNoPan(),
'noZoom' => $challenge->getNoZoom()
];
}
$response['restrictions'] = [
'timeLimit' => $challenge->getTimeLimit() * 1000,
'timeLimitType' => $challenge->getTimeLimitType(),
'noMove' => $challenge->getNoMove(),
'noPan' => $challenge->getNoPan(),
'noZoom' => $challenge->getNoZoom()
];
return $response;
}