diff --git a/korge/src/korlibs/korge/tween/tweenbase.kt b/korge/src/korlibs/korge/tween/tweenbase.kt index 07514d9be4..af8dddfe61 100644 --- a/korge/src/korlibs/korge/tween/tweenbase.kt +++ b/korge/src/korlibs/korge/tween/tweenbase.kt @@ -24,7 +24,10 @@ data class V2( ) { val endTime = startTime + duration.coalesce { 0.nanoseconds } - fun duration(default: TimeSpan): TimeSpan = if (duration.isNil) default else duration + @Deprecated("", ReplaceWith("getDuration(duration)"), level = DeprecationLevel.HIDDEN) + fun duration(default: TimeSpan): TimeSpan = getDuration(default) + + fun getDuration(default: TimeSpan): TimeSpan = if (duration.isNil) default else duration fun endTime(default: TimeSpan): TimeSpan = if (duration.isNil) default else endTime fun init(): Unit {