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
4namespace 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.
8inline 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_
Zelda 3 specific classes and functions.
bool IsMinecartTrackGraphicsSubtype(int object_id, int subtype)