#include <lyra_terrain_canvas.h>

Classes | |
| struct | MapAssets |
| struct | PropertyDraft |
Public Member Functions | |
| LyraTerrainCanvas ()=default | |
| ~LyraTerrainCanvas () | |
| LyraTerrainCanvas (const LyraTerrainCanvas &)=delete | |
| LyraTerrainCanvas & | operator= (const LyraTerrainCanvas &)=delete |
| absl::Status | Load (project::YazeProject *project, zelda3::Overworld &overworld) |
| absl::Status | Open (project::YazeProject *project, const std::string &path, zelda3::Overworld &overworld) |
| absl::Status | Create (project::YazeProject *project, zelda3::Overworld &overworld) |
| absl::Status | Save (project::YazeProject *project, zelda3::Overworld &overworld) |
| absl::Status | SaveAs (project::YazeProject *project, const std::string &project_path, zelda3::Overworld &overworld) |
| absl::Status | ValidateSave (project::YazeProject *project, zelda3::Overworld &overworld) |
| bool | dirty () const |
| void | ProjectSaveCommitted () |
| bool | loaded () const |
| void | DrawSpecialWorld (const gui::CanvasRuntime &canvas) |
| absl::Status | PaintPattern (const TileBrush &brush, int x, int y, int width, int height, bool finalize, UndoManager &history) |
| void | FinishStroke (UndoManager &history) |
| void | Reset () |
| const core::LyraTerrainDocument * | document () const |
| const gfx::Bitmap & | atlas () const |
| gfx::Bitmap & | atlas () |
| bool | stroke_active () const |
| absl::Status | EditAuthoring (core::LyraAuthoringState after, zelda3::Overworld &overworld, UndoManager &history) |
| absl::Status | SetGameplayArea (int map_id, std::optional< core::LyraGameplayAreaSize > size, zelda3::Overworld &overworld, UndoManager &history) |
| absl::Status | PrepareMapAssets (zelda3::Overworld &overworld, int state) |
| gfx::Bitmap & | MapAtlas (int map_id) |
| gfx::Bitmap * | MapGraphics (int map_id) |
| void | DrawProperties (int map_id, int &state, zelda3::Overworld &overworld, UndoManager &history) |
| bool | entity_placement_active () const |
| void | DrawSpritePreview (const gui::CanvasRuntime &canvas, int map_id, const core::LyraSpritePlacement &sprite) |
| void | DrawEntities (const gui::CanvasRuntime &canvas, int world, int state) |
| void | HandleEntityInput (const gui::CanvasRuntime &canvas, int world, zelda3::Overworld &overworld, UndoManager &history) |
Private Member Functions | |
| core::LyraMapProperties & | PropertyDraftFor (int map_index) |
| bool | PropertyPending (int map_index) const |
| bool | PropertyConflict (int map_index) const |
| std::vector< int > | PendingPropertyMaps () const |
| absl::Status | ApplyPropertyDraft (int map_index, zelda3::Overworld &overworld, UndoManager &history) |
| void | RevertPropertyDraft (int map_index) |
| void | DrawEdgeConnections (int map_id, zelda3::Overworld &overworld, UndoManager &history) |
| void | DrawGameplayArea (int map_id, zelda3::Overworld &overworld, UndoManager &history) |
| absl::Status | ApplyAuthoring (core::LyraAuthoringState after, zelda3::Overworld &overworld, UndoManager &history) |
| absl::StatusOr< std::unique_ptr< MapAssets > > | ResolveMapAssets (zelda3::Overworld &overworld, const core::LyraMapProperties &properties, int state, bool textures) |
| absl::StatusOr< core::LyraMapProperties > | CopyNativeGraphicsSettings (zelda3::Overworld &overworld, int source_map, core::LyraMapProperties candidate) |
| absl::Status | CheckAssetSources (zelda3::Overworld &overworld) |
| absl::Status | ValidateMapAssets (zelda3::Overworld &overworld, const core::LyraAuthoringState &authoring) |
| absl::Status | BindSource (zelda3::Overworld &overworld, core::LyraTerrainProfile *profile, gfx::Bitmap *atlas=nullptr) |
| void | InstallDocument (std::shared_ptr< core::LyraTerrainDocument > document, gfx::Bitmap atlas, std::string source_path, std::optional< std::string > source_bytes, bool unpublished) |
| void | DrawTile (ImDrawList *draw, const gfx::Bitmap &atlas, int tile, ImVec2 min, float size) const |
| void | PaintStamp (int x, int y) |
| void | PaintLine (int x, int y) |
Static Private Member Functions | |
| static std::string | FormatMapIds (const std::vector< int > &map_ids) |
Friends | |
| class | LyraTerrainCanvasTestPeer |
Definition at line 31 of file lyra_terrain_canvas.h.
|
default |
| yaze::editor::LyraTerrainCanvas::~LyraTerrainCanvas | ( | ) |
Definition at line 167 of file lyra_terrain_canvas.cc.
References Reset().

