-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathPlater_API.lua
45 lines (40 loc) · 941 Bytes
/
Plater_API.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
local Plater = _G.Plater
local DF = _G.DetailsFramework
local _
--create an api table
--this is the same code from Details!
-- /details api
--when adding new functions, they may or may not be added here
Plater.API_Description = {
addon = "Plater Nameplates",
namespaces = {
{
name = "Plater",
order = 1,
api = {},
}
},
}
tinsert(Plater.API_Description.namespaces[1].api, {
name = "IsCampaignQuest",
desc = "Query if a quest is part of a campaign quest list.",
parameters = {
{
name = "questName",
type = "string",
default = "",
desc = "A quest name to query if the quest is part of a campaign quest.",
},
},
returnValues = {
{
name = "isCampaignQuest",
type = "boolean",
desc = "true if the quest is a campaign quest.",
}
},
type = 0,
})
function Plater.IsCampaignQuest(questName)
return Plater.QuestCacheCampaign[questName]
end