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
@@ -87,7 +87,7 @@ void Ambush::StartChallenge()
|
||||
targetRoomType = 0;
|
||||
}
|
||||
else {
|
||||
targetRoomType = (GHIDRA_CAST<Entity_Player *>((doorStopOwner)))->Entity_Player::GetTrinketMultiplier(0x7c);
|
||||
targetRoomType = Entity_Player::GetTrinketMultiplier(doorStopOwner,0x7c);
|
||||
}
|
||||
doorOffset = 0x724;
|
||||
doorSlot = 0;
|
||||
@@ -231,7 +231,7 @@ LAB_00833972:
|
||||
local_68 = GHIDRA_CAST<Entity *>(local_58[-1]);
|
||||
local_8c.x = (float)(GHIDRA_INT(local_68) % room->_gridWidth) * 40.0 + 40.0;
|
||||
local_8c.y = (float)(GHIDRA_INT(local_68) / room->_gridWidth) * 40.0 + 120.0;
|
||||
(GHIDRA_CAST<Room *>((room)))->Room::FindFreeTilePosition(&local_74,&local_8c,0.0);
|
||||
Room::FindFreeTilePosition(room,&local_74,&local_8c,0.0);
|
||||
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
|
||||
if (*puVar6 - 10 < 0x3de) {
|
||||
if (uVar3 == 0) {
|
||||
@@ -279,7 +279,7 @@ LAB_00833972:
|
||||
&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),GHIDRA_UINT(*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(local_58) + 6))),
|
||||
uVar3);
|
||||
if (local_68->_type == 1000) {
|
||||
local_68->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(local_68) + 0xc))();
|
||||
}
|
||||
local_68->_spawnGridIndex = puVar6[-1];
|
||||
local_54 = g_game;
|
||||
@@ -305,7 +305,7 @@ LAB_00833b32:
|
||||
if (uVar3 < GHIDRA_UINT((GHIDRA_INT(pvVar5) - GHIDRA_INT(playerSlot) >> 2))) {
|
||||
playerSlot = playerSlot + uVar3;
|
||||
}
|
||||
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(*playerSlot))))->Entity_Player::spawn_locusts();
|
||||
Entity_Player::spawn_locusts(GHIDRA_CAST<Entity_Player *>(*playerSlot));
|
||||
uVar3 = uVar3 + 1;
|
||||
playerManager = &g_game->_playerManager;
|
||||
} while (uVar3 < GHIDRA_UINT((GHIDRA_INT((g_game->_playerManager)._playerList._end) -
|
||||
@@ -329,7 +329,7 @@ LAB_00833b32:
|
||||
}
|
||||
local_54 = GHIDRA_CAST<Game *>(&local_54->_roomConfig);
|
||||
local_90 = 0;
|
||||
local_74.y = (float)(GHIDRA_CAST<Room *>((room)))->Room::GetRoomShape();
|
||||
local_74.y = (float)Room::GetRoomShape(room);
|
||||
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
|
||||
if (uVar3 == 0) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
||||
@@ -403,7 +403,7 @@ LAB_008337d3:
|
||||
uVar4 = uVar4 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1c)))) & 0x1f) ^ uVar4;
|
||||
uVar4 = uVar4 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&this[1]._isActive) & 0x1f) ^ uVar4;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14)))) = uVar4;
|
||||
(GHIDRA_CAST<Room *>((room)))->Room::TransformEntry(&entry,uVar3,uVar4);
|
||||
Room::TransformEntry(room,&entry,uVar3,uVar4);
|
||||
if (&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((GHIDRA_CAST<Entity *>(entry))[-1])) + 0x40f))) < GHIDRA_CAST<uint8_t *>(0x3e7)) {
|
||||
entryType = GHIDRA_CAST<Entity *>(entry);
|
||||
if (GHIDRA_CAST<Entity *>(entry) == GHIDRA_CAST<Entity *>(0x3e7)) {
|
||||
@@ -502,7 +502,7 @@ void Ambush::SpawnBossrushWave()
|
||||
if (uVar3 < GHIDRA_UINT((GHIDRA_INT(pvVar5) - GHIDRA_INT(playerSlot) >> 2))) {
|
||||
playerSlot = playerSlot + uVar3;
|
||||
}
|
||||
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(*playerSlot))))->Entity_Player::spawn_locusts();
|
||||
Entity_Player::spawn_locusts(GHIDRA_CAST<Entity_Player *>(*playerSlot));
|
||||
uVar3 = uVar3 + 1;
|
||||
playerManager = &g_game->_playerManager;
|
||||
} while (uVar3 < GHIDRA_UINT((GHIDRA_INT((g_game->_playerManager)._playerList._end) -
|
||||
@@ -582,7 +582,7 @@ void Ambush::Update()
|
||||
tempEffect[1] = 0;
|
||||
local_c = 0;
|
||||
tempEffect[0] = iVar1;
|
||||
(GHIDRA_CAST<TemporaryEffects *>((&player->_temporaryeffects)))->TemporaryEffects::RemoveEffect(tempEffect,1);
|
||||
TemporaryEffects::RemoveEffect(&player->_temporaryeffects,tempEffect,1);
|
||||
}
|
||||
playerIndex = playerIndex + 1;
|
||||
} while (playerIndex <
|
||||
@@ -618,7 +618,7 @@ void Ambush::Update()
|
||||
GHIDRA_INT((g_manager->_musicManager)._entries._begin)) / 0x60) {
|
||||
(g_manager->_musicManager)._queuedMusicID = 0x25;
|
||||
}
|
||||
(GHIDRA_CAST<Room *>((g_game->_room)))->Room::SpawnClearAward();
|
||||
Room::SpawnClearAward(g_game->_room);
|
||||
PlayerManager::trigger_room_clear(&g_game->_playerManager);
|
||||
if (iVar1 == 0x11) {
|
||||
PlayerManager::trigger_room_clear(&g_game->_playerManager);
|
||||
|
||||
Reference in new issue
Block a user