CloneBatch

indigo.shared.scenegraph.CloneBatch
See theCloneBatch companion object
final case class CloneBatch(id: CloneId, depth: Depth, cloneData: Batch[CloneBatchData], staticBatchKey: Option[BindingKey]) extends DependentNode[CloneBatch]

Represents many clones of the same clone blank, differentiated only by their transform data.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SceneNode
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type Out = T

Attributes

Inherited from:
DependentNode

Value members

Concrete methods

def addClone(x: Int, y: Int): CloneBatch
def addClone(x: Int, y: Int, rotation: Radians): CloneBatch
def addClones(additionalClones: Batch[CloneBatchData]): CloneBatch
def addClones(x: Int, y: Int, rotation: Radians, scaleX: Double, scaleY: Double): CloneBatch
def withCloneId(newCloneId: CloneId): CloneBatch
def withDepth(newDepth: Depth): CloneBatch

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val eventHandlerEnabled: Boolean
lazy val flip: Flip
lazy val position: Point
lazy val ref: Point
lazy val rotation: Radians
lazy val scale: Vector2