Files
vcmi/scripting/lua/api/StackInstance.cpp
T

38 lines
927 B
C++
Raw Normal View History

2018-03-17 17:58:30 +03:00
/*
* StackInstance.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 "StackInstance.h"
#include "Registry.h"
#include "../LuaStack.h"
#include "../LuaCallWrapper.h"
#include <vcmi/Creature.h>
2022-08-15 14:38:17 +03:00
VCMI_LIB_NAMESPACE_BEGIN
2018-03-17 17:58:30 +03:00
namespace scripting
{
namespace api
{
VCMI_REGISTER_CORE_SCRIPT_API(StackInstanceProxy, "StackInstance");
const std::vector<StackInstanceProxy::CustomRegType> StackInstanceProxy::REGISTER_CUSTOM =
{
2021-02-16 17:07:30 +03:00
{"getType", LuaMethodWrapper<CStackInstance, decltype(&CStackBasicDescriptor::getType), &CStackBasicDescriptor::getType>::invoke, false},
{"getCount", LuaMethodWrapper<CStackInstance, decltype(&CStackBasicDescriptor::getCount), &CStackBasicDescriptor::getCount>::invoke, false},
2018-03-17 17:58:30 +03:00
};
}
}
2022-08-15 14:38:17 +03:00
VCMI_LIB_NAMESPACE_END