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
4namespace yaze {
5namespace 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.
18
19namespace object_render_routing {
20
21inline constexpr bool IsFullBothAutoStairsObject(int object_id) {
22 return object_id == 0x130 || object_id == 0x131 || object_id == 0xF9B ||
23 object_id == 0xF9C;
24}
25
26inline constexpr bool IsFixedBg1StraightInterroomObject(int object_id) {
27 return object_id >= 0xF9E && object_id <= 0xFA1;
28}
29
30inline constexpr bool IsMixedStraightInterroomObject(int object_id) {
31 return object_id >= 0xFA6 && object_id <= 0xFA9;
32}
33
34inline 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_
constexpr bool IsFullBothAutoStairsObject(int object_id)
constexpr bool IsSouthMixedStraightInterroomObject(int object_id)
constexpr bool IsMixedStraightInterroomObject(int object_id)
constexpr bool IsFixedBg1StraightInterroomObject(int object_id)