Curation round 7: Game::Start, level generation, Room, Camera, the Entity hierarchy, Entity_Player, the run frame
Six agents took over Game::Start, Level::SetNextStage, BossPool, save_game_state, level generation to the first room (place_special_rooms, RoomDescriptor, load_room), Room, Camera, Entity/EntityList/EntityRef with a curated skeleton of every Entity_* subclass, Entity_Player, Game::Render, Manager::Update's run branch, RoomTransition, ItemInfoHUD and StatHUD. Integration wrote FirstTrinketOwner and room_shape_get_door_grid_index (checked against the decompile for every shape and slot) and folded the duplicated constants. A run now generates its floor, loads the start room and draws the HUD (under gdb); Isaac renders correctly when drawn, the room itself waits for Room::Render. 2479 functions taken over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
addd027977
commit
b85591bdf4
146 files changed
+20124
-200863
No files matched your search
@@ -106,7 +106,7 @@ LAB_0071905d:
|
||||
if (1 < *GHIDRA_CAST<int *>(&g_game->_deathmatchManager)) {
|
||||
pEVar3 = GHIDRA_CAST<Entity_Player *>(FUN_0090b0e0(uVar2));
|
||||
local_50[3] = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
bVar1 = (GHIDRA_CAST<Entity_Player *>((pEVar3)))->Entity_Player::HasTrinket(0x3e,0);
|
||||
bVar1 = Entity_Player::HasTrinket(pEVar3,0x3e,0);
|
||||
if (bVar1 == 0) goto LAB_007191ab;
|
||||
}
|
||||
iVar6 = 300;
|
||||
@@ -204,7 +204,7 @@ LAB_0071926c:
|
||||
spawnPos.x = (float)(this->_gridIndex % iVar4) * 40.0 + 40.0;
|
||||
spawnPos.y = (float)(this->_gridIndex / iVar4) * 40.0 + 120.0;
|
||||
Game::Spawn(g_game,1000,0xf,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar2);
|
||||
sourceRef = (GHIDRA_CAST<EntityRef *>((GHIDRA_CAST<EntityRef *>((local_90 + 4)))))->EntityRef::EntityRef();
|
||||
sourceRef = EntityRef::EntityRef(GHIDRA_CAST<EntityRef *>((local_90 + 4)));
|
||||
(*extraout_EDX_00)(1,sourceRef);
|
||||
game = g_game;
|
||||
}
|
||||
@@ -253,7 +253,7 @@ LAB_0071926c:
|
||||
else {
|
||||
iVar6 = iVar4 * room->_gridWidth + iVar6;
|
||||
}
|
||||
uVar8 = (GHIDRA_CAST<Room *>((room)))->Room::GetGridCollision(iVar6);
|
||||
uVar8 = Room::GetGridCollision(room,iVar6);
|
||||
if ((uVar8 == 0) &&
|
||||
(fVar9 = (local_50[3]->_pos).x - (float)local_50[0],
|
||||
fVar10 = (local_50[3]->_pos).y - (float)local_50[1],
|
||||
@@ -266,7 +266,7 @@ LAB_0071926c:
|
||||
uVar2 = uVar2 + 1;
|
||||
} while (uVar2 < 4);
|
||||
if ((spawnPos.x == g_vectorZero.x) && (spawnPos.y == g_vectorZero.y)) goto LAB_00719576;
|
||||
(GHIDRA_CAST<Entity_Player *>((local_50[3])))->Entity_Player::AddBlueSpider(&spawnPos);
|
||||
Entity_Player::AddBlueSpider(local_50[3],&spawnPos);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -275,7 +275,7 @@ LAB_0071926c:
|
||||
iVar4 = this->_frameCnt;
|
||||
this->_frameCnt = iVar4 + -1;
|
||||
if (0 < iVar4) goto LAB_00719576;
|
||||
sourceRef = (GHIDRA_CAST<EntityRef *>((GHIDRA_CAST<EntityRef *>((local_90 + 4)))))->EntityRef::EntityRef();
|
||||
sourceRef = EntityRef::EntityRef(GHIDRA_CAST<EntityRef *>((local_90 + 4)));
|
||||
(*extraout_EDX)(0,sourceRef);
|
||||
}
|
||||
game = g_game;
|
||||
@@ -808,11 +808,11 @@ void GridEntity_Rock::guard_check_icall()
|
||||
uVar2 = GHIDRA_UINT(this->_gridIndex) / GHIDRA_UINT(currentRoom->_gridWidth);
|
||||
uVar3 = GHIDRA_UINT(this->_gridIndex) % GHIDRA_UINT(currentRoom->_gridWidth);
|
||||
nextColumn = uVar3 + 1;
|
||||
neighborIndices[0] = (GHIDRA_CAST<Room *>((currentRoom)))->Room::GetGridIndexByTile(nextColumn,uVar2);
|
||||
neighborIndices[0] = Room::GetGridIndexByTile(currentRoom,nextColumn,uVar2);
|
||||
nextRow = uVar2 + 1;
|
||||
neighborIndices[1] = (GHIDRA_CAST<Room *>((currentRoom)))->Room::GetGridIndexByTile(uVar3,nextRow);
|
||||
neighborIndices[1] = Room::GetGridIndexByTile(currentRoom,uVar3,nextRow);
|
||||
room = currentRoom;
|
||||
neighborIndices[2] = (GHIDRA_CAST<Room *>((currentRoom)))->Room::GetGridIndexByTile(nextColumn,nextRow);
|
||||
neighborIndices[2] = Room::GetGridIndexByTile(currentRoom,nextColumn,nextRow);
|
||||
uVar2 = 0;
|
||||
neighborRocks[0] = GHIDRA_CAST<GridEntity_Rock *>(0x0);
|
||||
uVar3 = 0;
|
||||
@@ -1280,7 +1280,7 @@ void GridEntity_Rock::TrySpawnWorms()
|
||||
local_14 = trig * 20.0 + rockY;
|
||||
worm = Game::Spawn(g_game,1000,0x3f,GHIDRA_CAST<Vector *>((local_20 + 8)),&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,
|
||||
seed);
|
||||
worm->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(worm) + 0xc))();
|
||||
wormCount = wormCount - 1;
|
||||
} while (wormCount != 0);
|
||||
}
|
||||
@@ -1348,7 +1348,7 @@ uint8_t GridEntity_Rock::TrySpawnLadder()
|
||||
do {
|
||||
player = GHIDRA_CAST<Entity_Player *>(*playerIt);
|
||||
if ((player->_variant == 0) &&
|
||||
(isHasStudFinder = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasTrinket(0x4a,0), isHasStudFinder != 0)) {
|
||||
(isHasStudFinder = Entity_Player::HasTrinket(player,0x4a,0), isHasStudFinder != 0)) {
|
||||
pvVar3 = (player->_trinketRNGs)._end;
|
||||
if (GHIDRA_INT(pvVar3) - GHIDRA_INT((player->_trinketRNGs)._begin) >> 4 < 0x4b) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Trinket ID out of bounds!\n"));
|
||||
@@ -1395,7 +1395,7 @@ LAB_0071b300:
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("SpawnGridEntity: Grid index invalid\n"));
|
||||
}
|
||||
if ((uVar2 < 0x1c0) &&
|
||||
(gridCollision = (GHIDRA_CAST<Room *>((room)))->Room::GetGridCollision(uVar2), GHIDRA_INT(gridCollision) < 1)) {
|
||||
(gridCollision = Room::GetGridCollision(room,uVar2), GHIDRA_INT(gridCollision) < 1)) {
|
||||
stairs = operator_new(0x154);
|
||||
local_8 = 0x11;
|
||||
if (stairs == GHIDRA_CAST<GridEntity *>(0x0)) {
|
||||
|
||||
Reference in new issue
Block a user