diff --git a/bin/RelWithDebInfo/Py4GW.dll b/bin/RelWithDebInfo/Py4GW.dll index 887f2c0..e9744bb 100644 Binary files a/bin/RelWithDebInfo/Py4GW.dll and b/bin/RelWithDebInfo/Py4GW.dll differ diff --git a/src/py_items.cpp b/src/py_items.cpp index aedf512..36d5518 100644 --- a/src/py_items.cpp +++ b/src/py_items.cpp @@ -573,7 +573,17 @@ static std::vector GetSingleItemName(uint32_t item_id) return out; } - +std::vector GetCompositeModelIDs(uint32_t model_file_id) +{ + const auto model_file_info = GW::Items::GetCompositeModelInfo(model_file_id); + if (model_file_info) { + return std::vector( + std::begin(model_file_info->file_ids), + std::end(model_file_info->file_ids) + ); + } + return {}; +} void bind_SafeDyeColor(py::module_& m) { @@ -718,6 +728,7 @@ void bind_SafeItem(py::module_& m) { .def("GetCompleteNameEnc", &GetCompleteNameEnc) .def("GetSingleItemName", &GetSingleItemName) .def("IsItemValid", &SafeItem::IsItemValid) + .def("GetCompositeModelIDs", &GetCompositeModelIDs) .def_readonly("item_id", &SafeItem::item_id) .def_readonly("agent_id", &SafeItem::agent_id) .def_readonly("agent_item_id", &SafeItem::agent_item_id)