|
|
@ -82,7 +82,9 @@ local function LoadThird() |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
---@return any ... |
|
|
|
---@generic V |
|
|
|
|
|
|
|
---@param class `V` |
|
|
|
|
|
|
|
---@return V ... |
|
|
|
function Bastion.require(class) |
|
|
|
function Bastion.require(class) |
|
|
|
-- return require("scripts/bastion/src/" .. class .. "/" .. class, Bastion) |
|
|
|
-- return require("scripts/bastion/src/" .. class .. "/" .. class, Bastion) |
|
|
|
return Bastion:Require("~/src/" .. class .. "/" .. class) |
|
|
|
return Bastion:Require("~/src/" .. class .. "/" .. class) |
|
|
@ -90,62 +92,37 @@ end |
|
|
|
|
|
|
|
|
|
|
|
Bastion.Globals = {} |
|
|
|
Bastion.Globals = {} |
|
|
|
|
|
|
|
|
|
|
|
---@type ClassMagic |
|
|
|
|
|
|
|
Bastion.ClassMagic = Bastion.require("ClassMagic") |
|
|
|
Bastion.ClassMagic = Bastion.require("ClassMagic") |
|
|
|
---@type List |
|
|
|
|
|
|
|
Bastion.List = Bastion.require("List") |
|
|
|
Bastion.List = Bastion.require("List") |
|
|
|
---@type Library |
|
|
|
|
|
|
|
Bastion.Library = Bastion.require("Library") |
|
|
|
Bastion.Library = Bastion.require("Library") |
|
|
|
---@type NotificationsList, Notification |
|
|
|
---@type NotificationsList, Notification |
|
|
|
Bastion.NotificationsList, Bastion.Notification = Bastion.require("NotificationsList") |
|
|
|
Bastion.NotificationsList, Bastion.Notification = Bastion.require("NotificationsList") |
|
|
|
---@type Vector3 |
|
|
|
|
|
|
|
Bastion.Vector3 = Bastion.require("Vector3") |
|
|
|
Bastion.Vector3 = Bastion.require("Vector3") |
|
|
|
---@type Sequencer |
|
|
|
|
|
|
|
Bastion.Sequencer = Bastion.require("Sequencer") |
|
|
|
Bastion.Sequencer = Bastion.require("Sequencer") |
|
|
|
---@type Command |
|
|
|
|
|
|
|
Bastion.Command = Bastion.require("Command") |
|
|
|
Bastion.Command = Bastion.require("Command") |
|
|
|
---@type Cache |
|
|
|
|
|
|
|
Bastion.Cache = Bastion.require("Cache") |
|
|
|
Bastion.Cache = Bastion.require("Cache") |
|
|
|
---@type Cacheable |
|
|
|
|
|
|
|
Bastion.Cacheable = Bastion.require("Cacheable") |
|
|
|
Bastion.Cacheable = Bastion.require("Cacheable") |
|
|
|
---@type Refreshable |
|
|
|
|
|
|
|
Bastion.Refreshable = Bastion.require("Refreshable") |
|
|
|
Bastion.Refreshable = Bastion.require("Refreshable") |
|
|
|
---@type Unit |
|
|
|
|
|
|
|
Bastion.Unit = Bastion.require("Unit") |
|
|
|
Bastion.Unit = Bastion.require("Unit") |
|
|
|
---@type Aura |
|
|
|
|
|
|
|
Bastion.Aura = Bastion.require("Aura") |
|
|
|
Bastion.Aura = Bastion.require("Aura") |
|
|
|
---@type APL, APLActor, APLTrait |
|
|
|
---@type APL, APLActor, APLTrait |
|
|
|
Bastion.APL, Bastion.APLActor, Bastion.APLTrait = Bastion.require("APL") |
|
|
|
Bastion.APL, Bastion.APLActor, Bastion.APLTrait = Bastion.require("APL") |
|
|
|
---@type Module |
|
|
|
|
|
|
|
Bastion.Module = Bastion.require("Module") |
|
|
|
Bastion.Module = Bastion.require("Module") |
|
|
|
---@type UnitManager |
|
|
|
|
|
|
|
Bastion.UnitManager = Bastion.require("UnitManager"):New() |
|
|
|
Bastion.UnitManager = Bastion.require("UnitManager"):New() |
|
|
|
---@type ObjectManager |
|
|
|
|
|
|
|
Bastion.ObjectManager = Bastion.require("ObjectManager"):New() |
|
|
|
Bastion.ObjectManager = Bastion.require("ObjectManager"):New() |
|
|
|
---@type EventManager |
|
|
|
|
|
|
|
Bastion.EventManager = Bastion.require("EventManager") |
|
|
|
Bastion.EventManager = Bastion.require("EventManager") |
|
|
|
Bastion.Globals.EventManager = Bastion.EventManager:New() |
|
|
|
Bastion.Globals.EventManager = Bastion.EventManager:New() |
|
|
|
---@type Spell |
|
|
|
|
|
|
|
Bastion.Spell = Bastion.require("Spell") |
|
|
|
Bastion.Spell = Bastion.require("Spell") |
|
|
|
---@type SpellBook |
|
|
|
|
|
|
|
Bastion.SpellBook = Bastion.require("SpellBook") |
|
|
|
Bastion.SpellBook = Bastion.require("SpellBook") |
|
|
|
Bastion.Globals.SpellBook = Bastion.SpellBook:New() |
|
|
|
Bastion.Globals.SpellBook = Bastion.SpellBook:New() |
|
|
|
---@type Item |
|
|
|
|
|
|
|
Bastion.Item = Bastion.require("Item") |
|
|
|
Bastion.Item = Bastion.require("Item") |
|
|
|
---@type ItemBook |
|
|
|
|
|
|
|
Bastion.ItemBook = Bastion.require("ItemBook") |
|
|
|
Bastion.ItemBook = Bastion.require("ItemBook") |
|
|
|
Bastion.Globals.ItemBook = Bastion.ItemBook:New() |
|
|
|
Bastion.Globals.ItemBook = Bastion.ItemBook:New() |
|
|
|
---@type AuraTable |
|
|
|
|
|
|
|
Bastion.AuraTable = Bastion.require("AuraTable") |
|
|
|
Bastion.AuraTable = Bastion.require("AuraTable") |
|
|
|
---@type Class |
|
|
|
|
|
|
|
Bastion.Class = Bastion.require("Class") |
|
|
|
Bastion.Class = Bastion.require("Class") |
|
|
|
---@type Timer |
|
|
|
|
|
|
|
Bastion.Timer = Bastion.require("Timer") |
|
|
|
Bastion.Timer = Bastion.require("Timer") |
|
|
|
---@type Timer |
|
|
|
|
|
|
|
Bastion.CombatTimer = Bastion.Timer:New("combat") |
|
|
|
Bastion.CombatTimer = Bastion.Timer:New("combat") |
|
|
|
---@type MythicPlusUtils |
|
|
|
|
|
|
|
Bastion.MythicPlusUtils = Bastion.require("MythicPlusUtils"):New() |
|
|
|
Bastion.MythicPlusUtils = Bastion.require("MythicPlusUtils"):New() |
|
|
|
---@type NotificationsList |
|
|
|
|
|
|
|
Bastion.Notifications = Bastion.NotificationsList:New() |
|
|
|
Bastion.Notifications = Bastion.NotificationsList:New() |
|
|
|
|
|
|
|
|
|
|
|
local LIBRARIES = {} |
|
|
|
local LIBRARIES = {} |
|
|
@ -317,11 +294,7 @@ Command:Register("dumpspells", "Dump spells to a file", function() |
|
|
|
|
|
|
|
|
|
|
|
if spellID then |
|
|
|
if spellID then |
|
|
|
spellName = spellName:gsub("[%W%s]", "") |
|
|
|
spellName = spellName:gsub("[%W%s]", "") |
|
|
|
WriteFile( |
|
|
|
WriteFile("bastion-" .. UnitClass("player") .. "-" .. rand .. ".lua", "local " .. spellName .. " = Bastion.Globals.SpellBook:GetSpell(" .. spellID .. ")\n", true) |
|
|
|
"bastion-" .. UnitClass("player") .. "-" .. rand .. ".lua", |
|
|
|
|
|
|
|
"local " .. spellName .. " = Bastion.Globals.SpellBook:GetSpell(" .. spellID .. ")\n", |
|
|
|
|
|
|
|
true |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
i = i + 1 |
|
|
|
i = i + 1 |
|
|
|
end |
|
|
|
end |
|
|
|