-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCore.lua
More file actions
39 lines (27 loc) · 949 Bytes
/
Core.lua
File metadata and controls
39 lines (27 loc) · 949 Bytes
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
LiveRoster = LibStub("AceAddon-3.0"):NewAddon("LiveRoster", "AceConsole-3.0");
function LiveRoster:OnInitialize()
print("LiveRoster Initialized.");
LiveRoster.Guild = LR_LiveRoster_Class:New();
LiveRoster.Guild.Roster:UpdateRoster();
self.db = LibStub("AceDB-3.0"):New("LiveRoster2DB");
if self.db.global.Testme == 6 then
LiveRoster:Print("Found test!");
else
LiveRoster:Print("No test! "..tostring(LiveRoster2DB.global.Testme));
self.db.global.Testme = 6;
end
local TestToon = "Sinderion-ShadowCouncil";
local Character = LiveRoster.Guild.Roster:GetCharacterByName(TestToon);
print(Character:GetRank());
-- Code that you want to run when the addon is first loaded goes here.
-- eventually syncronize alt guild info, etc.
end
function LiveRoster:OnEnable()
-- Called when the addon is enabled
end
function LiveRoster:OnDisable()
-- Called when the addon is disabled
end
--[[ Ideas
- Logging of changes.
]]--