|
delete |
|
delete |
| absl::Status yaze::editor::LyraTerrainCanvas::Load | ( | project::YazeProject * | project, |
| zelda3::Overworld & | overworld ) |
Definition at line 567 of file lyra_terrain_canvas.cc.
References ASSIGN_OR_RETURN, atlas(), yaze::core::LyraTerrainDocument::authoring(), BindSource(), Create(), dirty(), document(), yaze::project::YazeProject::GetAbsolutePath(), InstallDocument(), yaze::project::YazeProject::IsOracleCompatible(), yaze::project::YazeProject::lyra_terrain_file, yaze::project::YazeProject::project_opened(), Reset(), RETURN_IF_ERROR, source_path_, and ValidateMapAssets().
Referenced by Create(), yaze::editor::OverworldEditor::Load(), and Open().
| absl::Status yaze::editor::LyraTerrainCanvas::Open | ( | project::YazeProject * | project, |
| const std::string & | path, | ||
| zelda3::Overworld & | overworld ) |
Definition at line 605 of file lyra_terrain_canvas.cc.
References yaze::project::YazeProject::GetAbsolutePath(), Load(), yaze::project::YazeProject::lyra_terrain_file, pending_project_commit_, yaze::project::YazeProject::project_opened(), and RETURN_IF_ERROR.
Referenced by yaze::editor::OverworldEditor::OpenLyraTerrain().

| absl::Status yaze::editor::LyraTerrainCanvas::Create | ( | project::YazeProject * | project, |
| zelda3::Overworld & | overworld ) |
Definition at line 624 of file lyra_terrain_canvas.cc.
References ASSIGN_OR_RETURN, atlas(), yaze::core::LyraTerrainDocument::authoring(), BindSource(), dirty(), document(), document_, yaze::project::YazeProject::filepath, yaze::project::YazeProject::GetAbsolutePath(), InstallDocument(), Load(), yaze::project::YazeProject::lyra_terrain_file, pending_project_commit_, yaze::project::YazeProject::project_opened(), RETURN_IF_ERROR, source_path_, and ValidateMapAssets().
Referenced by yaze::editor::OverworldEditor::CreateLyraTerrain(), and Load().
| absl::Status yaze::editor::LyraTerrainCanvas::Save | ( | project::YazeProject * | project, |
| zelda3::Overworld & | overworld ) |
Definition at line 761 of file lyra_terrain_canvas.cc.
References ASSIGN_OR_RETURN, dirty(), document_, pending_project_commit_, yaze::editor::PublishLyraTerrainSource(), RETURN_IF_ERROR, source_bytes_, source_path_, unpublished_, and ValidateSave().
Referenced by yaze::editor::OverworldEditor::PrepareProjectSave().

