Search in sources :

Example 1 with ObjectExporter

use of net.runelite.cache.definitions.exporters.ObjectExporter in project runelite by runelite.

the class ObjectManager method dump.

public void dump(File out) throws IOException {
    out.mkdirs();
    for (ObjectDefinition def : objects.values()) {
        ObjectExporter exporter = new ObjectExporter(def);
        File targ = new File(out, def.getId() + ".json");
        exporter.exportTo(targ);
    }
}
Also used : ObjectExporter(net.runelite.cache.definitions.exporters.ObjectExporter) ObjectDefinition(net.runelite.cache.definitions.ObjectDefinition) File(java.io.File) FSFile(net.runelite.cache.fs.FSFile)

Aggregations

File (java.io.File)1 ObjectDefinition (net.runelite.cache.definitions.ObjectDefinition)1 ObjectExporter (net.runelite.cache.definitions.exporters.ObjectExporter)1 FSFile (net.runelite.cache.fs.FSFile)1