mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Saveload: Add NamedSaveLoad to saveload_common.h
This commit is contained in:
parent
e57a7ad273
commit
acfe8909b4
@ -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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user