Package dev.mikita.darkforest.core
Class PlayerConfig
java.lang.Object
dev.mikita.darkforest.core.PlayerConfig
The type Player config.
Helper class for loading player configuration (standard or from save).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.json.JSONObject
getPlayerConfig
(boolean fromSave) Gets player config.static boolean
Is exist player save boolean.static void
Save player config.
-
Constructor Details
-
PlayerConfig
public PlayerConfig()
-
-
Method Details
-
getPlayerConfig
public static org.json.JSONObject getPlayerConfig(boolean fromSave) Gets player config.- Parameters:
fromSave
- The boolean value that indicates whether to load player config from save or not.- Returns:
- The player configuration.
-
isExistPlayerSave
public static boolean isExistPlayerSave()Is exist player save boolean.- Returns:
- The boolean value that indicates whether player save exists or not.
-
savePlayerConfig
public static void savePlayerConfig()Save player config.
-