Refactor Overworld blockset types and update related function signatures

This commit is contained in:
scawful
2024-12-31 16:40:01 -05:00
parent 9f67e0c399
commit 6d2de44b94
8 changed files with 86 additions and 91 deletions

View File

@@ -1,32 +1,18 @@
#ifndef YAZE_APP_ZELDA3_COMMON_H
#define YAZE_APP_ZELDA3_COMMON_H
#include <vector>
#include <cstdint>
#include <string>
#include <string_view>
namespace yaze {
/**
* @namespace yaze::zelda3
* @brief Zelda 3 specific classes and functions.
*/
namespace zelda3 {
/**
* @brief Represents tile32 data for the overworld.
*/
using OWBlockset = std::vector<std::vector<uint16_t>>;
/**
* @brief Overworld map tile32 data.
*/
struct OWMapTiles {
OWBlockset light_world; // 64 maps
OWBlockset dark_world; // 64 maps
OWBlockset special_world; // 32 maps
};
using OWMapTiles = struct OWMapTiles;
/**
* @class GameEntity
* @brief Base class for all overworld and dungeon entities.