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:
@@ -1,4 +1,7 @@
|
||||
#include "StdAfx.h"
|
||||
#ifdef MT_HAS_MESHPORT
|
||||
#include "transport.h" // PORT: cancel only this login's pending mesh transports.
|
||||
#endif
|
||||
#include "PythonNetworkStream.h"
|
||||
//#include "PythonNetworkDatagram.h"
|
||||
#include "AccountConnector.h"
|
||||
@@ -14,6 +17,7 @@ std::list<std::string> g_kList_strCommand;
|
||||
// PORT: PythonAccountRegister.cpp
|
||||
PyObject* netRegisterAccount(PyObject* poSelf, PyObject* poArgs);
|
||||
PyObject* netGetRegisterAccountResult(PyObject* poSelf, PyObject* poArgs);
|
||||
PyObject* netCancelRegisterAccount(PyObject*,PyObject*); // PORT: cancel pending HTTP/mesh work.
|
||||
|
||||
PyObject* netGetBettingGuildWarValue(PyObject* poSelf, PyObject* poArgs)
|
||||
{
|
||||
@@ -1014,6 +1018,22 @@ PyObject* netLogOutGame(PyObject* poSelf, PyObject* poArgs)
|
||||
return Py_BuildNone();
|
||||
}
|
||||
|
||||
#ifdef MT_HAS_MESHPORT
|
||||
PyObject* netCancelPendingLogin(PyObject*,PyObject*)
|
||||
{
|
||||
bool cancelled = false;
|
||||
auto& account = CAccountConnector::Instance();
|
||||
auto& game = CPythonNetworkStream::Instance();
|
||||
if (mt::meshport::pending_owner(static_cast<CNetworkStream*>(&account))) {
|
||||
account.Disconnect(); cancelled = true;
|
||||
}
|
||||
if (mt::meshport::pending_owner(static_cast<CNetworkStream*>(&game))) {
|
||||
game.Disconnect(); cancelled = true;
|
||||
}
|
||||
return PyBool_FromLong(cancelled);
|
||||
}
|
||||
#endif
|
||||
|
||||
PyObject* netDisconnect(PyObject* poSelf, PyObject* poArgs)
|
||||
{
|
||||
CPythonNetworkStream& rkNetStream=CPythonNetworkStream::Instance();
|
||||
@@ -1774,6 +1794,10 @@ void initnet()
|
||||
{ "SendChangeNamePacket", netSendChangeNamePacket, METH_VARARGS },
|
||||
{ "SendCreateCharacterPacket", netSendCreateCharacterPacket, METH_VARARGS },
|
||||
{ "RegisterAccount", netRegisterAccount, METH_VARARGS },
|
||||
{ "CancelRegisterAccount", netCancelRegisterAccount, METH_NOARGS },
|
||||
#ifdef MT_HAS_MESHPORT
|
||||
{ "CancelPendingLogin", netCancelPendingLogin, METH_NOARGS },
|
||||
#endif
|
||||
{ "GetRegisterAccountResult", netGetRegisterAccountResult, METH_VARARGS },
|
||||
{ "SendDestroyCharacterPacket", netSendDestroyCharacterPacket, METH_VARARGS },
|
||||
{ "SendEnterGamePacket", netSendEnterGamePacket, METH_VARARGS },
|
||||
|
||||
Reference in New Issue
Block a user