Callbacks for undo integration and map refresh. More...
#include <tile_painting_manager.h>
Public Attributes | |
| std::function< void(int map_id, int world, int x, int y, int old_tile_id)> | create_undo_point |
| std::function< void()> | finalize_paint_operation |
| std::function< void(int map_index)> | refresh_overworld_map_on_demand |
| std::function< void()> | scroll_blockset_to_current_tile |
| std::function< void(int tile_id)> | request_tile16_selection |
When set, eyedropper routes here (guarded RequestTileSwitch path). | |
| std::function< void(int map_id)> | select_map_for_editing |
| std::function< bool(int world, int x, int y)> | is_project_tile |
| std::function< absl::StatusOr< uint16_t >(int world, int x, int y)> | read_project_tile |
| std::function< absl::Status(const TileBrush &, int x, int y, int width, int height, bool finalize) | paint_project_pattern ) |
| std::function< void()> | finalize_project_paint |
| std::function< const gfx::Bitmap *(int map_id)> | project_tile_atlas |
| std::function< int(int world)> | allocated_rows |
Callbacks for undo integration and map refresh.
Definition at line 42 of file tile_painting_manager.h.
| std::function<void(int map_id, int world, int x, int y, int old_tile_id)> yaze::editor::TilePaintingCallbacks::create_undo_point |
Definition at line 44 of file tile_painting_manager.h.
Referenced by yaze::editor::OverworldEditor::InitTilePaintingManager(), and yaze::editor::TilePaintingManager::PaintTile().
| std::function<void()> yaze::editor::TilePaintingCallbacks::finalize_paint_operation |
| std::function<void(int map_index)> yaze::editor::TilePaintingCallbacks::refresh_overworld_map_on_demand |
Definition at line 46 of file tile_painting_manager.h.
Referenced by yaze::editor::OverworldEditor::InitTilePaintingManager(), and yaze::editor::TilePaintingManager::RefreshChangedMaps().
| std::function<void()> yaze::editor::TilePaintingCallbacks::scroll_blockset_to_current_tile |
Definition at line 47 of file tile_painting_manager.h.
Referenced by yaze::editor::TilePaintingManager::CheckForSelectRectangle(), yaze::editor::OverworldEditor::InitTilePaintingManager(), and yaze::editor::TilePaintingManager::PickTile16FromHoveredCanvas().
| std::function<void(int tile_id)> yaze::editor::TilePaintingCallbacks::request_tile16_selection |
When set, eyedropper routes here (guarded RequestTileSwitch path).
Definition at line 49 of file tile_painting_manager.h.
Referenced by yaze::editor::TilePaintingManager::CheckForSelectRectangle(), yaze::editor::OverworldEditor::InitTilePaintingManager(), and yaze::editor::TilePaintingManager::PickTile16FromHoveredCanvas().
| std::function<void(int map_id)> yaze::editor::TilePaintingCallbacks::select_map_for_editing |
Map under the paste anchor. The editor routes this through SelectMapForEditing, which honors a pin and refreshes the Tile16 selector palette. Absent callback keeps the direct current_map write.
Definition at line 53 of file tile_painting_manager.h.
Referenced by yaze::editor::OverworldEditor::InitTilePaintingManager(), and yaze::editor::TilePaintingManager::PaintPattern().
| std::function<bool(int world, int x, int y)> yaze::editor::TilePaintingCallbacks::is_project_tile |
Definition at line 56 of file tile_painting_manager.h.
Referenced by yaze::editor::OverworldEditor::InitTilePaintingManager(), and yaze::editor::TilePaintingManager::IsProjectTile().
| std::function<absl::StatusOr<uint16_t>(int world, int x, int y)> yaze::editor::TilePaintingCallbacks::read_project_tile |
Definition at line 58 of file tile_painting_manager.h.
Referenced by yaze::editor::OverworldEditor::InitTilePaintingManager(), and yaze::editor::TilePaintingManager::ReadTile().
| std::function<absl::Status(const TileBrush&, int x, int y, int width, int height, bool finalize) yaze::editor::TilePaintingCallbacks::paint_project_pattern) |
Definition at line 61 of file tile_painting_manager.h.
Referenced by yaze::editor::OverworldEditor::InitTilePaintingManager(), and yaze::editor::TilePaintingManager::PaintPattern().
| std::function<void()> yaze::editor::TilePaintingCallbacks::finalize_project_paint |
Definition at line 62 of file tile_painting_manager.h.
Referenced by yaze::editor::TilePaintingManager::FinalizePendingPaint(), and yaze::editor::OverworldEditor::InitTilePaintingManager().
| std::function<const gfx::Bitmap*(int map_id)> yaze::editor::TilePaintingCallbacks::project_tile_atlas |
Definition at line 63 of file tile_painting_manager.h.
Referenced by yaze::editor::TilePaintingManager::DrawBrushPreview(), and yaze::editor::OverworldEditor::InitTilePaintingManager().
| std::function<int(int world)> yaze::editor::TilePaintingCallbacks::allocated_rows |
Definition at line 64 of file tile_painting_manager.h.
Referenced by yaze::editor::TilePaintingManager::AllocatedRowsForWorld(), and yaze::editor::OverworldEditor::InitTilePaintingManager().