yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
gfx_sheet_inventory.cc File Reference
#include "zelda3/gfx_sheet_inventory.h"
#include <algorithm>
#include <cctype>
#include <regex>
#include <sstream>
#include <utility>
#include "absl/strings/str_format.h"
#include "app/gfx/util/compression.h"
#include "nlohmann/json.hpp"
#include "rom/snes.h"
#include "util/rom_hash.h"
#include "zelda3/dungeon/dungeon_rom_addresses.h"
#include "zelda3/game_data.h"
#include "zelda3/overworld/overworld.h"
#include "zelda3/overworld/overworld_map.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::zelda3
 Zelda 3 specific classes and functions.
 
namespace  yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}
 

Functions

template<size_t N>
bool yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::Contains (const std::array< uint8_t, N > &values, int value)
 
std::vector< std::vector< std::string > > yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::ParseCsv (const std::string &text)
 
absl::StatusOr< GfxSheetInventory > yaze::zelda3::BuildGfxSheetInventory (const Rom &rom, const std::map< int, OverworldAreaGfxInfo > &areas, const std::map< int, RoomGfxInfo > &rooms, const GfxSheetInventoryOptions &options)
 
std::map< int, OverworldAreaGfxInfo > yaze::zelda3::CollectOverworldAreaGfx (Rom &rom, GameData *game_data)
 
std::map< int, RoomGfxInfo > yaze::zelda3::CollectRoomGfx (const Rom &rom)
 
GfxGroupUsage yaze::zelda3::FindSpritesetUsage (int spriteset, const std::map< int, OverworldAreaGfxInfo > &areas, const std::map< int, RoomGfxInfo > &rooms)
 
GfxGroupUsage yaze::zelda3::FindRoomsetUsage (int roomset, const std::map< int, OverworldAreaGfxInfo > &areas, const std::map< int, RoomGfxInfo > &rooms)
 
absl::StatusOr< RoomsetUsageReport > yaze::zelda3::DescribeRoomsetUsage (Rom &rom, GameData &game_data, int roomset, const std::map< int, RoomGfxInfo > &rooms, const Overworld *live_overworld)
 
absl::StatusOr< MainGroupUsageReport > yaze::zelda3::DescribeMainGroupUsage (Rom &rom, GameData &game_data, int group, int slot, const std::map< int, RoomGfxInfo > &rooms, const std::map< int, uint8_t > &explicit_room_main, const Overworld *live_overworld)
 
const char * yaze::zelda3::GfxSheetInventoryKindName (GfxSheetStorageKind kind)
 
nlohmann::json yaze::zelda3::GfxSheetInventoryToJson (const GfxSheetInventory &inventory)
 
std::map< uint8_t, std::set< std::string > > yaze::zelda3::ParseSpritesetLabelCsv (const std::string &csv_text)
 

Variables

constexpr uint32_t yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::kSpritesetTable = 0x5B57
 
constexpr int yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::kSpritesetCount = 144
 
constexpr uint32_t yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::kRoomBlocksetTable = 0x5D97
 
constexpr int yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::kRoomBlocksetCount = 82
 
constexpr uint32_t yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::kMainBlocksetPointer = 0x6237
 
constexpr int yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::kMainBlocksetCount = 37
 
constexpr size_t yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::kTileBytes3bpp = 24
 
constexpr size_t yaze::zelda3::anonymous_namespace{gfx_sheet_inventory.cc}::kMeasureLimit = 0x8000