port: P3-e PythonMiniMap + miniMap module (1:1 40250)

Copy PythonMiniMap.cpp/PythonMiniMapModule.cpp and PRTerrainLib/StdAfx.cpp
verbatim, drop the pending stand-in and the miniMap module stub, register
initMiniMap() after initnet(). PR_FLOAT_TO_INTASM uses lrintf off MSVC;
D3DXColorModulate added. CMapOutdoor is not ported, so the pending
CMapManager::IsMapOutdoor() returns false (DIVERGENT) and the minimap's terrain
and atlas paths stay on 40250's no-outdoor-map branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-09-24 01:18:57 +09:00
co-authored by Claude Opus 5.5
parent 070a27b2cb
commit 7358bf444a
18 changed files with 2429 additions and 158 deletions
@@ -1,78 +0,0 @@
// Stand-in for the 40250 logic unit UserInterface/PythonMiniMap.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/PythonMiniMap.h"
#include "../../PlatformStub.h"
CPythonMiniMap::CPythonMiniMap()
{
MT_PLATFORM_STUB();
}
CPythonMiniMap::~CPythonMiniMap()
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::AddObserver(DWORD, float, float) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::MoveObserver(DWORD, float, float) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::RemoveObserver(DWORD) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::ClearAtlasMarkInfo() -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::RegisterAtlasMark(BYTE, const char *, long, long) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::ClearGuildArea() -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::RegisterGuildArea(DWORD, DWORD, long, long, long, long) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::CreateTarget(int, const char *) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::CreateTarget(int, const char *, DWORD) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::UpdateTarget(int, int, int) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::DeleteTarget(int) -> void
{
MT_PLATFORM_STUB();
}
auto CPythonMiniMap::GetGuildAreaID(DWORD, DWORD) -> DWORD
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<DWORD>();
}