yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
inventory.h
Go to the documentation of this file.
1#ifndef YAZE_APP_ZELDA3_INVENTORY_H
2#define YAZE_APP_ZELDA3_INVENTORY_H
3
4#include "app/gfx/bitmap.h"
6#include "app/gfx/snes_tile.h"
7#include "app/gui/canvas.h"
8#include "app/rom.h"
9
10namespace yaze {
11namespace app {
12namespace zelda3 {
13namespace screen {
14
15constexpr int kInventoryStart = 0x6564A;
16constexpr int kBowItemPos = 0x6F631;
17
18class Inventory : public SharedRom {
19 public:
20 auto Bitmap() const { return bitmap_; }
21 auto Tilesheet() const { return tilesheets_bmp_; }
22 auto Palette() const { return palette_; }
23
24 absl::Status Create();
25
26 private:
27 absl::Status BuildTileset();
28
29 std::vector<uint8_t> data_;
31
32 std::vector<uint8_t> tilesheets_;
33 std::vector<uint8_t> test_;
36
38 std::vector<gfx::TileInfo> tiles_;
39};
40
41} // namespace screen
42} // namespace zelda3
43} // namespace app
44} // namespace yaze
45
46#endif // YAZE_APP_ZELDA3_INVENTORY_H
A class to hold a shared pointer to a Rom object.
Definition rom.h:576
Represents a bitmap image.
Definition bitmap.h:67
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a canvas for drawing and manipulating graphics.
Definition canvas.h:34
std::vector< uint8_t > test_
Definition inventory.h:33
std::vector< uint8_t > tilesheets_
Definition inventory.h:32
std::vector< uint8_t > data_
Definition inventory.h:29
std::vector< gfx::TileInfo > tiles_
Definition inventory.h:38
constexpr int kBowItemPos
Definition inventory.h:16
constexpr int kInventoryStart
Definition inventory.h:15
Definition common.cc:22