port: purge obsolete GDScript UI, legacy flows, and deprecated controllers

- Purged 66 obsolete GDScript UI components and mobile prototype UI from project/ui/ (retaining ui_assets.gd)
- Purged deprecated GDScript game scene, flow state machines, and local gameplay controllers (app_flow, game_scene, player_controller, net_world, etc.)
- Purged deprecated local system simulation scripts (consumable_system, chest_system, equip_rules, etc.) and project/fx/
- Purged legacy GDScript unit tests targeting obsolete classes
- Unified viewport back buffer sizing in CGraphicBase/CGraphicDevice/PythonBoot
- Cleaned up client_main.gd and python_host_check.gd for pure native port architecture
- Verified all port tests passing: port_map.py check (0 errors), port_gate.sh macos PASS (19/19 suites), python_game_render_test PASS
This commit is contained in:
shen
2026-09-23 22:48:41 -07:00
parent 837c830182
commit 3981cbe5e6
709 changed files with 17 additions and 79025 deletions
+6 -3
View File
@@ -167,10 +167,13 @@ auto CGraphicDevice::MoveWebBrowserRect(const RECT &) -> void
MT_PLATFORM_STUB();
}
auto CGraphicDevice::ResizeBackBuffer(UINT, UINT) -> bool
auto CGraphicDevice::ResizeBackBuffer(UINT uWidth, UINT uHeight) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
ms_iWidth = uWidth;
ms_iHeight = uHeight;
ms_d3dPresentParameter.BackBufferWidth = uWidth;
ms_d3dPresentParameter.BackBufferHeight = uHeight;
return true;
}
auto CGraphicDevice::RegisterWarningString(UINT, const char *) -> void
@@ -7,6 +7,7 @@
#include "EterPythonLib/StdAfx.h"
#include "EterBase/Timer.h"
#include "EterLib/Util.h"
#include "EterLib/GrpBase.h"
#include "../EterLib/HostCursor.h"
#include "UserInterface/PythonNetworkStream.h"
#include "UserInterface/AccountConnector.h"
@@ -239,6 +240,7 @@ void SetUISize(int width, int height)
g_window_manager->SetScreenSize(width, height);
g_window_manager->SetResolution(width, height);
UIRenderSetSize(width, height);
CGraphicBase::SetBackBufferSize(width, height);
if (g_game_singletons)
{
g_game_singletons->pySystem.GetConfig()->width = width;
+6
View File
@@ -135,6 +135,12 @@ void CGraphicBase::GetBackBufferSize(UINT* puWidth, UINT* puHeight)
*puHeight=ms_d3dPresentParameter.BackBufferHeight;
}
void CGraphicBase::SetBackBufferSize(UINT uWidth, UINT uHeight)
{
ms_d3dPresentParameter.BackBufferWidth = uWidth;
ms_d3dPresentParameter.BackBufferHeight = uHeight;
}
void CGraphicBase::SetDefaultIndexBuffer(UINT eDefIB)
{
if (eDefIB>=DEFAULT_IB_NUM)
+1
View File
@@ -205,6 +205,7 @@ class CGraphicBase
void SetViewport(DWORD dwX, DWORD dwY, DWORD dwWidth, DWORD dwHeight, float fMinZ, float fMaxZ);
static void GetBackBufferSize(UINT* puWidth, UINT* puHeight);
static void SetBackBufferSize(UINT uWidth, UINT uHeight);
static bool IsTLVertexClipping();
static bool IsFastTNL();
static bool IsLowTextureMemory();