All pastes #83438 Raw Edit

Stuff

public text v1 · immutable
·published 2006-07-09 20:28 UTC
rendered paste body
aUF = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceDebug-2.0", "AceHook-2.0", "AceDB-2.0", "AceConsole-2.0")

local AceOO = AceLibrary("AceOO-2.0")

aUF.aUFunit = AceOO.Class("AceEvent-2.0")
aUF.aUFunitXP = AceOO.Class(aUF.aUFunit)

function aUF.aUFunit.prototype:RegisterEvents()
	self:RegisterEvent("UNIT_PVP_UPDATE", "UpdatePvP")
end

function aUF.aUFunit.prototype:UpdatePvP()

end

function aUF:OnInitialize()
        self.player = self.aUFunitXP:new("player","player")
end