-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathanalytics.lua
34 lines (27 loc) · 866 Bytes
/
analytics.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
local addonName = ... ---@type string
---@class BetterBags: AceAddon
local addon = LibStub('AceAddon-3.0'):GetAddon(addonName)
---@class WagoAnalytics
local WagoAnalytics = LibStub("WagoAnalytics"):Register("aNDmy96o")
---@class Debug: AceModule
local debug = addon:GetModule('Debug')
---@param label string
---@param enabled boolean
function debug:Switch(label, enabled)
WagoAnalytics:Switch(label, enabled)
end
---@param counter string
---@param amount number
function debug:IncrementCounter(counter, amount)
WagoAnalytics:IncrementCounter(counter, amount)
end
---@param counter string
---@param amount number
function debug:DecrementCounter(counter, amount)
WagoAnalytics:DecrementCounter(counter, amount)
end
---@param counter string
---@param amount number
function debug:SetCounter(counter, amount)
WagoAnalytics:SetCounter(counter, amount)
end