Layer

open class Layer(visibles: Visible, val layerOrder: Int = LayerOrder.Default, val layerType: LayerType = LayerType.Relative) : Entity, Dynamic

Constructors

Link copied to clipboard
constructor(vararg visibles: Visible, layerOrder: Int = LayerOrder.Default, layerType: LayerType = LayerType.Relative)

Properties

Link copied to clipboard
open override var active: Boolean

动态激活

Link copied to clipboard
override val id: Uuid

唯一标识符

Link copied to clipboard
open override val idString: String

可读ID

Link copied to clipboard
open val interactive: Boolean = true

可交互触发事件

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val preTrigger: Trigger? = null

预事件处理

Link copied to clipboard
Link copied to clipboard

可见

Functions

Link copied to clipboard
operator override fun compareTo(other: Identifiable<Uuid>): Int
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
inline fun <T : Visible> findVisible(): T?
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
override fun onAttached(scene: ScenePlugin)

附加场景

Link copied to clipboard
override fun onDetached(scene: ScenePlugin)

离开场景

Link copied to clipboard
override fun onUpdate(tick: Int)

更新

Link copied to clipboard
operator fun plusAssign(targetItems: Iterable<Visible>)
operator fun plusAssign(item: Visible)
Link copied to clipboard
open fun preHitTest(point: Offset): Any?

预受击测试

Link copied to clipboard

初始化绘制

Link copied to clipboard
open fun Drawer.preOnDraw()

预绘制

Link copied to clipboard
open fun PrepareDrawer.prePrepareDraw(viewportSize: Size, viewportBounds: Rect)

预准备绘制

Link copied to clipboard
open fun preUpdate(tick: Int)

预更新

Link copied to clipboard

移除Visible

Link copied to clipboard
inline fun <T : Visible> requireVisible(): T
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard