2V2-e.5b: feed native map height and light into game render

This commit is contained in:
shenlei
2026-09-23 22:10:29 +09:00
parent 702fef7b47
commit 5a1df57e69
13 changed files with 678 additions and 76 deletions
+185
View File
@@ -0,0 +1,185 @@
{
"reference": "GameLib/MapManager.cpp",
"reference_sha256": "6e20512dcbe73aeb9d49300667ce460bbd21bf4697a75a0d96fa1b57e7c8a4ff",
"priority": "P4",
"contracts": [],
"functions": {
"CMapManager::IsMapOutdoor": {
"status": "TODO"
},
"CMapManager::GetMapOutdoorRef": {
"status": "TODO"
},
"CMapManager::CMapManager": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::CMapManager"],
"note": "Constructor matches 40250; kept in pending file until CMapOutdoor is ported.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::~CMapManager": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::~CMapManager"],
"note": "Calls transition adapter Destroy, which frees pack-backed map state.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::IsSoftwareTilingEnable": {
"status": "TODO"
},
"CMapManager::ReserveSoftwareTilingEnable": {
"status": "TODO"
},
"CMapManager::Initialize": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::Initialize"],
"note": "40250 AtlasInfo loading order; pack text parsed in transition adapter.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::Create": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::Create"],
"note": "No CMapOutdoor allocation yet; Metin2World renders terrain.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::Destroy": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::Destroy"],
"note": "Frees transition map and environment data; CMapOutdoor cleanup remains TODO.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::Clear": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::Clear"],
"note": "Clears pack-backed terrain state, not CMapOutdoor.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::AllocMap": {
"status": "TODO"
},
"CMapManager::LoadProperty": {
"status": "TODO"
},
"CMapManager::LoadMap": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::LoadMap"],
"note": "Loads Setting.txt, initial height tile and .msenv from 40250 packs for reachable Warp chain; outdoor scene lifecycle remains TODO.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::IsMapReady": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::IsMapReady"],
"note": "Reports pack-backed transition map readiness instead of CMapOutdoor::IsReady.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::UnloadMap": {
"status": "TODO"
},
"CMapManager::UpdateMap": {
"status": "TODO"
},
"CMapManager::UpdateAroundAmbience": {
"status": "TODO"
},
"CMapManager::GetHeight": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::GetHeight"],
"note": "Uses the 40250 terrain triangle interpolation on packed height.raw; placed-object height remains TODO.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::GetTerrainHeight": {
"status": "TODO"
},
"CMapManager::GetWaterHeight": {
"status": "TODO"
},
"CMapManager::BeginEnvironment": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::BeginEnvironment"],
"note": "Applies .msenv material/background light through RecordingDevice; fog and full CMapOutdoor environment remain TODO.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::EndEnvironment": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::EndEnvironment"],
"note": "Restores recorded lighting state; full environment state restoration remains TODO.",
"test": "project/python_game_render_test.gd"
},
"CMapManager::SetEnvironmentData": {
"status": "TODO"
},
"CMapManager::SetEnvironmentDataPtr": {
"status": "TODO"
},
"CMapManager::ResetEnvironmentDataPtr": {
"status": "TODO"
},
"CMapManager::BlendEnvironmentData": {
"status": "TODO"
},
"CMapManager::RegisterEnvironmentData": {
"status": "TODO"
},
"CMapManager::GetCurrentEnvironmentData": {
"status": "TODO"
},
"CMapManager::GetEnvironmentData": {
"status": "TODO"
},
"CMapManager::RefreshPortal": {
"status": "TODO"
},
"CMapManager::ClearPortal": {
"status": "TODO"
},
"CMapManager::AddShowingPortalID": {
"status": "TODO"
},
"CMapManager::AllocEnvironmentData": {
"status": "TODO"
},
"CMapManager::DeleteEnvironmentData": {
"status": "TODO"
},
"CMapManager::LoadEnvironmentData": {
"status": "TODO"
},
"CMapManager::GetShadowMapColor": {
"status": "TODO"
},
"CMapManager::GetRenderedSplatNum": {
"status": "TODO"
},
"CMapManager::GetRenderedGraphicThingInstanceNum": {
"status": "TODO"
},
"CMapManager::GetNormal": {
"status": "TODO"
},
"CMapManager::isPhysicalCollision": {
"status": "TODO"
},
"CMapManager::isAttrOn": {
"status": "TODO"
},
"CMapManager::GetAttr": {
"status": "TODO"
},
"CMapManager::SetTerrainRenderSort": {
"status": "TODO"
},
"CMapManager::SetTransparentTree": {
"status": "TODO"
},
"CMapManager::GetTerrainRenderSort": {
"status": "TODO"
},
"CMapManager::GetBaseXY": {
"status": "TODO"
},
"CMapManager::__LoadMapInfoVector": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/GameLib/MapManager.cpp:CMapManager::__LoadMapInfoVector"],
"note": "Reads packed AtlasInfo bounds with 40250 terrain tile size; parser is transitional.",
"test": "project/python_game_render_test.gd"
}
}
}
@@ -0,0 +1,209 @@
{
"reference": "UserInterface/PythonBackground.cpp",
"reference_sha256": "810ed94a182af71973ce3fa41f77173506db71f5c6bb1f3c6b56879bfcea4f0e",
"priority": "P4",
"contracts": [],
"functions": {
"CPythonBackground::GetRenderShadowTime": {
"status": "TODO"
},
"CPythonBackground::SetVisiblePart": {
"status": "TODO"
},
"CPythonBackground::EnableTerrainOnlyForHeight": {
"status": "TODO"
},
"CPythonBackground::SetSplatLimit": {
"status": "TODO"
},
"CPythonBackground::CreateCharacterShadowTexture": {
"status": "TODO"
},
"CPythonBackground::ReleaseCharacterShadowTexture": {
"status": "TODO"
},
"CPythonBackground::RefreshShadowLevel": {
"status": "TODO"
},
"CPythonBackground::SetShadowLevel": {
"status": "TODO"
},
"CPythonBackground::SelectViewDistanceNum": {
"status": "TODO"
},
"CPythonBackground::SetViewDistanceSet": {
"status": "TODO"
},
"CPythonBackground::GetFarClip": {
"status": "TODO"
},
"CPythonBackground::GetDistanceSetInfo": {
"status": "TODO"
},
"CPythonBackground::CPythonBackground": {
"status": "TODO"
},
"CPythonBackground::~CPythonBackground": {
"status": "TODO"
},
"CPythonBackground::Initialize": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::Initialize"],
"note": "40250 locale AtlasInfo setup, backed by transitional MapManager loader.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::__CreateProperty": {
"status": "TODO"
},
"CPythonBackground::GetPickingPoint": {
"status": "TODO"
},
"CPythonBackground::GetPickingPointWithRay": {
"status": "TODO"
},
"CPythonBackground::GetPickingPointWithRayOnlyTerrain": {
"status": "TODO"
},
"CPythonBackground::GetLightDirection": {
"status": "TODO"
},
"CPythonBackground::Destroy": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::Destroy"],
"note": "Native map state cleanup; SnowEnvironment destruction remains TODO.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::Create": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::Create"],
"note": "Calls transition MapManager::Create; property and snow initialization remain TODO.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::Update": {
"status": "TODO"
},
"CPythonBackground::__IsSame": {
"status": "TODO"
},
"CPythonBackground::Render": {
"status": "TODO"
},
"CPythonBackground::RenderSnow": {
"status": "TODO"
},
"CPythonBackground::RenderPCBlocker": {
"status": "TODO"
},
"CPythonBackground::RenderCollision": {
"status": "TODO"
},
"CPythonBackground::RenderCharacterShadowToTexture": {
"status": "TODO"
},
"Interpolate": {
"status": "TODO"
},
"CPythonBackground::CheckAdvancing": {
"status": "TODO"
},
"CPythonBackground::RenderSky": {
"status": "TODO"
},
"CPythonBackground::RenderCloud": {
"status": "TODO"
},
"CPythonBackground::RenderWater": {
"status": "TODO"
},
"CPythonBackground::RenderEffect": {
"status": "TODO"
},
"CPythonBackground::RenderBeforeLensFlare": {
"status": "TODO"
},
"CPythonBackground::RenderAfterLensFlare": {
"status": "TODO"
},
"CPythonBackground::ClearGuildArea": {
"status": "TODO"
},
"CPythonBackground::RegisterGuildArea": {
"status": "TODO"
},
"CPythonBackground::SetCharacterDirLight": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::SetCharacterDirLight"],
"note": "Statement-equivalent 40250 function, kept in pending translation unit until the whole unit is ported; reachable RenderGame draws carry native light0.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::SetBackgroundDirLight": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::SetBackgroundDirLight"],
"note": "Statement-equivalent 40250 light setter, still in transitional pending translation unit.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::GlobalPositionToLocalPosition": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::GlobalPositionToLocalPosition"],
"note": "40250 base subtraction, kept in transitional pending translation unit.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::LocalPositionToGlobalPosition": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::LocalPositionToGlobalPosition"],
"note": "40250 base addition, kept in transitional pending translation unit.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::RegisterDungeonMapName": {
"status": "TODO"
},
"CPythonBackground::GlobalPositionToMapInfo": {
"status": "TODO"
},
"CPythonBackground::Warp": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::Warp"],
"note": "Native AtlasInfo map selection and local coordinates reach pack-backed map; minimap, dungeon portals, target effects and full CMapOutdoor lifecycle remain TODO.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::VisibleGuildArea": {
"status": "TODO"
},
"CPythonBackground::DisableGuildArea": {
"status": "TODO"
},
"CPythonBackground::GetWarpMapName": {
"status": "ADAPTED",
"impl": ["extension/src/platform/pending/UserInterface/PythonBackground.cpp:CPythonBackground::GetWarpMapName"],
"note": "Returns current native Warp map name; still in pending translation unit.",
"test": "project/python_game_render_test.gd"
},
"CPythonBackground::ChangeToDay": {
"status": "TODO"
},
"CPythonBackground::ChangeToNight": {
"status": "TODO"
},
"CPythonBackground::EnableSnowEnvironment": {
"status": "TODO"
},
"CPythonBackground::DisableSnowEnvironment": {
"status": "TODO"
},
"CPythonBackground::SetXMaxTree": {
"status": "TODO"
},
"CPythonBackground::CreateTargetEffect": {
"status": "TODO"
},
"CPythonBackground::DeleteTargetEffect": {
"status": "TODO"
},
"CPythonBackground::CreateSpecialEffect": {
"status": "TODO"
},
"CPythonBackground::DeleteSpecialEffect": {
"status": "TODO"
}
}
}