primitive_item.binding.hpp (4448B)
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 template <> 7 const char ::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>::TYPE_NAME[] = "neptools.int32_item"; 8 template <> 9 const char ::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>::TYPE_NAME[] = "neptools.float_item"; 10 11 namespace Libshit::Lua 12 { 13 14 // class neptools.int32_item 15 template<> 16 void TypeRegisterTraits<::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>>::Register(TypeBuilder& bld) 17 { 18 bld.Inherit<::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>, ::Neptools::Item>(); 19 20 bld.AddFunction< 21 &::Libshit::Lua::TypeTraits<::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<int>>, 22 &::Libshit::Lua::TypeTraits<::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::Neptools::Source>> 23 >("new"); 24 bld.AddFunction< 25 static_cast<::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'> & (*)(::Neptools::ItemPointer)>(::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>::CreateAndInsert) 26 >("create_and_insert"); 27 bld.AddFunction< 28 &::Libshit::Lua::GetMember<::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>, int, &::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>::value> 29 >("get_value"); 30 bld.AddFunction< 31 &::Libshit::Lua::SetMember<::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>, int, &::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>::value> 32 >("set_value"); 33 34 } 35 static TypeRegister::StateRegister<::Neptools::PrimitiveItem<int32_t, int32_t, boost::endian::little_int32_t, 'i', 'n', 't', '3', '2'>> libshit_lua_statereg_92181270bd8379face2c07899b66241466c5643a8ef883daa356b7464a0e52fb; 36 37 // class neptools.float_item 38 template<> 39 void TypeRegisterTraits<::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>>::Register(TypeBuilder& bld) 40 { 41 bld.Inherit<::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>, ::Neptools::Item>(); 42 43 bld.AddFunction< 44 &::Libshit::Lua::TypeTraits<::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<float>>, 45 &::Libshit::Lua::TypeTraits<::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::Neptools::Source>> 46 >("new"); 47 bld.AddFunction< 48 static_cast<::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'> & (*)(::Neptools::ItemPointer)>(::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>::CreateAndInsert) 49 >("create_and_insert"); 50 bld.AddFunction< 51 &::Libshit::Lua::GetMember<::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>, float, &::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>::value> 52 >("get_value"); 53 bld.AddFunction< 54 &::Libshit::Lua::SetMember<::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>, float, &::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>::value> 55 >("set_value"); 56 57 } 58 static TypeRegister::StateRegister<::Neptools::PrimitiveItem<float, int32_t, boost::endian::little_int32_t, 'f', 'l', 'o', 'a', 't'>> libshit_lua_statereg_dbe1a01127fc1f7b44fe5e7ebed8b20bbc6afa380224f2be769cd0e53dd6aa8c; 59 60 } 61 #endif 62 #endif