OpenTTD Source 20260721-master-g25ec12c62d
saveload_type.h File Reference

Types often used outside the saveload code related to saving and loading games. More...

Go to the source code of this file.

Typedefs

using SaveLoadTable = std::span<const struct SaveLoad>
 A table of SaveLoad entries.

Enumerations

enum class  SaveLoadResult : uint8_t { Ok , Error , ReInit }
 Save or load result codes. More...

Detailed Description

Types often used outside the saveload code related to saving and loading games.

Definition in file saveload_type.h.

Typedef Documentation

◆ SaveLoadTable

using SaveLoadTable = std::span<const struct SaveLoad>

A table of SaveLoad entries.

Definition at line 21 of file saveload_type.h.

Enumeration Type Documentation

◆ SaveLoadResult

enum class SaveLoadResult : uint8_t
strong

Save or load result codes.

Enumerator
Ok 

completed successfully

Error 

error that was caught before internal structures were modified

ReInit 

error that was caught in the middle of updating game state, need to clear it. (can only happen during load)

Definition at line 14 of file saveload_type.h.