local MAJOR_VERSION = "RosterLib-2.0"
local MINOR_VERSION = "$Revision: 5620 $"
if not AceLibrary then error(vmajor .. " requires AceLibrary.") end
if not AceLibrary:IsNewVersion(MAJOR_VERSION, MINOR_VERSION) then return end
if not AceLibrary:HasInstance("AceOO-2.0") then error(vmajor .. " requires AceOO-2.0") end
if not AceLibrary:HasInstance("AceEvent-2.0") then error(vmajor .. " requires AceEvent-2.0") end
local AceEvent = AceLibrary:GetInstance("AceEvent-2.0")
local RosterLib = {}
function RosterLib:AceEvent_FullyInitialized()
print("RosterLib: AceEvent_FullyInitialized")
end
local function activate(self, oldLib, oldDeactivate)
print("activate")
RosterLib = self
if oldLib then
self.registry = oldLib.registry
end
if not self.registry then
self.registry = {}
end
if oldDeactivate then
oldDeactivate(oldLib)
end
AceEvent:RegisterEvent("AceEvent_FullyInitialized", "AceEvent_FullyInitialized")
end
AceLibrary:Register(RosterLib, MAJOR_VERSION, MINOR_VERSION, activate)
RosterLib = AceLibrary(MAJOR_VERSION)