/* * api/Services.cpp, part of VCMI engine * * Authors: listed in file AUTHORS in main folder * * License: GNU General Public License v2.0 or later * Full text of license available in license.txt file, in main folder * */ #include "StdInc.h" #include "Services.h" #include #include #include #include #include #include #include #include "Registry.h" #include "../LuaStack.h" #include "../LuaCallWrapper.h" VCMI_LIB_NAMESPACE_BEGIN namespace scripting { namespace api { VCMI_REGISTER_CORE_SCRIPT_API(ServicesProxy, "Services"); const std::vector ServicesProxy::REGISTER_CUSTOM = { {"artifacts", LuaMethodWrapper::invoke, false}, {"creatures", LuaMethodWrapper::invoke, false}, {"factions", LuaMethodWrapper::invoke, false}, {"heroClasses", LuaMethodWrapper::invoke, false}, {"heroTypes", LuaMethodWrapper::invoke, false}, {"spells", LuaMethodWrapper::invoke, false}, {"skills", LuaMethodWrapper::invoke, false}, }; VCMI_REGISTER_CORE_SCRIPT_API(ArtifactServiceProxy, "Artifacts"); const std::vector ArtifactServiceProxy::REGISTER_CUSTOM = { {"getByIndex", LuaMethodWrapper::invoke, false} }; VCMI_REGISTER_CORE_SCRIPT_API(CreatureServiceProxy, "Creatures"); const std::vector CreatureServiceProxy::REGISTER_CUSTOM = { {"getByIndex", LuaMethodWrapper::invoke, false} }; VCMI_REGISTER_CORE_SCRIPT_API(FactionServiceProxy, "Factions"); const std::vector FactionServiceProxy::REGISTER_CUSTOM = { {"getByIndex", LuaMethodWrapper::invoke, false} }; VCMI_REGISTER_CORE_SCRIPT_API(HeroClassServiceProxy, "HeroClasses"); const std::vector HeroClassServiceProxy::REGISTER_CUSTOM = { {"getByIndex", LuaMethodWrapper::invoke, false} }; VCMI_REGISTER_CORE_SCRIPT_API(HeroTypeServiceProxy, "HeroTypes"); const std::vector HeroTypeServiceProxy::REGISTER_CUSTOM = { {"getByIndex", LuaMethodWrapper::invoke, false} }; VCMI_REGISTER_CORE_SCRIPT_API(SkillServiceProxy, "Skills"); const std::vector SkillServiceProxy::REGISTER_CUSTOM = { {"getByIndex", LuaMethodWrapper::invoke, false} }; VCMI_REGISTER_CORE_SCRIPT_API(SpellServiceProxy, "Spells"); const std::vector SpellServiceProxy::REGISTER_CUSTOM = { {"getByIndex", LuaMethodWrapper::invoke, false} }; } } VCMI_LIB_NAMESPACE_END