collection_link.binding.hpp (4038B)
1 // Auto generated code, do not edit. See gen_binding in project root. 2 #ifndef LIBSHIT_BINDING_GENERATOR 3 #if LIBSHIT_WITH_LUA 4 #include <libshit/lua/user_type.hpp> 5 6 7 const char ::Neptools::Stcm::CollectionLinkHeaderItem::TYPE_NAME[] = "neptools.stcm.collection_link_header_item"; 8 9 const char ::Neptools::Stcm::CollectionLinkItem::TYPE_NAME[] = "neptools.stcm.collection_link_item"; 10 11 const char ::Neptools::Stcm::CollectionLinkItem::LinkEntry::TYPE_NAME[] = "neptools.stcm.collection_link_item.link_entry"; 12 13 namespace Libshit::Lua 14 { 15 16 // class neptools.stcm.collection_link_header_item 17 template<> 18 void TypeRegisterTraits<::Neptools::Stcm::CollectionLinkHeaderItem>::Register(TypeBuilder& bld) 19 { 20 bld.Inherit<::Neptools::Stcm::CollectionLinkHeaderItem, ::Neptools::Item>(); 21 22 bld.AddFunction< 23 &::Libshit::Lua::TypeTraits<::Neptools::Stcm::CollectionLinkHeaderItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::Libshit::NotNull<::Neptools::LabelPtr>>> 24 >("new"); 25 bld.AddFunction< 26 static_cast<::Neptools::Stcm::CollectionLinkHeaderItem & (*)(::Neptools::ItemPointer)>(::Neptools::Stcm::CollectionLinkHeaderItem::CreateAndInsert) 27 >("create_and_insert"); 28 bld.AddFunction< 29 &::Libshit::Lua::GetMember<::Neptools::Stcm::CollectionLinkHeaderItem, ::Libshit::NotNull<::Neptools::LabelPtr>, &::Neptools::Stcm::CollectionLinkHeaderItem::data> 30 >("get_data"); 31 bld.AddFunction< 32 &::Libshit::Lua::SetMember<::Neptools::Stcm::CollectionLinkHeaderItem, ::Libshit::NotNull<::Neptools::LabelPtr>, &::Neptools::Stcm::CollectionLinkHeaderItem::data> 33 >("set_data"); 34 35 } 36 static TypeRegister::StateRegister<::Neptools::Stcm::CollectionLinkHeaderItem> libshit_lua_statereg_5719095fcedbaa87f94cf128e2e8561823b20b941979f302abc855793237270a; 37 38 // class neptools.stcm.collection_link_item 39 template<> 40 void TypeRegisterTraits<::Neptools::Stcm::CollectionLinkItem>::Register(TypeBuilder& bld) 41 { 42 bld.Inherit<::Neptools::Stcm::CollectionLinkItem, ::Neptools::Item>(); 43 44 bld.AddFunction< 45 &::Libshit::Lua::TypeTraits<::Neptools::Stcm::CollectionLinkItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>>, 46 &::Libshit::Lua::TypeTraits<::Neptools::Stcm::CollectionLinkItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::Neptools::Source>, LuaGetRef<::uint32_t>>, 47 &::Libshit::Lua::TypeTraits<::Neptools::Stcm::CollectionLinkItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<Libshit::AT<std::vector<::Neptools::Stcm::CollectionLinkItem::LinkEntry> >>> 48 >("new"); 49 bld.AddFunction< 50 &::Libshit::Lua::GetSmartOwnedMember<::Neptools::Stcm::CollectionLinkItem, std::vector<::Neptools::Stcm::CollectionLinkItem::LinkEntry>, &::Neptools::Stcm::CollectionLinkItem::entries> 51 >("get_entries"); 52 53 } 54 static TypeRegister::StateRegister<::Neptools::Stcm::CollectionLinkItem> libshit_lua_statereg_cada761d31b15b16d7ace1929cfb999068885c8c90db8ab55856ddddd9474fd8; 55 56 // class neptools.stcm.collection_link_item.link_entry 57 template<> 58 void TypeRegisterTraits<::Neptools::Stcm::CollectionLinkItem::LinkEntry>::Register(TypeBuilder& bld) 59 { 60 61 bld.AddFunction< 62 &::Libshit::Lua::GetMember<::Neptools::Stcm::CollectionLinkItem::LinkEntry, ::Neptools::LabelPtr, &::Neptools::Stcm::CollectionLinkItem::LinkEntry::name_0> 63 >("get_name_0"); 64 bld.AddFunction< 65 &::Libshit::Lua::GetMember<::Neptools::Stcm::CollectionLinkItem::LinkEntry, ::Neptools::LabelPtr, &::Neptools::Stcm::CollectionLinkItem::LinkEntry::name_1> 66 >("get_name_1"); 67 bld.AddFunction< 68 &::Libshit::Lua::TypeTraits<::Neptools::Stcm::CollectionLinkItem::LinkEntry>::Make<LuaGetRef<::Neptools::LabelPtr>, LuaGetRef<::Neptools::LabelPtr>> 69 >("new"); 70 71 } 72 static TypeRegister::StateRegister<::Neptools::Stcm::CollectionLinkItem::LinkEntry> libshit_lua_statereg_8737d6fe4e0d096e2755cc753f440ab792f75382f8a6304d920cd66103ad9645; 73 74 } 75 #endif 76 #endif