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,66 @@
|
||||
#pragma once
|
||||
|
||||
#include "entity.h"
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
// The effect variant that spawns a boss, which counts as the boss until it does.
|
||||
constexpr int EFFECT_SPAWN_PENTAGRAM = 203;
|
||||
|
||||
// Construction and destruction (005cd9f0, 005cd960) are the defaults, the extra data shared with its other holders.
|
||||
// Field accessors (00435e60, 00435eb0, 004d7770, 005784c0, 0060ce20) are the public fields.
|
||||
// An effect (Lua's EntityEffect): a visual or a hazard such as creep, a poof or a light beam, with its timeout, its
|
||||
// fall, the per-variant data it keeps and the extra data some variants share.
|
||||
struct Entity_Effect : Entity
|
||||
{
|
||||
// The base of the extra data some variants keep (MrMeData, PickupGhostData, SpriteTrailData).
|
||||
struct ExtraData
|
||||
{
|
||||
virtual ~ExtraData() = default;
|
||||
};
|
||||
|
||||
std::shared_ptr<ExtraData> extraData;
|
||||
std::array<uint32_t, 4> varData{};
|
||||
std::vector<uint32_t> hitList;
|
||||
Vector parentOffset{};
|
||||
float fallingAcceleration = 0;
|
||||
float fallingSpeed = 0;
|
||||
float height = 0;
|
||||
float maxRadius = 0;
|
||||
float minRadius = 0;
|
||||
float rotation = 0;
|
||||
float scale = 0;
|
||||
int damageSource = 0;
|
||||
int lifespan = 0;
|
||||
int spawnSubtype = 0;
|
||||
int spawnType = 0;
|
||||
int spawnVariant = 0;
|
||||
int state = 0;
|
||||
int timeout = 0;
|
||||
bool isFollowing = false;
|
||||
|
||||
void Init(int type, int variant, int subType, uint32_t initSeed) override;
|
||||
void Update() override;
|
||||
void Interpolate() override;
|
||||
void Render(const Vector& offset) override;
|
||||
void Remove() override;
|
||||
void TriggerGlowingHourglass() override;
|
||||
void ClearReferences() override;
|
||||
bool CanShutDoors() override;
|
||||
bool HandleCollision(Entity* collider, bool isLow) override;
|
||||
|
||||
void render_player_target(const Vector& offset, int segmentMode);
|
||||
void SetTimeout(int frames);
|
||||
void SetRadii(float newMinRadius, float newMaxRadius);
|
||||
void FollowParent(Entity* parent);
|
||||
static bool rift_attract_filter(int first, int second);
|
||||
void update_mr_me();
|
||||
void update_wave_chain();
|
||||
static void moonlight_timer_callback(int);
|
||||
static bool IsPlayerCreep(int effectVariant);
|
||||
static Entity_Effect* CreateTimer(void* fn, uint32_t delay, uint32_t times, bool isPersistent);
|
||||
void update_variant178_shooter(bool isPositionOnly);
|
||||
static Entity_Effect* CreateLootPreview(void* lootlist, const Vector& pos, Entity* owner, Entity_Effect* effect);
|
||||
void setup_loot_preview(void* lootQueue);
|
||||
};
|
||||
Reference in new issue
Block a user