mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-22 15:08:09 -05:00
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>
23 lines
777 B
C
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
|