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

Sink for high-level commands emitted by the interaction coordinator. More...

#include <interaction_coordinator.h>

Public Attributes

std::function< void(EditingMode)> on_set_editor_mode
 
std::function< void(EntityEditMode)> on_set_entity_mode
 
std::function< void()> on_toggle_brush
 
std::function< void()> on_activate_fill
 
std::function< void()> on_pick_tile_from_hover
 
std::function< void()> on_duplicate_selected
 
std::function< void(int, int, bool)> on_nudge_selected
 
std::function< void(zelda3::GameEntity *) on_entity_context_menu )
 
std::function< void(zelda3::GameEntity *) on_entity_double_click )
 
std::function< bool()> can_edit_items
 
std::function< void()> on_toggle_lock
 
std::function< void()> on_toggle_tile16_editor
 
std::function< void()> on_toggle_fullscreen
 
std::function< void()> on_toggle_item_list
 
std::function< void()> on_undo
 
std::function< void()> on_redo
 

Detailed Description

Sink for high-level commands emitted by the interaction coordinator.

This follows the "Composition (Callbacks)" pattern to keep the dependency one-way: input translator -> command sink.

Definition at line 21 of file interaction_coordinator.h.

Member Data Documentation

◆ on_set_editor_mode

std::function<void(EditingMode)> yaze::editor::OverworldCommandSink::on_set_editor_mode

◆ on_set_entity_mode

std::function<void(EntityEditMode)> yaze::editor::OverworldCommandSink::on_set_entity_mode

◆ on_toggle_brush

std::function<void()> yaze::editor::OverworldCommandSink::on_toggle_brush

◆ on_activate_fill

std::function<void()> yaze::editor::OverworldCommandSink::on_activate_fill

◆ on_pick_tile_from_hover

std::function<void()> yaze::editor::OverworldCommandSink::on_pick_tile_from_hover

◆ on_duplicate_selected

std::function<void()> yaze::editor::OverworldCommandSink::on_duplicate_selected

◆ on_nudge_selected

std::function<void(int, int, bool)> yaze::editor::OverworldCommandSink::on_nudge_selected

◆ on_entity_context_menu

std::function<void(zelda3::GameEntity*) yaze::editor::OverworldCommandSink::on_entity_context_menu)

◆ on_entity_double_click

std::function<void(zelda3::GameEntity*) yaze::editor::OverworldCommandSink::on_entity_double_click)

◆ can_edit_items

std::function<bool()> yaze::editor::OverworldCommandSink::can_edit_items

◆ on_toggle_lock

std::function<void()> yaze::editor::OverworldCommandSink::on_toggle_lock

◆ on_toggle_tile16_editor

std::function<void()> yaze::editor::OverworldCommandSink::on_toggle_tile16_editor

◆ on_toggle_fullscreen

std::function<void()> yaze::editor::OverworldCommandSink::on_toggle_fullscreen

◆ on_toggle_item_list

std::function<void()> yaze::editor::OverworldCommandSink::on_toggle_item_list

◆ on_undo

std::function<void()> yaze::editor::OverworldCommandSink::on_undo

◆ on_redo

std::function<void()> yaze::editor::OverworldCommandSink::on_redo

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