/* * GameCb.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 "GameCb.h" #include #include "../LuaCallWrapper.h" #include "../../../lib/mapObjects/CGHeroInstance.h" namespace scripting { namespace api { VCMI_REGISTER_CORE_SCRIPT_API(GameCbProxy, "Game"); const std::vector GameCbProxy::REGISTER_CUSTOM = { {"getDate", LuaMethodWrapper::invoke, false}, {"isAllowed", LuaMethodWrapper::invoke, false}, {"getCurrentPlayer", LuaMethodWrapper::invoke, false}, {"getPlayer", LuaMethodWrapper::invoke, false}, {"getHero", LuaMethodWrapper::invoke, false}, {"getHeroWithSubid", LuaMethodWrapper::invoke, false}, {"getObj", LuaMethodWrapper::invoke, false}, }; } }