Copy PythonExchange.cpp/PythonExchangeModule.cpp verbatim, drop the pending stand-in and the exchange module stub, register initTrade() after initNonPlayer(). The fake server answers CG_EXCHANGE START with the partner's item + gold and CANCEL with END; port.login_flow drives the exchange round-trip through the Python exchange/net modules and uiexchange. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
202 lines
9.3 KiB
C++
202 lines
9.3 KiB
C++
// Generated by .agents/skills/metin2-40250-parity-audit/scripts/stub_constants.py; do not edit.
|
|
// The module constants of the 2V0 stub modules (GameplayModules.cpp), copied from each 40250
|
|
// module's init function with the preprocessor lines around them.
|
|
#include "UserInterface/StdAfx.h"
|
|
#include "UserInterface/PythonSystem.h"
|
|
#include "UserInterface/PythonBackground.h"
|
|
#include "EterLib/StateManager.h"
|
|
#include "GameLib/MapOutdoor.h"
|
|
#include "EffectLib/EffectManager.h"
|
|
#include "UserInterface/PythonCharacterManager.h"
|
|
#include "UserInterface/PythonEventManager.h"
|
|
#include "UserInterface/PythonNetworkStream.h"
|
|
#include "GameLib/GameEventManager.h"
|
|
#include "UserInterface/PythonExchange.h"
|
|
#include "GameLib/FlyingObjectManager.h"
|
|
#include "UserInterface/PythonGuild.h"
|
|
#include "UserInterface/AbstractPlayer.h"
|
|
#include "UserInterface/MarkManager.h"
|
|
#include "UserInterface/PythonIME.h"
|
|
#include "UserInterface/PythonApplication.h"
|
|
#include "UserInterface/PythonItem.h"
|
|
#include "GameLib/ItemManager.h"
|
|
#include "UserInterface/InstanceBase.h"
|
|
#include "UserInterface/AbstractApplication.h"
|
|
#include "UserInterface/PythonMessenger.h"
|
|
#include "UserInterface/PythonMiniMap.h"
|
|
#include "EterLib/Profiler.h"
|
|
#include "UserInterface/PythonQuest.h"
|
|
#include "UserInterface/PythonSafeBox.h"
|
|
#include "UserInterface/PythonShop.h"
|
|
#include "UserInterface/PythonSkill.h"
|
|
#include "EterBase/Poly/Poly.h"
|
|
#include "EterPack/EterPackManager.h"
|
|
#include "UserInterface/PythonPlayer.h"
|
|
#include "UserInterface/PythonTextTail.h"
|
|
|
|
// 40250 UserInterface/PythonBackgroundModule.cpp
|
|
void AddStubConstants_background(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "PART_SKY", CMapOutdoor::PART_SKY);
|
|
PyModule_AddIntConstant(poModule, "PART_TREE", CMapOutdoor::PART_TREE);
|
|
PyModule_AddIntConstant(poModule, "PART_CLOUD", CMapOutdoor::PART_CLOUD);
|
|
PyModule_AddIntConstant(poModule, "PART_WATER", CMapOutdoor::PART_WATER);
|
|
PyModule_AddIntConstant(poModule, "PART_OBJECT", CMapOutdoor::PART_OBJECT);
|
|
PyModule_AddIntConstant(poModule, "PART_TERRAIN", CMapOutdoor::PART_TERRAIN);
|
|
PyModule_AddIntConstant(poModule, "SKY_RENDER_MODE_DEFAULT", CSkyObject::SKY_RENDER_MODE_DEFAULT);
|
|
PyModule_AddIntConstant(poModule, "SKY_RENDER_MODE_DIFFUSE", CSkyObject::SKY_RENDER_MODE_DIFFUSE);
|
|
PyModule_AddIntConstant(poModule, "SKY_RENDER_MODE_TEXTURE", CSkyObject::SKY_RENDER_MODE_TEXTURE);
|
|
PyModule_AddIntConstant(poModule, "SKY_RENDER_MODE_MODULATE", CSkyObject::SKY_RENDER_MODE_MODULATE);
|
|
PyModule_AddIntConstant(poModule, "SKY_RENDER_MODE_MODULATE2X", CSkyObject::SKY_RENDER_MODE_MODULATE2X);
|
|
PyModule_AddIntConstant(poModule, "SKY_RENDER_MODE_MODULATE4X", CSkyObject::SKY_RENDER_MODE_MODULATE4X);
|
|
PyModule_AddIntConstant(poModule, "SHADOW_NONE", CPythonBackground::SHADOW_NONE);
|
|
PyModule_AddIntConstant(poModule, "SHADOW_GROUND", CPythonBackground::SHADOW_GROUND);
|
|
PyModule_AddIntConstant(poModule, "SHADOW_GROUND_AND_SOLO", CPythonBackground::SHADOW_GROUND_AND_SOLO);
|
|
PyModule_AddIntConstant(poModule, "SHADOW_ALL", CPythonBackground::SHADOW_ALL);
|
|
PyModule_AddIntConstant(poModule, "SHADOW_ALL_HIGH", CPythonBackground::SHADOW_ALL_HIGH);
|
|
PyModule_AddIntConstant(poModule, "SHADOW_ALL_MAX", CPythonBackground::SHADOW_ALL_MAX);
|
|
PyModule_AddIntConstant(poModule, "DISTANCE0", CPythonBackground::DISTANCE0);
|
|
PyModule_AddIntConstant(poModule, "DISTANCE1", CPythonBackground::DISTANCE1);
|
|
PyModule_AddIntConstant(poModule, "DISTANCE2", CPythonBackground::DISTANCE2);
|
|
PyModule_AddIntConstant(poModule, "DISTANCE3", CPythonBackground::DISTANCE3);
|
|
PyModule_AddIntConstant(poModule, "DISTANCE4", CPythonBackground::DISTANCE4);
|
|
PyModule_AddIntConstant(poModule, "DISTANCE_SORT", CMapOutdoor::DISTANCE_SORT);
|
|
PyModule_AddIntConstant(poModule, "TEXTURE_SORT", CMapOutdoor::TEXTURE_SORT);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonEventManagerMoudle.cpp
|
|
void AddStubConstants_event(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "BOX_VISIBLE_LINE_COUNT", CPythonEventManager::BOX_VISIBLE_LINE_COUNT);
|
|
PyModule_AddIntConstant(poModule, "BUTTON_TYPE_NEXT", CPythonEventManager::BUTTON_TYPE_NEXT);
|
|
PyModule_AddIntConstant(poModule, "BUTTON_TYPE_DONE", CPythonEventManager::BUTTON_TYPE_DONE);
|
|
PyModule_AddIntConstant(poModule, "BUTTON_TYPE_CANCEL", CPythonEventManager::BUTTON_TYPE_CANCEL);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonGameEventManagerModule.cpp
|
|
void AddStubConstants_eventMgr(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
}
|
|
|
|
// 40250 UserInterface/PythonGuild.cpp
|
|
void AddStubConstants_guild(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "AUTH_ADD_MEMBER", GUILD_AUTH_ADD_MEMBER);
|
|
PyModule_AddIntConstant(poModule, "AUTH_REMOVE_MEMBER", GUILD_AUTH_REMOVE_MEMBER);
|
|
PyModule_AddIntConstant(poModule, "AUTH_NOTICE", GUILD_AUTH_NOTICE);
|
|
PyModule_AddIntConstant(poModule, "AUTH_SKILL", GUILD_AUTH_SKILL);
|
|
PyModule_AddIntConstant(poModule, "ENEMY_GUILD_SLOT_MAX_COUNT", CPythonGuild::ENEMY_GUILD_SLOT_MAX_COUNT);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonIMEModule.cpp
|
|
void AddStubConstants_ime(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
}
|
|
|
|
// 40250 UserInterface/PythonMessenger.cpp
|
|
void AddStubConstants_messenger(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
}
|
|
|
|
// 40250 UserInterface/PythonMiniMapModule.cpp
|
|
void AddStubConstants_miniMap(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "TYPE_OPC", CPythonMiniMap::TYPE_OPC);
|
|
PyModule_AddIntConstant(poModule, "TYPE_OPCPVP", CPythonMiniMap::TYPE_OPCPVP);
|
|
PyModule_AddIntConstant(poModule, "TYPE_OPCPVPSELF", CPythonMiniMap::TYPE_OPCPVPSELF);
|
|
PyModule_AddIntConstant(poModule, "TYPE_NPC", CPythonMiniMap::TYPE_NPC);
|
|
PyModule_AddIntConstant(poModule, "TYPE_MONSTER", CPythonMiniMap::TYPE_MONSTER);
|
|
PyModule_AddIntConstant(poModule, "TYPE_WARP", CPythonMiniMap::TYPE_WARP);
|
|
PyModule_AddIntConstant(poModule, "TYPE_WAYPOINT", CPythonMiniMap::TYPE_WAYPOINT);
|
|
PyModule_AddIntConstant(poModule, "TYPE_PARTY", CPythonMiniMap::TYPE_PARTY);
|
|
PyModule_AddIntConstant(poModule, "TYPE_EMPIRE", CPythonMiniMap::TYPE_EMPIRE);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonProfilerModule.cpp
|
|
void AddStubConstants_profiler(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
}
|
|
|
|
// 40250 UserInterface/PythonQuest.cpp
|
|
void AddStubConstants_quest(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "QUEST_MAX_NUM", 5);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonSafeBox.cpp
|
|
void AddStubConstants_safebox(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "SAFEBOX_SLOT_X_COUNT", CPythonSafeBox::SAFEBOX_SLOT_X_COUNT);
|
|
PyModule_AddIntConstant(poModule, "SAFEBOX_SLOT_Y_COUNT", CPythonSafeBox::SAFEBOX_SLOT_Y_COUNT);
|
|
PyModule_AddIntConstant(poModule, "SAFEBOX_PAGE_SIZE", CPythonSafeBox::SAFEBOX_PAGE_SIZE);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonShop.cpp
|
|
void AddStubConstants_shop(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "SHOP_SLOT_COUNT", SHOP_HOST_ITEM_MAX_NUM);
|
|
PyModule_AddIntConstant(poModule, "SHOP_COIN_TYPE_GOLD", SHOP_COIN_TYPE_GOLD);
|
|
PyModule_AddIntConstant(poModule, "SHOP_COIN_TYPE_SECONDARY_COIN", SHOP_COIN_TYPE_SECONDARY_COIN);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonSkill.cpp
|
|
void AddStubConstants_skill(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "SKILL_TYPE_NONE", CPythonSkill::SKILL_TYPE_NONE);
|
|
PyModule_AddIntConstant(poModule, "SKILL_TYPE_ACTIVE", CPythonSkill::SKILL_TYPE_ACTIVE);
|
|
PyModule_AddIntConstant(poModule, "SKILL_TYPE_SUPPORT", CPythonSkill::SKILL_TYPE_SUPPORT);
|
|
PyModule_AddIntConstant(poModule, "SKILL_TYPE_GUILD", CPythonSkill::SKILL_TYPE_GUILD);
|
|
PyModule_AddIntConstant(poModule, "SKILL_TYPE_HORSE", CPythonSkill::SKILL_TYPE_HORSE);
|
|
PyModule_AddIntConstant(poModule, "SKILL_TYPE_MAX_NUM", CPythonSkill::SKILL_TYPE_MAX_NUM);
|
|
PyModule_AddIntConstant(poModule, "SKILL_GRADE_COUNT", CPythonSkill::SKILL_GRADE_COUNT);
|
|
PyModule_AddIntConstant(poModule, "SKILL_GRADE_STEP_COUNT", CPythonSkill::SKILL_GRADE_STEP_COUNT);
|
|
PyModule_AddIntConstant(poModule, "SKILL_GRADEGAP", CPythonSkill::SKILL_GRADEGAP);
|
|
PyModule_AddIntConstant(poModule, "SKILL_EFFECT_COUNT", CPythonSkill::SKILL_EFFECT_COUNT);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonSoundManagerModule.cpp
|
|
void AddStubConstants_snd(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
}
|
|
|
|
// 40250 UserInterface/PythonSystemModule.cpp
|
|
void AddStubConstants_systemSetting(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
PyModule_AddIntConstant(poModule, "WINDOW_STATUS", CPythonSystem::WINDOW_STATUS);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_INVENTORY", CPythonSystem::WINDOW_INVENTORY);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_ABILITY", CPythonSystem::WINDOW_ABILITY);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_SOCIETY", CPythonSystem::WINDOW_SOCIETY);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_JOURNAL", CPythonSystem::WINDOW_JOURNAL);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_COMMAND", CPythonSystem::WINDOW_COMMAND);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_QUICK", CPythonSystem::WINDOW_QUICK);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_GAUGE", CPythonSystem::WINDOW_GAUGE);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_MINIMAP", CPythonSystem::WINDOW_MINIMAP);
|
|
PyModule_AddIntConstant(poModule, "WINDOW_CHAT", CPythonSystem::WINDOW_CHAT);
|
|
}
|
|
|
|
// 40250 UserInterface/PythonTextTailModule.cpp
|
|
void AddStubConstants_textTail(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
}
|
|
|
|
// 40250 UserInterface/PythonNetworkDatagramModule.cpp
|
|
void AddStubConstants_udp(PyObject* poModule)
|
|
{
|
|
(void) poModule;
|
|
}
|