AVA2 Windows parity passes 26-29: background, grp/net/player/app complete port, 0 placeholders, portable assets

This commit is contained in:
shen
2026-10-07 21:18:47 -07:00
parent 9077aa389a
commit d9a2ff3fca
19 changed files with 5457 additions and 3657 deletions
+348 -57
View File
@@ -105,11 +105,14 @@ PyObject* status(PyObject*,PyObject*) { const char* names[]={"idle","resolving",
PyObject* is_connected(PyObject*,PyObject*) { return PyInt_FromLong(client.is_connected()); }
PyObject* net_dummy_none(PyObject*, PyObject*) { Py_RETURN_NONE; }
PyObject* net_dummy_zero(PyObject*, PyObject*) { return PyInt_FromLong(0); }
PyObject* net_dummy_one(PyObject*, PyObject*) { return PyInt_FromLong(1); }
PyObject* net_dummy_str(PyObject*, PyObject*) { return PyString_FromString(""); }
PyObject* net_dummy_tuple4(PyObject*, PyObject*) { return Py_BuildValue("iiii", 0, 0, 0, 0); }
static PyObject* net_ElementsSpellClose(PyObject*, PyObject*) { return Py_BuildNone(); }
static PyObject* net_ElementsSpellAdd(PyObject*, PyObject*) { return Py_BuildNone(); }
static PyObject* net_ElementsSpellChange(PyObject*, PyObject*) { return Py_BuildNone(); }
static PyObject* net_SendCombatZoneRequestActionPacket(PyObject*, PyObject*) { return Py_BuildNone(); }
static PyObject* net_CombatZone_IsRunning(PyObject*, PyObject*) { return PyInt_FromLong(0); }
static PyObject* net_CombatZone_GetRankings(PyObject*, PyObject*) { return Py_BuildValue("iiii", 0, 0, 0, 0); }
static PyObject* net_CombatZone_GetDay(PyObject*, PyObject*) { return Py_BuildValue("iiii", 0, 0, 0, 0); }
static PyObject* net_CombatZone_GetDayActivate(PyObject*, PyObject*) { return PyInt_FromLong(0); }
// ── AVA2 PythonNetworkStreamModule.cpp wrappers (ScriptLib argument helpers, Py_BuildException -> None) ──
PyObject* netSendExchangeStartPacket(PyObject*, PyObject* poArgs) {
@@ -820,6 +823,294 @@ static PyObject* net_send_script_button_packet(PyObject*, PyObject* args) {
Py_RETURN_NONE;
}
static std::string s_netServerInfo = "";
static PyObject* net_GetBettingGuildWarValue(PyObject*, PyObject* poArgs) {
char* szName = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szName))
return Py_BuildException();
return Py_BuildValue("i", 0);
}
static PyObject* net_SetServerInfo(PyObject*, PyObject* poArgs) {
char* szFileName = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szFileName))
return Py_BuildException();
s_netServerInfo = szFileName ? szFileName : "";
return Py_BuildNone();
}
static PyObject* net_GetServerInfo(PyObject*, PyObject*) {
return Py_BuildValue("s", s_netServerInfo.c_str());
}
static PyObject* net_IsTest(PyObject*, PyObject*) {
return Py_BuildValue("i", 0);
}
static PyObject* net_SetMarkServer(PyObject*, PyObject* poArgs) {
char* szAddr = nullptr;
int port = 0;
if (!PyTuple_GetString(poArgs, 0, &szAddr) || !PyTuple_GetInteger(poArgs, 1, &port))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_UploadMark(PyObject*, PyObject* poArgs) {
char* szFileName = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szFileName))
return Py_BuildException();
return Py_BuildValue("i", 0);
}
static PyObject* net_UploadSymbol(PyObject*, PyObject* poArgs) {
char* szFileName = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szFileName))
return Py_BuildException();
return Py_BuildValue("i", 0);
}
static PyObject* net_ToggleGameDebugInfo(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_SetTCPRecvBufferSize(PyObject*, PyObject* poArgs) {
int bufSize = 0;
if (!PyTuple_GetInteger(poArgs, 0, &bufSize))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SetTCPSendBufferSize(PyObject*, PyObject* poArgs) {
int bufSize = 0;
if (!PyTuple_GetInteger(poArgs, 0, &bufSize))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SetUDPRecvBufferSize(PyObject*, PyObject* poArgs) {
int bufSize = 0;
if (!PyTuple_GetInteger(poArgs, 0, &bufSize))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_LogOutGame(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_ExitGame(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_ExitApplication(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_ConnectTCP(PyObject*, PyObject* poArgs) {
char* szAddr = nullptr;
int port = 0;
if (!PyTuple_GetString(poArgs, 0, &szAddr) || !PyTuple_GetInteger(poArgs, 1, &port))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_ConnectUDP(PyObject*, PyObject* poArgs) {
char* c_szIP = nullptr;
int iPort = 0;
if (!PyTuple_GetString(poArgs, 0, &c_szIP) || !PyTuple_GetInteger(poArgs, 1, &iPort))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendLoginPacket(PyObject*, PyObject* poArgs) {
char* szName = nullptr;
char* szPwd = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szName) || !PyTuple_GetString(poArgs, 1, &szPwd))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendChinaMatrixCardPacket(PyObject*, PyObject* poArgs) {
char* szMatrixCardString = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szMatrixCardString))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendRunupMatrixCardPacket(PyObject*, PyObject* poArgs) {
char* szMatrixCardString = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szMatrixCardString))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendNEWCIBNPasspodAnswerPacket(PyObject*, PyObject* poArgs) {
char* szMatrixCardString = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szMatrixCardString))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendSelectEmpirePacket(PyObject*, PyObject* poArgs) {
int iEmpireIndex = 0;
if (!PyTuple_GetInteger(poArgs, 0, &iEmpireIndex))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendChangeNamePacket(PyObject*, PyObject* poArgs) {
int iIndex = 0;
char* szName = nullptr;
if (!PyTuple_GetInteger(poArgs, 0, &iIndex) || !PyTuple_GetString(poArgs, 1, &szName))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SetOfflinePhase(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_SendMobileMessagePacket(PyObject*, PyObject* poArgs) {
char* szName = nullptr;
char* szLine = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szName) || !PyTuple_GetString(poArgs, 1, &szLine))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SetSkillGroupFake(PyObject*, PyObject* poArgs) {
int iIndex = 0;
if (!PyTuple_GetInteger(poArgs, 0, &iIndex))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendGuildSymbol(PyObject*, PyObject* poArgs) {
char* szIP = nullptr;
int iPort = 0;
char* szFileName = nullptr;
int iGuildID = 0;
if (!PyTuple_GetString(poArgs, 0, &szIP) ||
!PyTuple_GetInteger(poArgs, 1, &iPort) ||
!PyTuple_GetString(poArgs, 2, &szFileName) ||
!PyTuple_GetInteger(poArgs, 3, &iGuildID))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_DisconnectUploader(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_RecvGuildSymbol(PyObject*, PyObject* poArgs) {
char* szIP = nullptr;
int iPort = 0;
int iGuildID = 0;
if (!PyTuple_GetString(poArgs, 0, &szIP) ||
!PyTuple_GetInteger(poArgs, 1, &iPort) ||
!PyTuple_GetInteger(poArgs, 2, &iGuildID))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendAddOfflineShopItem(PyObject*, PyObject* poArgs) {
int bDisplayPos = 0, bPos = 0, bWindowType = 0;
long long iPrice = 0;
if (!PyTuple_GetInteger(poArgs, 0, &bDisplayPos) ||
!PyTuple_GetInteger(poArgs, 1, &bPos) ||
!PyTuple_GetLongLong(poArgs, 2, &iPrice) ||
!PyTuple_GetInteger(poArgs, 3, &bWindowType))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendTakeOfflineMoney(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_SendOfflineShopChangeTitle(PyObject*, PyObject* poArgs) {
char* title = nullptr;
if (!PyTuple_GetString(poArgs, 0, &title))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendOfflineShopCheck(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_SendOfflineShopButton(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_RegisterErrorLog(PyObject*, PyObject* poArgs) {
char* szLog = nullptr;
if (!PyTuple_GetString(poArgs, 0, &szLog))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_Send67AttrPacket(PyObject*, PyObject* poArgs) {
int iMaterialCount = 0, iSupportCount = 0, iSupportPos = 0, iItemPos = 0;
if (!PyTuple_GetInteger(poArgs, 0, &iMaterialCount) ||
!PyTuple_GetInteger(poArgs, 1, &iSupportCount) ||
!PyTuple_GetInteger(poArgs, 2, &iSupportPos) ||
!PyTuple_GetInteger(poArgs, 3, &iItemPos))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_Send67AttrClosePacket(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_CalendarOpen(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_CalendarClose(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_CalendarSend(PyObject*, PyObject* poArgs) {
int day = 0, index_event = 0;
char* hora_inicio = nullptr;
char* hora_final = nullptr;
if (!PyTuple_GetInteger(poArgs, 0, &day) ||
!PyTuple_GetInteger(poArgs, 1, &index_event) ||
!PyTuple_GetString(poArgs, 2, &hora_inicio) ||
!PyTuple_GetString(poArgs, 3, &hora_final))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendMiniGameCatchKingStart(PyObject*, PyObject* poArgs) {
int ibetNumber = 0;
if (!PyTuple_GetInteger(poArgs, 0, &ibetNumber))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendMiniGameCatchKingDeckCardClick(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_SendMiniGameCatchKingFieldCardClick(PyObject*, PyObject* poArgs) {
int icardNumber = 0;
if (!PyTuple_GetInteger(poArgs, 0, &icardNumber))
return Py_BuildException();
return Py_BuildNone();
}
static PyObject* net_SendMiniGameCatchKingReward(PyObject*, PyObject*) {
return Py_BuildNone();
}
static PyObject* net_OpenCatchKing(PyObject*, PyObject*) {
return Py_BuildNone();
}
void initnet() {
static PyMethodDef methods[] = {
{"SetHandler", set_handler, METH_VARARGS, nullptr},
@@ -836,21 +1127,21 @@ void initnet() {
{"GetEmpireID", empire, METH_NOARGS, nullptr},
{"Update", update, METH_NOARGS, nullptr},
{"GetConnectionState", status, METH_NOARGS, nullptr},
{"GetBettingGuildWarValue", net_dummy_zero, METH_VARARGS, nullptr},
{"GetBettingGuildWarValue", net_GetBettingGuildWarValue, METH_VARARGS, nullptr},
{"EnableChatInsultFilter", net_enable_chat_insult_filter, METH_VARARGS, nullptr},
{"SetServerInfo", net_dummy_none, METH_VARARGS, nullptr},
{"GetServerInfo", net_dummy_str, METH_VARARGS, nullptr},
{"SetServerInfo", net_SetServerInfo, METH_VARARGS, nullptr},
{"GetServerInfo", net_GetServerInfo, METH_VARARGS, nullptr},
{"PreserveServerCommand", net_preserve_server_command, METH_VARARGS, nullptr},
{"GetPreservedServerCommand", net_get_preserved_server_command, METH_VARARGS, nullptr},
{"StartGame", net_start_game, METH_VARARGS, nullptr},
{"Warp", net_warp, METH_VARARGS, nullptr},
{"IsTest", net_dummy_zero, METH_VARARGS, nullptr},
{"SetMarkServer", net_dummy_none, METH_VARARGS, nullptr},
{"IsTest", net_IsTest, METH_VARARGS, nullptr},
{"SetMarkServer", net_SetMarkServer, METH_VARARGS, nullptr},
{"IsChatInsultIn", net_is_chat_insult_in, METH_VARARGS, nullptr},
{"IsInsultIn", net_is_insult_in, METH_VARARGS, nullptr},
{"LoadInsultList", net_load_insult_list, METH_VARARGS, nullptr},
{"UploadMark", net_dummy_none, METH_VARARGS, nullptr},
{"UploadSymbol", net_dummy_none, METH_VARARGS, nullptr},
{"UploadMark", net_UploadMark, METH_VARARGS, nullptr},
{"UploadSymbol", net_UploadSymbol, METH_VARARGS, nullptr},
{"GetGuildID", netGetGuildID, METH_VARARGS, nullptr},
{"GetMainActorVID", net_get_main_actor_vid, METH_VARARGS, nullptr},
{"GetMainActorRace", net_get_main_actor_race, METH_VARARGS, nullptr},
@@ -859,23 +1150,23 @@ void initnet() {
{"SendTargetInfoLoad", netTargetInfoLoad, METH_VARARGS, nullptr},
{"GetFieldMusicFileName", net_get_field_music_name, METH_VARARGS, nullptr},
{"GetFieldMusicVolume", net_get_field_music_volume, METH_VARARGS, nullptr},
{"ToggleGameDebugInfo", net_dummy_none, METH_VARARGS, nullptr},
{"ToggleGameDebugInfo", net_ToggleGameDebugInfo, METH_VARARGS, nullptr},
{"SetServerCommandParserWindow", net_set_server_command_parser_window, METH_VARARGS, nullptr},
{"SetTCPRecvBufferSize", net_dummy_none, METH_VARARGS, nullptr},
{"SetTCPSendBufferSize", net_dummy_none, METH_VARARGS, nullptr},
{"SetUDPRecvBufferSize", net_dummy_none, METH_VARARGS, nullptr},
{"SetTCPRecvBufferSize", net_SetTCPRecvBufferSize, METH_VARARGS, nullptr},
{"SetTCPSendBufferSize", net_SetTCPSendBufferSize, METH_VARARGS, nullptr},
{"SetUDPRecvBufferSize", net_SetUDPRecvBufferSize, METH_VARARGS, nullptr},
{"DirectEnter", direct_enter, METH_VARARGS, nullptr},
{"LogOutGame", net_dummy_none, METH_VARARGS, nullptr},
{"ExitGame", net_dummy_none, METH_VARARGS, nullptr},
{"ExitApplication", net_dummy_none, METH_VARARGS, nullptr},
{"ConnectTCP", net_dummy_none, METH_VARARGS, nullptr},
{"ConnectUDP", net_dummy_none, METH_VARARGS, nullptr},
{"SendLoginPacket", net_dummy_none, METH_VARARGS, nullptr},
{"SendChinaMatrixCardPacket", net_dummy_none, METH_VARARGS, nullptr},
{"SendRunupMatrixCardPacket", net_dummy_none, METH_VARARGS, nullptr},
{"SendNEWCIBNPasspodAnswerPacket", net_dummy_none, METH_VARARGS, nullptr},
{"SendSelectEmpirePacket", net_dummy_none, METH_VARARGS, nullptr},
{"SendChangeNamePacket", net_dummy_none, METH_VARARGS, nullptr},
{"LogOutGame", net_LogOutGame, METH_VARARGS, nullptr},
{"ExitGame", net_ExitGame, METH_VARARGS, nullptr},
{"ExitApplication", net_ExitApplication, METH_VARARGS, nullptr},
{"ConnectTCP", net_ConnectTCP, METH_VARARGS, nullptr},
{"ConnectUDP", net_ConnectUDP, METH_VARARGS, nullptr},
{"SendLoginPacket", net_SendLoginPacket, METH_VARARGS, nullptr},
{"SendChinaMatrixCardPacket", net_SendChinaMatrixCardPacket, METH_VARARGS, nullptr},
{"SendRunupMatrixCardPacket", net_SendRunupMatrixCardPacket, METH_VARARGS, nullptr},
{"SendNEWCIBNPasspodAnswerPacket", net_SendNEWCIBNPasspodAnswerPacket, METH_VARARGS, nullptr},
{"SendSelectEmpirePacket", net_SendSelectEmpirePacket, METH_VARARGS, nullptr},
{"SendChangeNamePacket", net_SendChangeNamePacket, METH_VARARGS, nullptr},
{"SendCreateCharacterPacket", send_create_character, METH_VARARGS, nullptr},
{"SendDestroyCharacterPacket", send_destroy_character, METH_VARARGS, nullptr},
{"SendEnterGamePacket", net_send_enter_game, METH_VARARGS, nullptr},
@@ -888,12 +1179,12 @@ void initnet() {
{"SendItemMovePacket", send_item_move_packet, METH_VARARGS, nullptr},
{"SendItemPickUpPacket", net_send_item_pickup, METH_VARARGS, nullptr},
{"SendGiveItemPacket", net_send_give_item_packet, METH_VARARGS, nullptr},
{"SetOfflinePhase", net_dummy_none, METH_VARARGS, nullptr},
{"SetOfflinePhase", net_SetOfflinePhase, METH_VARARGS, nullptr},
{"IsConnect", is_connected, METH_VARARGS, nullptr},
{"SendChatPacket", net_send_chat, METH_VARARGS, nullptr},
{"SendEmoticon", net_send_emoticon, METH_VARARGS, nullptr},
{"SendWhisperPacket", net_send_whisper, METH_VARARGS, nullptr},
{"SendMobileMessagePacket", net_dummy_none, METH_VARARGS, nullptr},
{"SendMobileMessagePacket", net_SendMobileMessagePacket, METH_VARARGS, nullptr},
{"SendCharacterPositionPacket", send_character_position_packet, METH_VARARGS, nullptr},
{"SendCharacterMovePacket", send_character_move_packet, METH_VARARGS, nullptr},
{"SendCharacterStatePacket", send_character_move_packet, METH_VARARGS, nullptr},
@@ -952,44 +1243,44 @@ void initnet() {
{"SendScriptButtonPacket", net_send_script_button_packet, METH_VARARGS, nullptr},
{"SendSelectItemPacket", netSendSelectItemPacket, METH_VARARGS, nullptr},
{"SetEmpireLanguageMode", net_set_empire_language_mode, METH_VARARGS, nullptr},
{"SetSkillGroupFake", net_dummy_none, METH_VARARGS, nullptr},
{"SendGuildSymbol", net_dummy_none, METH_VARARGS, nullptr},
{"DisconnectUploader", net_dummy_none, METH_VARARGS, nullptr},
{"RecvGuildSymbol", net_dummy_none, METH_VARARGS, nullptr},
{"SetSkillGroupFake", net_SetSkillGroupFake, METH_VARARGS, nullptr},
{"SendGuildSymbol", net_SendGuildSymbol, METH_VARARGS, nullptr},
{"DisconnectUploader", net_DisconnectUploader, METH_VARARGS, nullptr},
{"RecvGuildSymbol", net_RecvGuildSymbol, METH_VARARGS, nullptr},
{"SendOfflineShopEndPacket", offline_shop_end, METH_VARARGS, nullptr},
{"SendOfflineShopBuyPacket", offline_shop_buy, METH_VARARGS, nullptr},
{"SendAddOfflineShopItem", net_dummy_none, METH_VARARGS, nullptr},
{"SendAddOfflineShopItem", net_SendAddOfflineShopItem, METH_VARARGS, nullptr},
{"SendRemoveOfflineShopItem", offline_shop_remove, METH_VARARGS, nullptr},
{"SendDestroyOfflineShop", offline_shop_destroy, METH_VARARGS, nullptr},
{"SendTakeOfflineMoney", net_dummy_none, METH_VARARGS, nullptr},
{"SendOfflineShopChangeTitle", net_dummy_none, METH_VARARGS, nullptr},
{"SendOfflineShopCheck", net_dummy_none, METH_VARARGS, nullptr},
{"SendOfflineShopButton", net_dummy_none, METH_VARARGS, nullptr},
{"SendTakeOfflineMoney", net_SendTakeOfflineMoney, METH_VARARGS, nullptr},
{"SendOfflineShopChangeTitle", net_SendOfflineShopChangeTitle, METH_VARARGS, nullptr},
{"SendOfflineShopCheck", net_SendOfflineShopCheck, METH_VARARGS, nullptr},
{"SendOfflineShopButton", net_SendOfflineShopButton, METH_VARARGS, nullptr},
{"SendOfflineShopRemoveLogs", offline_shop_logs, METH_VARARGS, nullptr},
{"SendOpenShopSlot", offline_shop_slot, METH_VARARGS, nullptr},
{"SendGetBackItems", offline_shop_get_items, METH_VARARGS, nullptr},
{"SendAddTime", offline_shop_add_time, METH_VARARGS, nullptr},
{"SendOpenWithVID", offline_shop_open_vid, METH_VARARGS, nullptr},
{"RegisterErrorLog", net_dummy_none, METH_VARARGS, nullptr},
{"ElementsSpellClose", net_dummy_none, METH_VARARGS, nullptr},
{"ElementsSpellAdd", net_dummy_none, METH_VARARGS, nullptr},
{"ElementsSpellChange", net_dummy_none, METH_VARARGS, nullptr},
{"Send67AttrPacket", net_dummy_none, METH_VARARGS, nullptr},
{"Send67AttrClosePacket", net_dummy_none, METH_VARARGS, nullptr},
{"CalendarOpen", net_dummy_none, METH_VARARGS, nullptr},
{"CalendarClose", net_dummy_none, METH_VARARGS, nullptr},
{"CalendarSend", net_dummy_none, METH_VARARGS, nullptr},
{"RegisterErrorLog", net_RegisterErrorLog, METH_VARARGS, nullptr},
{"ElementsSpellClose", net_ElementsSpellClose, METH_VARARGS, nullptr},
{"ElementsSpellAdd", net_ElementsSpellAdd, METH_VARARGS, nullptr},
{"ElementsSpellChange", net_ElementsSpellChange, METH_VARARGS, nullptr},
{"Send67AttrPacket", net_Send67AttrPacket, METH_VARARGS, nullptr},
{"Send67AttrClosePacket", net_Send67AttrClosePacket, METH_VARARGS, nullptr},
{"CalendarOpen", net_CalendarOpen, METH_VARARGS, nullptr},
{"CalendarClose", net_CalendarClose, METH_VARARGS, nullptr},
{"CalendarSend", net_CalendarSend, METH_VARARGS, nullptr},
{"SendPrivateShopSearchInfo", netSendPrivateShopSearchInfo, METH_VARARGS, nullptr},
{"SendMiniGameCatchKingStart", net_dummy_none, METH_VARARGS, nullptr},
{"SendMiniGameCatchKingDeckCardClick", net_dummy_none, METH_VARARGS, nullptr},
{"SendMiniGameCatchKingFieldCardClick", net_dummy_none, METH_VARARGS, nullptr},
{"SendMiniGameCatchKingReward", net_dummy_none, METH_VARARGS, nullptr},
{"OpenCatchKing", net_dummy_none, METH_VARARGS, nullptr},
{"SendCombatZoneRequestActionPacket", net_dummy_none, METH_VARARGS, nullptr},
{"IsRunning", net_dummy_zero, METH_VARARGS, nullptr},
{"GetRankings", net_dummy_tuple4, METH_VARARGS, nullptr},
{"GetDay", net_dummy_tuple4, METH_VARARGS, nullptr},
{"GetDayActivate", net_dummy_zero, METH_VARARGS, nullptr},
{"SendMiniGameCatchKingStart", net_SendMiniGameCatchKingStart, METH_VARARGS, nullptr},
{"SendMiniGameCatchKingDeckCardClick", net_SendMiniGameCatchKingDeckCardClick, METH_VARARGS, nullptr},
{"SendMiniGameCatchKingFieldCardClick", net_SendMiniGameCatchKingFieldCardClick, METH_VARARGS, nullptr},
{"SendMiniGameCatchKingReward", net_SendMiniGameCatchKingReward, METH_VARARGS, nullptr},
{"OpenCatchKing", net_OpenCatchKing, METH_VARARGS, nullptr},
{"SendCombatZoneRequestActionPacket", net_SendCombatZoneRequestActionPacket, METH_VARARGS, nullptr},
{"IsRunning", net_CombatZone_IsRunning, METH_VARARGS, nullptr},
{"GetRankings", net_CombatZone_GetRankings, METH_VARARGS, nullptr},
{"GetDay", net_CombatZone_GetDay, METH_VARARGS, nullptr},
{"GetDayActivate", net_CombatZone_GetDayActivate, METH_VARARGS, nullptr},
{nullptr, nullptr, 0, nullptr}
};
auto* module = Py_InitModule("net", methods);