| absl::Status yaze::editor::LyraTerrainCanvas::SaveAs | ( | project::YazeProject * | project, |
| const std::string & | project_path, | ||
| zelda3::Overworld & | overworld ) |
Definition at line 776 of file lyra_terrain_canvas.cc.
References document_, yaze::project::YazeProject::lyra_terrain_file, pending_project_commit_, RETURN_IF_ERROR, yaze::project::YazeProject::SaveAsWithLyraTerrain(), source_bytes_, source_path_, unpublished_, and ValidateSave().
Referenced by yaze::editor::OverworldEditor::SaveProjectTerrainAs().

| absl::Status yaze::editor::LyraTerrainCanvas::ValidateSave | ( | project::YazeProject * | project, |
| zelda3::Overworld & | overworld ) |
Definition at line 742 of file lyra_terrain_canvas.cc.
References BindSource(), document_, FormatMapIds(), yaze::project::YazeProject::GetAbsolutePath(), yaze::project::YazeProject::lyra_terrain_file, PendingPropertyMaps(), RETURN_IF_ERROR, source_path_, and ValidateMapAssets().
| bool yaze::editor::LyraTerrainCanvas::dirty | ( | ) | const |
Definition at line 677 of file lyra_terrain_canvas.cc.
References document_, pending_project_commit_, PendingPropertyMaps(), and unpublished_.
Referenced by Create(), yaze::editor::OverworldEditor::HasPendingProjectDraftChanges(), yaze::editor::OverworldEditor::Load(), Load(), and Save().

|
inline |
Definition at line 55 of file lyra_terrain_canvas.h.
References pending_project_commit_.
Referenced by yaze::editor::OverworldEditor::ProjectSaveCommitted().
|
inline |
Definition at line 56 of file lyra_terrain_canvas.h.
References document_.
Referenced by yaze::editor::OverworldEditor::Initialize(), yaze::editor::OverworldEditor::InitTilePaintingManager(), yaze::editor::OverworldEditor::IsProjectTerrainMap(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), and yaze::editor::EditorManager::SaveProjectAs().
| void yaze::editor::LyraTerrainCanvas::DrawSpecialWorld | ( | const gui::CanvasRuntime & | canvas | ) |
Definition at line 894 of file lyra_terrain_canvas.cc.
References atlas(), atlas_, yaze::gui::CanvasRuntime::canvas_p0, document_, yaze::gui::CanvasRuntime::draw_list, DrawTile(), MapAtlas(), yaze::gui::CanvasRuntime::scale, yaze::gui::CanvasRuntime::scrolling, and yaze::gfx::Bitmap::texture().

| absl::Status yaze::editor::LyraTerrainCanvas::PaintPattern | ( | const TileBrush & | brush, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| bool | finalize, | ||
| UndoManager & | history ) |
Definition at line 806 of file lyra_terrain_canvas.cc.
References assets_valid_, brush_, document_, FinishStroke(), yaze::editor::TileBrush::height, last_cell_, PaintLine(), pattern_height_, pattern_width_, RETURN_IF_ERROR, status_, stroke_active_, yaze::editor::TileBrush::tile_ids, yaze::editor::TileBrush::valid(), and yaze::editor::TileBrush::width.
Referenced by yaze::editor::OverworldEditor::InitTilePaintingManager().

| void yaze::editor::LyraTerrainCanvas::FinishStroke | ( | UndoManager & | history | ) |
Definition at line 791 of file lyra_terrain_canvas.cc.
References document_, last_cell_, yaze::editor::UndoManager::Push(), status_, and stroke_active_.
Referenced by ApplyAuthoring(), yaze::editor::OverworldEditor::InitTilePaintingManager(), PaintPattern(), yaze::editor::OverworldEditor::PrepareProjectSave(), yaze::editor::OverworldEditor::Redo(), yaze::editor::OverworldEditor::SaveProjectTerrainAs(), yaze::editor::OverworldEditor::SelectMapForEditing(), yaze::editor::OverworldEditor::set_current_map(), yaze::editor::OverworldEditor::SetEditingMode(), yaze::editor::OverworldEditor::SwitchToWorld(), and yaze::editor::OverworldEditor::Undo().

