summaryrefslogtreecommitdiff
path: root/backend/src/main/kotlin/org
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-02-18 17:54:33 +0100
committerjbion <joffrey.bion@amadeus.com>2019-02-18 17:54:33 +0100
commit86f7101b6e6bafd5cbfb0b1db2d162a4510a097e (patch)
tree5a74a64e4ba7b705900be22ba1b71cd60c49fb05 /backend/src/main/kotlin/org
parentReduce visibility where appropriate (diff)
downloadseven-wonders-86f7101b6e6bafd5cbfb0b1db2d162a4510a097e.tar.gz
seven-wonders-86f7101b6e6bafd5cbfb0b1db2d162a4510a097e.tar.bz2
seven-wonders-86f7101b6e6bafd5cbfb0b1db2d162a4510a097e.zip
Simplify game init API
Diffstat (limited to 'backend/src/main/kotlin/org')
-rw-r--r--backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt b/backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
index 7ca78233..768aa659 100644
--- a/backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
+++ b/backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
@@ -1,6 +1,6 @@
package org.luxons.sevenwonders.repositories
-import org.luxons.sevenwonders.game.data.GameDefinitionLoader
+import org.luxons.sevenwonders.game.data.GameDefinition
import org.luxons.sevenwonders.lobby.Lobby
import org.luxons.sevenwonders.lobby.Player
import org.springframework.beans.factory.annotation.Autowired
@@ -18,7 +18,7 @@ class LobbyRepository @Autowired constructor() {
fun create(gameName: String, owner: Player): Lobby {
val id = lastGameId++
- val lobby = Lobby(id, gameName, owner, GameDefinitionLoader.gameDefinition)
+ val lobby = Lobby(id, gameName, owner, GameDefinition.load())
lobbies[id] = lobby
return lobby
}
bgstack15