CloneTiles

final case class CloneTiles(id: CloneId, depth: Depth, cloneData: Batch[CloneTileData], staticBatchKey: Option[BindingKey]) extends DependentNode[CloneTiles]

Represents many clones of the same cloneblank, differentiated by their transform data and which part of the texture it is cropped on.

Companion:
object
trait Serializable
trait Product
trait Equals
trait SceneNode
class Object
trait Matchable
class Any

Type members

Inherited types

type Out = T
Inherited from:
DependentNode

Value members

Concrete methods

def addClone(x: Int, y: Int, cropX: Int, cropY: Int, cropWidth: Int, cropHeight: Int): CloneTiles
def addClone(x: Int, y: Int, rotation: Radians, cropX: Int, cropY: Int, cropWidth: Int, cropHeight: Int): CloneTiles
def addClones(additionalClones: Batch[CloneTileData]): CloneTiles
def addClones(x: Int, y: Int, rotation: Radians, scaleX: Double, scaleY: Double, cropX: Int, cropY: Int, cropWidth: Int, cropHeight: Int): CloneTiles
def withCloneId(newCloneId: CloneId): CloneTiles
def withDepth(newDepth: Depth): CloneTiles

Inherited methods

Inherited from:
Product

Concrete fields

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