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

Context struct holding all data dependencies for map refresh operations. All pointers/references must remain valid for the lifetime of the MapRefreshCoordinator. More...

#include <map_refresh_coordinator.h>

Public Attributes

Romrom = nullptr
 
zelda3::Overworldoverworld = nullptr
 
std::array< gfx::Bitmap, zelda3::kNumOverworldMaps > * maps_bmp = nullptr
 
gfx::Tilemaptile16_blockset = nullptr
 
gfx::Bitmapcurrent_gfx_bmp = nullptr
 
gfx::BitmapTablecurrent_graphics_set = nullptr
 
gfx::SnesPalettepalette = nullptr
 
gfx::IRendererrenderer = nullptr
 
Tile16Editortile16_editor = nullptr
 
int * current_world = nullptr
 
int * current_map = nullptr
 
int * current_blockset = nullptr
 
int * game_state = nullptr
 
bool * map_blockset_loaded = nullptr
 
absl::Status * status = nullptr
 
std::function< void(int map_index)> ensure_map_texture
 Callback to ensure a map texture is created (stays in OverworldEditor)
 

Detailed Description

Context struct holding all data dependencies for map refresh operations. All pointers/references must remain valid for the lifetime of the MapRefreshCoordinator.

Definition at line 41 of file map_refresh_coordinator.h.

Member Data Documentation

◆ rom

◆ overworld

◆ maps_bmp

◆ tile16_blockset

◆ current_gfx_bmp

◆ current_graphics_set

gfx::BitmapTable* yaze::editor::MapRefreshContext::current_graphics_set = nullptr

◆ palette

◆ renderer

gfx::IRenderer* yaze::editor::MapRefreshContext::renderer = nullptr

◆ tile16_editor

◆ current_world

◆ current_map

◆ current_blockset

◆ game_state

int* yaze::editor::MapRefreshContext::game_state = nullptr

◆ map_blockset_loaded

bool* yaze::editor::MapRefreshContext::map_blockset_loaded = nullptr

◆ status

absl::Status* yaze::editor::MapRefreshContext::status = nullptr

◆ ensure_map_texture

std::function<void(int map_index)> yaze::editor::MapRefreshContext::ensure_map_texture

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