| void yaze::editor::LyraTerrainCanvas::Reset | ( | ) |
Definition at line 966 of file lyra_terrain_canvas.cc.
References assets_valid_, atlas_, authoring_assets_status_, brush_, copy_failed_, copy_message_, copy_source_map_, displayed_assets_, document_, drag_before_, drag_map_, yaze::gfx::Arena::Get(), last_cell_, map_assets_, new_sprite_type_, pending_project_commit_, placement_kind_, placement_state_, placement_type_, property_drafts_, property_map_, yaze::gfx::Arena::RetireBitmap(), selected_entity_, selected_kind_, source_bytes_, source_graphics_, source_metadata_, source_path_, source_rom_, source_status_, sprite_filter_, status_, stroke_active_, unpublished_, and validated_authoring_.
Referenced by yaze::editor::OverworldEditor::Clear(), InstallDocument(), Load(), and ~LyraTerrainCanvas().

|
inline |
Definition at line 65 of file lyra_terrain_canvas.h.
References document_.
Referenced by Create(), yaze::editor::OverworldEditor::CreateLyraTerrain(), yaze::editor::OverworldEditor::InitTilePaintingManager(), InstallDocument(), Load(), yaze::editor::OverworldEditor::OpenLyraTerrain(), and yaze::editor::OverworldCanvasRenderer::PrepareContextMenu().
|
inline |
Definition at line 66 of file lyra_terrain_canvas.h.
References atlas_.
Referenced by BindSource(), Create(), DrawSpecialWorld(), DrawTile(), InstallDocument(), and Load().
|
inline |
Definition at line 67 of file lyra_terrain_canvas.h.
References atlas_.
|
inline |
Definition at line 68 of file lyra_terrain_canvas.h.
References stroke_active_.
| absl::Status yaze::editor::LyraTerrainCanvas::EditAuthoring | ( | core::LyraAuthoringState | after, |
| zelda3::Overworld & | overworld, | ||
| UndoManager & | history ) |
Definition at line 495 of file lyra_terrain_canvas.cc.
References ApplyAuthoring(), and status_.
Referenced by ApplyPropertyDraft(), DrawEdgeConnections(), DrawProperties(), yaze::editor::OverworldEditor::EditProjectMapAuthoring(), HandleEntityInput(), and SetGameplayArea().

| absl::Status yaze::editor::LyraTerrainCanvas::SetGameplayArea | ( | int | map_id, |
| std::optional< core::LyraGameplayAreaSize > | size, | ||
| zelda3::Overworld & | overworld, | ||
| UndoManager & | history ) |
Definition at line 502 of file lyra_terrain_canvas.cc.
References ASSIGN_OR_RETURN, document_, EditAuthoring(), and yaze::core::LyraGameplayAreaFootprint().
Referenced by DrawGameplayArea().

| absl::Status yaze::editor::LyraTerrainCanvas::PrepareMapAssets | ( | zelda3::Overworld & | overworld, |
| int | state ) |
Definition at line 404 of file lyra_terrain_canvas.cc.
References asset_state_, assets_valid_, ASSIGN_OR_RETURN, authoring_assets_status_, CheckAssetSources(), displayed_assets_, document_, yaze::zelda3::LyraMapAssetKey(), map_assets_, ResolveMapAssets(), RETURN_IF_ERROR, validated_authoring_, and ValidateMapAssets().

