feat(entity-manager): reload del nivell + PaintLayer::clear
This commit is contained in:
1 parent
28e55a0615
commit
59cd9b524c
4 files changed
+43
No files matched your search
@@ -48,6 +48,13 @@ class PaintLayer {
|
||||
|
||||
[[nodiscard]] auto isPainted(int col, int row) const -> bool;
|
||||
|
||||
// Buida el pintat acumulat. Marca tots els tiles com a no pintats i
|
||||
// reseteja el buffer ARGB a alpha=0 (transparent). Cridat per
|
||||
// GameScene a la transició ROOM_OUTRO → ROOM_INTRO. La subscripció
|
||||
// al bus es manté — el PaintLayer continuarà reaccionant a
|
||||
// `on_tile_entered` un cop els jugadors hagin reaparegut.
|
||||
void clear();
|
||||
|
||||
private:
|
||||
void blitPaintTile(int col, int row, int tile_index);
|
||||
|
||||
|
||||
Reference in new issue
Block a user