add dungeon.h to incl
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
#include "app/rom.h"
|
#include "app/rom.h"
|
||||||
#include "app/zelda3/dungeon/room_object.h"
|
#include "app/zelda3/dungeon/room_object.h"
|
||||||
#include "app/zelda3/sprite/sprite.h"
|
#include "app/zelda3/sprite/sprite.h"
|
||||||
|
#include "incl/dungeon.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace app {
|
namespace app {
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include "app/rom.h"
|
#include "app/rom.h"
|
||||||
#include "app/zelda3/dungeon/room_object.h"
|
#include "app/zelda3/dungeon/room_object.h"
|
||||||
#include "app/zelda3/sprite/sprite.h"
|
#include "app/zelda3/sprite/sprite.h"
|
||||||
|
#include "incl/dungeon.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace app {
|
namespace app {
|
||||||
@@ -96,19 +97,6 @@ class DungeonDestination {
|
|||||||
uint8_t TargetLayer = 0;
|
uint8_t TargetLayer = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct object_door {
|
|
||||||
object_door() = default;
|
|
||||||
object_door(short id, uint8_t x, uint8_t y, uint8_t size, uint8_t layer)
|
|
||||||
: id_(id), x_(x), y_(y), size_(size), layer_(layer) {}
|
|
||||||
|
|
||||||
short id_;
|
|
||||||
uint8_t x_;
|
|
||||||
uint8_t y_;
|
|
||||||
uint8_t size_;
|
|
||||||
uint8_t type_;
|
|
||||||
uint8_t layer_;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ChestData {
|
struct ChestData {
|
||||||
ChestData() = default;
|
ChestData() = default;
|
||||||
ChestData(uchar i, bool s) : id_(i), size_(s){};
|
ChestData(uchar i, bool s) : id_(i), size_(s){};
|
||||||
@@ -658,4 +646,4 @@ constexpr std::string_view kEntranceNames[] = {
|
|||||||
} // namespace app
|
} // namespace app
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
27
src/incl/dungeon.h
Normal file
27
src/incl/dungeon.h
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
#ifndef YAZE_BASE_DUNGEON_H_
|
||||||
|
#define YAZE_BASE_DUNGEON_H_
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct object_door {
|
||||||
|
object_door() = default;
|
||||||
|
object_door(short id, uint8_t x, uint8_t y, uint8_t size, uint8_t layer)
|
||||||
|
: id_(id), x_(x), y_(y), size_(size), layer_(layer) {}
|
||||||
|
|
||||||
|
short id_;
|
||||||
|
uint8_t x_;
|
||||||
|
uint8_t y_;
|
||||||
|
uint8_t size_;
|
||||||
|
uint8_t type_;
|
||||||
|
uint8_t layer_;
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // YAZE_BASE_DUNGEON_H_
|
||||||
Reference in New Issue
Block a user