pokeplatinum/include/persisted_map_features.h
Kuruyia bb21d0d576 Document persisted map features
This documents the `unk_02027F50.c` file, which is in charge of managing
data used by some maps to be more dynamic, and that needs to be
persisted in the save file. Examples include Sunyshore Gym's bridges
rotation, Pastoria Gym's water level, Canalave Gym's platform
positions...

This also documents related code in the save data module, and names
constants used as IDs for identifying the map that is currently using
dynamic features.

Signed-off-by: Kuruyia <github@kuruyia.net>
2025-03-24 07:43:55 +01:00

19 lines
680 B
C

#ifndef POKEPLATINUM_PERSISTED_MAP_FEATURES_H
#define POKEPLATINUM_PERSISTED_MAP_FEATURES_H
#include <nitro/types.h>
#define PERSISTED_MAP_FEATURES_BUFFER_SIZE 32
typedef struct PersistedMapFeatures {
int id;
u8 buffer[PERSISTED_MAP_FEATURES_BUFFER_SIZE];
} PersistedMapFeatures;
void PersistedMapFeatures_Init(PersistedMapFeatures *persistedMapFeatures);
void *PersistedMapFeatures_InitWithID(PersistedMapFeatures *persistedMapFeatures, int id);
void *PersistedMapFeatures_GetBuffer(PersistedMapFeatures *persistedMapFeatures, int id);
int PersistedMapFeatures_GetID(const PersistedMapFeatures *persistedMapFeatures);
#endif // POKEPLATINUM_PERSISTED_MAP_FEATURES_H