txt_serializable.binding.hpp (855B)
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::TxtSerializable::TYPE_NAME[] = "neptools.txt_serializable"; 8 9 namespace Libshit::Lua 10 { 11 12 // class neptools.txt_serializable 13 template<> 14 void TypeRegisterTraits<::Neptools::TxtSerializable>::Register(TypeBuilder& bld) 15 { 16 17 bld.AddFunction< 18 static_cast<std::string (*)(::Neptools::TxtSerializable &)>(&Neptools::WriteTxt) 19 >("write_txt"); 20 bld.AddFunction< 21 static_cast<void (*)(::Neptools::TxtSerializable &, const std::string &)>(&Neptools::ReadTxt) 22 >("read_txt"); 23 24 } 25 static TypeRegister::StateRegister<::Neptools::TxtSerializable> libshit_lua_statereg_9a7805e1cc29b6b4b769103bdc3ae5a02ed11dec53a0adac8f7d37f663ae73ac; 26 27 } 28 #endif 29 #endif