An open-source, self-hosted replacement for wow.vision. Can be hosted by users or bot creators. Users should utilize the Client branch for whichever unlocker they are using. If you are hosting an OpenVision server, utilize the Server branch.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenVision/_vision.lua

34 lines
755 B

local Tinkr = ...
---@class Vision
local Vision = {
DebugMode = false
}
Vision.__index = Vision
function Vision.require(class)
return require("scripts/Vision/" .. class .. "/" .. class, Vision)
end
---@type EventManager
Vision.EventManager = Vision.require("EventManager"):New()
---@type Timer
Vision.Timer = Vision.require("Timer")
---@type TimeManager
Vision.TimeManager = Vision.require("TimeManager"):New()
local DeathTimer = Vision.TimeManager:GetTimer("DeathTimer", { "PLAYER_DEAD" }, { "PLAYER_UNGHOST" })
Vision.Enabled = true
Vision.Ticker = C_Timer.NewTicker(1, function()
if Vision.Enabled then
if DeathTimer:GetTime() > 60 then
print("We have been dead for a minute or more.")
end
end
end)