JScratch
Loading...
Searching...
No Matches
com.jscratch.ProjectManager Class Reference

Static Public Member Functions

static void saveProject (Project project, File targetFile) throws IOException
static Project loadProject (File sourceFile) throws IOException

Static Private Attributes

static final Gson gson = new GsonBuilder().setPrettyPrinting().create()

Detailed Description

Handles saving and loading of projects in .jscratch format (ZIP containing JSON + assets).

Definition at line 13 of file ProjectManager.java.

Member Function Documentation

◆ loadProject()

Project com.jscratch.ProjectManager.loadProject ( File sourceFile) throws IOException
static

Definition at line 29 of file ProjectManager.java.

◆ saveProject()

void com.jscratch.ProjectManager.saveProject ( Project project,
File targetFile ) throws IOException
static

Definition at line 16 of file ProjectManager.java.

Member Data Documentation

◆ gson

final Gson com.jscratch.ProjectManager.gson = new GsonBuilder().setPrettyPrinting().create()
staticprivate

Definition at line 14 of file ProjectManager.java.


The documentation for this class was generated from the following file: