pokeplatinum/include/struct_defs/map_load_mode.h
Kuruyia 45c3c1a000 Document terrain attributes module-related map load mode fields
This documents the following fields in the map load mode struct:

- `useSeparateTerrainAttributes`: whether to load terrain attributes
  using the separate terrain attributes module.
- `separateTerrainAttributesBlockCount`: the number of terrain
  attributes block to load when using the separate terrain attributes
  module. Each block corresponds to the terrain attributes contained in
  a land data file.

Note: when using the simple terrain collisions in a map load mode, it is
mandatory to also use the separate terrain attributes module, as this is
where the terrain collision manager will get terrain attributes.

Signed-off-by: Kuruyia <github@kuruyia.net>
2025-03-30 17:32:07 +02:00

16 lines
435 B
C

#ifndef POKEPLATINUM_STRUCT_MAP_LOAD_MODE_H
#define POKEPLATINUM_STRUCT_MAP_LOAD_MODE_H
typedef struct MapLoadMode {
u32 fieldBottomScreen : 4;
u32 skipMapAttributes : 4;
u32 useSimpleTerrainCollisions : 4;
u32 unk_00_12 : 4;
u32 useSeparateTerrainAttributes : 4;
u32 unk_00_20 : 4;
u32 separateTerrainAttributesBlockCount : 8;
u32 unk_04;
} MapLoadMode;
#endif // POKEPLATINUM_STRUCT_MAP_LOAD_MODE_H