| gfx::Bitmap & yaze::editor::LyraTerrainCanvas::MapAtlas | ( | int | map_id | ) |
Definition at line 443 of file lyra_terrain_canvas.cc.
References assets_valid_, atlas_, displayed_assets_, and unavailable_atlas_.
Referenced by DrawSpecialWorld(), and yaze::editor::OverworldEditor::InitTilePaintingManager().
| gfx::Bitmap * yaze::editor::LyraTerrainCanvas::MapGraphics | ( | int | map_id | ) |
Definition at line 451 of file lyra_terrain_canvas.cc.
References assets_valid_, and displayed_assets_.
| void yaze::editor::LyraTerrainCanvas::DrawProperties | ( | int | map_id, |
| int & | state, | ||
| zelda3::Overworld & | overworld, | ||
| UndoManager & | history ) |
Definition at line 211 of file lyra_map_authoring_ui.cc.
References yaze::core::LyraMapProperties::animated_sheet, ApplyPropertyDraft(), yaze::core::LyraMapProperties::background_palette, copy_failed_, copy_message_, copy_source_map_, CopyNativeGraphicsSettings(), document_, DrawEdgeConnections(), DrawGameplayArea(), EditAuthoring(), yaze::core::LyraAuthoringState::flight_points, FormatMapIds(), yaze::core::LyraMapProperties::graphics_sheets, ICON_MD_INFO, yaze::gui::WidgetIdRegistry::Instance(), yaze::core::LyraMapProperties::main_palette, yaze::core::LyraAuthoringState::maps, yaze::core::LyraMapProperties::message_id, yaze::core::LyraMapProperties::music, new_sprite_type_, yaze::zelda3::Overworld::overworld_map(), yaze::core::LyraMapProperties::palette_set, PendingPropertyMaps(), placement_kind_, placement_state_, placement_type_, property_map_, PropertyConflict(), PropertyDraftFor(), PropertyPending(), yaze::gui::WidgetIdRegistry::RegisterWidget(), RevertPropertyDraft(), sprite_filter_, yaze::core::LyraMapProperties::sprite_graphics, yaze::core::LyraMapProperties::sprite_palettes, and status_.
Referenced by yaze::editor::OverworldEditor::Initialize().
|
inline |
Definition at line 84 of file lyra_terrain_canvas.h.
References document_, and placement_kind_.
Referenced by yaze::editor::OverworldEditor::Initialize().
| void yaze::editor::LyraTerrainCanvas::DrawSpritePreview | ( | const gui::CanvasRuntime & | canvas, |
| int | map_id, | ||
| const core::LyraSpritePlacement & | sprite ) |
Definition at line 459 of file lyra_terrain_canvas.cc.
References yaze::gui::CanvasRuntime::canvas_p0, yaze::gfx::Arena::CREATE, displayed_assets_, yaze::gui::CanvasRuntime::draw_list, yaze::gfx::Arena::Get(), yaze::zelda3::Sprite::preview_bounds(), yaze::zelda3::Sprite::preview_graphics(), yaze::gfx::Arena::QueueTextureCommand(), yaze::zelda3::Sprite::RenderPreviewGraphics(), yaze::gui::CanvasRuntime::scale, yaze::gui::CanvasRuntime::scrolling, yaze::core::LyraSpritePlacement::sprite_id, yaze::core::LyraSpritePlacement::x, and yaze::core::LyraSpritePlacement::y.
Referenced by DrawEntities().
| void yaze::editor::LyraTerrainCanvas::DrawEntities | ( | const gui::CanvasRuntime & | canvas, |
| int | world, | ||
| int | state ) |
Definition at line 918 of file lyra_map_authoring_ui.cc.
References yaze::gui::CanvasRuntime::canvas_p0, document_, yaze::gui::CanvasRuntime::draw_list, DrawSpritePreview(), yaze::gui::CanvasRuntime::scale, and yaze::gui::CanvasRuntime::scrolling.

| void yaze::editor::LyraTerrainCanvas::HandleEntityInput | ( | const gui::CanvasRuntime & | canvas, |
| int | world, | ||
| zelda3::Overworld & | overworld, | ||
| UndoManager & | history ) |
Definition at line 997 of file lyra_map_authoring_ui.cc.
References yaze::gui::CanvasRuntime::canvas_p0, document_, EditAuthoring(), yaze::core::LyraAuthoringState::flight_points, yaze::gui::CanvasRuntime::hovered, yaze::core::LyraAuthoringState::maps, placement_kind_, placement_state_, placement_type_, yaze::gui::CanvasRuntime::scale, and yaze::gui::CanvasRuntime::scrolling.

