ProjectJson

data class ProjectJson(val string: String, val buildRoot: BuildRoot)

Constructors

Link copied to clipboard
constructor(string: String, buildRoot: BuildRoot)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun ProjectJson.modifyProject(path: Path, addResources: Boolean = false)

Modifies an existing Scratch project file (.sb3) with the generated project JSON and optionally adds resources.

Link copied to clipboard

Prints the generated project JSON to the console.

Link copied to clipboard
fun ProjectJson.writeTo(path: Path)

Writes the project to a .sb3 file, including the project JSON and all assets.

Link copied to clipboard

Writes the project JSON to a file at the specified path.