pokeplatinum/include/terrain_attributes.h
Kuruyia f03c5fb067 Document terrain attributes module
This documents the `unk_02054BD0.c` file, which is in charge of loading
the terrain attributes from the land data NARC for some map load modes,
separately from the land data manager.

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

23 lines
777 B
C

#ifndef POKEPLATINUM_TERRAIN_ATTRIBUTES_H
#define POKEPLATINUM_TERRAIN_ATTRIBUTES_H
#include <nitro/types.h>
#include "constants/field/map.h"
#include "field/field_system_decl.h"
#define TERRAIN_ATTRIBUTES_MAP_MATRIX_COUNT 225
#define TERRAIN_ATTRIBUTES_MAX_BLOCK_COUNT 16
typedef struct TerrainAttributes {
u8 mapMatrixIndexToBlockIndex[TERRAIN_ATTRIBUTES_MAP_MATRIX_COUNT];
u16 terrainAttributes[TERRAIN_ATTRIBUTES_COUNT * TERRAIN_ATTRIBUTES_MAX_BLOCK_COUNT];
} TerrainAttributes;
void TerrainAttributes_New(FieldSystem *fieldSystem, const u8 blockCount);
void TerrainAttributes_Free(FieldSystem *fieldSystem);
const u16 *TerrainAttributes_Get(const u32 mapMatrixIndex, const TerrainAttributes *terrainAttributes);
#endif // POKEPLATINUM_TERRAIN_ATTRIBUTES_H