mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-21 17:55:13 -05:00
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>
19 lines
680 B
C
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
|