|
private |
Definition at line 682 of file lyra_terrain_canvas.cc.
References document_, yaze::editor::LyraTerrainCanvas::PropertyDraft::draft, and property_drafts_.
Referenced by ApplyPropertyDraft(), and DrawProperties().
|
private |
Definition at line 690 of file lyra_terrain_canvas.cc.
References document_, and property_drafts_.
Referenced by DrawProperties(), PendingPropertyMaps(), and PropertyConflict().
|
private |
Definition at line 696 of file lyra_terrain_canvas.cc.
References document_, property_drafts_, and PropertyPending().
Referenced by ApplyPropertyDraft(), and DrawProperties().

|
private |
Definition at line 702 of file lyra_terrain_canvas.cc.
References PropertyPending().
Referenced by dirty(), DrawProperties(), and ValidateSave().

|
staticprivate |
Definition at line 711 of file lyra_terrain_canvas.cc.
Referenced by DrawGameplayArea(), DrawProperties(), and ValidateSave().
|
private |
Definition at line 718 of file lyra_terrain_canvas.cc.
References document_, EditAuthoring(), yaze::core::LyraAuthoringState::maps, PropertyConflict(), PropertyDraftFor(), RETURN_IF_ERROR, and RevertPropertyDraft().
Referenced by DrawProperties().

|
private |
Definition at line 737 of file lyra_terrain_canvas.cc.
References document_, and property_drafts_.
Referenced by ApplyPropertyDraft(), and DrawProperties().
|
private |
Definition at line 786 of file lyra_map_authoring_ui.cc.
References document_, yaze::core::LyraAuthoringState::edge_connections, EditAuthoring(), yaze::gui::WidgetIdRegistry::Instance(), yaze::core::LyraEdgeMapsAdjacent(), yaze::core::LyraEdgeConnection::passage, and yaze::gui::WidgetIdRegistry::RegisterWidget().
Referenced by DrawProperties().

|
private |
Definition at line 162 of file lyra_map_authoring_ui.cc.
References document_, FormatMapIds(), yaze::gui::WidgetIdRegistry::Instance(), yaze::core::LyraGameplayAreaFootprint(), yaze::gui::WidgetIdRegistry::RegisterWidget(), SetGameplayArea(), and status_.
Referenced by DrawProperties().
|
private |
Definition at line 541 of file lyra_terrain_canvas.cc.
References ASSIGN_OR_RETURN, CheckAssetSources(), document_, FinishStroke(), yaze::core::LyraAuthoringState::maps, yaze::editor::UndoManager::Push(), ResolveMapAssets(), and RETURN_IF_ERROR.
Referenced by EditAuthoring().

|
private |
Definition at line 185 of file lyra_terrain_canvas.cc.
References ASSIGN_OR_RETURN, yaze::gfx::Arena::CREATE, yaze::gfx::Arena::Get(), yaze::zelda3::Overworld::mutable_tiles16(), yaze::gfx::Arena::QueueTextureCommand(), yaze::zelda3::ResolveLyraMapAssets(), RETURN_IF_ERROR, and yaze::zelda3::Overworld::tiles16().
Referenced by ApplyAuthoring(), CopyNativeGraphicsSettings(), PrepareMapAssets(), and ValidateMapAssets().
|
private |
Definition at line 217 of file lyra_terrain_canvas.cc.
References yaze::core::LyraMapProperties::animated_sheet, yaze::core::LyraMapProperties::graphics_sheets, yaze::zelda3::Overworld::is_loaded(), yaze::zelda3::Overworld::is_lyra_preview(), yaze::zelda3::kCustomTileGroups, yaze::zelda3::kOverworldSpritePaletteGroup, yaze::core::LyraMapProperties::main_palette, yaze::zelda3::Overworld::overworld_map(), yaze::core::LyraMapProperties::palette_set, ResolveMapAssets(), RETURN_IF_ERROR, yaze::zelda3::Overworld::rom(), yaze::Rom::size(), yaze::core::LyraMapProperties::sprite_graphics, and yaze::core::LyraMapProperties::sprite_palettes.
Referenced by DrawProperties().
|
private |
Definition at line 343 of file lyra_terrain_canvas.cc.
References assets_valid_, BindSource(), displayed_assets_, document_, map_assets_, yaze::zelda3::Overworld::overworld_map(), yaze::zelda3::Overworld::rom(), source_graphics_, source_metadata_, source_rom_, source_status_, yaze::gfx::TileInfoToWord(), yaze::zelda3::Overworld::tiles16(), and validated_authoring_.
Referenced by ApplyAuthoring(), and PrepareMapAssets().
|
private |
Definition at line 322 of file lyra_terrain_canvas.cc.
References ASSIGN_OR_RETURN, yaze::zelda3::LyraMapAssetKey(), yaze::core::LyraAuthoringState::maps, and ResolveMapAssets().
Referenced by Create(), Load(), PrepareMapAssets(), and ValidateSave().

