OpenTTD/src/script/api
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
..
ai Codechange: Make SpriteType, CargoSortType, SourceType and ScriptType enum classes. (#10663) 2023-04-16 20:00:55 +01:00
game Codechange: Make SpriteType, CargoSortType, SourceType and ScriptType enum classes. (#10663) 2023-04-16 20:00:55 +01:00
CMakeLists.txt Revert bbdbf9a: ScriptTimeMode was not the best solution for economy/calendar support 2024-03-23 21:17:40 +01:00
Doxyfile_AI.in Update: Doxyfiles to doxygen 1.9.4 2024-05-10 13:17:19 +01:00
Doxyfile_GS.in Update: Doxyfiles to doxygen 1.9.4 2024-05-10 13:17:19 +01:00
ai_changelog.hpp Codechange: Add main page to script API documentation 2024-05-10 13:17:19 +01:00
doxygen_filter.awk Codechange: Unify naming of squirrel built-in types in Script API docs 2024-05-10 13:17:19 +01:00
doxygen_filter.sh Codefix: [Script] script_types was excluded from API documentation 2024-05-10 13:17:19 +01:00
game_changelog.hpp Codechange: Add main page to script API documentation 2024-05-10 13:17:19 +01:00
script_accounting.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_accounting.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_admin.cpp Codechange: vendor the nlohmann-json library (#11290) 2023-09-13 16:11:34 +02:00
script_admin.hpp Codechange: Unify naming of squirrel built-in types in Script API docs 2024-05-10 13:17:19 +01:00
script_airport.cpp Codechange: Use vector for airport tile layouts. (#12607) 2024-05-02 11:37:54 +00:00
script_airport.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_asyncmode.cpp Fix: [Script] Properly store the previous AsyncMode state (#11587) 2023-12-14 21:29:44 +00:00
script_asyncmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_base.cpp Codechange: Silence warnings about intentionally unused parameters. 2023-09-19 22:49:59 +02:00
script_base.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_basestation.cpp Fix: Add missing includes to timers from script implementation files (#11604) 2023-12-19 14:09:46 +00:00
script_basestation.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_bridge.cpp Codechange: Add base() method to StrongType to allow access to the base type without casting. (#11445) 2023-11-06 20:29:35 +00:00
script_bridge.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_bridgelist.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_bridgelist.hpp Codechange: Use SQInteger for generic numbers in script_bridgelist 2023-03-06 00:32:12 +01:00
script_cargo.cpp Change: Decouple and remove landscape-dependent cargo types. (#11719) 2024-02-04 10:16:08 +00:00
script_cargo.hpp Codechange: Rename TownEffect to TownAcceptanceEffect. 2024-02-02 20:37:49 +00:00
script_cargolist.cpp Change: Reorganise industry accept/produce arrays. (#10853) 2023-05-25 21:25:46 +01:00
script_cargolist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_cargomonitor.cpp Codechange: Use SQInteger for generic numbers in script_cargomonitor 2023-03-06 00:32:12 +01:00
script_cargomonitor.hpp Codechange: Use SQInteger for generic numbers in script_cargomonitor 2023-03-06 00:32:12 +01:00
script_client.cpp Codechange: Add base() method to StrongType to allow access to the base type without casting. (#11445) 2023-11-06 20:29:35 +00:00
script_client.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_clientlist.cpp Codechange: Replace network related FOR_ALL with range-based for loops 2019-12-21 20:13:03 +01:00
script_clientlist.hpp Fix: missing/duplicate documentation tags for scripts 2023-01-26 16:07:14 +01:00
script_company.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_company.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_companymode.cpp Fix: crashes to desktop from game scripts when companies disappear 2023-03-08 22:33:47 +01:00
script_companymode.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_controller.cpp Codechange: replace 'const char *' script API parameters with std::string 2023-05-14 22:54:10 +02:00
script_controller.hpp Codechange: Unify naming of squirrel built-in types in Script API docs 2024-05-10 13:17:19 +01:00
script_date.cpp Change: [Script] Use economy time for ScriptDate 2024-03-23 21:17:40 +01:00
script_date.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_depotlist.cpp Codechange: Use locals for company/deity mode during script loops. (#11686) 2024-01-05 08:32:43 +00:00
script_depotlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_engine.cpp Codechange: Replace GroupStatistics' num_engines with std::map. (#11849) 2024-01-21 14:09:44 +00:00
script_engine.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_enginelist.cpp Codechange: Use locals for company/deity mode during script loops. (#11686) 2024-01-05 08:32:43 +00:00
script_enginelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_error.cpp Codechange: Replace old non-standard attributes with C++17/20 standard attributes. 2024-02-02 22:29:28 +01:00
script_error.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_event.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_event.hpp Fix: missing/duplicate documentation tags for scripts 2023-01-26 16:07:14 +01:00
script_event_types.cpp Codechange: Split CT_INVALID into CT_INVALID and INVALID_CARGO. 2024-01-09 18:56:05 +00:00
script_event_types.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_execmode.cpp Fix #11585: Crash when cleaning AI/GS with nested AsyncMode. 2023-12-14 20:54:31 +00:00
script_execmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_game.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_game.hpp Fix: missing/duplicate documentation tags for scripts 2023-01-26 16:07:14 +01:00
script_gamesettings.cpp Codechange: replace 'const char *' script API parameters with std::string 2023-05-14 22:54:10 +02:00
script_gamesettings.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_goal.cpp Codechange: use std::popcount instead of hand written loop 2024-01-19 06:48:55 +01:00
script_goal.hpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_group.cpp Fix #10405, a3dd750: [Script] Test engine and vehicle type validity for ScriptGroup::GetNumEngines (#11887) 2024-02-11 22:09:23 +01:00
script_group.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_grouplist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_grouplist.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_includes.hpp.in Change: rewrote squirrel_export in CMake 2020-07-16 00:53:26 +02:00
script_industry.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_industry.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_industrylist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_industrylist.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_industrytype.cpp Codechange: Use iterators and/or range-for on cargo related loops. 2023-10-19 17:03:25 +01:00
script_industrytype.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_industrytypelist.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_industrytypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_info_docs.hpp Codechange: Unify naming of squirrel built-in types in Script API docs 2024-05-10 13:17:19 +01:00
script_infrastructure.cpp Codechange: Use existing functions in GetMonthlyInfrastructureCosts. (#11237) 2023-08-27 22:12:44 +02:00
script_infrastructure.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_league.cpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_league.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_list.cpp Revert a2edf52: SQOpsLimiter does a more precise job (#11754) 2024-01-12 17:04:43 +01:00
script_list.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_log.cpp Change: Allow opening multiple script debug windows by holding Ctrl. 2023-12-20 20:39:07 +00:00
script_log.hpp Codechange: use std::string for script log calls 2023-05-14 22:54:10 +02:00
script_log_types.hpp Add: Horizontal scroll for script debug log (#11597) 2023-12-20 22:50:03 +01:00
script_map.cpp Codechange: Use SQInteger for generic numbers in script_map 2023-03-06 00:32:12 +01:00
script_map.hpp Codechange: Add base() method to StrongType to allow access to the base type without casting. (#11445) 2023-11-06 20:29:35 +00:00
script_marine.cpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_marine.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_newgrf.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_newgrf.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_news.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_news.hpp Add: deity mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_object.cpp Codechange: Replace C-style casts to size_t with static_cast. (#12455) 2024-04-19 20:34:36 +01:00
script_object.hpp Revert bbdbf9a: ScriptTimeMode was not the best solution for economy/calendar support 2024-03-23 21:17:40 +01:00
script_objecttype.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_objecttype.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_objecttypelist.cpp Change: Expose ObjectSpec vector to simplify iteration. 2023-04-02 22:42:38 +01:00
script_objecttypelist.hpp Add: allow gamescripts to build neutral objects (#9568) 2021-09-25 13:39:40 +02:00
script_order.cpp Codechange: Redefine some cargo-related values in terms of CargoID instead of CargoType. 2024-01-09 18:56:05 +00:00
script_order.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_priorityqueue.cpp Codechange: Use SQInteger for generic numbers in script_priorityqueue 2023-03-06 00:32:12 +01:00
script_priorityqueue.hpp Codechange: Unify naming of squirrel built-in types in Script API docs 2024-05-10 13:17:19 +01:00
script_rail.cpp Codechange: Add NewGRFSpecsBase class to hold class/index information. 2024-05-11 02:12:41 +01:00
script_rail.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_railtypelist.cpp Codechange: Use locals for company/deity mode during script loops. (#11686) 2024-01-05 08:32:43 +00:00
script_railtypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_road.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_road.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_roadtypelist.cpp Codechange: Use locals for company/deity mode during script loops. (#11686) 2024-01-05 08:32:43 +00:00
script_roadtypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_sign.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_sign.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_signlist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_signlist.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_station.cpp Codechange: switch our codebase to C++20 2024-01-17 00:25:08 +01:00
script_station.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_stationlist.cpp Codechange: Replace old non-standard attributes with C++17/20 standard attributes. 2024-02-02 22:29:28 +01:00
script_stationlist.hpp Change: Use gender-neutral pronouns in console command messages (and comments) (#9203) 2021-05-08 11:02:30 +01:00
script_story_page.cpp Fix #10439: [GS] Validate story page button colour, flags, cursor and vehicle type (#11892) 2024-01-28 00:29:10 +01:00
script_story_page.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_storypageelementlist.cpp Codechange: [Script] Use ScriptList::FillList() in more locations (#11762) 2024-01-12 21:19:08 +01:00
script_storypageelementlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_storypagelist.cpp Codechange: [Script] Use ScriptList::FillList() in more locations (#11762) 2024-01-12 21:19:08 +01:00
script_storypagelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_subsidy.cpp Fix: [Script] ScriptSubsidy::GetExpireDate should return an economy-date (#12372) 2024-03-28 23:21:20 +01:00
script_subsidy.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_subsidylist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_subsidylist.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_testmode.cpp Fix #11585: Crash when cleaning AI/GS with nested AsyncMode. 2023-12-14 20:54:31 +00:00
script_testmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_text.cpp Change: [Script] Match FormatString behaviour more closely 2024-03-09 12:15:03 +01:00
script_text.hpp Codechange: Unify naming of squirrel built-in types in Script API docs 2024-05-10 13:17:19 +01:00
script_tile.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_tile.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_tilelist.cpp Fix #12347: Crash attempting to find catchment tiles of a station with no catchment area. (#12348) 2024-03-23 13:03:59 +01:00
script_tilelist.hpp Add: [Script] ScriptTileList_StationCoverage (#12015) 2024-02-06 20:22:18 +01:00
script_town.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_town.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_townlist.cpp Codechange: Rename TownEffect to TownAcceptanceEffect. 2024-02-02 20:37:49 +00:00
script_townlist.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_tunnel.cpp Codechange: Use std::tuple for slope functions with two return values 2024-03-08 18:08:55 +01:00
script_tunnel.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_types.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_vehicle.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_vehicle.hpp Doc: [Script] Extend API documentation on calendar- vs economy-time 2024-05-10 13:17:19 +01:00
script_vehiclelist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_vehiclelist.hpp Codefix: broken links and syntax issues in script API documentation 2024-05-10 13:17:19 +01:00
script_viewport.cpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_viewport.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_waypoint.cpp Codechange: switch our codebase to C++20 2024-01-17 00:25:08 +01:00
script_waypoint.hpp Codechange: [Script] Document relation between ScriptErrorType and ErrorMessages enums 2024-05-10 13:17:19 +01:00
script_waypointlist.cpp Codechange: switch our codebase to C++20 2024-01-17 00:25:08 +01:00
script_waypointlist.hpp Change: Use gender-neutral pronouns 2021-05-15 10:16:48 +02:00
script_window.cpp Codechange: Use SQInteger for generic numbers in script_window 2023-03-06 00:32:12 +01:00
script_window.hpp.in Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
squirrel_export.hpp.sq.in Change: rewrote squirrel_export in CMake 2020-07-16 00:53:26 +02:00