You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/src/script
Patric Stout 7dd5fd6ed4 Feature: framework to make savegames self-descriptive
We won't be able to make it fully self-descriptive (looking at you
MAP-chunks), but anything else can. With this framework, we can
add headers for each chunk explaining how each chunk looks like
in detail.

They also will all be tables, making it a lot easier to read in
external tooling, and opening the way to consider a database
(like SQLite) to use as savegame format.

Lastly, with the headers in the savegame, you can freely add
fields without needing a savegame version bump; older versions
of OpenTTD will simply ignore the new field. This also means
we can remove all the SLE_CONDNULL, as they are irrelevant.

The next few commits will start using this framework.
3 years ago
..
api Cleanup: simplify some boolean expressions 3 years ago
CMakeLists.txt Add: [CMake] Option to only build tools/docs 4 years ago
script_config.cpp Codechange: move script settings to std::string 3 years ago
script_config.hpp Change: Use gender-neutral pronouns 3 years ago
script_fatalerror.hpp Change: [Script] Let Script_FatalError use std::string instead of const char * 4 years ago
script_info.cpp Codechange: move casting a "const char *" to "char *" to the caller 3 years ago
script_info.hpp Codechange: Use std::string in file scanners. 4 years ago
script_info_dummy.cpp Change: Use gender-neutral pronouns 3 years ago
script_instance.cpp Feature: framework to make savegames self-descriptive 3 years ago
script_instance.hpp Fix #9353: [Script] Garbage collecting on priority queues could crash the game 3 years ago
script_scanner.cpp Cleanup: remove some unneeded c_str() calls 3 years ago
script_scanner.hpp Codechange: Use std::string in file scanners. 4 years ago
script_storage.hpp Cleanup: Removed SVN headers 5 years ago
script_suspend.hpp Cleanup: Removed SVN headers 5 years ago
squirrel.cpp Cleanup: [Script] Use nullptr instead of 0 or NULL 3 years ago
squirrel.hpp Cleanup: [Script] Use nullptr instead of 0 or NULL 3 years ago
squirrel_class.hpp Change: Use gender-neutral pronouns in console command messages (and comments) (#9203) 3 years ago
squirrel_helper.hpp Cleanup: [Script] Use nullptr instead of 0 or NULL 3 years ago
squirrel_helper_type.hpp Cleanup: Removed SVN headers 5 years ago
squirrel_std.cpp Codechange: convert printf DEBUG statements to fmt Debug statements 3 years ago
squirrel_std.hpp Cleanup: Removed SVN headers 5 years ago