[splittiming] remove GameState "current timing" functions; add compatibility functions to 01 compat.lua

This commit is contained in:
Flameshadowxeroshin
2011-05-15 08:17:32 -05:00
parent 84f2457aa4
commit 4d14654147
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -20,4 +20,4 @@ local _screen = {
h = SCREEN_HEIGHT,
cx = SCREEN_CENTER_X,
cy = SCREEN_CENTER_Y
}
}
+11 -1
View File
@@ -63,4 +63,14 @@ end
if ScreenMetric then
ScreenMetric = Screen.Metric
end
end
--[[ GameState ]]
--Aliases for old GAMESTATE timing functions.
--These have been converted to SongPosition, but most themes still use these old functions.
function GameState:GetSongBeat() return self:GetSongPosition():GetSongBeat() end
function GameState:GetSongBeatNoOffset() return self:GetSongPosition():GetSongBeatNoOffset() end
function GameState:GetSongBPS() return self:GetSongPosition():GetCurBPS() end
function GameState:GetSongDelay() return self:GetSongPosition:GetDelay() end
function GameState:GetSongFreeze() return self:GetSongPosition:GetFreeze() end