Saveload: Add NamedSaveLoad to saveload_common.h

This commit is contained in:
Jonathan G Rennison 2024-07-13 11:53:18 +01:00
parent e57a7ad273
commit acfe8909b4
2 changed files with 2 additions and 1 deletions

View File

@ -13,9 +13,11 @@
#include "../strings_type.h"
struct SaveLoad;
struct NamedSaveLoad;
/** A table of SaveLoad entries. */
using SaveLoadTable = std::span<const SaveLoad>;
using NamedSaveLoadTable = std::span<const NamedSaveLoad>;
namespace upstream_sl {
struct SaveLoad;

View File

@ -162,6 +162,5 @@ inline constexpr NamedSaveLoad NSLT(const char *name, SaveLoad save_load)
{
return { name, save_load, NSLF_TABLE_ONLY };
}
using NamedSaveLoadTable = std::span<const NamedSaveLoad>;
#endif /* SL_SAVELOAD_TYPES_H */