CloneBatch

final case class CloneBatch(id: CloneId, depth: Depth, transform: CloneTransformData, clones: List[CloneTransformData], staticBatchKey: Option[BindingKey]) extends DependentNode with BasicSpatialModifiers[CloneBatch]

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

trait Serializable
trait Product
trait Equals
trait SceneNode
class Object
trait Matchable
class Any

Value members

Concrete methods

def addClones(additionalClones: List[CloneTransformData]): CloneBatch
def flip: Flip
def withCloneId(newCloneId: CloneId): CloneBatch
def withClones(newClones: List[CloneTransformData]): CloneBatch
def withDepth(newDepth: Depth): CloneBatch
def withFlip(newFlip: Flip): CloneBatch
def withHorizontalFlip(isFlipped: Boolean): CloneBatch
def withPosition(newPosition: Point): CloneBatch
def withRotation(newRotation: Radians): CloneBatch
def withScale(newScale: Vector2): CloneBatch
def withTransforms(newPosition: Point, newRotation: Radians, newScale: Vector2, flipHorizontal: Boolean, flipVertical: Boolean): CloneBatch
def withVerticalFlip(isFlipped: Boolean): CloneBatch

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

lazy val flipHorizontal: Boolean
lazy val flipVertical: Boolean
lazy val ref: Point
lazy val rotation: Radians
lazy val scale: Vector2
lazy val x: Int
lazy val y: Int