diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Config.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Config.java b/core/src/ch/asynk/rustanddust/game/Config.java index cbfeeff..cc148db 100644 --- a/core/src/ch/asynk/rustanddust/game/Config.java +++ b/core/src/ch/asynk/rustanddust/game/Config.java @@ -55,6 +55,15 @@ public class Config return PVP; return SOLO; } + public static GameMode from(int i) + { + GameMode r = SOLO; + switch(i) { + case 1: r = PVE; break; + case 2: r = PVP; break; + } + return r; + } }; public GameMode gameMode; |