|
|
@ -34,6 +34,17 @@ function SpellBook:GetSpells(...) |
|
|
|
return unpack(spells) |
|
|
|
return unpack(spells) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---@param ... number[] |
|
|
|
|
|
|
|
---@return List |
|
|
|
|
|
|
|
function SpellBook:GetList(...) |
|
|
|
|
|
|
|
local spells = {} |
|
|
|
|
|
|
|
for _, id in ipairs({...}) do |
|
|
|
|
|
|
|
table.insert(spells, self:GetSpell(id)) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Bastion.List:New(spells) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
---@param name string |
|
|
|
---@param name string |
|
|
|
---@return Spell |
|
|
|
---@return Spell |
|
|
|
function SpellBook:GetSpellByName(name) |
|
|
|
function SpellBook:GetSpellByName(name) |
|
|
|