instruction.binding.hpp (11567B)
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::Stsc::InstructionBase::TYPE_NAME[] = "neptools.stsc.instruction_base"; 8 9 const char ::Neptools::Stsc::InstructionRndJumpItem::TYPE_NAME[] = "neptools.stsc.instruction_rnd_jump_item"; 10 11 const char ::Neptools::Stsc::UnimplementedInstructionItem::TYPE_NAME[] = "neptools.stsc.unimplemented_instruction_item"; 12 13 const char ::Neptools::Stsc::InstructionJumpIfItem::TYPE_NAME[] = "neptools.stsc.instruction_jump_if_item"; 14 15 const char ::Neptools::Stsc::InstructionJumpIfItem::Node::TYPE_NAME[] = "neptools.stsc.instruction_jump_if_item.node"; 16 17 const char ::Neptools::Stsc::InstructionJumpSwitchItemNoire::TYPE_NAME[] = "neptools.stsc.instruction_jump_switch_item_noire"; 18 19 const char ::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression::TYPE_NAME[] = "neptools.stsc.instruction_jump_switch_item_noire.expression"; 20 21 const char ::Neptools::Stsc::InstructionJumpSwitchItemPotbb::TYPE_NAME[] = "neptools.stsc.instruction_jump_switch_item_potbb"; 22 23 namespace Libshit::Lua 24 { 25 26 // class neptools.stsc.instruction_base 27 template<> 28 void TypeRegisterTraits<::Neptools::Stsc::InstructionBase>::Register(TypeBuilder& bld) 29 { 30 bld.Inherit<::Neptools::Stsc::InstructionBase, ::Neptools::Item>(); 31 32 bld.AddFunction< 33 static_cast<::Neptools::Stsc::InstructionBase & (*)(::Neptools::ItemPointer, ::Neptools::Stsc::Flavor)>(::Neptools::Stsc::InstructionBase::CreateAndInsert) 34 >("create_and_insert"); 35 bld.AddFunction< 36 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionBase, const ::uint8_t, &::Neptools::Stsc::InstructionBase::opcode> 37 >("get_opcode"); 38 39 } 40 static TypeRegister::StateRegister<::Neptools::Stsc::InstructionBase> libshit_lua_statereg_56a18bc99148c0f1c5652ced3bf3775f326b57abe36e8c93c2fc37bee6db385b; 41 42 // class neptools.stsc.instruction_rnd_jump_item 43 template<> 44 void TypeRegisterTraits<::Neptools::Stsc::InstructionRndJumpItem>::Register(TypeBuilder& bld) 45 { 46 bld.Inherit<::Neptools::Stsc::InstructionRndJumpItem, ::Neptools::Stsc::InstructionBase>(); 47 48 bld.AddFunction< 49 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionRndJumpItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::uint8_t>, LuaGetRef<::Neptools::Source>> 50 >("new"); 51 bld.AddFunction< 52 &::Libshit::Lua::GetSmartOwnedMember<::Neptools::Stsc::InstructionRndJumpItem, std::vector<::Libshit::NotNull<::Neptools::LabelPtr> >, &::Neptools::Stsc::InstructionRndJumpItem::tgts> 53 >("get_tgts"); 54 55 } 56 static TypeRegister::StateRegister<::Neptools::Stsc::InstructionRndJumpItem> libshit_lua_statereg_181344e6f271f6874a4c5a2073f363602ca03a9ea2d5b650829c6d29210b242b; 57 58 // class neptools.stsc.unimplemented_instruction_item 59 template<> 60 void TypeRegisterTraits<::Neptools::Stsc::UnimplementedInstructionItem>::Register(TypeBuilder& bld) 61 { 62 bld.Inherit<::Neptools::Stsc::UnimplementedInstructionItem, ::Neptools::Stsc::InstructionBase>(); 63 64 bld.AddFunction< 65 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::UnimplementedInstructionItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::uint8_t>, LuaGetRef<const ::Neptools::Source &>> 66 >("new"); 67 68 } 69 static TypeRegister::StateRegister<::Neptools::Stsc::UnimplementedInstructionItem> libshit_lua_statereg_24323fa0bc1252dbcfb90694448e2be7222adedea63f3801063ffd93197e55b5; 70 71 // class neptools.stsc.instruction_jump_if_item 72 template<> 73 void TypeRegisterTraits<::Neptools::Stsc::InstructionJumpIfItem>::Register(TypeBuilder& bld) 74 { 75 bld.Inherit<::Neptools::Stsc::InstructionJumpIfItem, ::Neptools::Stsc::InstructionBase>(); 76 77 bld.AddFunction< 78 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpIfItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::uint8_t>, LuaGetRef<::Neptools::Source>>, 79 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpIfItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::uint8_t>, LuaGetRef<::Libshit::NotNull<::Neptools::LabelPtr>>, LuaGetRef<std::vector<::Neptools::Stsc::InstructionJumpIfItem::Node>>>, 80 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpIfItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::Libshit::Lua::StateRef>, LuaGetRef<::uint8_t>, LuaGetRef<::Libshit::NotNull<::Neptools::LabelPtr>>, LuaGetRef<::Libshit::Lua::RawTable>> 81 >("new"); 82 bld.AddFunction< 83 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpIfItem, ::Libshit::NotNull<::Neptools::LabelPtr>, &::Neptools::Stsc::InstructionJumpIfItem::tgt> 84 >("get_tgt"); 85 bld.AddFunction< 86 &::Libshit::Lua::SetMember<::Neptools::Stsc::InstructionJumpIfItem, ::Libshit::NotNull<::Neptools::LabelPtr>, &::Neptools::Stsc::InstructionJumpIfItem::tgt> 87 >("set_tgt"); 88 bld.AddFunction< 89 &::Libshit::Lua::GetSmartOwnedMember<::Neptools::Stsc::InstructionJumpIfItem, std::vector<::Neptools::Stsc::InstructionJumpIfItem::Node>, &::Neptools::Stsc::InstructionJumpIfItem::tree> 90 >("get_tree"); 91 92 } 93 static TypeRegister::StateRegister<::Neptools::Stsc::InstructionJumpIfItem> libshit_lua_statereg_0ab8079ea13ed3f0cbc2374a2e6835ea7b2adab17bbe0be01b01a4e9ace28bee; 94 95 // class neptools.stsc.instruction_jump_if_item.node 96 template<> 97 void TypeRegisterTraits<::Neptools::Stsc::InstructionJumpIfItem::Node>::Register(TypeBuilder& bld) 98 { 99 100 bld.AddFunction< 101 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpIfItem::Node, ::uint8_t, &::Neptools::Stsc::InstructionJumpIfItem::Node::operation> 102 >("get_operation"); 103 bld.AddFunction< 104 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpIfItem::Node, ::uint32_t, &::Neptools::Stsc::InstructionJumpIfItem::Node::value> 105 >("get_value"); 106 bld.AddFunction< 107 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpIfItem::Node, ::size_t, &::Neptools::Stsc::InstructionJumpIfItem::Node::left> 108 >("get_left"); 109 bld.AddFunction< 110 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpIfItem::Node, ::size_t, &::Neptools::Stsc::InstructionJumpIfItem::Node::right> 111 >("get_right"); 112 bld.AddFunction< 113 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpIfItem::Node>::Make<>, 114 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpIfItem::Node>::Make<LuaGetRef<::uint8_t>, LuaGetRef<::uint32_t>, LuaGetRef<::size_t>, LuaGetRef<::size_t>> 115 >("new"); 116 117 } 118 static TypeRegister::StateRegister<::Neptools::Stsc::InstructionJumpIfItem::Node> libshit_lua_statereg_cec11372ba2e127814a0f1a974bc41541edb7e931ddc19a2d10df2b4e55be0d2; 119 120 // class neptools.stsc.instruction_jump_switch_item_noire 121 template<> 122 void TypeRegisterTraits<::Neptools::Stsc::InstructionJumpSwitchItemNoire>::Register(TypeBuilder& bld) 123 { 124 bld.Inherit<::Neptools::Stsc::InstructionJumpSwitchItemNoire, ::Neptools::Stsc::InstructionBase>(); 125 126 bld.AddFunction< 127 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpSwitchItemNoire>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::uint8_t>, LuaGetRef<::Neptools::Source>>, 128 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpSwitchItemNoire>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::uint8_t>, LuaGetRef<::uint32_t>, LuaGetRef<bool>, LuaGetRef<Libshit::AT<std::vector<::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression> >>> 129 >("new"); 130 bld.AddFunction< 131 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpSwitchItemNoire, ::uint32_t, &::Neptools::Stsc::InstructionJumpSwitchItemNoire::expected_val> 132 >("get_expected_val"); 133 bld.AddFunction< 134 &::Libshit::Lua::SetMember<::Neptools::Stsc::InstructionJumpSwitchItemNoire, ::uint32_t, &::Neptools::Stsc::InstructionJumpSwitchItemNoire::expected_val> 135 >("set_expected_val"); 136 bld.AddFunction< 137 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpSwitchItemNoire, bool, &::Neptools::Stsc::InstructionJumpSwitchItemNoire::last_is_default> 138 >("get_last_is_default"); 139 bld.AddFunction< 140 &::Libshit::Lua::SetMember<::Neptools::Stsc::InstructionJumpSwitchItemNoire, bool, &::Neptools::Stsc::InstructionJumpSwitchItemNoire::last_is_default> 141 >("set_last_is_default"); 142 bld.AddFunction< 143 &::Libshit::Lua::GetSmartOwnedMember<::Neptools::Stsc::InstructionJumpSwitchItemNoire, std::vector<::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression>, &::Neptools::Stsc::InstructionJumpSwitchItemNoire::expressions> 144 >("get_expressions"); 145 146 } 147 static TypeRegister::StateRegister<::Neptools::Stsc::InstructionJumpSwitchItemNoire> libshit_lua_statereg_283e46af26aea2876e032f02badf9c820c4e5aa126e3d4bc702f7c4cfb53f72d; 148 149 // class neptools.stsc.instruction_jump_switch_item_noire.expression 150 template<> 151 void TypeRegisterTraits<::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression>::Register(TypeBuilder& bld) 152 { 153 154 bld.AddFunction< 155 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression, ::uint32_t, &::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression::expression> 156 >("get_expression"); 157 bld.AddFunction< 158 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression, ::Libshit::NotNull<::Neptools::LabelPtr>, &::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression::target> 159 >("get_target"); 160 bld.AddFunction< 161 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression>::Make<LuaGetRef<::uint32_t>, LuaGetRef<::Libshit::NotNull<::Neptools::LabelPtr>>> 162 >("new"); 163 164 } 165 static TypeRegister::StateRegister<::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression> libshit_lua_statereg_49b01876d4437f89559032b921e46cf84cad664f790b8b0c8976986069309557; 166 167 // class neptools.stsc.instruction_jump_switch_item_potbb 168 template<> 169 void TypeRegisterTraits<::Neptools::Stsc::InstructionJumpSwitchItemPotbb>::Register(TypeBuilder& bld) 170 { 171 bld.Inherit<::Neptools::Stsc::InstructionJumpSwitchItemPotbb, ::Neptools::Stsc::InstructionJumpSwitchItemNoire>(); 172 173 bld.AddFunction< 174 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpSwitchItemPotbb>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::uint8_t>, LuaGetRef<::Neptools::Source>>, 175 &::Libshit::Lua::TypeTraits<::Neptools::Stsc::InstructionJumpSwitchItemPotbb>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<::uint8_t>, LuaGetRef<::uint32_t>, LuaGetRef<bool>, LuaGetRef<Libshit::AT<std::vector<::Neptools::Stsc::InstructionJumpSwitchItemNoire::Expression> >>, LuaGetRef<::uint8_t>> 176 >("new"); 177 bld.AddFunction< 178 &::Libshit::Lua::GetMember<::Neptools::Stsc::InstructionJumpSwitchItemPotbb, ::uint8_t, &::Neptools::Stsc::InstructionJumpSwitchItemPotbb::trailing_byte> 179 >("get_trailing_byte"); 180 bld.AddFunction< 181 &::Libshit::Lua::SetMember<::Neptools::Stsc::InstructionJumpSwitchItemPotbb, ::uint8_t, &::Neptools::Stsc::InstructionJumpSwitchItemPotbb::trailing_byte> 182 >("set_trailing_byte"); 183 184 } 185 static TypeRegister::StateRegister<::Neptools::Stsc::InstructionJumpSwitchItemPotbb> libshit_lua_statereg_eafbabb88e316dd37d5aaeab09418f9129a9330955fa0928dd30a98cc7cf10f6; 186 187 } 188 #endif 189 #endif