Class PlayerConfig

java.lang.Object
dev.mikita.darkforest.core.PlayerConfig

public class PlayerConfig extends Object
The type Player config.

Helper class for loading player configuration (standard or from save).

  • 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.