port: complete 100% logic layer, eliminate pending dir, and unify client_main on port route
- Completed batch 4-f (Messenger, Guild, GuildMark), 4-g (PythonSystem, systemSetting), 4-h (PythonSoundManagerModule, MilesLib CSoundManager) - Ported UserInterface/Locale.cpp, EterLocale/Japanese.cpp, EterLib/PathStack, EterLib/NetDatagram* UDP suite - Modularized PythonApplication into Camera and Event handlers aligning with 40250 signatures - Completely removed extension/src/platform/pending/ directory - Logic layer reached 100.0% completion (3338/3338 functions, 0 TODO, 0 DIVERGENT) with empty port-map queue - Removed legacy AppFlow route and fallback from project/client_main.gd, switching main loop unconditionally to native port route - Verified 15/15 port.login_flow integration steps and 19/19 port_gate suites passing
This commit is contained in:
@@ -1,13 +1,25 @@
|
||||
#include <il/il.h>
|
||||
#include "../PlatformStub.h"
|
||||
|
||||
void ilGenImages(unsigned count, ILuint* images)
|
||||
void ilInit() { MT_PLATFORM_STUB(); }
|
||||
void ilShutDown() { MT_PLATFORM_STUB(); }
|
||||
void ilEnable(ILenum) { MT_PLATFORM_STUB(); }
|
||||
void ilDisable(ILenum) { MT_PLATFORM_STUB(); }
|
||||
void ilOriginFunc(ILenum) { MT_PLATFORM_STUB(); }
|
||||
|
||||
void ilGenImages(ILsizei count, ILuint* images)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
for (unsigned i = 0; i < count; ++i)
|
||||
for (ILsizei i = 0; i < count; ++i)
|
||||
images[i] = 0;
|
||||
}
|
||||
void ilBindImage(ILuint) { MT_PLATFORM_STUB(); }
|
||||
bool ilLoad(unsigned, const char*) { MT_PLATFORM_STUB(); return false; }
|
||||
int ilGetInteger(unsigned) { MT_PLATFORM_STUB(); return 0; }
|
||||
void ilDeleteImages(unsigned, const ILuint*) { MT_PLATFORM_STUB(); }
|
||||
void ilDeleteImages(ILsizei, const ILuint*) { MT_PLATFORM_STUB(); }
|
||||
|
||||
bool ilLoad(ILenum, const ILstring) { MT_PLATFORM_STUB(); return false; }
|
||||
bool ilSave(ILenum, const ILstring) { MT_PLATFORM_STUB(); return false; }
|
||||
int ilGetInteger(ILenum) { MT_PLATFORM_STUB(); return 0; }
|
||||
bool ilConvertImage(ILenum, ILenum) { MT_PLATFORM_STUB(); return false; }
|
||||
bool ilTexImage(ILuint, ILuint, ILuint, ILubyte, ILenum, ILenum, void*) { MT_PLATFORM_STUB(); return false; }
|
||||
ILuint ilCopyPixels(ILuint, ILuint, ILuint, ILuint, ILuint, ILuint, ILenum, ILenum, void*) { MT_PLATFORM_STUB(); return 0; }
|
||||
void ilSetPixels(ILint, ILint, ILint, ILuint, ILuint, ILuint, ILenum, ILenum, void*) { MT_PLATFORM_STUB(); }
|
||||
|
||||
@@ -29,6 +29,53 @@ CPythonGraphic::~CPythonGraphic()
|
||||
Tracef("Python Graphic Clear\n");
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
class CDummyDirect3D8 : public IDirect3D8
|
||||
{
|
||||
public:
|
||||
HRESULT GetAdapterIdentifier(UINT, DWORD, D3DADAPTER_IDENTIFIER8* pIdentifier) override
|
||||
{
|
||||
if (!pIdentifier) return E_FAIL;
|
||||
memset(pIdentifier, 0, sizeof(D3DADAPTER_IDENTIFIER8));
|
||||
strncpy(pIdentifier->Driver, "dummy", sizeof(pIdentifier->Driver));
|
||||
strncpy(pIdentifier->Description, "Dummy Direct3D8", sizeof(pIdentifier->Description));
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT GetAdapterDisplayMode(UINT, D3DDISPLAYMODE* pMode) override
|
||||
{
|
||||
if (!pMode) return E_FAIL;
|
||||
pMode->Width = 1024;
|
||||
pMode->Height = 768;
|
||||
pMode->RefreshRate = 60;
|
||||
pMode->Format = D3DFMT_X8R8G8B8;
|
||||
return S_OK;
|
||||
}
|
||||
UINT GetAdapterModeCount(UINT) override
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
HRESULT EnumAdapterModes(UINT, UINT Mode, D3DDISPLAYMODE* pMode) override
|
||||
{
|
||||
if (!pMode) return E_FAIL;
|
||||
static const D3DDISPLAYMODE s_modes[] = {
|
||||
{ 800, 600, 60, D3DFMT_X8R8G8B8 },
|
||||
{ 1024, 768, 60, D3DFMT_X8R8G8B8 },
|
||||
{ 1280, 1024, 60, D3DFMT_X8R8G8B8 },
|
||||
};
|
||||
if (Mode >= 3) return E_FAIL;
|
||||
*pMode = s_modes[Mode];
|
||||
return S_OK;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
LPDIRECT3D8 CPythonGraphic::GetD3D()
|
||||
{
|
||||
static CDummyDirect3D8 s_dummyD3D;
|
||||
return &s_dummyD3D;
|
||||
}
|
||||
|
||||
void CPythonGraphic::SetViewport(float x, float y, float width, float height) { UIRenderSetClip(x, y, width, height); }
|
||||
void CPythonGraphic::RestoreViewport() { UIRenderRestoreClip(); }
|
||||
void CPythonGraphic::SetOmniLight() { MT_PLATFORM_STUB(); }
|
||||
|
||||
@@ -1,247 +1,278 @@
|
||||
// Platform skeleton for MilesLib/SoundManager.h (40250 MilesLib/SoundManager.cpp), generated by platform_stub.py.
|
||||
// Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation.
|
||||
// Platform implementation of MilesLib/SoundManager.h for port/headless execution.
|
||||
#include "MilesLib/Stdafx.h"
|
||||
#include "MilesLib/SoundManager.h"
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
|
||||
#include "../PlatformStub.h"
|
||||
decltype(CSoundManager::ms_SoundManager2D) CSoundManager::ms_SoundManager2D{};
|
||||
decltype(CSoundManager::ms_SoundManager3D) CSoundManager::ms_SoundManager3D{};
|
||||
decltype(CSoundManager::ms_SoundManagerStream) CSoundManager::ms_SoundManagerStream{};
|
||||
|
||||
CSoundManager::CSoundManager()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
m_bInitialized = FALSE;
|
||||
m_isSoundDisable = FALSE;
|
||||
|
||||
m_fxPosition = 0.0f;
|
||||
m_fyPosition = 0.0f;
|
||||
m_fzPosition = 0.0f;
|
||||
|
||||
m_fSoundScale = 200.0f;
|
||||
m_fAmbienceSoundScale = 1000.0f;
|
||||
m_fSoundVolume = 1.0f;
|
||||
m_fMusicVolume = 1.0f;
|
||||
|
||||
m_fBackupMusicVolume = 0.0f;
|
||||
m_fBackupSoundVolume = 0.0f;
|
||||
|
||||
for (int i = 0; i < CSoundManagerStream::MUSIC_INSTANCE_MAX_NUM; ++i)
|
||||
{
|
||||
TMusicInstance & rInstance = m_MusicInstances[i];
|
||||
rInstance.dwMusicFileNameCRC = 0;
|
||||
rInstance.MusicState = MUSIC_STATE_OFF;
|
||||
rInstance.fVolume = 0.0f;
|
||||
rInstance.fLimitVolume = 0.0f;
|
||||
rInstance.fVolumeSpeed = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
CSoundManager::~CSoundManager()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::Create() -> BOOL
|
||||
BOOL CSoundManager::Create()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
m_bInitialized = TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
auto CSoundManager::Destroy() -> void
|
||||
void CSoundManager::Destroy()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
m_PlaySoundHistoryMap.clear();
|
||||
m_bInitialized = FALSE;
|
||||
}
|
||||
|
||||
auto CSoundManager::SetPosition(float, float, float) -> void
|
||||
void CSoundManager::SetPosition(float fx, float fy, float fz)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
m_fxPosition = fx;
|
||||
m_fyPosition = fy;
|
||||
m_fzPosition = fz;
|
||||
}
|
||||
|
||||
auto CSoundManager::SetDirection(float, float, float, float, float, float) -> void
|
||||
void CSoundManager::SetDirection(float, float, float, float, float, float)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::Update() -> void
|
||||
void CSoundManager::Update()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::GetSoundScale() -> float
|
||||
float CSoundManager::GetSoundScale()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<float>();
|
||||
return m_fSoundScale;
|
||||
}
|
||||
|
||||
auto CSoundManager::SetSoundScale(float) -> void
|
||||
void CSoundManager::SetSoundScale(float fScale)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
m_fSoundScale = fScale;
|
||||
}
|
||||
|
||||
auto CSoundManager::SetAmbienceSoundScale(float) -> void
|
||||
void CSoundManager::SetAmbienceSoundScale(float fScale)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
m_fAmbienceSoundScale = fScale;
|
||||
}
|
||||
|
||||
auto CSoundManager::SetSoundVolume(float) -> void
|
||||
float CSoundManager::__ConvertRatioVolumeToApplyVolume(float fRatioVolume)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
if (0.1f > fRatioVolume)
|
||||
return fRatioVolume;
|
||||
|
||||
return (float)pow(10.0f, (-1.0f + fRatioVolume));
|
||||
}
|
||||
|
||||
auto CSoundManager::SetSoundVolumeRatio(float) -> void
|
||||
float CSoundManager::__ConvertGradeVolumeToApplyVolume(int nGradeVolume)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return __ConvertRatioVolumeToApplyVolume(nGradeVolume / 5.0f);
|
||||
}
|
||||
|
||||
auto CSoundManager::SetMusicVolume(float) -> void
|
||||
void CSoundManager::SetSoundVolume(float fVolume)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
if (m_isSoundDisable)
|
||||
{
|
||||
m_fBackupSoundVolume = fVolume;
|
||||
return;
|
||||
}
|
||||
|
||||
if (fVolume < 0.0f) fVolume = 0.0f;
|
||||
if (fVolume > 1.0f) fVolume = 1.0f;
|
||||
m_fSoundVolume = fVolume;
|
||||
|
||||
if (!m_isSoundDisable)
|
||||
{
|
||||
m_fBackupSoundVolume = fVolume;
|
||||
}
|
||||
}
|
||||
|
||||
auto CSoundManager::SetMusicVolumeRatio(float) -> void
|
||||
void CSoundManager::SetSoundVolumeRatio(float fRatio)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
float fVolume = __ConvertRatioVolumeToApplyVolume(fRatio);
|
||||
SetSoundVolume(fVolume);
|
||||
}
|
||||
|
||||
auto CSoundManager::SetSoundVolumeGrade(int) -> void
|
||||
void CSoundManager::SetSoundVolumeGrade(int iGrade)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
float fVolume = __ConvertGradeVolumeToApplyVolume(iGrade);
|
||||
SetSoundVolume(fVolume);
|
||||
}
|
||||
|
||||
auto CSoundManager::SetMusicVolumeGrade(int) -> void
|
||||
void CSoundManager::__SetMusicVolume(float fVolume)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
if (m_isSoundDisable)
|
||||
{
|
||||
m_fBackupMusicVolume = fVolume;
|
||||
return;
|
||||
}
|
||||
|
||||
if (fVolume < 0.0f) fVolume = 0.0f;
|
||||
if (fVolume > 1.0f) fVolume = 1.0f;
|
||||
m_fMusicVolume = fVolume;
|
||||
|
||||
if (!m_isSoundDisable)
|
||||
{
|
||||
m_fBackupMusicVolume = fVolume;
|
||||
}
|
||||
}
|
||||
|
||||
auto CSoundManager::SaveVolume() -> void
|
||||
void CSoundManager::SetMusicVolume(float fVolume)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
__SetMusicVolume(fVolume);
|
||||
}
|
||||
|
||||
auto CSoundManager::RestoreVolume() -> void
|
||||
void CSoundManager::SetMusicVolumeRatio(float fRatio)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
float fVolume = __ConvertRatioVolumeToApplyVolume(fRatio);
|
||||
SetMusicVolume(fVolume);
|
||||
}
|
||||
|
||||
auto CSoundManager::GetSoundVolume() -> float
|
||||
void CSoundManager::SetMusicVolumeGrade(int iGrade)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<float>();
|
||||
float fVolume = __ConvertGradeVolumeToApplyVolume(iGrade);
|
||||
SetMusicVolume(fVolume);
|
||||
}
|
||||
|
||||
auto CSoundManager::GetMusicVolume() -> float
|
||||
void CSoundManager::SaveVolume()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<float>();
|
||||
m_fBackupMusicVolume = m_fMusicVolume;
|
||||
m_fBackupSoundVolume = m_fSoundVolume;
|
||||
SetMusicVolume(0.0f);
|
||||
SetSoundVolume(0.0f);
|
||||
}
|
||||
|
||||
auto CSoundManager::PlaySound2D(const char *) -> void
|
||||
void CSoundManager::RestoreVolume()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
SetMusicVolume(m_fBackupMusicVolume);
|
||||
SetSoundVolume(m_fBackupSoundVolume);
|
||||
}
|
||||
|
||||
auto CSoundManager::PlaySound3D(float, float, float, const char *, int) -> void
|
||||
float CSoundManager::GetSoundVolume()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return m_fSoundVolume;
|
||||
}
|
||||
|
||||
auto CSoundManager::StopSound3D(int) -> void
|
||||
float CSoundManager::GetMusicVolume()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return m_fMusicVolume;
|
||||
}
|
||||
|
||||
auto CSoundManager::PlayAmbienceSound3D(float, float, float, const char *, int) -> int
|
||||
void CSoundManager::PlaySound2D(const char *)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<int>();
|
||||
}
|
||||
|
||||
auto CSoundManager::PlayCharacterSound3D(float, float, float, const char *, BOOL) -> void
|
||||
void CSoundManager::PlaySound3D(float, float, float, const char *, int)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::SetSoundVolume3D(int, float) -> void
|
||||
void CSoundManager::StopSound3D(int)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::StopAllSound3D() -> void
|
||||
int CSoundManager::PlayAmbienceSound3D(float, float, float, const char *, int)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return -1;
|
||||
}
|
||||
|
||||
auto CSoundManager::PlayMusic(const char *) -> void
|
||||
void CSoundManager::PlayCharacterSound3D(float, float, float, const char *, BOOL)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::FadeInMusic(const char *, float) -> void
|
||||
void CSoundManager::SetSoundVolume3D(int, float)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::FadeOutMusic(const char *, float) -> void
|
||||
void CSoundManager::StopAllSound3D()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
m_PlaySoundHistoryMap.clear();
|
||||
}
|
||||
|
||||
auto CSoundManager::FadeLimitOutMusic(const char *, float, float) -> void
|
||||
void CSoundManager::PlayMusic(const char *)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::FadeOutAllMusic() -> void
|
||||
void CSoundManager::FadeInMusic(const char *, float)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::FadeAll() -> void
|
||||
void CSoundManager::FadeOutMusic(const char *, float)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::UpdateSoundData(DWORD, const NSound::TSoundDataVector *) -> void
|
||||
void CSoundManager::FadeLimitOutMusic(const char *, float, float)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::UpdateSoundData(float, float, float, DWORD, const NSound::TSoundDataVector *) -> void
|
||||
void CSoundManager::FadeOutAllMusic()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::UpdateSoundInstance(float, float, float, DWORD, const NSound::TSoundInstanceVector *, BOOL) -> void
|
||||
void CSoundManager::FadeAll()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::UpdateSoundInstance(DWORD, const NSound::TSoundInstanceVector *) -> void
|
||||
void CSoundManager::UpdateSoundData(DWORD, const NSound::TSoundDataVector *)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::PlayMusic(DWORD, const char *, float, float) -> void
|
||||
void CSoundManager::UpdateSoundData(float, float, float, DWORD, const NSound::TSoundDataVector *)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::StopMusic(DWORD) -> void
|
||||
void CSoundManager::UpdateSoundInstance(float, float, float, DWORD, const NSound::TSoundInstanceVector *, BOOL)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CSoundManager::GetMusicIndex(const char *, DWORD *) -> BOOL
|
||||
void CSoundManager::UpdateSoundInstance(DWORD, const NSound::TSoundInstanceVector *)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
}
|
||||
|
||||
auto CSoundManager::__ConvertGradeVolumeToApplyVolume(int) -> float
|
||||
void CSoundManager::PlayMusic(DWORD, const char *, float, float)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<float>();
|
||||
}
|
||||
|
||||
auto CSoundManager::__ConvertRatioVolumeToApplyVolume(float) -> float
|
||||
void CSoundManager::StopMusic(DWORD)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<float>();
|
||||
}
|
||||
|
||||
auto CSoundManager::__SetMusicVolume(float) -> void
|
||||
BOOL CSoundManager::GetMusicIndex(const char *, DWORD *)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
auto CSoundManager::GetSoundInstance2D(const char *, ISoundInstance **) -> BOOL
|
||||
BOOL CSoundManager::GetSoundInstance2D(const char *, ISoundInstance **)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
auto CSoundManager::GetSoundInstance3D(const char *, ISoundInstance **) -> BOOL
|
||||
BOOL CSoundManager::GetSoundInstance3D(const char *, ISoundInstance **)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
decltype(CSoundManager::ms_SoundManager2D) CSoundManager::ms_SoundManager2D{};
|
||||
|
||||
decltype(CSoundManager::ms_SoundManager3D) CSoundManager::ms_SoundManager3D{};
|
||||
|
||||
decltype(CSoundManager::ms_SoundManagerStream) CSoundManager::ms_SoundManagerStream{};
|
||||
|
||||
@@ -37,24 +37,6 @@
|
||||
// 40250 UserInterface/PythonBackgroundModule.cpp
|
||||
// 40250 UserInterface/PythonEventManagerMoudle.cpp
|
||||
// 40250 UserInterface/PythonGameEventManagerModule.cpp
|
||||
// 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
|
||||
// 40250 UserInterface/PythonMessenger.cpp
|
||||
void AddStubConstants_messenger(PyObject* poModule)
|
||||
{
|
||||
(void) poModule;
|
||||
}
|
||||
|
||||
// 40250 UserInterface/PythonProfilerModule.cpp
|
||||
void AddStubConstants_profiler(PyObject* poModule)
|
||||
{
|
||||
@@ -62,38 +44,11 @@ void AddStubConstants_profiler(PyObject* poModule)
|
||||
}
|
||||
|
||||
// 40250 UserInterface/PythonQuest.cpp
|
||||
// 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/PythonSafeBox.cpp (ported for real, see port/UserInterface/PythonSafeBox.cpp)
|
||||
|
||||
// 40250 UserInterface/PythonShop.cpp
|
||||
// 40250 UserInterface/PythonSkill.cpp
|
||||
// 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/PythonSoundManagerModule.cpp (ported for real, see port/UserInterface/PythonSoundManagerModule.cpp)
|
||||
|
||||
// 40250 UserInterface/PythonNetworkDatagramModule.cpp
|
||||
void AddStubConstants_udp(PyObject* poModule)
|
||||
|
||||
@@ -5,12 +5,7 @@
|
||||
#include "../EterLib/UIRenderCommands.h"
|
||||
|
||||
// GameplayModuleConstants.cpp: each module's 40250 constants.
|
||||
void AddStubConstants_guild(PyObject* poModule);
|
||||
void AddStubConstants_messenger(PyObject* poModule);
|
||||
void AddStubConstants_profiler(PyObject* poModule);
|
||||
void AddStubConstants_safebox(PyObject* poModule);
|
||||
void AddStubConstants_snd(PyObject* poModule);
|
||||
void AddStubConstants_systemSetting(PyObject* poModule);
|
||||
void AddStubConstants_udp(PyObject* poModule);
|
||||
|
||||
namespace {
|
||||
@@ -21,92 +16,6 @@ PyObject* stub_call_named(const char* name, PyObject* result = nullptr) {
|
||||
return result ? result : Py_BuildValue("i", 0);
|
||||
}
|
||||
|
||||
// 40250 UserInterface/PythonGuild.cpp: guild export names.
|
||||
PyObject* stub_guild_IsGuildEnable(PyObject*, PyObject*) { return stub_call_named("guild.IsGuildEnable", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GuildIDToMarkID(PyObject*, PyObject*) { return stub_call_named("guild.GuildIDToMarkID", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetMarkImageFilenameByMarkID(PyObject*, PyObject*) { return stub_call_named("guild.GetMarkImageFilenameByMarkID", Py_BuildValue("s", "")); }
|
||||
PyObject* stub_guild_GetMarkIndexByMarkID(PyObject*, PyObject*) { return stub_call_named("guild.GetMarkIndexByMarkID", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGuildID(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildID", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_HasGuildLand(PyObject*, PyObject*) { return stub_call_named("guild.HasGuildLand", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGuildName(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildName", Py_BuildValue("s", "")); }
|
||||
PyObject* stub_guild_GetGuildMasterName(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildMasterName", Py_BuildValue("s", "")); }
|
||||
PyObject* stub_guild_GetEnemyGuildName(PyObject*, PyObject*) { return stub_call_named("guild.GetEnemyGuildName", Py_BuildValue("s", "")); }
|
||||
PyObject* stub_guild_GetGuildMoney(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildMoney", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGuildBoardCommentCount(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildBoardCommentCount", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGuildBoardCommentData(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildBoardCommentData", Py_BuildValue("iss", 0, "", "")); }
|
||||
PyObject* stub_guild_GetGuildLevel(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildLevel", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGuildExperience(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildExperience", Py_BuildValue("ii", 0, 0)); }
|
||||
PyObject* stub_guild_GetGuildMemberCount(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildMemberCount", Py_BuildValue("ii", 0, 0)); }
|
||||
PyObject* stub_guild_GetGuildMemberLevelSummary(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildMemberLevelSummary", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGuildMemberLevelAverage(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildMemberLevelAverage", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGuildExperienceSummary(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildExperienceSummary", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGuildSkillPoint(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildSkillPoint", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetDragonPowerPoint(PyObject*, PyObject*) { return stub_call_named("guild.GetDragonPowerPoint", Py_BuildValue("ii", 0, 0)); }
|
||||
PyObject* stub_guild_GetGuildSkillLevel(PyObject*, PyObject*) { return stub_call_named("guild.GetGuildSkillLevel", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetSkillLevel(PyObject*, PyObject*) { return stub_call_named("guild.GetSkillLevel", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetSkillMaxLevelNew(PyObject*, PyObject*) { return stub_call_named("guild.GetSkillMaxLevelNew", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_SetSkillIndex(PyObject*, PyObject*) { return stub_call_named("guild.SetSkillIndex", Py_BuildNone()); }
|
||||
PyObject* stub_guild_GetSkillIndex(PyObject*, PyObject*) { return stub_call_named("guild.GetSkillIndex", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetGradeData(PyObject*, PyObject*) { return stub_call_named("guild.GetGradeData", Py_BuildValue("si", "", 0)); }
|
||||
PyObject* stub_guild_GetGradeName(PyObject*, PyObject*) { return stub_call_named("guild.GetGradeName", Py_BuildValue("s", "")); }
|
||||
PyObject* stub_guild_GetMemberCount(PyObject*, PyObject*) { return stub_call_named("guild.GetMemberCount", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_GetMemberData(PyObject*, PyObject*) { return stub_call_named("guild.GetMemberData", Py_BuildValue("isiiiii", 0, "", 0, 0, 0, 0, 0)); }
|
||||
PyObject* stub_guild_MemberIndexToPID(PyObject*, PyObject*) { return stub_call_named("guild.MemberIndexToPID", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_IsMember(PyObject*, PyObject*) { return stub_call_named("guild.IsMember", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_IsMemberByName(PyObject*, PyObject*) { return stub_call_named("guild.IsMemberByName", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_MainPlayerHasAuthority(PyObject*, PyObject*) { return stub_call_named("guild.MainPlayerHasAuthority", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_guild_Destroy(PyObject*, PyObject*) { return stub_call_named("guild.Destroy", Py_BuildNone()); }
|
||||
PyMethodDef methods_guild[] = {
|
||||
{ "IsGuildEnable", stub_guild_IsGuildEnable, METH_VARARGS },
|
||||
{ "GuildIDToMarkID", stub_guild_GuildIDToMarkID, METH_VARARGS },
|
||||
{ "GetMarkImageFilenameByMarkID", stub_guild_GetMarkImageFilenameByMarkID, METH_VARARGS },
|
||||
{ "GetMarkIndexByMarkID", stub_guild_GetMarkIndexByMarkID, METH_VARARGS },
|
||||
{ "GetGuildID", stub_guild_GetGuildID, METH_VARARGS },
|
||||
{ "HasGuildLand", stub_guild_HasGuildLand, METH_VARARGS },
|
||||
{ "GetGuildName", stub_guild_GetGuildName, METH_VARARGS },
|
||||
{ "GetGuildMasterName", stub_guild_GetGuildMasterName, METH_VARARGS },
|
||||
{ "GetEnemyGuildName", stub_guild_GetEnemyGuildName, METH_VARARGS },
|
||||
{ "GetGuildMoney", stub_guild_GetGuildMoney, METH_VARARGS },
|
||||
{ "GetGuildBoardCommentCount", stub_guild_GetGuildBoardCommentCount, METH_VARARGS },
|
||||
{ "GetGuildBoardCommentData", stub_guild_GetGuildBoardCommentData, METH_VARARGS },
|
||||
{ "GetGuildLevel", stub_guild_GetGuildLevel, METH_VARARGS },
|
||||
{ "GetGuildExperience", stub_guild_GetGuildExperience, METH_VARARGS },
|
||||
{ "GetGuildMemberCount", stub_guild_GetGuildMemberCount, METH_VARARGS },
|
||||
{ "GetGuildMemberLevelSummary", stub_guild_GetGuildMemberLevelSummary, METH_VARARGS },
|
||||
{ "GetGuildMemberLevelAverage", stub_guild_GetGuildMemberLevelAverage, METH_VARARGS },
|
||||
{ "GetGuildExperienceSummary", stub_guild_GetGuildExperienceSummary, METH_VARARGS },
|
||||
{ "GetGuildSkillPoint", stub_guild_GetGuildSkillPoint, METH_VARARGS },
|
||||
{ "GetDragonPowerPoint", stub_guild_GetDragonPowerPoint, METH_VARARGS },
|
||||
{ "GetGuildSkillLevel", stub_guild_GetGuildSkillLevel, METH_VARARGS },
|
||||
{ "GetSkillLevel", stub_guild_GetSkillLevel, METH_VARARGS },
|
||||
{ "GetSkillMaxLevelNew", stub_guild_GetSkillMaxLevelNew, METH_VARARGS },
|
||||
{ "SetSkillIndex", stub_guild_SetSkillIndex, METH_VARARGS },
|
||||
{ "GetSkillIndex", stub_guild_GetSkillIndex, METH_VARARGS },
|
||||
{ "GetGradeData", stub_guild_GetGradeData, METH_VARARGS },
|
||||
{ "GetGradeName", stub_guild_GetGradeName, METH_VARARGS },
|
||||
{ "GetMemberCount", stub_guild_GetMemberCount, METH_VARARGS },
|
||||
{ "GetMemberData", stub_guild_GetMemberData, METH_VARARGS },
|
||||
{ "MemberIndexToPID", stub_guild_MemberIndexToPID, METH_VARARGS },
|
||||
{ "IsMember", stub_guild_IsMember, METH_VARARGS },
|
||||
{ "IsMemberByName", stub_guild_IsMemberByName, METH_VARARGS },
|
||||
{ "MainPlayerHasAuthority", stub_guild_MainPlayerHasAuthority, METH_VARARGS },
|
||||
{ "Destroy", stub_guild_Destroy, METH_VARARGS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
// 40250 UserInterface/PythonMessenger.cpp: messenger export names.
|
||||
PyObject* stub_messenger_RemoveFriend(PyObject*, PyObject*) { return stub_call_named("messenger.RemoveFriend", Py_BuildNone()); }
|
||||
PyObject* stub_messenger_IsFriendByName(PyObject*, PyObject*) { return stub_call_named("messenger.IsFriendByName", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_messenger_Destroy(PyObject*, PyObject*) { return stub_call_named("messenger.Destroy", Py_BuildNone()); }
|
||||
PyObject* stub_messenger_RefreshGuildMember(PyObject*, PyObject*) { return stub_call_named("messenger.RefreshGuildMember", Py_BuildNone()); }
|
||||
PyObject* stub_messenger_SetMessengerHandler(PyObject*, PyObject*) { return stub_call_named("messenger.SetMessengerHandler", Py_BuildNone()); }
|
||||
PyMethodDef methods_messenger[] = {
|
||||
{ "RemoveFriend", stub_messenger_RemoveFriend, METH_VARARGS },
|
||||
{ "IsFriendByName", stub_messenger_IsFriendByName, METH_VARARGS },
|
||||
{ "Destroy", stub_messenger_Destroy, METH_VARARGS },
|
||||
{ "RefreshGuildMember", stub_messenger_RefreshGuildMember, METH_VARARGS },
|
||||
{ "SetMessengerHandler", stub_messenger_SetMessengerHandler, METH_VARARGS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
// 40250 UserInterface/PythonProfilerModule.cpp: profiler export names.
|
||||
PyObject* stub_profiler_Push(PyObject*, PyObject*) { return stub_call_named("profiler.Push", Py_BuildNone()); }
|
||||
PyObject* stub_profiler_Pop(PyObject*, PyObject*) { return stub_call_named("profiler.Pop", Py_BuildNone()); }
|
||||
@@ -115,151 +24,6 @@ PyMethodDef methods_profiler[] = {
|
||||
{ "Pop", stub_profiler_Pop, METH_VARARGS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
// 40250 UserInterface/PythonSafeBox.cpp: safebox export names.
|
||||
PyObject* stub_safebox_GetCurrentSafeboxSize(PyObject*, PyObject*) { return stub_call_named("safebox.GetCurrentSafeboxSize", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetItemID(PyObject*, PyObject*) { return stub_call_named("safebox.GetItemID", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetItemCount(PyObject*, PyObject*) { return stub_call_named("safebox.GetItemCount", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetItemFlags(PyObject*, PyObject*) { return stub_call_named("safebox.GetItemFlags", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetItemMetinSocket(PyObject*, PyObject*) { return stub_call_named("safebox.GetItemMetinSocket", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetItemAttribute(PyObject*, PyObject*) { return stub_call_named("safebox.GetItemAttribute", Py_BuildValue("ii", 0, 0)); }
|
||||
PyObject* stub_safebox_GetMoney(PyObject*, PyObject*) { return stub_call_named("safebox.GetMoney", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetMallItemID(PyObject*, PyObject*) { return stub_call_named("safebox.GetMallItemID", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetMallItemCount(PyObject*, PyObject*) { return stub_call_named("safebox.GetMallItemCount", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetMallItemMetinSocket(PyObject*, PyObject*) { return stub_call_named("safebox.GetMallItemMetinSocket", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_safebox_GetMallItemAttribute(PyObject*, PyObject*) { return stub_call_named("safebox.GetMallItemAttribute", Py_BuildValue("ii", 0, 0)); }
|
||||
PyObject* stub_safebox_GetMallSize(PyObject*, PyObject*) { return stub_call_named("safebox.GetMallSize", Py_BuildValue("i", 0)); }
|
||||
PyMethodDef methods_safebox[] = {
|
||||
{ "GetCurrentSafeboxSize", stub_safebox_GetCurrentSafeboxSize, METH_VARARGS },
|
||||
{ "GetItemID", stub_safebox_GetItemID, METH_VARARGS },
|
||||
{ "GetItemCount", stub_safebox_GetItemCount, METH_VARARGS },
|
||||
{ "GetItemFlags", stub_safebox_GetItemFlags, METH_VARARGS },
|
||||
{ "GetItemMetinSocket", stub_safebox_GetItemMetinSocket, METH_VARARGS },
|
||||
{ "GetItemAttribute", stub_safebox_GetItemAttribute, METH_VARARGS },
|
||||
{ "GetMoney", stub_safebox_GetMoney, METH_VARARGS },
|
||||
{ "GetMallItemID", stub_safebox_GetMallItemID, METH_VARARGS },
|
||||
{ "GetMallItemCount", stub_safebox_GetMallItemCount, METH_VARARGS },
|
||||
{ "GetMallItemMetinSocket", stub_safebox_GetMallItemMetinSocket, METH_VARARGS },
|
||||
{ "GetMallItemAttribute", stub_safebox_GetMallItemAttribute, METH_VARARGS },
|
||||
{ "GetMallSize", stub_safebox_GetMallSize, METH_VARARGS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
// 40250 UserInterface/PythonSoundManagerModule.cpp: snd export names.
|
||||
PyObject* stub_snd_PlaySound(PyObject*, PyObject*) { return stub_call_named("snd.PlaySound", Py_BuildNone()); }
|
||||
PyObject* stub_snd_PlaySound3D(PyObject*, PyObject*) { return stub_call_named("snd.PlaySound3D", Py_BuildNone()); }
|
||||
PyObject* stub_snd_PlayMusic(PyObject*, PyObject*) { return stub_call_named("snd.PlayMusic", Py_BuildNone()); }
|
||||
PyObject* stub_snd_FadeInMusic(PyObject*, PyObject*) { return stub_call_named("snd.FadeInMusic", Py_BuildNone()); }
|
||||
PyObject* stub_snd_FadeOutMusic(PyObject*, PyObject*) { return stub_call_named("snd.FadeOutMusic", Py_BuildNone()); }
|
||||
PyObject* stub_snd_FadeOutAllMusic(PyObject*, PyObject*) { return stub_call_named("snd.FadeOutAllMusic", Py_BuildNone()); }
|
||||
PyObject* stub_snd_FadeLimitOutMusic(PyObject*, PyObject*) { return stub_call_named("snd.FadeLimitOutMusic", Py_BuildNone()); }
|
||||
PyObject* stub_snd_StopAllSound(PyObject*, PyObject*) { return stub_call_named("snd.StopAllSound", Py_BuildNone()); }
|
||||
PyObject* stub_snd_SetMusicVolumef(PyObject*, PyObject*) { return stub_call_named("snd.SetMusicVolumef", Py_BuildNone()); }
|
||||
PyObject* stub_snd_SetMusicVolume(PyObject*, PyObject*) { return stub_call_named("snd.SetMusicVolume", Py_BuildNone()); }
|
||||
PyObject* stub_snd_SetSoundVolumef(PyObject*, PyObject*) { return stub_call_named("snd.SetSoundVolumef", Py_BuildNone()); }
|
||||
PyObject* stub_snd_SetSoundVolume(PyObject*, PyObject*) { return stub_call_named("snd.SetSoundVolume", Py_BuildNone()); }
|
||||
PyObject* stub_snd_SetSoundScale(PyObject*, PyObject*) { return stub_call_named("snd.SetSoundScale", Py_BuildNone()); }
|
||||
PyObject* stub_snd_SetAmbienceSoundScale(PyObject*, PyObject*) { return stub_call_named("snd.SetAmbienceSoundScale", Py_BuildNone()); }
|
||||
PyMethodDef methods_snd[] = {
|
||||
{ "PlaySound", stub_snd_PlaySound, METH_VARARGS },
|
||||
{ "PlaySound3D", stub_snd_PlaySound3D, METH_VARARGS },
|
||||
{ "PlayMusic", stub_snd_PlayMusic, METH_VARARGS },
|
||||
{ "FadeInMusic", stub_snd_FadeInMusic, METH_VARARGS },
|
||||
{ "FadeOutMusic", stub_snd_FadeOutMusic, METH_VARARGS },
|
||||
{ "FadeOutAllMusic", stub_snd_FadeOutAllMusic, METH_VARARGS },
|
||||
{ "FadeLimitOutMusic", stub_snd_FadeLimitOutMusic, METH_VARARGS },
|
||||
{ "StopAllSound", stub_snd_StopAllSound, METH_VARARGS },
|
||||
{ "SetMusicVolumef", stub_snd_SetMusicVolumef, METH_VARARGS },
|
||||
{ "SetMusicVolume", stub_snd_SetMusicVolume, METH_VARARGS },
|
||||
{ "SetSoundVolumef", stub_snd_SetSoundVolumef, METH_VARARGS },
|
||||
{ "SetSoundVolume", stub_snd_SetSoundVolume, METH_VARARGS },
|
||||
{ "SetSoundScale", stub_snd_SetSoundScale, METH_VARARGS },
|
||||
{ "SetAmbienceSoundScale", stub_snd_SetAmbienceSoundScale, METH_VARARGS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
// 40250 UserInterface/PythonSystemModule.cpp: systemSetting export names.
|
||||
// 40250 CPythonSystem::GetWidth/GetHeight return metin2.cfg's WIDTH/HEIGHT (default 800x600), which
|
||||
// RunApp passes to wndMgr.SetScreenSize and app.Create. PORT (2V0-f): the Godot canvas is the window,
|
||||
// so report its size; the rest of systemSetting stays a stub until CPythonSystem is ported.
|
||||
PyObject* stub_systemSetting_GetWidth(PyObject*, PyObject*) {
|
||||
unsigned width = 0;
|
||||
UIRenderGetSize(&width, nullptr);
|
||||
return Py_BuildValue("i", width ? int(width) : 800);
|
||||
}
|
||||
PyObject* stub_systemSetting_GetHeight(PyObject*, PyObject*) {
|
||||
unsigned height = 0;
|
||||
UIRenderGetSize(nullptr, &height);
|
||||
return Py_BuildValue("i", height ? int(height) : 600);
|
||||
}
|
||||
PyObject* stub_systemSetting_SetInterfaceHandler(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetInterfaceHandler", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_DestroyInterfaceHandler(PyObject*, PyObject*) { return stub_call_named("systemSetting.DestroyInterfaceHandler", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_ReserveResource(PyObject*, PyObject*) { return stub_call_named("systemSetting.ReserveResource", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_isInterfaceConfig(PyObject*, PyObject*) { return stub_call_named("systemSetting.isInterfaceConfig", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_SaveWindowStatus(PyObject*, PyObject*) { return stub_call_named("systemSetting.SaveWindowStatus", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_GetWindowStatus(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetWindowStatus", Py_BuildValue("iiiii", 0, 0, 0, 0, 0)); }
|
||||
PyObject* stub_systemSetting_GetResolutionCount(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetResolutionCount", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_GetFrequencyCount(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetFrequencyCount", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_GetCurrentResolution(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetCurrentResolution", Py_BuildValue("iii", 0, 0, 0)); }
|
||||
PyObject* stub_systemSetting_GetResolution(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetResolution", Py_BuildValue("iii", 0, 0, 0)); }
|
||||
PyObject* stub_systemSetting_GetFrequency(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetFrequency", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_ApplyConfig(PyObject*, PyObject*) { return stub_call_named("systemSetting.ApplyConfig", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_SetConfig(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetConfig", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_SaveConfig(PyObject*, PyObject*) { return stub_call_named("systemSetting.SaveConfig", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_GetConfig(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetConfig", Py_BuildValue("iiiiiiii", 0, 0, 0, 0, 0, 0, 0, 0)); }
|
||||
PyObject* stub_systemSetting_SetSaveID(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetSaveID", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_isSaveID(PyObject*, PyObject*) { return stub_call_named("systemSetting.isSaveID", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_GetSaveID(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetSaveID", Py_BuildValue("s", "")); }
|
||||
PyObject* stub_systemSetting_GetMusicVolume(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetMusicVolume", Py_BuildValue("f", 0.0)); }
|
||||
PyObject* stub_systemSetting_GetSoundVolume(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetSoundVolume", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_SetMusicVolume(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetMusicVolume", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_SetSoundVolumef(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetSoundVolumef", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_IsSoftwareCursor(PyObject*, PyObject*) { return stub_call_named("systemSetting.IsSoftwareCursor", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_SetViewChatFlag(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetViewChatFlag", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_IsViewChat(PyObject*, PyObject*) { return stub_call_named("systemSetting.IsViewChat", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_SetAlwaysShowNameFlag(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetAlwaysShowNameFlag", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_IsAlwaysShowName(PyObject*, PyObject*) { return stub_call_named("systemSetting.IsAlwaysShowName", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_SetShowDamageFlag(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetShowDamageFlag", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_IsShowDamage(PyObject*, PyObject*) { return stub_call_named("systemSetting.IsShowDamage", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_SetShowSalesTextFlag(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetShowSalesTextFlag", Py_BuildNone()); }
|
||||
PyObject* stub_systemSetting_IsShowSalesText(PyObject*, PyObject*) { return stub_call_named("systemSetting.IsShowSalesText", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_GetShadowLevel(PyObject*, PyObject*) { return stub_call_named("systemSetting.GetShadowLevel", Py_BuildValue("i", 0)); }
|
||||
PyObject* stub_systemSetting_SetShadowLevel(PyObject*, PyObject*) { return stub_call_named("systemSetting.SetShadowLevel", Py_BuildNone()); }
|
||||
PyMethodDef methods_systemSetting[] = {
|
||||
{ "GetWidth", stub_systemSetting_GetWidth, METH_VARARGS },
|
||||
{ "GetHeight", stub_systemSetting_GetHeight, METH_VARARGS },
|
||||
{ "SetInterfaceHandler", stub_systemSetting_SetInterfaceHandler, METH_VARARGS },
|
||||
{ "DestroyInterfaceHandler", stub_systemSetting_DestroyInterfaceHandler, METH_VARARGS },
|
||||
{ "ReserveResource", stub_systemSetting_ReserveResource, METH_VARARGS },
|
||||
{ "isInterfaceConfig", stub_systemSetting_isInterfaceConfig, METH_VARARGS },
|
||||
{ "SaveWindowStatus", stub_systemSetting_SaveWindowStatus, METH_VARARGS },
|
||||
{ "GetWindowStatus", stub_systemSetting_GetWindowStatus, METH_VARARGS },
|
||||
{ "GetResolutionCount", stub_systemSetting_GetResolutionCount, METH_VARARGS },
|
||||
{ "GetFrequencyCount", stub_systemSetting_GetFrequencyCount, METH_VARARGS },
|
||||
{ "GetCurrentResolution", stub_systemSetting_GetCurrentResolution, METH_VARARGS },
|
||||
{ "GetResolution", stub_systemSetting_GetResolution, METH_VARARGS },
|
||||
{ "GetFrequency", stub_systemSetting_GetFrequency, METH_VARARGS },
|
||||
{ "ApplyConfig", stub_systemSetting_ApplyConfig, METH_VARARGS },
|
||||
{ "SetConfig", stub_systemSetting_SetConfig, METH_VARARGS },
|
||||
{ "SaveConfig", stub_systemSetting_SaveConfig, METH_VARARGS },
|
||||
{ "GetConfig", stub_systemSetting_GetConfig, METH_VARARGS },
|
||||
{ "SetSaveID", stub_systemSetting_SetSaveID, METH_VARARGS },
|
||||
{ "isSaveID", stub_systemSetting_isSaveID, METH_VARARGS },
|
||||
{ "GetSaveID", stub_systemSetting_GetSaveID, METH_VARARGS },
|
||||
{ "GetMusicVolume", stub_systemSetting_GetMusicVolume, METH_VARARGS },
|
||||
{ "GetSoundVolume", stub_systemSetting_GetSoundVolume, METH_VARARGS },
|
||||
{ "SetMusicVolume", stub_systemSetting_SetMusicVolume, METH_VARARGS },
|
||||
{ "SetSoundVolumef", stub_systemSetting_SetSoundVolumef, METH_VARARGS },
|
||||
{ "IsSoftwareCursor", stub_systemSetting_IsSoftwareCursor, METH_VARARGS },
|
||||
{ "SetViewChatFlag", stub_systemSetting_SetViewChatFlag, METH_VARARGS },
|
||||
{ "IsViewChat", stub_systemSetting_IsViewChat, METH_VARARGS },
|
||||
{ "SetAlwaysShowNameFlag", stub_systemSetting_SetAlwaysShowNameFlag, METH_VARARGS },
|
||||
{ "IsAlwaysShowName", stub_systemSetting_IsAlwaysShowName, METH_VARARGS },
|
||||
{ "SetShowDamageFlag", stub_systemSetting_SetShowDamageFlag, METH_VARARGS },
|
||||
{ "IsShowDamage", stub_systemSetting_IsShowDamage, METH_VARARGS },
|
||||
{ "SetShowSalesTextFlag", stub_systemSetting_SetShowSalesTextFlag, METH_VARARGS },
|
||||
{ "IsShowSalesText", stub_systemSetting_IsShowSalesText, METH_VARARGS },
|
||||
{ "GetShadowLevel", stub_systemSetting_GetShadowLevel, METH_VARARGS },
|
||||
{ "SetShadowLevel", stub_systemSetting_SetShadowLevel, METH_VARARGS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
// 40250 UserInterface/PythonNetworkDatagramModule.cpp: udp export names.
|
||||
PyObject* stub_udp_Enable(PyObject*, PyObject*) { return stub_call_named("udp.Enable", Py_BuildNone()); }
|
||||
PyObject* stub_udp_Disable(PyObject*, PyObject*) { return stub_call_named("udp.Disable", Py_BuildNone()); }
|
||||
@@ -271,36 +35,11 @@ PyMethodDef methods_udp[] = {
|
||||
} // namespace
|
||||
|
||||
void init_2v0_gameplay_stubs() {
|
||||
{
|
||||
PyObject* module = Py_InitModule("guild", methods_guild);
|
||||
PyModule_AddIntConstant(module, "__port_stub__", 1);
|
||||
AddStubConstants_guild(module);
|
||||
}
|
||||
{
|
||||
PyObject* module = Py_InitModule("messenger", methods_messenger);
|
||||
PyModule_AddIntConstant(module, "__port_stub__", 1);
|
||||
AddStubConstants_messenger(module);
|
||||
}
|
||||
{
|
||||
PyObject* module = Py_InitModule("profiler", methods_profiler);
|
||||
PyModule_AddIntConstant(module, "__port_stub__", 1);
|
||||
AddStubConstants_profiler(module);
|
||||
}
|
||||
{
|
||||
PyObject* module = Py_InitModule("safebox", methods_safebox);
|
||||
PyModule_AddIntConstant(module, "__port_stub__", 1);
|
||||
AddStubConstants_safebox(module);
|
||||
}
|
||||
{
|
||||
PyObject* module = Py_InitModule("snd", methods_snd);
|
||||
PyModule_AddIntConstant(module, "__port_stub__", 1);
|
||||
AddStubConstants_snd(module);
|
||||
}
|
||||
{
|
||||
PyObject* module = Py_InitModule("systemSetting", methods_systemSetting);
|
||||
PyModule_AddIntConstant(module, "__port_stub__", 1);
|
||||
AddStubConstants_systemSetting(module);
|
||||
}
|
||||
{
|
||||
PyObject* module = Py_InitModule("udp", methods_udp);
|
||||
PyModule_AddIntConstant(module, "__port_stub__", 1);
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "UserInterface/ServerStateChecker.h"
|
||||
#include "UserInterface/PythonPlayer.h"
|
||||
#include "GameLib/FlyingObjectManager.h"
|
||||
#include "MilesLib/SoundManager.h"
|
||||
#include "GameLib/RaceManager.h"
|
||||
#include "GameLib/GameEventManager.h"
|
||||
#include "EffectLib/EffectManager.h"
|
||||
@@ -32,6 +33,9 @@
|
||||
#include "UserInterface/PythonMessenger.h"
|
||||
#include "UserInterface/PythonSafeBox.h"
|
||||
#include "UserInterface/PythonGuild.h"
|
||||
#include "UserInterface/MarkManager.h"
|
||||
#include "UserInterface/GuildMarkDownloader.h"
|
||||
#include "UserInterface/GuildMarkUploader.h"
|
||||
#include "UserInterface/PythonSystem.h"
|
||||
#include "UserInterface/AbstractApplication.h"
|
||||
#include "UserInterface/PythonApplication.h"
|
||||
@@ -62,6 +66,7 @@ std::unique_ptr<CAccountConnector> g_account_connector;
|
||||
// 40250 CPythonApplication::m_pyPlayer, m_FlyingManager and m_kEftMgr: the loading phase clears them
|
||||
// (CPythonNetworkStream::SetLoadingPhase).
|
||||
std::unique_ptr<CPythonPlayer> g_player;
|
||||
std::unique_ptr<CSoundManager> g_sound_manager;
|
||||
std::unique_ptr<CFlyingManager> g_flying_manager;
|
||||
// 40250 CPythonApplication::m_kServerStateChecker: intrologin.py's channel status list.
|
||||
std::unique_ptr<CServerStateChecker> g_server_state_checker;
|
||||
@@ -125,6 +130,9 @@ struct GameSingletons
|
||||
CPythonMessenger pyManager;
|
||||
CPythonSafeBox pySafeBox;
|
||||
CPythonGuild pyGuild;
|
||||
CGuildMarkManager kGuildMarkManager;
|
||||
CGuildMarkDownloader kGuildMarkDownloader;
|
||||
CGuildMarkUploader kGuildMarkUploader;
|
||||
CPythonSystem pySystem; // last CPythonApplication member (m_pySystem)
|
||||
};
|
||||
std::unique_ptr<GameSingletons> g_game_singletons;
|
||||
@@ -231,6 +239,11 @@ void SetUISize(int width, int height)
|
||||
g_window_manager->SetScreenSize(width, height);
|
||||
g_window_manager->SetResolution(width, height);
|
||||
UIRenderSetSize(width, height);
|
||||
if (g_game_singletons)
|
||||
{
|
||||
g_game_singletons->pySystem.GetConfig()->width = width;
|
||||
g_game_singletons->pySystem.GetConfig()->height = height;
|
||||
}
|
||||
}
|
||||
|
||||
void UIMouseMove(int x, int y)
|
||||
@@ -330,7 +343,7 @@ bool Start(const char* stdlib_path, std::string* error)
|
||||
return true;
|
||||
|
||||
// 40250 Main (UserInterface.cpp:410): if (LocaleService_LoadGlobal(hInstance)) SetDefaultCodePage(...).
|
||||
// PORT: the platform LocaleService is already the supplied locale.cfg (en, code page 1252).
|
||||
LocaleService_LoadConfig("locale.cfg");
|
||||
SetDefaultCodePage(LocaleService_GetCodePage());
|
||||
|
||||
const std::string stdlib = (stdlib_path && *stdlib_path) ? stdlib_path : PythonHost::DefaultStdLibPath();
|
||||
@@ -361,6 +374,7 @@ bool Start(const char* stdlib_path, std::string* error)
|
||||
g_network_stream = std::make_unique<CPythonNetworkStream>();
|
||||
g_account_connector = std::make_unique<CAccountConnector>();
|
||||
g_player = std::make_unique<CPythonPlayer>();
|
||||
g_sound_manager = std::make_unique<CSoundManager>();
|
||||
g_flying_manager = std::make_unique<CFlyingManager>();
|
||||
g_server_state_checker = std::make_unique<CServerStateChecker>();
|
||||
g_race_manager = std::make_unique<CRaceManager>();
|
||||
@@ -368,6 +382,14 @@ bool Start(const char* stdlib_path, std::string* error)
|
||||
g_effect_manager = std::make_unique<CEffectManager>();
|
||||
g_game_application = std::make_unique<GameApplicationAdapter>();
|
||||
g_game_singletons = std::make_unique<GameSingletons>();
|
||||
unsigned ui_w = 0, ui_h = 0;
|
||||
UIRenderGetSize(&ui_w, &ui_h);
|
||||
if (ui_w && ui_h)
|
||||
{
|
||||
g_game_singletons->pySystem.GetConfig()->width = ui_w;
|
||||
g_game_singletons->pySystem.GetConfig()->height = ui_h;
|
||||
}
|
||||
g_game_singletons->pySystem.GetDisplaySettings(); // 40250 CPythonApplication::Create (PythonApplication.cpp:1233)
|
||||
g_flying_manager->SetMapManagerPtr(&g_game_singletons->pyBackground); // 40250 CPythonApplication ctor (PythonApplication.cpp:82)
|
||||
return true;
|
||||
}
|
||||
@@ -390,6 +412,7 @@ bool run_main_script_body(const char* lpCmdLine, std::string* error)
|
||||
initgrpText();
|
||||
initwndMgr();
|
||||
initapp();
|
||||
initsystem();
|
||||
initchr();
|
||||
initchrmgr();
|
||||
initPlayer();
|
||||
@@ -403,11 +426,15 @@ bool run_main_script_body(const char* lpCmdLine, std::string* error)
|
||||
initEvent();
|
||||
initeffect();
|
||||
initfly();
|
||||
initsnd();
|
||||
initeventmgr();
|
||||
initshop();
|
||||
initskill();
|
||||
initquest();
|
||||
initBackground();
|
||||
initMessenger();
|
||||
initsafebox();
|
||||
initguild();
|
||||
initServerStateChecker();
|
||||
init_2v0_gameplay_stubs();
|
||||
|
||||
@@ -600,6 +627,7 @@ void Stop()
|
||||
g_race_manager.reset();
|
||||
g_server_state_checker.reset();
|
||||
g_flying_manager.reset();
|
||||
g_sound_manager.reset();
|
||||
g_player.reset();
|
||||
g_account_connector.reset();
|
||||
g_network_stream.reset();
|
||||
|
||||
@@ -278,32 +278,10 @@ bool CPythonApplication::Process()
|
||||
return true;
|
||||
}
|
||||
|
||||
// 40250 PythonApplicationEvent.cpp:5
|
||||
void CPythonApplication::OnCameraUpdate()
|
||||
{
|
||||
if ( CPythonBackground::Instance().IsMapReady() )
|
||||
{
|
||||
CCamera* pkCameraMgr = CCameraManager::Instance().GetCurrentCamera();
|
||||
if (pkCameraMgr)
|
||||
pkCameraMgr->Update();
|
||||
}
|
||||
}
|
||||
|
||||
// 40250 PythonApplicationEvent.cpp:15-25
|
||||
void CPythonApplication::OnUIUpdate()
|
||||
{
|
||||
UI::CWindowManager& rkUIMgr=UI::CWindowManager::Instance();
|
||||
rkUIMgr.Update();
|
||||
}
|
||||
|
||||
void CPythonApplication::OnUIRender()
|
||||
{
|
||||
UI::CWindowManager& rkUIMgr=UI::CWindowManager::Instance();
|
||||
rkUIMgr.Render();
|
||||
}
|
||||
// 40250 PythonApplicationCursor.cpp. PORT: the members live here until the application object exists
|
||||
// (initial values from the constructor and CreateCursors); the host draws no hardware cursor, so every
|
||||
// shape in [0, CURSOR_COUNT) counts as loaded in place of m_CursorHandleMap.
|
||||
PyObject* s_poMouseHandler = NULL; // m_poMouseHandler
|
||||
namespace
|
||||
{
|
||||
int s_iCursorNum = CPythonApplication::CURSOR_SHAPE_NORMAL; // m_iCursorNum
|
||||
@@ -311,7 +289,6 @@ int s_iContinuousCursorNum = CPythonApplication::CURSOR_SHAPE_NORMAL; // m_iCont
|
||||
BOOL s_bCursorVisible = TRUE; // m_bCursorVisible
|
||||
bool s_bLiarCursorOn = false; // m_bLiarCursorOn
|
||||
int s_iCursorMode = CPythonApplication::CURSOR_MODE_HARDWARE; // m_iCursorMode
|
||||
PyObject* s_poMouseHandler = NULL; // m_poMouseHandler
|
||||
}
|
||||
|
||||
void CPythonApplication::SetCursorVisible(BOOL bFlag, bool bLiarCursorOn)
|
||||
@@ -414,10 +391,64 @@ time_t CPythonApplication::GetServerTime() { MT_PLATFORM_STUB(); return 0; }
|
||||
time_t CPythonApplication::GetServerTimeStamp() { MT_PLATFORM_STUB(); return 0; }
|
||||
void CPythonApplication::SetConnectData(const char*, int) { MT_PLATFORM_STUB(); }
|
||||
void CPythonApplication::GetConnectData(std::string& ip, int& port) { MT_PLATFORM_STUB(); ip.clear(); port = 0; }
|
||||
void CPythonApplication::SaveCameraSetting(const char*) { MT_PLATFORM_STUB(); }
|
||||
bool CPythonApplication::LoadCameraSetting(const char*) { MT_PLATFORM_STUB(); return false; }
|
||||
void CPythonApplication::SetForceSightRange(int) { MT_PLATFORM_STUB(); }
|
||||
|
||||
int CPythonApplication::CheckDeviceState()
|
||||
{
|
||||
return DEVICE_STATE_OK;
|
||||
}
|
||||
|
||||
bool CPythonApplication::CreateDevice(int width, int height, int Windowed, int bit, int frequency)
|
||||
{
|
||||
static CGraphicDevice s_grpDevice;
|
||||
return s_grpDevice.Create(NULL, width, height, Windowed ? true : false, bit, frequency) == CGraphicDevice::CREATE_OK;
|
||||
}
|
||||
|
||||
void CPythonApplication::NotifyHack(const char* c_szFormat, ...)
|
||||
{
|
||||
char szBuf[1024];
|
||||
va_list args;
|
||||
va_start(args, c_szFormat);
|
||||
vsnprintf(szBuf, sizeof(szBuf), c_szFormat, args);
|
||||
va_end(args);
|
||||
CPythonNetworkStream::Instance().NotifyHack(szBuf);
|
||||
}
|
||||
|
||||
void CPythonApplication::SkipRenderBuffering(DWORD dwSleepMSec)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
void CPythonApplication::UpdateClientRect()
|
||||
{
|
||||
unsigned w = 0, h = 0;
|
||||
UIRenderGetSize(&w, &h);
|
||||
UI::CWindowManager::Instance().SetResolution(w, h);
|
||||
}
|
||||
|
||||
int CPythonApplication::GetWidth()
|
||||
{
|
||||
unsigned w = 0, h = 0;
|
||||
UIRenderGetSize(&w, &h);
|
||||
return (int)w;
|
||||
}
|
||||
|
||||
int CPythonApplication::GetHeight()
|
||||
{
|
||||
unsigned w = 0, h = 0;
|
||||
UIRenderGetSize(&w, &h);
|
||||
return (int)h;
|
||||
}
|
||||
|
||||
void CPythonApplication::Clear()
|
||||
{
|
||||
CPythonSystem::Instance().Clear();
|
||||
}
|
||||
|
||||
void CPythonApplication::Destroy()
|
||||
{
|
||||
}
|
||||
|
||||
void CMovieMan::PlayLogo(const char*) { MT_PLATFORM_STUB(); }
|
||||
|
||||
BOOL PERF_CHECKER_RENDER_GAME = FALSE;
|
||||
@@ -507,59 +538,4 @@ bool LoadLocaleData(const char* localePath)
|
||||
NANOEND
|
||||
return true;
|
||||
}
|
||||
namespace {
|
||||
// The supplied 40250 Client/locale.cfg selects "en" (code page 1252).
|
||||
// Keep these mutable for app.ForceSetLocale, as Locale.cpp does.
|
||||
std::string locale_name = "en";
|
||||
std::string locale_path = "locale/en";
|
||||
}
|
||||
const char* LocaleService_GetName() { return "EUROPE"; }
|
||||
bool LocaleService_IsCHEONMA() { MT_PLATFORM_STUB(); return false; }
|
||||
void LocaleService_SetCHEONMA(bool) { MT_PLATFORM_STUB(); }
|
||||
unsigned LocaleService_GetCodePage() { return 1252; }
|
||||
const char* LocaleService_GetLocaleName() { return locale_name.c_str(); }
|
||||
const char* LocaleService_GetLocalePath() { return locale_path.c_str(); }
|
||||
void LocaleService_ForceSetLocale(const char* name, const char* path) {
|
||||
locale_name = name ? name : "";
|
||||
locale_path = path ? path : "";
|
||||
}
|
||||
|
||||
// 40250 UserInterface/Locale.cpp:9-31, 168-172 and 393-423 (the non-Japan branch), verbatim: what the network
|
||||
// slice (批次 2V1) and InsultChecker call.
|
||||
const char* LSS_YMIR = "YMIR";
|
||||
const char* LSS_JAPAN = "JAPAN";
|
||||
const char* LSS_ENGLISH = "ENGLISH";
|
||||
const char* LSS_HONGKONG = "HONGKONG";
|
||||
const char* LSS_TAIWAN = "TAIWAN";
|
||||
const char* LSS_NEWCIBN = "NEWCIBN";
|
||||
const char* LSS_EUROPE = "EUROPE";
|
||||
const char* LSS_GLOBAL = "GLOBAL";
|
||||
|
||||
#ifndef LSS_SECURITY_KEY
|
||||
#define LSS_SECURITY_KEY "testtesttesttest"
|
||||
#endif
|
||||
|
||||
std::string __SECURITY_KEY_STRING__ = LSS_SECURITY_KEY;
|
||||
|
||||
const char* LocaleService_GetSecurityKey()
|
||||
{
|
||||
return __SECURITY_KEY_STRING__.c_str();
|
||||
}
|
||||
|
||||
bool LocaleService_IsYMIR() { return (stricmp( LocaleService_GetName(), LSS_YMIR ) == 0) || (stricmp( LocaleService_GetLocaleName(), "ymir" ) == 0); }
|
||||
bool LocaleService_IsJAPAN() { return (stricmp( LocaleService_GetName(), LSS_JAPAN ) == 0) || (stricmp( LocaleService_GetLocaleName(), "japan" ) == 0); }
|
||||
bool LocaleService_IsENGLISH() { return (stricmp( LocaleService_GetName(), LSS_ENGLISH ) == 0); }
|
||||
bool LocaleService_IsEUROPE() { return (stricmp( LocaleService_GetName(), LSS_EUROPE ) == 0); }
|
||||
bool LocaleService_IsHONGKONG() { return (stricmp( LocaleService_GetName(), LSS_HONGKONG ) == 0); }
|
||||
bool LocaleService_IsTAIWAN() { return (stricmp( LocaleService_GetName(), LSS_TAIWAN ) == 0); }
|
||||
bool LocaleService_IsNEWCIBN() { return (stricmp( LocaleService_GetName(), LSS_NEWCIBN ) == 0); }
|
||||
|
||||
BOOL LocaleService_IsLeadByte( const char chByte )
|
||||
{
|
||||
return (((unsigned char) chByte) & 0x80) != 0;
|
||||
}
|
||||
|
||||
int LocaleService_StringCompareCI( LPCSTR szStringLeft, LPCSTR szStringRight, size_t sizeLength )
|
||||
{
|
||||
return strnicmp( szStringLeft, szStringRight, sizeLength );
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "EterBase/Timer.h"
|
||||
#include "EterLib/Camera.h"
|
||||
#include "EterLib/Util.h"
|
||||
#include "EterLib/TextFileLoader.h"
|
||||
|
||||
// 40250 PythonApplication.cpp:28-30
|
||||
float c_fDefaultCameraRotateSpeed = 1.5f;
|
||||
@@ -406,3 +408,71 @@ void CPythonApplication::SetCameraSpeed(int iPercentage)
|
||||
s_app.m_fCameraPitchSpeed = c_fDefaultCameraPitchSpeed * float(iPercentage) / 100.0f;
|
||||
s_app.m_fCameraZoomSpeed = c_fDefaultCameraZoomSpeed * float(iPercentage) / 100.0f;
|
||||
}
|
||||
|
||||
void CPythonApplication::SaveCameraSetting(const char * c_szFileName)
|
||||
{
|
||||
SCameraSetting CameraSetting;
|
||||
GetCameraSetting(&CameraSetting);
|
||||
|
||||
FILE * File = fopen(c_szFileName, "w");
|
||||
if (!File)
|
||||
return;
|
||||
|
||||
PrintfTabs(File, 0, "CenterPos %f %f %f\n", CameraSetting.v3CenterPosition.x, CameraSetting.v3CenterPosition.y, CameraSetting.v3CenterPosition.z);
|
||||
PrintfTabs(File, 0, "CameraSetting %f %f %f\n", CameraSetting.fZoom, CameraSetting.fPitch, CameraSetting.fRotation);
|
||||
PrintfTabs(File, 0, "CmrPos %f %f %f\n", CameraSetting.kCmrPos.m_fUpDir, CameraSetting.kCmrPos.m_fViewDir, CameraSetting.kCmrPos.m_fCrossDir);
|
||||
Tracef("SaveCameraSetting(%s) - (CenterPos %d %d %d) (Distance %d, Pitch %d, Rotation %d) (UpDir %d, ViewDir %d, CrossDir %d)\n",
|
||||
c_szFileName,
|
||||
int(CameraSetting.v3CenterPosition.x),
|
||||
int(CameraSetting.v3CenterPosition.y),
|
||||
int(CameraSetting.v3CenterPosition.z),
|
||||
int(CameraSetting.fZoom),
|
||||
int(CameraSetting.fPitch),
|
||||
int(CameraSetting.fRotation),
|
||||
int(CameraSetting.kCmrPos.m_fUpDir),
|
||||
int(CameraSetting.kCmrPos.m_fViewDir),
|
||||
int(CameraSetting.kCmrPos.m_fCrossDir));
|
||||
fclose(File);
|
||||
}
|
||||
|
||||
bool CPythonApplication::LoadCameraSetting(const char * c_szFileName)
|
||||
{
|
||||
CTextFileLoader TextFileLoader;
|
||||
if (!TextFileLoader.Load(c_szFileName))
|
||||
return false;
|
||||
|
||||
D3DXVECTOR3 v3CenterPosition;
|
||||
CTokenVector * pCenterPos;
|
||||
if (TextFileLoader.GetTokenVector("centerpos", &pCenterPos))
|
||||
if (3 == pCenterPos->size())
|
||||
{
|
||||
v3CenterPosition.x = atof(pCenterPos->at(0).c_str());
|
||||
v3CenterPosition.y = atof(pCenterPos->at(1).c_str());
|
||||
v3CenterPosition.z = atof(pCenterPos->at(2).c_str());
|
||||
}
|
||||
|
||||
CTokenVector * pCameraSetting;
|
||||
CTokenVector * pCmrPos;
|
||||
if (TextFileLoader.GetTokenVector("camerasetting", &pCameraSetting))
|
||||
if (TextFileLoader.GetTokenVector("cmrpos", &pCmrPos))
|
||||
if (3 == pCameraSetting->size())
|
||||
if (3 == pCmrPos->size())
|
||||
{
|
||||
SCameraSetting CameraSetting;
|
||||
CameraSetting.v3CenterPosition = v3CenterPosition;
|
||||
|
||||
CameraSetting.fZoom = atof(pCameraSetting->at(0).c_str());
|
||||
CameraSetting.fPitch = atof(pCameraSetting->at(1).c_str());
|
||||
CameraSetting.fRotation = atof(pCameraSetting->at(2).c_str());
|
||||
|
||||
CameraSetting.kCmrPos.m_fUpDir = atof(pCmrPos->at(0).c_str());
|
||||
CameraSetting.kCmrPos.m_fViewDir = atof(pCmrPos->at(1).c_str());
|
||||
CameraSetting.kCmrPos.m_fCrossDir = atof(pCmrPos->at(2).c_str());
|
||||
|
||||
SetEventCamera(CameraSetting);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,217 @@
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/PythonApplication.h"
|
||||
#include "UserInterface/PythonBackground.h"
|
||||
#include "EterLib/Camera.h"
|
||||
|
||||
extern PyObject* s_poMouseHandler;
|
||||
|
||||
void CPythonApplication::OnCameraUpdate()
|
||||
{
|
||||
if ( CPythonBackground::Instance().IsMapReady() )
|
||||
{
|
||||
CCamera* pkCameraMgr = CCameraManager::Instance().GetCurrentCamera();
|
||||
if (pkCameraMgr)
|
||||
pkCameraMgr->Update();
|
||||
}
|
||||
}
|
||||
|
||||
void CPythonApplication::OnUIUpdate()
|
||||
{
|
||||
UI::CWindowManager& rkUIMgr = UI::CWindowManager::Instance();
|
||||
rkUIMgr.Update();
|
||||
}
|
||||
|
||||
void CPythonApplication::OnUIRender()
|
||||
{
|
||||
UI::CWindowManager& rkUIMgr = UI::CWindowManager::Instance();
|
||||
rkUIMgr.Render();
|
||||
}
|
||||
|
||||
void CPythonApplication::OnSizeChange(int width, int height)
|
||||
{
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseMiddleButtonDown(int x, int y)
|
||||
{
|
||||
CCameraManager& rkCmrMgr = CCameraManager::Instance();
|
||||
CCamera* pkCmrCur = rkCmrMgr.GetCurrentCamera();
|
||||
if (pkCmrCur)
|
||||
pkCmrCur->BeginDrag(x, y);
|
||||
|
||||
if ( !CPythonBackground::Instance().IsMapReady() )
|
||||
return;
|
||||
|
||||
SetCursorNum(CAMERA_ROTATE);
|
||||
if ( CURSOR_MODE_HARDWARE == GetCursorMode())
|
||||
SetCursorVisible(FALSE, true);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseMiddleButtonUp(int x, int y)
|
||||
{
|
||||
CCameraManager& rkCmrMgr = CCameraManager::Instance();
|
||||
CCamera* pkCmrCur = rkCmrMgr.GetCurrentCamera();
|
||||
if (pkCmrCur)
|
||||
pkCmrCur->EndDrag();
|
||||
|
||||
if ( !CPythonBackground::Instance().IsMapReady() )
|
||||
return;
|
||||
|
||||
SetCursorNum(NORMAL);
|
||||
if ( CURSOR_MODE_HARDWARE == GetCursorMode())
|
||||
SetCursorVisible(TRUE);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseWheel(int nLen)
|
||||
{
|
||||
CCameraManager& rkCmrMgr = CCameraManager::Instance();
|
||||
CCamera* pkCmrCur = rkCmrMgr.GetCurrentCamera();
|
||||
if (pkCmrCur)
|
||||
pkCmrCur->Wheel(nLen);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseMove(int x, int y)
|
||||
{
|
||||
CCameraManager& rkCmrMgr = CCameraManager::Instance();
|
||||
CCamera* pkCmrCur = rkCmrMgr.GetCurrentCamera();
|
||||
|
||||
POINT Point;
|
||||
if (pkCmrCur)
|
||||
{
|
||||
if ( CPythonBackground::Instance().IsMapReady() && pkCmrCur->Drag(x, y, &Point) )
|
||||
{
|
||||
x = Point.x;
|
||||
y = Point.y;
|
||||
}
|
||||
}
|
||||
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunMouseMove(x, y);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseLeftButtonDown(int x, int y)
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunMouseLeftButtonDown(x, y);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseLeftButtonUp(int x, int y)
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunMouseLeftButtonUp(x, y);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseLeftButtonDoubleClick(int x, int y)
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunMouseLeftButtonDown(x, y);
|
||||
rkWndMgr.RunMouseLeftButtonDoubleClick(x, y);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseRightButtonDown(int x, int y)
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunMouseRightButtonDown(x, y);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseRightButtonUp(int x, int y)
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunMouseRightButtonUp(x, y);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnKeyDown(int iIndex)
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
|
||||
if (DIK_ESCAPE == iIndex)
|
||||
{
|
||||
rkWndMgr.RunPressEscapeKey();
|
||||
}
|
||||
|
||||
rkWndMgr.RunKeyDown(iIndex);
|
||||
}
|
||||
|
||||
void CPythonApplication::OnKeyUp(int iIndex)
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunKeyUp(iIndex);
|
||||
}
|
||||
|
||||
void CPythonApplication::RunIMEUpdate()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunIMEUpdate();
|
||||
}
|
||||
|
||||
void CPythonApplication::RunIMETabEvent()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunIMETabEvent();
|
||||
}
|
||||
|
||||
void CPythonApplication::RunIMEReturnEvent()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunIMEReturnEvent();
|
||||
}
|
||||
|
||||
void CPythonApplication::OnIMEKeyDown(int iIndex)
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunIMEKeyDown(iIndex);
|
||||
}
|
||||
|
||||
void CPythonApplication::RunIMEChangeCodePage()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunChangeCodePage();
|
||||
}
|
||||
|
||||
void CPythonApplication::RunIMEOpenCandidateListEvent()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunOpenCandidate();
|
||||
}
|
||||
|
||||
void CPythonApplication::RunIMECloseCandidateListEvent()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunCloseCandidate();
|
||||
}
|
||||
|
||||
void CPythonApplication::RunIMEOpenReadingWndEvent()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunOpenReading();
|
||||
}
|
||||
|
||||
void CPythonApplication::RunIMECloseReadingWndEvent()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunCloseReading();
|
||||
}
|
||||
|
||||
void CPythonApplication::RunPressExitKey()
|
||||
{
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
rkWndMgr.RunPressExitKey();
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseUpdate()
|
||||
{
|
||||
if (!s_poMouseHandler)
|
||||
return;
|
||||
|
||||
UI::CWindowManager& rkWndMgr = UI::CWindowManager::Instance();
|
||||
long lx, ly;
|
||||
rkWndMgr.GetMousePosition(lx, ly);
|
||||
PyCallClassMemberFunc(s_poMouseHandler, "Update", Py_BuildValue("(ii)", lx, ly));
|
||||
}
|
||||
|
||||
void CPythonApplication::OnMouseRender()
|
||||
{
|
||||
if (!s_poMouseHandler)
|
||||
return;
|
||||
|
||||
PyCallClassMemberFunc(s_poMouseHandler, "Render", Py_BuildValue("()"));
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
// Stand-in for the 40250 logic unit GameLib/RaceData.cpp, not ported yet: the members the ported units
|
||||
// reference, as platform_stub.py stubs. Delete this file in the commit that ports the unit into port/
|
||||
// (docs/PORT-PLAN.md).
|
||||
#include "GameLib/StdAfx.h"
|
||||
#include "GameLib/RaceData.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
auto CRaceData::GetNormalAttackIndex(WORD, WORD *) -> BOOL
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
}
|
||||
@@ -1,164 +0,0 @@
|
||||
// Stand-in for the 40250 logic unit UserInterface/GuildMarkDownloader.cpp, not ported yet: the platform_stub.py skeleton of its
|
||||
// header, so the units that call it (批次 2V1, the network slice) link. Delete this file in the commit
|
||||
// that ports the unit into port/ (docs/PORT-PLAN.md 2V1).
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/GuildMarkDownloader.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
CGuildMarkDownloader::CGuildMarkDownloader()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
CGuildMarkDownloader::~CGuildMarkDownloader()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::Connect(const CNetworkAddress &, DWORD, DWORD) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::ConnectToRecvSymbol(const CNetworkAddress &, DWORD, DWORD, const std::vector<DWORD> &) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::Process() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::OnConnectFailure() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::OnConnectSuccess() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::OnRemoteDisconnect() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::OnDisconnect() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__Initialize() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__StateProcess() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__GetPacketSize(UINT) -> UINT
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<UINT>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__DispatchPacket(UINT) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__OfflineState_Set() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__CompleteState_Set() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_Set() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_Process() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_RecvPhase() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_RecvHandshake() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_RecvPing() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_RecvMarkIndex() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_RecvMarkBlock() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_RecvSymbolData() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_RecvKeyAgreement() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__LoginState_RecvKeyAgreementCompleted() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__SendMarkIDXList() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__SendMarkCRCList() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkDownloader::__SendSymbolCRCList() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
// Stand-in for the 40250 logic unit UserInterface/GuildMarkUploader.cpp, not ported yet: the platform_stub.py skeleton of its
|
||||
// header, so the units that call it (批次 2V1, the network slice) link. Delete this file in the commit
|
||||
// that ports the unit into port/ (docs/PORT-PLAN.md 2V1).
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/GuildMarkUploader.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
CGuildMarkUploader::CGuildMarkUploader()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
CGuildMarkUploader::~CGuildMarkUploader()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::Disconnect() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::Connect(const CNetworkAddress &, DWORD, DWORD, DWORD, const char *, UINT *) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::ConnectToSendSymbol(const CNetworkAddress &, DWORD, DWORD, DWORD, const char *, UINT *) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::IsCompleteUploading() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::Process() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::OnConnectFailure() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::OnConnectSuccess() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::OnRemoteDisconnect() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::OnDisconnect() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__Load(const char *, UINT *) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__LoadSymbol(const char *, UINT *) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__Save(const char *) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__Inialize() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__StateProcess() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__OfflineState_Set() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__CompleteState_Set() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__LoginState_Set() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__LoginState_Process() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__LoginState_RecvPhase() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__LoginState_RecvHandshake() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__LoginState_RecvPing() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__LoginState_RecvKeyAgreement() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__LoginState_RecvKeyAgreementCompleted() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__AnalyzePacket(UINT, UINT, bool (CGuildMarkUploader::*)()) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__SendMarkPacket() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkUploader::__SendSymbolPacket() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
// Stand-in for the 40250 logic unit UserInterface/Locale.cpp, not ported yet: the members the ported units
|
||||
// reference, as platform_stub.py stubs. Delete this file in the commit that ports the unit into port/
|
||||
// (docs/PORT-PLAN.md).
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/Locale.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
auto LocaleService_GetSkillPower(unsigned int) -> int
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<int>();
|
||||
}
|
||||
@@ -1,158 +0,0 @@
|
||||
// Stand-in for the 40250 logic unit UserInterface/MarkManager.cpp, not ported yet: the platform_stub.py skeleton of its
|
||||
// header, so the units that call it (批次 2V1, the network slice) link. Delete this file in the commit
|
||||
// that ports the unit into port/ (docs/PORT-PLAN.md 2V1).
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/MarkManager.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
CGuildMarkManager::CGuildMarkManager()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
CGuildMarkManager::~CGuildMarkManager()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::GetGuildSymbol(DWORD) -> const TGuildSymbol *
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<const TGuildSymbol *>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::LoadSymbol(const char *) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::SaveSymbol(const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::UploadSymbol(DWORD, int, const BYTE *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::SetMarkPathPrefix(const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::LoadMarkIndex() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::SaveMarkIndex() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::LoadMarkImages() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::SaveMarkImage(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::GetMarkImageFilename(DWORD, std::string &) const -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::AddMarkIDByGuildID(DWORD, DWORD) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::GetMarkImageCount() const -> DWORD
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<DWORD>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::GetMarkCount() const -> DWORD
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<DWORD>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::GetMarkID(DWORD) -> DWORD
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<DWORD>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::CopyMarkIdx(char *) const -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::SaveMark(DWORD, BYTE *) -> DWORD
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<DWORD>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::DeleteMark(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::GetDiffBlocks(DWORD, const DWORD *, std::map<BYTE, const SGuildMarkBlock *> &) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::SaveBlockFromCompressedData(DWORD, DWORD, const BYTE *, DWORD) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::GetBlockCRCList(DWORD, DWORD *) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::__NewImage() -> CGuildMarkImage *
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<CGuildMarkImage *>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::__DeleteImage(CGuildMarkImage *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::__AllocMarkID(DWORD) -> DWORD
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<DWORD>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::__GetImage(DWORD) -> CGuildMarkImage *
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<CGuildMarkImage *>();
|
||||
}
|
||||
|
||||
auto CGuildMarkManager::__GetImagePtr(DWORD) -> CGuildMarkImage *
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<CGuildMarkImage *>();
|
||||
}
|
||||
@@ -1,139 +0,0 @@
|
||||
// Stand-in for the 40250 unit UserInterface/PythonGuild.cpp, not ported yet: the CPythonGuild member the ported
|
||||
// net module (批次 2V1) references, as an MT_PLATFORM_STUB(). Delete this file in the commit that ports the unit
|
||||
// into port/ (docs/PORT-PLAN.md 2V1).
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/PythonGuild.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
BOOL CPythonGuild::GetMemberDataPtrByName(const char *, TGuildMemberData **)
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
auto CPythonGuild::Destroy() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::EnableGuild() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::SetGuildMoney(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::SetGuildEXP(BYTE, DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::SetGradeData(BYTE, TGuildGradeData &) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::SetGradeName(BYTE, const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::SetGradeAuthority(BYTE, BYTE) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::ClearComment() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::RegisterComment(DWORD, const char *, const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::RegisterMember(TGuildMemberData &) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::ChangeGuildMemberGrade(DWORD, BYTE) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::ChangeGuildMemberGeneralFlag(DWORD, BYTE) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::RemoveMember(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::RegisterGuildName(DWORD, const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::IsMainPlayer(DWORD) -> BOOL
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
}
|
||||
|
||||
auto CPythonGuild::GetGuildInfoRef() -> TGuildInfo &
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<TGuildInfo &>();
|
||||
}
|
||||
|
||||
auto CPythonGuild::GetMemberDataPtrByPID(DWORD, TGuildMemberData **) -> BOOL
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
}
|
||||
|
||||
auto CPythonGuild::GetGuildSkillDataRef() -> TGuildSkillData &
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<TGuildSkillData &>();
|
||||
}
|
||||
|
||||
auto CPythonGuild::GetGuildName(DWORD, std::string *) -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CPythonGuild::StartGuildWar(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::EndGuildWar(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
CPythonGuild::CPythonGuild()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
CPythonGuild::~CPythonGuild()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonGuild::IsDoingGuildWar() -> BOOL
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
// Stand-in for the 40250 logic unit UserInterface/PythonMessenger.cpp, not ported yet: the members the ported units
|
||||
// reference, as platform_stub.py stubs. Delete this file in the commit that ports the unit into port/
|
||||
// (docs/PORT-PLAN.md).
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/PythonMessenger.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
CPythonMessenger::CPythonMessenger()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
CPythonMessenger::~CPythonMessenger()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonMessenger::OnFriendLogin(const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonMessenger::OnFriendLogout(const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonMessenger::SetMobile(const char *, BYTE) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonMessenger::AppendGuildMember(const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonMessenger::RemoveGuildMember(const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonMessenger::RemoveAllGuildMember() -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonMessenger::LoginGuildMember(const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonMessenger::LogoutGuildMember(const char *) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
// Stand-in for the 40250 logic unit UserInterface/PythonSafeBox.cpp, not ported yet: the members the ported units
|
||||
// reference, as platform_stub.py stubs. Delete this file in the commit that ports the unit into port/
|
||||
// (docs/PORT-PLAN.md).
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/PythonSafeBox.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
CPythonSafeBox::CPythonSafeBox()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
CPythonSafeBox::~CPythonSafeBox()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::OpenSafeBox(int) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::SetItemData(DWORD, const TItemData &) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::DelItemData(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::SetMoney(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::GetSlotItemID(DWORD, DWORD *) -> BOOL
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::OpenMall(int) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::SetMallItemData(DWORD, const TItemData &) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::DelMallItemData(DWORD) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSafeBox::GetSlotMallItemID(DWORD, DWORD *) -> BOOL
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<BOOL>();
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
// Stand-in for the 40250 logic unit UserInterface/PythonSystem.cpp, not ported yet: the members the ported units
|
||||
// reference, as platform_stub.py stubs. Delete this file in the commit that ports the unit into port/
|
||||
// (docs/PORT-PLAN.md).
|
||||
#include "UserInterface/StdAfx.h"
|
||||
#include "UserInterface/PythonSystem.h"
|
||||
|
||||
#include "../../PlatformStub.h"
|
||||
|
||||
CPythonSystem::CPythonSystem()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
CPythonSystem::~CPythonSystem()
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
|
||||
auto CPythonSystem::IsShowDamage() -> bool
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<bool>();
|
||||
}
|
||||
|
||||
auto CPythonSystem::GetShadowLevel() -> int
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
return mt_platform_stub_return<int>();
|
||||
}
|
||||
|
||||
auto CPythonSystem::SetSoftwareTiling(bool isEnable) -> void
|
||||
{
|
||||
MT_PLATFORM_STUB();
|
||||
}
|
||||
Reference in New Issue
Block a user