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

30 lines
709 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")
---@type TimeManager
Vision.TimeManager = Vision.require("TimeManager"):New()
---@type Timer
Vision.Timer = Vision.require("Timer")
local DeathTimer = Vision.TimeManager:GetTimer("DeathTimer", { "PLAYER_DEAD" }, { "PLAYER_ALIVE", "PLAYER_UNGHOST" })
Vision.Ticker = C_Timer.NewTicker(0.1, function()
if Vision.Enabled then
if DeathTimer:GetTime() > 60 then
-- do something
end
end
end)