RunningAnimationParams

Describes the properties of a currently running animation

Constructors

Link copied to clipboard
constructor(animation: Animation, animationName: String, colors: List<PreparedColorContainer>, id: String, section: String, runCount: Int, intParams: Map<String, Int>, doubleParams: Map<String, Double>, stringParams: Map<String, String>, locationParams: Map<String, Location>, distanceParams: Map<String, AbsoluteDistance>, rotationParams: Map<String, RadiansRotation>, equationParams: Map<String, Equation>, sourceParams: AnimationToRunParams)

Constructor so we can have the animation parameter but not include it in serialization

Properties

Link copied to clipboard
lateinit var animation: Animation

The animation being run

Link copied to clipboard

The name of the animation being run

Link copied to clipboard
Link copied to clipboard

A map of Distance parameters for the animation

Link copied to clipboard

A map of double parameters for the animation

Link copied to clipboard

A map of Equation parameters for the animation

Link copied to clipboard
val extraData: <Error class: unknown class>

A map used internally by animations to communicate between runs of the animation (see Alternate or Cat Toy)

Link copied to clipboard
val id: String

ID for the animation. Used by server and clients to identify a specific animation.

Link copied to clipboard

A map of integer parameters for the animation

Link copied to clipboard

A map of Location parameters for the animation

Link copied to clipboard

A map of Rotation parameters for the animation

Link copied to clipboard

The number of times the animation should be run. -1 means until stopped.

Link copied to clipboard

The id of the section of the strip that will be running the whole animation (not necessarily the section running this animation, such as if this is a subanimation). An empty string means the whole strip.

Link copied to clipboard
Link copied to clipboard

A map of string parameters for the animation

Functions

Link copied to clipboard
open fun json(): ByteArray
Link copied to clipboard
open fun jsonString(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun withModifications(animation: String = this.animationName, colors: List<ColorContainerInterface> = this.colors, id: String = this.id, section: String = this.section, runCount: Int = this.runCount, intParamMods: Map<String, Int> = mapOf(), doubleParamMods: Map<String, Double> = mapOf(), stringParamMods: Map<String, String> = mapOf(), locationParamMods: Map<String, Location> = mapOf(), distanceParamMods: Map<String, Distance> = mapOf(), rotationParamMods: Map<String, Rotation> = mapOf(), equationParamMods: Map<String, Equation> = mapOf()): AnimationToRunParams

Create a new AnimationToRunParams instance with the values in this RunningAnimationParams, unless if specified otherwise