This commit is contained in:
andrew6180
2023-04-16 00:31:14 -07:00
parent 72cb31eda6
commit 3ef32cdd72
9654 changed files with 55800 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
setfenv(1, VoiceOver)
Version = {}
local CLIENT_VERSION, BUILD, _, INTERFACE_VERSION = GetBuildInfo()
Version.Client = CLIENT_VERSION
Version.Build = BUILD
Version.Interface = INTERFACE_VERSION or 0
Version.IsAnyLegacy = WOW_PROJECT_ID == nil or nil
Version.IsLegacyVanilla = Version.IsAnyLegacy and Version.Interface == 0 or nil
Version.IsLegacyWrath = Version.IsAnyLegacy and Version.Interface == 30300 or nil
Version.IsAnyRetail = not Version.IsAnyLegacy or nil
Version.IsRetailVanilla = Version.IsAnyRetail and WOW_PROJECT_ID == WOW_PROJECT_CLASSIC or nil
Version.IsRetailBurningCrusade = Version.IsAnyRetail and WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC or nil
Version.IsRetailWrath = Version.IsAnyRetail and WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC or nil
Version.IsRetailMainline = Version.IsAnyRetail and WOW_PROJECT_ID == WOW_PROJECT_MAINLINE or nil
function Version:IsBelowLegacyVersion(version)
return self.IsAnyLegacy and self.Interface < version or nil
end
function Version:IsRetailOrAboveLegacyVersion(version)
return self.IsAnyRetail or self.Interface >= version or nil
end