yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
minecart_object_semantics.h
Go to the documentation of this file.
1
#ifndef YAZE_ZELDA3_DUNGEON_MINECART_OBJECT_SEMANTICS_H_
2
#define YAZE_ZELDA3_DUNGEON_MINECART_OBJECT_SEMANTICS_H_
3
4
namespace
yaze::zelda3
{
5
6
// Oracle overloads canonical dungeon object 0x31's size nibble as a custom
7
// graphics subtype. Slots 13 and 15 are decorations, not minecart rails.
8
inline
bool
IsMinecartTrackGraphicsSubtype
(
int
object_id,
int
subtype) {
9
if
(object_id != 0x31) {
10
return
true
;
11
}
12
return
subtype >= 0 && (subtype <= 12 || subtype == 14);
13
}
14
15
}
// namespace yaze::zelda3
16
17
#endif
// YAZE_ZELDA3_DUNGEON_MINECART_OBJECT_SEMANTICS_H_
yaze::zelda3
Zelda 3 specific classes and functions.
Definition
dungeon_rendering_helpers.h:14
yaze::zelda3::IsMinecartTrackGraphicsSubtype
bool IsMinecartTrackGraphicsSubtype(int object_id, int subtype)
Definition
minecart_object_semantics.h:8
src
zelda3
dungeon
minecart_object_semantics.h
Generated by
1.10.0