feat: add active branch pet system client bindings, constants, and locale

This commit is contained in:
shen
2026-10-20 00:50:01 -07:00
parent 90ff2a2d7b
commit 74044c59c1
9 changed files with 99 additions and 1 deletions
+14
View File
@@ -171,6 +171,19 @@ PyObject * safeboxGetItemID(PyObject * poSelf, PyObject * poArgs)
return Py_BuildValue("i", pInstance->vnum);
}
PyObject * safeboxGetItemNewName(PyObject * poSelf, PyObject * poArgs)
{
int ipos;
if (!PyTuple_GetInteger(poArgs, 0, &ipos))
return Py_BadArgument();
TItemData * pInstance;
if (!CPythonSafeBox::Instance().GetItemDataPtr(ipos, &pInstance))
return Py_BuildValue("s", "");
return Py_BuildValue("s", pInstance->extra.name);
}
PyObject * safeboxGetItemCount(PyObject * poSelf, PyObject * poArgs)
{
int ipos;
@@ -316,6 +329,7 @@ void initsafebox()
// SafeBox
{ "GetCurrentSafeboxSize", safeboxGetCurrentSafeboxSize, METH_VARARGS },
{ "GetItemID", safeboxGetItemID, METH_VARARGS },
{ "GetItemNewName", safeboxGetItemNewName, METH_VARARGS },
{ "GetItemCount", safeboxGetItemCount, METH_VARARGS },
{ "GetItemFlags", safeboxGetItemFlags, METH_VARARGS },
{ "GetItemMetinSocket", safeboxGetItemMetinSocket, METH_VARARGS },