yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
object_render_routing.h
Go to the documentation of this file.
1
#ifndef YAZE_ZELDA3_DUNGEON_OBJECT_RENDER_ROUTING_H_
2
#define YAZE_ZELDA3_DUNGEON_OBJECT_RENDER_ROUTING_H_
3
4
namespace
yaze
{
5
namespace
zelda3 {
6
7
// Describes how a built-in object's draw routine chooses its destination
8
// tilemap(s). This is intentionally separate from RoomObject::layer_, which
9
// remains the stored room-object stream index used for serialization and draw
10
// order. Custom-object overrides are resolved before built-in routine routing.
11
enum class
ObjectRenderRouting
{
12
kStoredPlacement
,
13
kFixedBg1
,
14
kFixedBg2
,
15
kFullBothBg1Bg2
,
16
kMixedBg1Bg2
,
17
};
18
19
namespace
object_render_routing {
20
21
inline
constexpr
bool
IsFullBothAutoStairsObject
(
int
object_id) {
22
return
object_id == 0x130 || object_id == 0x131 || object_id == 0xF9B ||
23
object_id == 0xF9C;
24
}
25
26
inline
constexpr
bool
IsFixedBg1StraightInterroomObject
(
int
object_id) {
27
return
object_id >= 0xF9E && object_id <= 0xFA1;
28
}
29
30
inline
constexpr
bool
IsMixedStraightInterroomObject
(
int
object_id) {
31
return
object_id >= 0xFA6 && object_id <= 0xFA9;
32
}
33
34
inline
constexpr
bool
IsSouthMixedStraightInterroomObject
(
int
object_id) {
35
return
object_id == 0xFA8 || object_id == 0xFA9;
36
}
37
38
}
// namespace object_render_routing
39
}
// namespace zelda3
40
}
// namespace yaze
41
42
#endif
// YAZE_ZELDA3_DUNGEON_OBJECT_RENDER_ROUTING_H_
yaze::zelda3::object_render_routing::IsFullBothAutoStairsObject
constexpr bool IsFullBothAutoStairsObject(int object_id)
Definition
object_render_routing.h:21
yaze::zelda3::object_render_routing::IsSouthMixedStraightInterroomObject
constexpr bool IsSouthMixedStraightInterroomObject(int object_id)
Definition
object_render_routing.h:34
yaze::zelda3::object_render_routing::IsMixedStraightInterroomObject
constexpr bool IsMixedStraightInterroomObject(int object_id)
Definition
object_render_routing.h:30
yaze::zelda3::object_render_routing::IsFixedBg1StraightInterroomObject
constexpr bool IsFixedBg1StraightInterroomObject(int object_id)
Definition
object_render_routing.h:26
yaze::zelda3::ObjectRenderRouting
ObjectRenderRouting
Definition
object_render_routing.h:11
yaze::zelda3::ObjectRenderRouting::kMixedBg1Bg2
@ kMixedBg1Bg2
yaze::zelda3::ObjectRenderRouting::kFixedBg2
@ kFixedBg2
yaze::zelda3::ObjectRenderRouting::kFixedBg1
@ kFixedBg1
yaze::zelda3::ObjectRenderRouting::kFullBothBg1Bg2
@ kFullBothBg1Bg2
yaze::zelda3::ObjectRenderRouting::kStoredPlacement
@ kStoredPlacement
yaze
Definition
patch_export_usage.cc:8
src
zelda3
dungeon
object_render_routing.h
Generated by
1.10.0