mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 06:40:06 +00:00
Unused function
This commit is contained in:
parent
8ac7b04770
commit
151521bb68
1 changed files with 0 additions and 12 deletions
|
@ -160,18 +160,6 @@ namespace MWLua
|
||||||
return ESM::RefId::deserializeText(LuaUtil::cast<std::string_view>(spellOrId));
|
return ESM::RefId::deserializeText(LuaUtil::cast<std::string_view>(spellOrId));
|
||||||
}
|
}
|
||||||
|
|
||||||
static const ESM::Spell* toSpell(const sol::object& spellOrId)
|
|
||||||
{
|
|
||||||
if (spellOrId.is<ESM::Spell>())
|
|
||||||
return spellOrId.as<const ESM::Spell*>();
|
|
||||||
else
|
|
||||||
{
|
|
||||||
auto& store = MWBase::Environment::get().getWorld()->getStore();
|
|
||||||
auto refId = ESM::RefId::deserializeText(LuaUtil::cast<std::string_view>(spellOrId));
|
|
||||||
return store.get<ESM::Spell>().find(refId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sol::table initCoreMagicBindings(const Context& context)
|
sol::table initCoreMagicBindings(const Context& context)
|
||||||
{
|
{
|
||||||
sol::state_view& lua = context.mLua->sol();
|
sol::state_view& lua = context.mLua->sol();
|
||||||
|
|
Loading…
Reference in a new issue