neptools

Modding tools to Neptunia games
git clone https://git.neptards.moe/neptards/neptools.git
Log | Files | Refs | Submodules | README | LICENSE

gbnl.binding.hpp (9610B)


      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::Gbnl::TYPE_NAME[] = "neptools.gbnl";
      8 template <>
      9 const char ::DynStructBindgbnl::TYPE_NAME[] = "neptools.dynamic_struct_gbnl";
     10 template <>
     11 const char ::DynStructBindgbnl::Type::TYPE_NAME[] = "neptools.dynamic_struct_gbnl.type";
     12 template <>
     13 const char ::DynStructBindgbnl::TypeBuilder::TYPE_NAME[] = "neptools.dynamic_struct_gbnl.builder";
     14 
     15 namespace Libshit::Lua
     16 {
     17 
     18   // class neptools.gbnl
     19   template<>
     20   void TypeRegisterTraits<::Neptools::Gbnl>::Register(TypeBuilder& bld)
     21   {
     22     bld.Inherit<::Neptools::Gbnl, ::Neptools::Dumpable, ::Neptools::TxtSerializable>();
     23 
     24     bld.AddFunction<
     25       &::Libshit::Lua::TypeTraits<::Neptools::Gbnl>::Make<LuaGetRef<::Neptools::Source>>,
     26       &::Libshit::Lua::TypeTraits<::Neptools::Gbnl>::Make<LuaGetRef<::Neptools::Endian>, LuaGetRef<bool>, LuaGetRef<::uint32_t>, LuaGetRef<::uint32_t>, LuaGetRef<::uint32_t>, LuaGetRef<Libshit::AT<::Neptools::Gbnl::Struct::TypePtr>>>,
     27       &::Libshit::Lua::TypeTraits<::Neptools::Gbnl>::Make<LuaGetRef<::Libshit::Lua::StateRef>, LuaGetRef<::Neptools::Endian>, LuaGetRef<bool>, LuaGetRef<::uint32_t>, LuaGetRef<::uint32_t>, LuaGetRef<::uint32_t>, LuaGetRef<Libshit::AT<::Neptools::Gbnl::Struct::TypePtr>>, LuaGetRef<::Libshit::Lua::RawTable>>
     28     >("new");
     29     bld.AddFunction<
     30       &::Libshit::Lua::GetMember<::Neptools::Gbnl, ::Neptools::Endian, &::Neptools::Gbnl::endian>
     31     >("get_endian");
     32     bld.AddFunction<
     33       &::Libshit::Lua::SetMember<::Neptools::Gbnl, ::Neptools::Endian, &::Neptools::Gbnl::endian>
     34     >("set_endian");
     35     bld.AddFunction<
     36       &::Libshit::Lua::GetMember<::Neptools::Gbnl, bool, &::Neptools::Gbnl::is_gstl>
     37     >("get_is_gstl");
     38     bld.AddFunction<
     39       &::Libshit::Lua::SetMember<::Neptools::Gbnl, bool, &::Neptools::Gbnl::is_gstl>
     40     >("set_is_gstl");
     41     bld.AddFunction<
     42       &::Libshit::Lua::GetMember<::Neptools::Gbnl, ::uint32_t, &::Neptools::Gbnl::flags>
     43     >("get_flags");
     44     bld.AddFunction<
     45       &::Libshit::Lua::SetMember<::Neptools::Gbnl, ::uint32_t, &::Neptools::Gbnl::flags>
     46     >("set_flags");
     47     bld.AddFunction<
     48       &::Libshit::Lua::GetMember<::Neptools::Gbnl, ::uint32_t, &::Neptools::Gbnl::field_28>
     49     >("get_field_28");
     50     bld.AddFunction<
     51       &::Libshit::Lua::SetMember<::Neptools::Gbnl, ::uint32_t, &::Neptools::Gbnl::field_28>
     52     >("set_field_28");
     53     bld.AddFunction<
     54       &::Libshit::Lua::GetMember<::Neptools::Gbnl, ::uint32_t, &::Neptools::Gbnl::field_30>
     55     >("get_field_30");
     56     bld.AddFunction<
     57       &::Libshit::Lua::SetMember<::Neptools::Gbnl, ::uint32_t, &::Neptools::Gbnl::field_30>
     58     >("set_field_30");
     59     bld.AddFunction<
     60       &::Libshit::Lua::GetSmartOwnedMember<::Neptools::Gbnl, ::Neptools::Gbnl::Messages, &::Neptools::Gbnl::messages>
     61     >("get_messages");
     62     bld.AddFunction<
     63       &::Libshit::Lua::GetMember<::Neptools::Gbnl, ::Neptools::Gbnl::Struct::TypePtr, &::Neptools::Gbnl::type>
     64     >("get_type");
     65     bld.AddFunction<
     66       &::Libshit::Lua::SetMember<::Neptools::Gbnl, ::Neptools::Gbnl::Struct::TypePtr, &::Neptools::Gbnl::type>
     67     >("set_type");
     68     bld.AddFunction<
     69       static_cast<void (::Neptools::Gbnl::*)()>(&::Neptools::Gbnl::RecalcSize)
     70     >("recalc_size");
     71 
     72   }
     73   static TypeRegister::StateRegister<::Neptools::Gbnl> libshit_lua_statereg_3d1f6c316b43640e128ec30c9d228f7a861156f09316bbab3d91a6e96f1bec6c;
     74 
     75   // class neptools.dynamic_struct_gbnl
     76   template<>
     77   void TypeRegisterTraits<::DynStructBindgbnl>::Register(TypeBuilder& bld)
     78   {
     79 
     80     bld.AddFunction<
     81       static_cast<::boost::intrusive_ptr<::DynStructBindgbnl > (*)(::DynStructBindgbnl::TypePtr)>(::DynStructBindgbnl::New),
     82       static_cast<::boost::intrusive_ptr<::Neptools::DynamicStructLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::FakeClass> (*)(::Libshit::Lua::StateRef, const typename ::Neptools::DynamicStructLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::FakeClass::TypePtr, ::Libshit::Lua::RawTable)>(::Neptools::DynamicStructLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::New)
     83     >("new");
     84     bld.AddFunction<
     85       static_cast<::size_t (::DynStructBindgbnl::*)() const noexcept>(&::DynStructBindgbnl::GetSize)
     86     >("get_size");
     87     bld.AddFunction<
     88       static_cast<::size_t (::DynStructBindgbnl::*)() const noexcept>(&::DynStructBindgbnl::GetSize)
     89     >("__len");
     90     bld.AddFunction<
     91       static_cast<const ::DynStructBindgbnl::TypePtr & (::DynStructBindgbnl::*)() const noexcept>(&::DynStructBindgbnl::GetType)
     92     >("get_type");
     93     bld.AddFunction<
     94       static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, const ::DynStructBindgbnl &, ::size_t) noexcept>(::Neptools::DynamicStructLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::Get),
     95       static_cast<void (*)(const ::DynStructBindgbnl &, ::Libshit::Lua::VarArg) noexcept>(::Neptools::DynamicStructLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::Get)
     96     >("get");
     97     bld.AddFunction<
     98       static_cast<void (*)(::Libshit::Lua::StateRef, ::DynStructBindgbnl &, ::size_t, ::Libshit::Lua::Any)>(::Neptools::DynamicStructLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::Set)
     99     >("set");
    100     bld.AddFunction<
    101       static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, ::DynStructBindgbnl &)>(::Neptools::DynamicStructLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::ToTable)
    102     >("to_table");
    103 ::Neptools::DynamicStructLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::Register(bld);
    104   }
    105   static TypeRegister::StateRegister<::DynStructBindgbnl> libshit_lua_statereg_803ebe2645741f7ac23cdf6f61e654dfb447e4f8d62223b5ad536a24e34a15f2;
    106 
    107   // class neptools.dynamic_struct_gbnl.type
    108   template<>
    109   void TypeRegisterTraits<::DynStructBindgbnl::Type>::Register(TypeBuilder& bld)
    110   {
    111 
    112     bld.AddFunction<
    113       &::Libshit::Lua::GetMember<::DynStructBindgbnl::Type, ::size_t, &::DynStructBindgbnl::Type::item_count>
    114     >("get_item_count");
    115     bld.AddFunction<
    116       &::Libshit::Lua::GetMember<::DynStructBindgbnl::Type, ::size_t, &::DynStructBindgbnl::Type::item_count>
    117     >("__len");
    118     bld.AddFunction<
    119       &::Libshit::Lua::GetMember<::DynStructBindgbnl::Type, ::size_t, &::DynStructBindgbnl::Type::byte_size>
    120     >("get_byte_size");
    121     bld.AddFunction<
    122       static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, const typename ::DynStructBindgbnl::Type &, ::size_t) noexcept>(::Neptools::DynamicStructTypeLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::Get),
    123       static_cast<void (*)(const typename ::DynStructBindgbnl::Type &, ::Libshit::Lua::VarArg) noexcept>(::Neptools::DynamicStructTypeLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::Get)
    124     >("get");
    125     bld.AddFunction<
    126       static_cast<::boost::intrusive_ptr<const ::Neptools::DynamicStructTypeLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::FakeClass> (*)(::Libshit::Lua::StateRef, ::Libshit::Lua::RawTable)>(::Neptools::DynamicStructTypeLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::New)
    127     >("new");
    128 
    129   }
    130   static TypeRegister::StateRegister<::DynStructBindgbnl::Type> libshit_lua_statereg_f87738ab3d01905ead29423d9419ec92167ed2d23cfb4167fb9749ef88af1859;
    131 
    132   // class neptools.dynamic_struct_gbnl.builder
    133   template<>
    134   void TypeRegisterTraits<::DynStructBindgbnl::TypeBuilder>::Register(TypeBuilder& bld)
    135   {
    136 
    137     bld.AddFunction<
    138       &::Libshit::Lua::TypeTraits<::DynStructBindgbnl::TypeBuilder>::Make<>
    139     >("new");
    140     bld.AddFunction<
    141       static_cast<::DynStructBindgbnl::TypePtr (::DynStructBindgbnl::TypeBuilder::*)() const>(&::DynStructBindgbnl::TypeBuilder::Build)
    142     >("build");
    143     bld.AddFunction<
    144       static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, typename ::DynStructBindgbnl::TypeBuilder &, ::Libshit::Lua::Raw<4>, ::size_t)>(::Neptools::DynamicStructBuilderLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::Add),
    145       static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, typename ::DynStructBindgbnl::TypeBuilder &, ::Libshit::Lua::Raw<4>)>(::Neptools::DynamicStructBuilderLua<int8_t, int16_t, int32_t, int64_t, float, ::Neptools::Gbnl::OffsetString, ::Neptools::Gbnl::FixStringTag, ::Neptools::Gbnl::PaddingTag>::Add)
    146     >("add");
    147 
    148   }
    149   static TypeRegister::StateRegister<::DynStructBindgbnl::TypeBuilder> libshit_lua_statereg_578e695aba996d0687dba93ada23babe340a3ffb358caba7a11d7e1705cc2089;
    150 
    151 }
    152 #endif
    153 #endif