yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::TilePaintingCallbacks Struct Reference

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
 

Detailed Description

Callbacks for undo integration and map refresh.

Definition at line 42 of file tile_painting_manager.h.

Member Data Documentation

◆ create_undo_point

std::function<void(int map_id, int world, int x, int y, int old_tile_id)> yaze::editor::TilePaintingCallbacks::create_undo_point

◆ finalize_paint_operation

◆ refresh_overworld_map_on_demand

std::function<void(int map_index)> yaze::editor::TilePaintingCallbacks::refresh_overworld_map_on_demand

◆ scroll_blockset_to_current_tile

std::function<void()> yaze::editor::TilePaintingCallbacks::scroll_blockset_to_current_tile

◆ request_tile16_selection

std::function<void(int tile_id)> yaze::editor::TilePaintingCallbacks::request_tile16_selection

◆ select_map_for_editing

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().

◆ is_project_tile

std::function<bool(int world, int x, int y)> yaze::editor::TilePaintingCallbacks::is_project_tile

◆ read_project_tile

std::function<absl::StatusOr<uint16_t>(int world, int x, int y)> yaze::editor::TilePaintingCallbacks::read_project_tile

◆ paint_project_pattern

std::function<absl::Status(const TileBrush&, int x, int y, int width, int height, bool finalize) yaze::editor::TilePaintingCallbacks::paint_project_pattern)

◆ finalize_project_paint

std::function<void()> yaze::editor::TilePaintingCallbacks::finalize_project_paint

◆ project_tile_atlas

std::function<const gfx::Bitmap*(int map_id)> yaze::editor::TilePaintingCallbacks::project_tile_atlas

◆ allocated_rows

std::function<int(int world)> yaze::editor::TilePaintingCallbacks::allocated_rows

The documentation for this struct was generated from the following file: