234 int FindFirstBit(uint32 x); |
234 int FindFirstBit(uint32 x); |
235 void ShowHighscoreTable(int difficulty, int8 rank); |
235 void ShowHighscoreTable(int difficulty, int8 rank); |
236 void ShowEndGameChart(void); |
236 void ShowEndGameChart(void); |
237 TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng); |
237 TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng); |
238 |
238 |
239 enum SaveOrLoadResult { |
|
240 SL_OK = 0, // completed successfully |
|
241 SL_ERROR = 1, // error that was caught before internal structures were modified |
|
242 SL_REINIT = 2, // error that was caught in the middle of updating game state, need to clear it. (can only happen during load) |
|
243 }; |
|
244 enum SaveOrLoadMode { |
|
245 SL_INVALID = -1, |
|
246 SL_LOAD = 0, |
|
247 SL_SAVE = 1, |
|
248 SL_OLD_LOAD = 2, |
|
249 }; |
|
250 |
|
251 int SaveOrLoad(const char *filename, int mode); |
|
252 |
|
253 void AfterLoadTown(void); |
239 void AfterLoadTown(void); |
254 void GenRandomNewGame(uint32 rnd1, uint32 rnd2); |
240 void GenRandomNewGame(uint32 rnd1, uint32 rnd2); |
255 void StartScenarioEditor(uint32 rnd1, uint32 rnd2); |
241 void StartScenarioEditor(uint32 rnd1, uint32 rnd2); |
256 void AskExitGame(void); |
242 void AskExitGame(void); |
257 void AskExitToGameMenu(void); |
243 void AskExitToGameMenu(void); |