OpenTTD/src/script
Peter Nelson d5671030b1 Codechange: Add NewGRFSpecsBase class to hold class/index information.
Standardises how the class index is stored in the spec, instead of relying ot the Spec structs having the same members.

This allows retrieving class_index and index without searching or using pointer arithmetic.

'cls_id' is renamed to 'class_index' to make it clearer that it is an index rather than the multichar label of the class.
2024-05-11 02:12:41 +01:00
..
api Codechange: Add NewGRFSpecsBase class to hold class/index information. 2024-05-11 02:12:41 +01:00
CMakeLists.txt
script_cmd.h
script_config.cpp Remove: [Script] random_deviation from setting description table (#12221) 2024-03-05 12:41:04 +01:00
script_config.hpp Codefix 977aba73be: also update comment about removal of is_random (#12400) 2024-03-30 13:29:51 +01:00
script_fatalerror.hpp
script_gui.cpp Change: Use aspect ratios for some common widgets. 2024-04-19 22:11:16 +01:00
script_gui.h Change: Allow opening multiple script debug windows by holding Ctrl. 2023-12-20 20:39:07 +00:00
script_info_dummy.cpp
script_info.cpp Codechange: range based for loops instead of C-style for loops 2024-04-11 07:05:04 +02:00
script_info.hpp
script_instance.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_instance.hpp Fix #11585: Crash when cleaning AI/GS with nested AsyncMode. 2023-12-14 20:54:31 +00:00
script_scanner.cpp Codechange: Silence warnings about intentionally unused parameters. 2023-09-19 22:49:59 +02:00
script_scanner.hpp
script_storage.hpp Revert bbdbf9a: ScriptTimeMode was not the best solution for economy/calendar support 2024-03-23 21:17:40 +01:00
script_suspend.hpp
squirrel_class.hpp
squirrel_helper_type.hpp
squirrel_helper.hpp Codechange: Ensure function opening { is on new line. 2023-11-09 20:15:38 +00:00
squirrel_std.cpp
squirrel_std.hpp
squirrel.cpp Cleanup: missing spaces before continuation * in some comments 2023-11-01 22:56:11 +01:00
squirrel.hpp