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
@@ -0,0 +1,144 @@
|
||||
#include "entity_effect.h"
|
||||
#include "log.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
|
||||
// The creep variants the players leave (holy water trail, black, red, white, holy water, green, Lemon Mishap, Lemon
|
||||
// Party, 204, Black Powder, milk, Black Powder's pentagram).
|
||||
constexpr std::array<int, 12> PLAYER_CREEPS = {54, 45, 46, 44, 37, 53, 32, 78, 204, 92, 90, 93};
|
||||
|
||||
// 0060c400 Only a boss spawn pentagram holds the doors shut.
|
||||
bool Entity_Effect::CanShutDoors()
|
||||
{
|
||||
return variant == EFFECT_SPAWN_PENTAGRAM;
|
||||
}
|
||||
|
||||
// 005ccc20 Collides with nothing it reacts to, letting the collision through.
|
||||
bool Entity_Effect::HandleCollision(Entity*, bool)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// 00435e90 Sets how long it lasts, from now.
|
||||
void Entity_Effect::SetTimeout(int frames)
|
||||
{
|
||||
timeout = frames;
|
||||
lifespan = frames;
|
||||
}
|
||||
|
||||
// 00435ef0 Sets the radius it grows between.
|
||||
void Entity_Effect::SetRadii(float newMinRadius, float newMaxRadius)
|
||||
{
|
||||
minRadius = newMinRadius;
|
||||
maxRadius = newMaxRadius;
|
||||
}
|
||||
|
||||
// 005cd950 Whether two indices differ, the filter of the rift's pull.
|
||||
bool Entity_Effect::rift_attract_filter(int first, int second)
|
||||
{
|
||||
return first != second;
|
||||
}
|
||||
|
||||
// 0060ac20 Whether the variant is creep or fire the players leave, which hurts only enemies.
|
||||
bool Entity_Effect::IsPlayerCreep(int effectVariant)
|
||||
{
|
||||
return std::find(PLAYER_CREEPS.begin(), PLAYER_CREEPS.end(), effectVariant) != PLAYER_CREEPS.end();
|
||||
}
|
||||
|
||||
// The rest of Entity_Effect is not reconstructed yet.
|
||||
|
||||
// 005cdb20
|
||||
void Entity_Effect::Init(int, int, int, uint32_t)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::Init 005cdb20");
|
||||
}
|
||||
|
||||
// 005d4380
|
||||
void Entity_Effect::Update()
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::Update 005d4380");
|
||||
}
|
||||
|
||||
// 005d2520
|
||||
void Entity_Effect::Interpolate()
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::Interpolate 005d2520");
|
||||
}
|
||||
|
||||
// 00607620
|
||||
void Entity_Effect::Render(const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::Render 00607620");
|
||||
}
|
||||
|
||||
// 005d2420
|
||||
void Entity_Effect::Remove()
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::Remove 005d2420");
|
||||
}
|
||||
|
||||
// 0060c370
|
||||
void Entity_Effect::TriggerGlowingHourglass()
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::guard_check_icall 0060c370");
|
||||
}
|
||||
|
||||
// 0060abb0
|
||||
void Entity_Effect::ClearReferences()
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::ClearReferences 0060abb0");
|
||||
}
|
||||
|
||||
// 00435290
|
||||
void Entity_Effect::render_player_target(const Vector&, int)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::render_player_target 00435290");
|
||||
}
|
||||
|
||||
// 004564b0
|
||||
void Entity_Effect::FollowParent(Entity*)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::FollowParent 004564b0");
|
||||
}
|
||||
|
||||
// 005d2a70
|
||||
void Entity_Effect::update_mr_me()
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::update_mr_me 005d2a70");
|
||||
}
|
||||
|
||||
// 005d4010
|
||||
void Entity_Effect::update_wave_chain()
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::update_wave_chain 005d4010");
|
||||
}
|
||||
|
||||
// 006073f0
|
||||
void Entity_Effect::moonlight_timer_callback(int)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::moonlight_timer_callback 006073f0");
|
||||
}
|
||||
|
||||
// 0060af00
|
||||
Entity_Effect* Entity_Effect::CreateTimer(void*, uint32_t, uint32_t, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::CreateTimer 0060af00");
|
||||
}
|
||||
|
||||
// 0060b0d0
|
||||
void Entity_Effect::update_variant178_shooter(bool)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::update_variant178_shooter 0060b0d0");
|
||||
}
|
||||
|
||||
// 0060b7a0
|
||||
Entity_Effect* Entity_Effect::CreateLootPreview(void*, const Vector&, Entity*, Entity_Effect*)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::CreateLootPreview 0060b7a0");
|
||||
}
|
||||
|
||||
// 0060bae0
|
||||
void Entity_Effect::setup_loot_preview(void*)
|
||||
{
|
||||
reconstruction_missing("Entity_Effect::setup_loot_preview 0060bae0");
|
||||
}
|
||||
Reference in new issue
Block a user