feat: implement offline shop and private shop search client subsystems (Stage 5 Part 2)

- Enable ENABLE_OFFLINESHOP_SYSTEM and ENABLE_SHOP_SEARCH_SYSTEM in Locale_inc.h
- Add CG57, CG58, CG143, GC47, GC48, GC156 packets and subheaders in Packet.h
- Implement PythonShop offline shop item/stock/money methods and Python bindings
- Implement PythonNetworkStream offline shop packet sending and receiving handlers
- Port PythonPrivateShopSearch and export privateShopSearch Python module
- Add PythonUtils PyTuple_GetLongLong for 64-bit yang input parsing
- Add Python UI module test assertions covering offline shop and search APIs
This commit is contained in:
shen
2026-10-20 03:38:34 -07:00
parent 9ef25b79d8
commit 18d9c89af8
20 changed files with 1741 additions and 1 deletions
@@ -1583,6 +1583,18 @@ void initapp()
PyModule_AddIntConstant(poModule, "ENABLE_SPECIAL_STORAGE", 0);
#endif
#ifdef ENABLE_OFFLINESHOP_SYSTEM
PyModule_AddIntConstant(poModule, "ENABLE_OFFLINESHOP_SYSTEM", 1);
#else
PyModule_AddIntConstant(poModule, "ENABLE_OFFLINESHOP_SYSTEM", 0);
#endif
#ifdef ENABLE_SHOP_SEARCH_SYSTEM
PyModule_AddIntConstant(poModule, "ENABLE_SHOP_SEARCH_SYSTEM", 1);
#else
PyModule_AddIntConstant(poModule, "ENABLE_SHOP_SEARCH_SYSTEM", 0);
#endif
#ifdef USE_OPENID
PyModule_AddIntConstant(poModule, "USE_OPENID", 1);
if (openid_test)