[6.5.0][视角切换] 代码重构+添加场景变化回调
This commit is contained in:
@@ -7,4 +7,13 @@ interface IMoGoVisualAngleChangeProvider: IProvider {
|
||||
fun updateLongSightLevel(level: Boolean)
|
||||
|
||||
fun changeAngle(scene: Scene)
|
||||
|
||||
fun addListener(tag: String, listener: OnMoGoVisualAngleSceneChangeListener)
|
||||
|
||||
fun removeListener(tag: String)
|
||||
|
||||
interface OnMoGoVisualAngleSceneChangeListener {
|
||||
|
||||
fun onSceneChanged(scene: Scene)
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,8 @@ interface IAttach {
|
||||
val angle: VisualAngleMode
|
||||
val priority: Int
|
||||
val displayThreshold: Long //最大展示时长 > 0; 表示最长展示多长时间, -1 表示,一直展示,直到触发默认视角, 0: 默认视角专用值,
|
||||
val delay: Long // 延迟多长时间切换
|
||||
val isCanSwitch: Boolean // 是否可切换
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user