diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-07-16 02:19:16 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-07-16 02:19:22 +0200 |
commit | d1b3c9c9ff575fe0af010e7c335945f69232a2db (patch) | |
tree | 866ad9f462b5249550301653a1a682a5356d41a6 /game-engine/src/main/kotlin/org | |
parent | Rework resources representations (diff) | |
download | seven-wonders-d1b3c9c9ff575fe0af010e7c335945f69232a2db.tar.gz seven-wonders-d1b3c9c9ff575fe0af010e7c335945f69232a2db.tar.bz2 seven-wonders-d1b3c9c9ff575fe0af010e7c335945f69232a2db.zip |
Make GameDefinitionLoader a singleton object
Diffstat (limited to 'game-engine/src/main/kotlin/org')
-rw-r--r-- | game-engine/src/main/kotlin/org/luxons/sevenwonders/game/data/GameDefinitionLoader.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game-engine/src/main/kotlin/org/luxons/sevenwonders/game/data/GameDefinitionLoader.kt b/game-engine/src/main/kotlin/org/luxons/sevenwonders/game/data/GameDefinitionLoader.kt index 103adcae..e0f82c2b 100644 --- a/game-engine/src/main/kotlin/org/luxons/sevenwonders/game/data/GameDefinitionLoader.kt +++ b/game-engine/src/main/kotlin/org/luxons/sevenwonders/game/data/GameDefinitionLoader.kt @@ -21,7 +21,7 @@ import org.luxons.sevenwonders.game.resources.Production import org.luxons.sevenwonders.game.resources.ResourceType import org.luxons.sevenwonders.game.resources.Resources -class GameDefinitionLoader { +object GameDefinitionLoader { val gameDefinition: GameDefinition by lazy { load() } |