mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-19 15:04:05 +09:00
music disc jockeying wip
This commit is contained in:
@@ -11,26 +11,7 @@ open class MusicGovernor {
|
||||
protected var intermissionLength = 1f
|
||||
protected var musicFired = false
|
||||
|
||||
protected var fadeoutAkku = 0f
|
||||
protected var fadeoutLength = 0f
|
||||
protected var fadeoutFired = false
|
||||
protected var fadeinFired = false
|
||||
|
||||
fun requestFadeOut(length: Float) {
|
||||
if (!fadeoutFired) {
|
||||
fadeoutLength = length
|
||||
fadeoutAkku = 0f
|
||||
fadeoutFired = true
|
||||
}
|
||||
}
|
||||
|
||||
fun requestFadeIn(length: Float) {
|
||||
if (!fadeoutFired) {
|
||||
fadeoutLength = length
|
||||
fadeoutAkku = 0f
|
||||
fadeinFired = true
|
||||
}
|
||||
}
|
||||
open fun dispose() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user