port: CMapOutdoor + PythonBackground + minimap (1:1 40250)
GameLib map/area/terrain units, PRTerrainLib Terrain/TextureSet, PythonBackground(+Module) and ColorTransitionHelper ported verbatim; pending stand-ins and background module stubs removed. Hand edits: BeginEnvironment's pointer tag via uintptr_t, LoadWaterMap reads the file's 32-bit longs. Terrain draw passes stay platform no-ops (Godot draws the terrain). RecordingDevice gains textures, buffers and render targets; orthographic draws become UI commands so CPythonMiniMap's masked tiles show through minimap_image_filter in python_ui_surface. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b69116992c
commit
2ead95756e
@@ -542,13 +542,16 @@ int main(int argc, char** argv)
|
||||
"assert _icon != 0\n"
|
||||
"skill.DeleteIconInstance(_icon)"));
|
||||
|
||||
// miniMap module (PythonMiniMapModule.cpp): uiminimap.MiniMap created and showed it. CMapOutdoor is not
|
||||
// ported, so CMapManager::IsMapOutdoor() is false and the atlas reports "not loaded" as 40250 does off an
|
||||
// outdoor map.
|
||||
CHECK(py("import miniMap\n"
|
||||
// miniMap module (PythonMiniMapModule.cpp): uiminimap.MiniMap created and showed it. The warp loaded the
|
||||
// outdoor map through CPythonBackground::Warp -> CMapManager::LoadMap -> CMapOutdoor, so the map is outdoor
|
||||
// and CPythonMiniMap::LoadAtlas found the map's atlas image (its size is the atlas bitmap's).
|
||||
CHECK(CPythonBackground::Instance().IsMapOutdoor());
|
||||
CHECK(py("import miniMap, background\n"
|
||||
"assert miniMap.isShow()\n"
|
||||
"(bGet, x, y) = miniMap.GetAtlasSize()\n"
|
||||
"assert not bGet, (bGet, x, y)"));
|
||||
"assert bGet and x > 0 and y > 0, (bGet, x, y)\n"
|
||||
"print 'port_login_flow_test: atlas %dx%d' % (x, y)\n"
|
||||
"assert background.GetCurrentMapName() != '', background.GetCurrentMapName()"));
|
||||
|
||||
// Ground items (CPythonItem): the fake server put vnum 19 next to the actor at entergame (GC_ITEM_GROUND_ADD
|
||||
// + GC_ITEM_OWNERSHIP). player.PickCloseItem finds it within __GetPickableDistance, sends CG_ITEM_PICKUP,
|
||||
|
||||
Reference in New Issue
Block a user