Files
isaac-port/generated-src/grid_entity_statue.cpp
T
shweetandClaude Opus 5.5 fd8b965350 Curation round 4: popups, Seeds/Random, Game, KeyConfigs, offline NetplayManager, Console, TextureCache, render passes
Six agents took over PopupButtons/PopupQueue/AchievementOverlay, Seeds with the global Random (now seeded from the
clock as in the original), Game (g_game exists from Manager::Init on), KeyConfigs, an offline NetplayManager, Console's
output and printing, TextureCache, the color-mod and sprite shader passes, mod shaders and reload_resource_paths. An
integration pass moved callers to the new APIs (0 errors, 0 warnings with -Wall -Wextra). build/isaac loads the 34
installed mods and stops at ScoreSheet::ScoreSheet in Game's constructor; with the remaining stubs skipped under gdb the
intro cutscene plays through and the main menu's frame loop runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 01:32:19 -05:00

70 lines
2.3 KiB
C++

#include "classes.h"
// 0042cdf0
void GridEntity_Statue::Render()
{
return;
}
// 00838520
void GridEntity_Statue::Update()
{
if ((this->_sprite)._loaded != 0) {
AnimationState::Update(&(this->_sprite)._animState);
AnimationState::Update(&(this->_sprite)._overlayAnimState);
}
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) == 1) {
this->_collisionClass = 3;
return;
}
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) == 2) {
this->_collisionClass = 0;
}
return;
}
// 00838ae0
void GridEntity_Statue::BeginBatches()
{
uint32_t seed;
int iVar1;
Entity *statueEffect;
uint32_t gridPathValue;
int gridX;
uint32_t variant;
Vector spawnPos;
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) < 1) {
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) = 1;
}
else if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) != 1) goto LAB_00838bf3;
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))) == 0) {
seed = Random();
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc));
gridX = this->_gridIndex % iVar1;
iVar1 = this->_gridIndex / iVar1;
variant = 6;
}
else {
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))) != 1) goto LAB_00838bf3;
seed = Random();
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc));
gridX = this->_gridIndex % iVar1;
iVar1 = this->_gridIndex / iVar1;
variant = 9;
}
spawnPos.x = (float)gridX * 40.0 + 40.0;
spawnPos.y = (float)iVar1 * 40.0 + 120.0;
statueEffect = Game::SpawnEx(g_game,1000,variant,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,seed,0);
*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x154)))) = statueEffect;
LAB_00838bf3:
if (GHIDRA_UINT(this->_gridIndex) < 0x1c0) {
gridPathValue = 0;
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) == 1) {
gridPathValue = 1000;
}
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(g_game->_room) + this->_gridIndex * 4 + 0x76c)) = gridPathValue;
}
return;
}