← back to roto on ba3a.dev

OutputFormat

@Serializable
sealed interface OutputFormat

A file a project asks for beside its published frames. Stored in roto.json as an object whose type names the kind.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "godot-frames")
data class GodotFrames(val path: @Serializable(with = PathTemplateSerializer::class) PathTemplate, val resRoot: String = "") : OutputFormat

A Godot SpriteFrames resource that shows the published frames.

Link copied to clipboard
@Serializable
@SerialName(value = "sheet")
data class Sheet(val path: @Serializable(with = PathTemplateSerializer::class) PathTemplate, val layout: SheetLayout = SheetLayout.ARRAY, val maxWidth: Int = DEFAULT_MAX_WIDTH) : OutputFormat

A sprite sheet with its Aseprite-style JSON.

Properties

Link copied to clipboard
abstract val path: PathTemplate

Where the files go, relative to the project root and without an extension. Clips whose paths expand to the same text share the files.