OpenTTD-patches/src/script/api
Peter Nelson a0dfb76e34 Codechange: Replace mishmash of types for widget index with WidgetID.
Indices were stored as int, but often passed around as uint/uint8_t and casts.

Now they should all use WidgetID.
2023-12-30 00:23:57 +00:00
..
ai
game
ai_changelog.hpp
CMakeLists.txt Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
Doxyfile_AI.in
Doxyfile_GS.in
doxygen_filter.awk
doxygen_filter.sh
game_changelog.hpp Add: [Script] Game script control of industry production level. 2023-09-02 16:20:59 +02:00
script_accounting.cpp
script_accounting.hpp
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 Fix #11629: AirportGetNearestTown for rotated airports (#11631) 2023-12-28 21:43:05 +00:00
script_airport.hpp
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 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
script_bridgelist.hpp
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
script_cargomonitor.cpp
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
script_clientlist.hpp
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
script_companymode.hpp
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: Simplify ConvertDateToYMD by returning YearMonthDay instead of outputting to a pointer. (#11637) 2023-12-28 21:34:08 +00:00
script_date.hpp Fix: Add missing includes to timers from script implementation files (#11604) 2023-12-19 14:09:46 +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
script_engine.cpp Fix: Add missing includes to timers from script implementation files (#11604) 2023-12-19 14:09:46 +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
script_enginelist.hpp
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_types.cpp Codechange: Use max_element to find highest cargo amount. 2023-11-28 22:30:48 +00:00
script_event_types.hpp Codechange: Replace mishmash of types for widget index with WidgetID. 2023-12-30 00:23:57 +00:00
script_event.cpp
script_event.hpp
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
script_game.hpp
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
script_grouplist.hpp
script_includes.hpp.in
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
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
script_industrytypelist.hpp
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
script_league.cpp Codechange: use std::string without const as return 2023-07-03 18:08:03 +02:00
script_league.hpp
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_types.hpp Add: Horizontal scroll for script debug log (#11597) 2023-12-20 22:50:03 +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_map.cpp
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
script_marine.hpp
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
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
script_objecttypelist.hpp
script_order.cpp
script_order.hpp
script_priorityqueue.cpp
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
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
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
script_signlist.hpp
script_station.cpp Codechange: cleanup CargoPacket in terms of variable/function names (#11278) 2023-09-09 23:21:21 +02:00
script_station.hpp
script_stationlist.cpp Codechange: cleanup CargoPacket in terms of variable/function names (#11278) 2023-09-09 23:21:21 +02:00
script_stationlist.hpp
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
script_storypageelementlist.hpp
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
script_subsidy.cpp
script_subsidy.hpp
script_subsidylist.cpp
script_subsidylist.hpp
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 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
script_tile.hpp
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: Use town zone constants instead of magic numbers 2023-12-18 22:12:43 +01: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
script_townlist.hpp
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
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
script_vehiclelist.hpp
script_viewport.cpp
script_viewport.hpp
script_waypoint.cpp
script_waypoint.hpp
script_waypointlist.cpp
script_waypointlist.hpp
script_window.cpp
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