yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
draw_routine_symbology.h
Go to the documentation of this file.
1#ifndef YAZE_ZELDA3_DUNGEON_DRAW_ROUTINES_DRAW_ROUTINE_SYMBOLOGY_H
2#define YAZE_ZELDA3_DUNGEON_DRAW_ROUTINES_DRAW_ROUTINE_SYMBOLOGY_H
3
4#include <cstdint>
5#include <string>
6
7namespace yaze {
8namespace zelda3 {
9
10struct DrawRoutineInfo;
11
27 std::string badge; // One or two characters, for a grid cell.
28 std::string family; // Human-readable routine family.
29 bool dual_layer = false; // Routine writes to BG1 and BG2.
30 int base_width = 0; // Base pattern width in tiles (0 = unknown).
31 int base_height = 0; // Base pattern height in tiles (0 = unknown).
32};
33
34// Returns the symbology for `info`, or an "unknown" symbology when null.
36
37// Returns the symbology for whichever routine draws `object_id`, or an
38// "unmapped" symbology when the registry has no routine for it.
40
41} // namespace zelda3
42} // namespace yaze
43
44#endif // YAZE_ZELDA3_DUNGEON_DRAW_ROUTINES_DRAW_ROUTINE_SYMBOLOGY_H
DrawRoutineSymbology GetSymbologyForRoutine(const DrawRoutineInfo *info)
DrawRoutineSymbology GetSymbologyForObject(int16_t object_id)
Metadata about a draw routine.
Compact, human-readable identity for an object's draw routine.