mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 17:15:34 +00:00
Add return value
This commit is contained in:
parent
aba63c0145
commit
85d47dd715
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ namespace MWLua
|
|||
record["soulValue"] = sol::readonly_property([](const ESM::Creature& rec) -> int { return rec.mData.mSoul; });
|
||||
record["type"] = sol::readonly_property([](const ESM::Creature& rec) -> int { return rec.mData.mType; });
|
||||
record["baseGold"] = sol::readonly_property([](const ESM::Creature& rec) -> int { return rec.mData.mGold; });
|
||||
record["servicesOffered"] = sol::readonly_property([](const ESM::Creature& rec) {
|
||||
record["servicesOffered"] = sol::readonly_property([](const ESM::Creature& rec) -> std::vector<std::string> {
|
||||
std::vector<std::string> providedServices;
|
||||
std::map<int, std::string> serviceNames = { { ESM::NPC::Spells, "Spells" },
|
||||
{ ESM::NPC::Spellmaking, "Spellmaking" }, { ESM::NPC::Enchanting, "Enchanting" },
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace MWLua
|
|||
record["isMale"] = sol::readonly_property([](const ESM::NPC& rec) -> bool { return rec.isMale(); });
|
||||
record["baseGold"] = sol::readonly_property([](const ESM::NPC& rec) -> int { return rec.mNpdt.mGold; });
|
||||
|
||||
record["servicesOffered"] = sol::readonly_property([](const ESM::NPC& rec) {
|
||||
record["servicesOffered"] = sol::readonly_property([](const ESM::NPC& rec) -> std::vector<std::string> {
|
||||
std::vector<std::string> providedServices;
|
||||
std::map<int, std::string> serviceNames = { { ESM::NPC::Spells, "Spells" },
|
||||
{ ESM::NPC::Spellmaking, "Spellmaking" }, { ESM::NPC::Enchanting, "Enchanting" },
|
||||
|
|
Loading…
Reference in a new issue