2020-01-07 21:31:34 +01:00
|
|
|
#ifndef SAVE_H
|
|
|
|
#define SAVE_H
|
|
|
|
|
2020-01-15 20:42:51 +01:00
|
|
|
#define WORLD_RUN_ENTRY 9 // 8 niveaux + mode run
|
2020-01-07 21:31:34 +01:00
|
|
|
#define NB_MONDES 5
|
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
void saveLoad(); // Not yet ! will use BFile
|
|
|
|
void saveWrite(); // neither :E
|
2020-01-07 21:31:34 +01:00
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
int saveGetScore(int world, int level); // return the highest score for the correspondig challenge
|
|
|
|
void saveSetScore(int world, int level, unsigned int score);
|
2020-01-07 21:31:34 +01:00
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
int saveGetTime(int world, int level); // return the lowest time for the corresponding challenge
|
|
|
|
void saveSetTime(int world, int level, unsigned int time);
|
2020-01-07 21:31:34 +01:00
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
int saveGetCoins(int world, int level); // return the highest number of coins for the correspondig challenge
|
|
|
|
void saveSetCoins(int world, int level, unsigned int coins);
|
2020-01-25 11:54:39 +01:00
|
|
|
|
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
unsigned int saveGetProgressStatus();
|
2020-01-08 15:43:58 +01:00
|
|
|
|
2020-02-15 19:35:49 +01:00
|
|
|
#endif
|