Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Allow using IsType on abstract types
Browse files Browse the repository at this point in the history
  • Loading branch information
Causeless authored Nov 9, 2023
1 parent 44f8056 commit feed906
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lua/LuaBindingRegisterDefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ namespace RTE {
#define RegisterLuaBindingsOfAbstractType(OWNINGSCOPE, TYPE) \
luabind::def((std::string("To") + std::string(#TYPE)).c_str(), (TYPE *(*)(Entity *))&LuaAdaptersEntityCast::To##TYPE), \
luabind::def((std::string("To") + std::string(#TYPE)).c_str(), (const TYPE *(*)(const Entity *))&LuaAdaptersEntityCast::ToConst##TYPE), \
luabind::def((std::string("Is") + std::string(#TYPE)).c_str(), (bool(*)(const Entity *))&LuaAdaptersEntityCast::Is##TYPE), \
OWNINGSCOPE::Register##TYPE##LuaBindings()

/// <summary>
Expand Down

0 comments on commit feed906

Please sign in to comment.