feat: add MeshPort overlay networking, item actions window, and AVA2 client enhancements

- add MeshPort peer-to-peer overlay networking SDK, C++ integration, and Python bindings
- add item actions quick use/split/delete/lock overlay window (mt_item_actions)
- add shop name range and NPC name visibility settings to system display options
- support battlepass ticket activation and month validation in mt_battlepass
- support boss tracking teleport destination button in mt_bosses
- support asynchronous account registration cancellation and pending login cancellation
- update AVA2 item conversion for attr lock scrolls and battlepass tickets
- update .gitignore for local build outputs and caches
This commit is contained in:
shen
2026-10-16 01:29:57 -07:00
parent f266072f67
commit 507e687867
556 changed files with 213111 additions and 43 deletions
+30
View File
@@ -0,0 +1,30 @@
// PORT: networking is prepared by the native transport, independently of the login UI.
#include <Python.h>
#ifdef MT_HAS_MESHPORT
#include "transport.h"
#include "MeshPortConfig.h"
#include <cstdlib>
#include <fstream>
#include <iterator>
namespace {
PyObject* event(PyObject*,PyObject*) { return PyInt_FromLong(mt::meshport::take_event()); }
PyObject* local(PyObject*,PyObject* args) {
const char* ip;if(!PyArg_ParseTuple(args,"s",&ip))return nullptr;
return PyBool_FromLong(mt::meshport::same_subnet(ip));
}
PyMethodDef methods[]={
{"event",event,METH_NOARGS,nullptr},{"same_subnet",local,METH_VARARGS,nullptr},
{nullptr,nullptr,0,nullptr}
};
}
void initMeshPort() {
std::string config=kMeshPortConfig;
if(const char* path=std::getenv("MT_MESHPORT_CONFIG")) {
std::ifstream input(path,std::ios::binary);
config.assign(std::istreambuf_iterator<char>(input),{});
}
if(config.size()>65536)config.clear();
mt::meshport::configure(config);
Py_InitModule("_mt_meshport",methods);
}
#endif