LibNameplate-1.0

local LibNameplate = LibStub("LibNameplate-1.0", true)

--Plate Info
plateInfo.unit.name				-- Name of the unit.
plateInfo.unit.level			-- Level of the unit.
plateInfo.unit.reaction			-- FRIENDLY / NEUTRAL / HOSTILE
plateInfo.unit.type				-- NPC / PLAYER
plateInfo.unit.isBoss			-- Is a boss mob.
plateInfo.unit.isElite			-- Is a elite mob
plateInfo.unit.alpha			-- Alpha of the nameplate
plateInfo.unit.isTarget			-- Is our target.
plateInfo.unit.threatSituation	-- HIGH / MEDIUM / LOW
plateInfo.unit.health			-- Health of the unit.
plateInfo.unit.isMouseover		-- Is our mouseover.
plateInfo.unit.isCasting		-- Is casting a spell.
plateInfo.unit.isInCombat		-- Is the unit in combat.
plateInfo.unit.GUID				-- GUID of the unit, this isn't always avaiable.

-- Callbacks
LibNameplate.RegisterCallback(MyAddon, "LibNameplate_NewNameplate")
function MyAddon:LibNameplate_NewNameplate(event, namePlate)
end

LibNameplate.RegisterCallback(MyAddon, "LibNameplate_RecycleNameplate")
function MyAddon:LibNameplate_RecycleNameplate(event, namePlate)
end

LibNameplate.RegisterCallback(MyAddon, "LibNameplate_FoundGUID")
function MyAddon:LibNameplate_FoundGUID(event, namePlate, GUID, unitID)
end

LibNameplate.RegisterCallback(MyAddon, "LibNameplate_MouseoverNameplate")
function MyAddon:LibNameplate_MouseoverNameplate(event, namePlate)
end

LibNameplate.RegisterCallback(MyAddon, "LibNameplate_TargetNameplate")
function MyAddon:LibNameplate_TargetNameplate(event, namePlate)
end


-- API
local namePlate, plateInfo = LibNameplate:GetTargetNameplate()
local namePlate, plateInfo = LibNameplate:GetNameplateByGUID(GUID)
local namePlate, plateInfo = LibNameplate:GetNameplateByName(name)
local namePlate, plateInfo = LibNameplate:GetNameplateByUnit(unitID)

-- To Do
event: CURSOR_UPDATE
API: GetRaidTarget()
