Curation round 9: floors and walls, room transitions, collision, the first enemies, saving, damage, pickups

Seven agents took over the backdrop's floor and wall rendering, room transitions (StartRoomTransition, on_leave,
room_enter), grid collision with tear hits and decal baking, Entity_NPC's core with the AI dispatch and the first
enemies (flies, Gaper, Pooter, Clotty, Horf, Dip, Spider), the run's save, player damage, PlayerManager::Update,
ShowName, pickups, slots and the common effects. Integration added LuaEngine::PostNewLevel/PostNewRoom, one shared
lua_callback_check (4 copies merged) and the enemy type range the original checks.
Under gdb a run draws its rooms with floors and walls, walks between rooms, fights Gapers with contact damage and the
damage flash, and collects pickups. Next: tears hitting enemies, pathfinding, item pedestals, death.
2891 functions taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 08:24:38 -05:00
1 parent 69a354f843
commit 48933cd312
59 files changed
+13387 -6056

No files matched your search

+18
View File
@@ -81,6 +81,12 @@ const void* lua_class_key(LuaClass luaClass)
return &classKeys[luaClass];
}
// Stops where a mod has a function for a callback LuaEngine does not run yet.
void lua_callback_check(int callback, const char* name)
{
if (static_cast<LuaEngine*>(g_luaEngine)->enabledCallbacks[callback]) reconstruction_missing(name);
}
// Pushes a callback argument: integers and booleans as themselves.
static void value_push(lua_State* state, int value)
{
@@ -507,6 +513,18 @@ void LuaEngine::PostKnifeInit(Entity_Knife* knife)
LuaObject{knife, LUA_CLASS_KNIFE});
}
// 00865260 Runs MC_POST_NEW_LEVEL once a floor is generated and its first room entered.
void LuaEngine::PostNewLevel()
{
callback_notify(*this, {"PostNewLevel", MC_POST_NEW_LEVEL});
}
// 00865180 Runs MC_POST_NEW_ROOM once a room is loaded.
void LuaEngine::PostNewRoom()
{
callback_notify(*this, {"PostNewRoom", MC_POST_NEW_ROOM});
}
// 00864050 Runs MC_POST_PLAYER_INIT, filtered by the player's variant.
void LuaEngine::PostPlayerInit(Entity_Player* player)
{