vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 -- Here will be ~dragons~ all the constants, enums, types for type hinting, etc
2 --
3  
4 -- Gatherer_EGatherType = {treasure=0, herb=1, ore=2}
5 Gatherer_EGatherType = {
6 [0] = "Treasure",
7 [1] = "Herb",
8 [2] = "Ore",
9 [3] = "Default",
10 ["Treasure"] = 0,
11 ["Herb"] = 1,
12 ["Ore"] = 2,
13 ["Default"] = 3,
14 };
15  
16 function Gatherer_EGatherType_ensureIndex(gatherType)
17 -- type: (Gatherer_EGatherType) -> gatherTypeIndex
18 local gatherTypeIndex
19 if type(gatherType) == "string" then
20 return Gatherer_EGatherType[gatherType];
21 end
22 return gatherType;
23 end
24  
25 -- EGatherEventType = {normal=0, no_skill=1, fishing=2}
26  
27 -- Continent = int
28 -- Zone = int
29 -- ZoneName = Text
30  
31 -- IconName = Text
32 -- IconIndex = int
33 -- Icon = Union[IconName, IconIndex]
34  
35 -- GatherName = Text
36 -- NodeInfo = Dict[Text, Union[int,float]]
37  
38 -- GathererDb = Dict[Continent, Dict[Zone, Dict[GatherName, List[NodeInfo]]]]
39  
40 -- Color = Tuple[int, int, int] -- r, g, b
41 -- FloatColor = Tuple[float, float, float]
42 -- HexColor = Text
43  
44 Gatherer_EBoolean = {
45 [true]='on',
46 [false]='off'
47 }