|
private |
Definition at line 171 of file lyra_terrain_canvas.cc.
References atlas(), and yaze::zelda3::BindLyraTerrainSource().
Referenced by CheckAssetSources(), Create(), Load(), and ValidateSave().

|
private |
Definition at line 662 of file lyra_terrain_canvas.cc.
References atlas(), atlas_, yaze::gfx::Arena::CREATE, document(), document_, yaze::gfx::Arena::Get(), yaze::gfx::Arena::QueueTextureCommand(), Reset(), source_bytes_, source_path_, and unpublished_.
|
private |
Definition at line 885 of file lyra_terrain_canvas.cc.
References atlas(), yaze::gfx::Bitmap::height(), and yaze::gfx::Bitmap::texture().
Referenced by DrawSpecialWorld().

|
private |
Definition at line 851 of file lyra_terrain_canvas.cc.
References yaze::editor::TileBrush::at(), brush_, document_, yaze::editor::TileBrush::height, pattern_height_, pattern_width_, status_, and yaze::editor::TileBrush::width.
Referenced by PaintLine().

|
private |
Definition at line 862 of file lyra_terrain_canvas.cc.
References last_cell_, PaintStamp(), and status_.
Referenced by PaintPattern().

|
friend |
Definition at line 94 of file lyra_terrain_canvas.h.
|
private |
Definition at line 156 of file lyra_terrain_canvas.h.
Referenced by ApplyAuthoring(), ApplyPropertyDraft(), CheckAssetSources(), Create(), dirty(), document(), DrawEdgeConnections(), DrawEntities(), DrawGameplayArea(), DrawProperties(), DrawSpecialWorld(), entity_placement_active(), FinishStroke(), HandleEntityInput(), InstallDocument(), loaded(), PaintPattern(), PaintStamp(), PrepareMapAssets(), PropertyConflict(), PropertyDraftFor(), PropertyPending(), Reset(), RevertPropertyDraft(), Save(), SaveAs(), SetGameplayArea(), and ValidateSave().
|
private |
Definition at line 157 of file lyra_terrain_canvas.h.
Referenced by atlas(), atlas(), DrawSpecialWorld(), InstallDocument(), MapAtlas(), and Reset().
|
private |
Definition at line 158 of file lyra_terrain_canvas.h.
Referenced by Create(), InstallDocument(), Load(), Reset(), Save(), SaveAs(), and ValidateSave().
|
private |
Definition at line 159 of file lyra_terrain_canvas.h.
Referenced by InstallDocument(), Reset(), Save(), and SaveAs().
|
private |
Definition at line 160 of file lyra_terrain_canvas.h.
Referenced by dirty(), InstallDocument(), Reset(), Save(), and SaveAs().
|
private |
Definition at line 161 of file lyra_terrain_canvas.h.
Referenced by Create(), dirty(), Open(), ProjectSaveCommitted(), Reset(), Save(), and SaveAs().
|
private |
Definition at line 162 of file lyra_terrain_canvas.h.
Referenced by FinishStroke(), PaintPattern(), Reset(), and stroke_active().
|
private |
Definition at line 163 of file lyra_terrain_canvas.h.
Referenced by FinishStroke(), PaintLine(), PaintPattern(), and Reset().
|
private |
Definition at line 164 of file lyra_terrain_canvas.h.
Referenced by PaintPattern(), PaintStamp(), and Reset().
|
private |
Definition at line 165 of file lyra_terrain_canvas.h.
Referenced by PaintPattern(), and PaintStamp().
|
private |
Definition at line 166 of file lyra_terrain_canvas.h.
Referenced by PaintPattern(), and PaintStamp().
|
private |
Definition at line 167 of file lyra_terrain_canvas.h.
Referenced by DrawGameplayArea(), DrawProperties(), EditAuthoring(), FinishStroke(), PaintLine(), PaintPattern(), PaintStamp(), and Reset().
|
private |
Definition at line 168 of file lyra_terrain_canvas.h.
Referenced by CheckAssetSources(), PrepareMapAssets(), and Reset().
|
private |
Definition at line 169 of file lyra_terrain_canvas.h.
Referenced by CheckAssetSources(), DrawSpritePreview(), MapAtlas(), MapGraphics(), PrepareMapAssets(), and Reset().
|
private |
Definition at line 170 of file lyra_terrain_canvas.h.
Referenced by PrepareMapAssets().
|
private |
Definition at line 171 of file lyra_terrain_canvas.h.
Referenced by MapAtlas().
|
private |
Definition at line 172 of file lyra_terrain_canvas.h.
Referenced by CheckAssetSources(), and Reset().
|
private |
Definition at line 172 of file lyra_terrain_canvas.h.
Referenced by CheckAssetSources(), and Reset().
|
private |
Definition at line 173 of file lyra_terrain_canvas.h.
Referenced by CheckAssetSources(), and Reset().
|
private |
Definition at line 174 of file lyra_terrain_canvas.h.
Referenced by CheckAssetSources(), and Reset().
|
private |
Definition at line 175 of file lyra_terrain_canvas.h.
Referenced by PrepareMapAssets(), and Reset().
|
private |
Definition at line 176 of file lyra_terrain_canvas.h.
Referenced by CheckAssetSources(), PrepareMapAssets(), and Reset().
|
private |
Definition at line 177 of file lyra_terrain_canvas.h.
Referenced by CheckAssetSources(), MapAtlas(), MapGraphics(), PaintPattern(), PrepareMapAssets(), and Reset().
|
private |
Definition at line 179 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), and Reset().
|
private |
Definition at line 181 of file lyra_terrain_canvas.h.
Referenced by PropertyConflict(), PropertyDraftFor(), PropertyPending(), Reset(), and RevertPropertyDraft().
|
private |
Definition at line 182 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), and Reset().
|
private |
Definition at line 184 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), and Reset().
|
private |
Definition at line 185 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), and Reset().
|
private |
Definition at line 186 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), entity_placement_active(), HandleEntityInput(), and Reset().
|
private |
Definition at line 187 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), HandleEntityInput(), and Reset().
|
private |
Definition at line 188 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), HandleEntityInput(), and Reset().
|
private |
Definition at line 190 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), and Reset().
|
private |
Definition at line 191 of file lyra_terrain_canvas.h.
Referenced by DrawProperties(), and Reset().
|
private |
Definition at line 192 of file lyra_terrain_canvas.h.
Referenced by Reset().
|
private |
Definition at line 193 of file lyra_terrain_canvas.h.
Referenced by Reset().
|
private |
Definition at line 194 of file lyra_terrain_canvas.h.
Referenced by Reset().
|
private |
Definition at line 195 of file lyra_terrain_canvas.h.
Referenced by Reset().