MAPG-235 basic gameflow works

This commit is contained in:
balazs committed 2021-05-12 21:01:41 +02:00
1 parent 5daed10036
commit 93f8fc3f34
10 files changed
+209 -55

No files matched your search

+2
View File
@@ -244,7 +244,9 @@ class GameController
if(!$this->userInChallengeRepository->isUserParticipatingInChallenge($userId, $challenge)) {
$userInChallenge = new UserInChallenge();
$userInChallenge->setUserId($userId);
$userInChallenge->setChallenge($challenge);
$userInChallenge->setTimeLeft($challenge->getTimerSec());
$this->pdm->saveToDb($userInChallenge);
}
$map = $this->mapRepository->getByChallenge($challenge);