mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-06 00:40:04 +00:00
Remove Core from functions that aren't in openmw.core
This commit is contained in:
parent
f114d409c8
commit
7586acc18b
@ -25,7 +25,7 @@ namespace sol
|
||||
|
||||
namespace MWLua
|
||||
{
|
||||
sol::table initCoreBirthSignBindings(const Context& context)
|
||||
sol::table initBirthSignRecordBindings(const Context& context)
|
||||
{
|
||||
sol::state_view& lua = context.mLua->sol();
|
||||
sol::table birthSigns(context.mLua->sol(), sol::create);
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
namespace MWLua
|
||||
{
|
||||
sol::table initCoreBirthSignBindings(const Context& context);
|
||||
sol::table initBirthSignRecordBindings(const Context& context);
|
||||
}
|
||||
|
||||
#endif // MWLUA_BIRTHSIGNBINDINGS_H
|
||||
|
@ -25,7 +25,7 @@ namespace sol
|
||||
namespace MWLua
|
||||
{
|
||||
|
||||
sol::table initCoreClassBindings(const Context& context)
|
||||
sol::table initClassRecordBindings(const Context& context)
|
||||
{
|
||||
sol::state_view& lua = context.mLua->sol();
|
||||
sol::table classes(context.mLua->sol(), sol::create);
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
namespace MWLua
|
||||
{
|
||||
sol::table initCoreClassBindings(const Context& context);
|
||||
sol::table initClassRecordBindings(const Context& context);
|
||||
}
|
||||
|
||||
#endif // MWLUA_CLASSBINDINGS_H
|
||||
|
@ -85,7 +85,7 @@ namespace MWLua
|
||||
record["baseGold"] = sol::readonly_property([](const ESM::NPC& rec) -> int { return rec.mNpdt.mGold; });
|
||||
addActorServicesBindings<ESM::NPC>(record, context);
|
||||
|
||||
npc["classes"] = initCoreClassBindings(context);
|
||||
npc["classes"] = initClassRecordBindings(context);
|
||||
|
||||
// This function is game-specific, in future we should replace it with something more universal.
|
||||
npc["isWerewolf"] = [](const Object& o) {
|
||||
|
@ -190,7 +190,7 @@ namespace MWLua
|
||||
return MWBase::Environment::get().getWorld()->getGlobalFloat(MWWorld::Globals::sCharGenState) == -1;
|
||||
};
|
||||
|
||||
player["birthSigns"] = initCoreBirthSignBindings(context);
|
||||
player["birthSigns"] = initBirthSignRecordBindings(context);
|
||||
player["getBirthSign"] = [](const Object& player) -> std::string {
|
||||
verifyPlayer(player);
|
||||
return MWBase::Environment::get().getWorld()->getPlayer().getBirthSign().serializeText();
|
||||
|
Loading…
x
Reference in New Issue
Block a user