OpenTTD/src/script/api
Peter Nelson ab535c0a86
Codechange: Add base() method to StrongType to allow access to the base type without casting. (#11445)
This removes the ability to explicitly cast to the base type, but the requirement
to use .base() means the conversion is still explicit.
2023-11-06 20:29:35 +00: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 Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
Doxyfile_AI.in Fix: warnings about obsolete settings/setting values in Doxygen configurations 2023-01-26 16:07:14 +01:00
Doxyfile_GS.in Fix: warnings about obsolete settings/setting values in Doxygen configurations 2023-01-26 16:07:14 +01:00
ai_changelog.hpp Fix: Some Script::IsValidVehicle checks need to be complemented with IsPrimaryVehicle 2023-02-18 09:58:02 +01:00
doxygen_filter.awk Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
doxygen_filter.sh Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_changelog.hpp Add: [Script] Game script control of industry production level. 2023-09-02 16:20:59 +02: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: keep how we convert string <-> JSON private (#11269) 2023-09-08 19:03:10 +02:00
script_airport.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_airport.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_asyncmode.cpp Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02: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 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_basestation.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02: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: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_bridgelist.cpp Codechange: Use SQInteger for generic numbers in script_bridgelist 2023-03-06 00:32:12 +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 Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_cargo.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02: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 Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02: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: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_company.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02: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 Fix: crashes to desktop from game scripts when companies disappear 2023-03-08 22:33:47 +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: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
script_date.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_date.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_depotlist.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_depotlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_engine.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_engine.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_enginelist.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_enginelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_error.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_error.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +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: vendor the nlohmann-json library (#11290) 2023-09-13 16:11:34 +02:00
script_event_types.hpp Codechange: keep how we convert string <-> JSON private (#11269) 2023-09-08 19:03:10 +02:00
script_execmode.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +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: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_goal.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_group.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_group.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_grouplist.cpp Change: Allow GS access to ScriptGroup functions 2023-04-17 17:59:16 +02:00
script_grouplist.hpp Change: Allow GS access to ScriptGroup functions 2023-04-17 17:59:16 +02:00
script_includes.hpp.in Change: rewrote squirrel_export in CMake 2020-07-16 00:53:26 +02:00
script_industry.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_industry.hpp Add: [Script] Custom news message text for industry SetProductionLevel. 2023-09-02 16:20:59 +02:00
script_industrylist.cpp Codechange: Add IsCargoAccepted/Produced() helpers. 2023-05-24 17:34:11 +01:00
script_industrylist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00: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: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_infrastructure.cpp Codechange: Use existing functions in GetMonthlyInfrastructureCosts. (#11237) 2023-08-27 22:12:44 +02:00
script_infrastructure.hpp Codechange: Use SQInteger for generic numbers in script_infrastructure 2023-03-06 00:32:12 +01:00
script_league.cpp Codechange: use std::string without const as return 2023-07-03 18:08:03 +02:00
script_league.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_list.cpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_list.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
script_log.cpp Codechange: use std::string for script log calls 2023-05-14 22:54:10 +02:00
script_log.hpp Codechange: use std::string for script log calls 2023-05-14 22:54:10 +02:00
script_log_types.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +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: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +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 Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
script_object.hpp Codechange: add tests for GS <-> AdminPort JSON conversion (#11252) 2023-08-31 19:38:15 +00: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 Add: company mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_order.hpp Change: Allow GS access to more ScriptOrder functions 2023-04-17 17:59:16 +02:00
script_priorityqueue.cpp Codechange: Use SQInteger for generic numbers in script_priorityqueue 2023-03-06 00:32:12 +01:00
script_priorityqueue.hpp Change: include fmt.h C++ headers in stdafx.h 2023-05-08 16:49:23 +02:00
script_rail.cpp Codechange: Rename *Railtype* to *RailType* for consistency. (#11287) 2023-09-11 08:55:12 +00:00
script_rail.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_railtypelist.cpp Codechange: Rename *Railtype* to *RailType* for consistency. (#11287) 2023-09-11 08:55:12 +00:00
script_railtypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_road.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_road.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_roadtypelist.cpp Fix: Don't list unavailable road types for game scripts. 2023-05-12 21:03:13 +02: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: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_signlist.cpp Codechange: Replace FOR_ALL_SIGNS with range-based for loops 2019-12-21 20:13:03 +01:00
script_signlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_station.cpp Codechange: cleanup CargoPacket in terms of variable/function names (#11278) 2023-09-09 23:21:21 +02:00
script_station.hpp Add: company mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_stationlist.cpp Codechange: cleanup CargoPacket in terms of variable/function names (#11278) 2023-09-09 23:21:21 +02: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 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_story_page.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_storypageelementlist.cpp Codechange: Replace story related FOR_ALL with range-based for loops 2019-12-21 20:13:03 +01:00
script_storypageelementlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_storypagelist.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_storypagelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_subsidy.cpp Add: deity mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_subsidy.hpp Codechange: Make SpriteType, CargoSortType, SourceType and ScriptType enum classes. (#10663) 2023-04-16 20:00:55 +01:00
script_subsidylist.cpp Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops 2019-12-21 20:13:03 +01:00
script_subsidylist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_testmode.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_testmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_text.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_text.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_tile.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_tile.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_tilelist.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_tilelist.hpp Doc: Fix spelling error in ScriptTileList::RemoveRectangle (#10937) 2023-06-04 17:45:18 +00:00
script_town.cpp Codechange: Move Ticks into their own class 2023-09-10 08:40:25 -04:00
script_town.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_townlist.cpp Codechange: Replace FOR_ALL_TOWNS with range-based for loops 2019-12-21 20:13:03 +01:00
script_townlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_tunnel.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_tunnel.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_types.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_vehicle.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_vehicle.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_vehiclelist.cpp Change: Allow GS access to ScriptGroup functions 2023-04-17 17:59:16 +02:00
script_vehiclelist.hpp Change: Allow GS access to ScriptGroup functions 2023-04-17 17:59:16 +02: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 Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_waypoint.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_waypointlist.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +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