[6.5.0][视角切换] 代码重构+添加场景变化回调

This commit is contained in:
renwj
2024-06-28 09:45:37 +08:00
parent fabf1996fd
commit 6ff58cf654
12 changed files with 121 additions and 189 deletions

View File

@@ -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)
}
}

View File

@@ -6,6 +6,8 @@ interface IAttach {
val angle: VisualAngleMode
val priority: Int
val displayThreshold: Long //最大展示时长 > 0; 表示最长展示多长时间, -1 表示,一直展示,直到触发默认视角, 0: 默认视角专用值,
val delay: Long // 延迟多长时间切换
val isCanSwitch: Boolean // 是否可切换
}