OpenTTD/src/script
Peter Nelson e8015e497d Codechange: Use begin/end of nwidget parts of begin/length.
This simplifies processing nwidget parts as, unlike the remaining length, the pointer to the end of the list never changes. This is the same principle as we use(d) for tracking end instead of length for C-style strings.

And this removes 160~ instances of the lengthof() macro.
2023-09-04 10:20:45 +01:00
..
api Add: [Script] Custom news message text for industry SetProductionLevel. 2023-09-02 16:20:59 +02:00
CMakeLists.txt Codechange: move windows common to AI and GS out of ai_gui 2023-02-05 19:27:25 +01:00
script_cmd.h Codechange: Pass unpacked command arguments to command callbacks (except Script). 2021-12-16 22:28:32 +01:00
script_config.cpp Codechange: rewrite script string-to-settings conversion to C++ 2023-05-14 22:54:10 +02:00
script_config.hpp Codechange: Use std::map instead of custom SmallMap. 2023-05-18 12:18:30 +01:00
script_fatalerror.hpp Change: [Script] Let Script_FatalError use std::string instead of const char * 2021-04-17 22:24:52 +02:00
script_gui.cpp Codechange: Use begin/end of nwidget parts of begin/length. 2023-09-04 10:20:45 +01:00
script_gui.h Fix #10578: Allow to select any version of AI/GS from GUI (#10604) 2023-04-07 19:33:07 +02:00
script_info.cpp Codechange: replace StrMakeValidInPlace with StrValid 2023-06-08 18:29:44 +02:00
script_info.hpp Codechange: remove manual allocation/free for SQ_instance 2023-05-14 22:54:10 +02:00
script_info_dummy.cpp Codechange: use fmt::format to create dummy scripts 2023-05-14 22:54:10 +02:00
script_instance.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_instance.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
script_scanner.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_scanner.hpp Codechange: use fmt::format_to to format the help message 2023-05-20 16:50:03 +02:00
script_storage.hpp Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
script_suspend.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
squirrel.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
squirrel.hpp Cleanup: stredup-ing string variant for calling scripts 2023-05-14 22:54:10 +02:00
squirrel_class.hpp Change: Use gender-neutral pronouns in console command messages (and comments) (#9203) 2021-05-08 11:02:30 +01:00
squirrel_helper.hpp Codechange: make no assumptions on how the internals of TileIndex work (#11183) 2023-08-11 14:53:51 +02:00
squirrel_helper_type.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
squirrel_std.cpp Codechange: use C++ strings for constructing script file paths 2023-05-14 22:54:10 +02:00
squirrel_std.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00