Skip to content

Commit feed906

Browse files
authored
Allow using IsType on abstract types
1 parent 44f8056 commit feed906

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lua/LuaBindingRegisterDefinitions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ namespace RTE {
4646
#define RegisterLuaBindingsOfAbstractType(OWNINGSCOPE, TYPE) \
4747
luabind::def((std::string("To") + std::string(#TYPE)).c_str(), (TYPE *(*)(Entity *))&LuaAdaptersEntityCast::To##TYPE), \
4848
luabind::def((std::string("To") + std::string(#TYPE)).c_str(), (const TYPE *(*)(const Entity *))&LuaAdaptersEntityCast::ToConst##TYPE), \
49+
luabind::def((std::string("Is") + std::string(#TYPE)).c_str(), (bool(*)(const Entity *))&LuaAdaptersEntityCast::Is##TYPE), \
4950
OWNINGSCOPE::Register##TYPE##LuaBindings()
5051

5152
/// <summary>

0 commit comments

Comments
 (0)