Class JsonConfiguration

java.lang.Object
org.rusherhack.client.api.config.Configuration
org.rusherhack.client.api.config.JsonConfiguration

public class JsonConfiguration extends Configuration
  • Field Details

    • GSON

      public static final com.google.gson.Gson GSON
      The GSON instance used to serialize json config files
  • Constructor Details

    • JsonConfiguration

      public JsonConfiguration(File file)
  • Method Details

    • createConfiguration

      public static JsonConfiguration createConfiguration(String name)
    • createConfiguration

      public static JsonConfiguration createConfiguration(String parentDirectory, String name)
    • write

      public void write(org.rusherhack.core.serialize.ISerializable<?> serializable)
      Specified by:
      write in class Configuration
    • read

      public void read(org.rusherhack.core.serialize.ISerializable<?> serializable)
      Specified by:
      read in class Configuration