Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bin/RelWithDebInfo/Py4GW.dll
Binary file not shown.
13 changes: 12 additions & 1 deletion src/py_items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,17 @@ static std::vector<uint8_t> GetSingleItemName(uint32_t item_id)
return out;
}


std::vector<uint32_t> GetCompositeModelIDs(uint32_t model_file_id)
{
const auto model_file_info = GW::Items::GetCompositeModelInfo(model_file_id);
if (model_file_info) {
return std::vector<uint32_t>(
std::begin(model_file_info->file_ids),
std::end(model_file_info->file_ids)
);
}
return {};
}


void bind_SafeDyeColor(py::module_& m) {
Expand Down Expand Up @@ -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)
Expand Down