← back to roto on ba3a.dev

ModelManifest

@Serializable
data class ModelManifest(val action: String, val facing: String, val loop: Boolean, val durations: List<Int>, val importedFrom: String)

A model's model.json: everything about a ModelClip except its frame pictures, which sit beside it as 000.png, 001.png, and so on.

Constructors

Link copied to clipboard
constructor(action: String, facing: String, loop: Boolean, durations: List<Int>, importedFrom: String)

Properties

Link copied to clipboard

the action, a SafeName

Link copied to clipboard

each frame's duration in ms, at least 1; one entry per frame file

Link copied to clipboard

the facing, a SafeName

Link copied to clipboard

where the model was imported from

Link copied to clipboard
val key: String

<action>_<facing>: the model's folder name.

Link copied to clipboard

whether the animation repeats