1
0
Fork 0
OpenTTD/src/script/api
SamuXarick 5fef32bde7
Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner (#13406)
* Add: [Script] GSBaseStation::GetOwner

Added method for Game Scripts to retrieve the owner of a basestation.

* Cleanup: [Script] Remove ScriptStation::GetOwner

Due to class inheritance, GSStation::GetOwner and GSWaypoint::GetOwner can both reach GetOwner defined at GSBaseStation.
2025-05-22 13:47:04 +02:00
..
ai Codechange: use std::string_view for sq_pushstring 2025-05-03 23:02:09 +02:00
game Codechange: use std::string_view for sq_pushstring 2025-05-03 23:02:09 +02: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 Codechange: rename DECLARE_POSTFIX_INCREMENT to DECLARE_INCREMENT_DECREMENT_OPERATORS 2025-01-28 18:56:58 +01:00
Doxyfile_GS.in Codechange: rename DECLARE_POSTFIX_INCREMENT to DECLARE_INCREMENT_DECREMENT_OPERATORS 2025-01-28 18:56:58 +01:00
ai_changelog.hpp Add: [Script] ScriptVehicleList_Waypoint (#13456) 2025-05-19 14:48:17 +02:00
doxygen_filter.awk Codechange: Add filename and line number to errors/warnings of the squirrel-exporters. (#14031) 2025-04-18 19:43:32 +02:00
doxygen_filter.sh Codefix: [Script] script_types was excluded from API documentation 2024-05-10 13:17:19 +01:00
game_changelog.hpp Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner (#13406) 2025-05-22 13:47:04 +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: use std::string_view for sq_getstring 2025-05-03 14:24:28 +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: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_airport.hpp Codechange: [Script] do not redefine types in the script API 2025-01-28 18:57:40 +01:00
script_asyncmode.cpp Codechange: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +01: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 Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner (#13406) 2025-05-22 13:47:04 +02:00
script_basestation.hpp Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner (#13406) 2025-05-22 13:47:04 +02:00
script_bridge.cpp Codechange: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +01:00
script_bridge.hpp Codechange: [Script] do not redefine types in the script API 2025-01-28 18:57:40 +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: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_cargo.hpp Add: [Script] Newer Cargo Classes (#13779) 2025-03-15 16:51:56 +01:00
script_cargolist.cpp Codechange: Use EnumBitSet for GoodsEntry status. (#13899) 2025-03-26 21:22:33 +00:00
script_cargolist.hpp Codechange: [Script] do not redefine types in the script API 2025-01-28 18:57:40 +01:00
script_cargomonitor.cpp Codechange: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01:00
script_cargomonitor.hpp Codechange: rename CargoID to CargoType and amend related variables/comments 2025-01-26 18:07:10 +01:00
script_client.cpp Codechange: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01: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: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01:00
script_clientlist.hpp Fix: missing/duplicate documentation tags for scripts 2023-01-26 16:07:14 +01:00
script_company.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_company.hpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_companymode.cpp Codechange: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01:00
script_companymode.hpp Codechange: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01:00
script_controller.cpp Codechange: use std::string_view for sq_pushstring 2025-05-03 23:02:09 +02:00
script_controller.hpp Codefix: Add missing header includes. 2025-04-20 22:06:18 +02:00
script_date.cpp Codechange: use Date/Year constructor explicitly 2025-01-01 16:25:32 +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: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01:00
script_depotlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_engine.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_engine.hpp Codechange: rename CargoID to CargoType and amend related variables/comments 2025-01-26 18:07:10 +01:00
script_enginelist.cpp Codechange: strongly type EngineID 2025-02-16 14:50:15 +01:00
script_enginelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_error.cpp Codechange: use std::string_view for scripts 2025-04-27 17:00:25 +02:00
script_error.hpp Codechange: use std::string_view for scripts 2025-04-27 17:00:25 +02:00
script_event.cpp Codechange: Manage script event queue using smart pointers. 2025-04-18 19:47:28 +02:00
script_event.hpp Change: [Script] Don't allow scripts to instantiate ScriptEvent (#14276) 2025-05-20 15:37:05 +02:00
script_event_types.cpp Codechange: use std::string_view for sq_pushstring 2025-05-03 23:02:09 +02:00
script_event_types.hpp Fix b2c57123: [Script] Conversion from ScriptEvent to ScriptEventCompanyTown subclasses (#14274) 2025-05-18 15:40:47 +02:00
script_execmode.cpp Codechange: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +01:00
script_execmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_game.cpp Codechange: Use EnumBitSet for PauseMode. (#13553) 2025-02-14 08:30:04 +00:00
script_game.hpp Codechange: Use EnumBitSet for LandscapeTypes and remove LandscapeID. (#13436) 2025-02-01 23:09:18 +00:00
script_gamesettings.cpp Codechange: Use EnumBitSet for SettingFlags. (#13429) 2025-02-01 15:46:51 +00: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: simplify some complicated logic 2025-03-16 15:12:02 +01:00
script_goal.hpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_group.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_group.hpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_grouplist.cpp Codechange: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +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: [Script] Don't allow scripts to instantiate ScriptEvent (#14276) 2025-05-20 15:37:05 +02:00
script_industry.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_industry.hpp Codechange: Use EnumBitSet for IndustryControlFlags. 2025-02-07 22:01:59 +00:00
script_industrylist.cpp Codechange: rename CargoID to CargoType and amend related variables/comments 2025-01-26 18:07:10 +01:00
script_industrylist.hpp Codechange: rename CargoID to CargoType and amend related variables/comments 2025-01-26 18:07:10 +01:00
script_industrytype.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_industrytype.hpp Codechange: [Script] do not redefine types in the script API 2025-01-28 18:57:40 +01: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: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01: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 Codechange: Pass encoded script strings as EncodedString. 2025-03-04 21:40:39 +00:00
script_league.hpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_list.cpp Add: [Script] Saving/loading ScriptList 2025-03-02 13:41:12 +01:00
script_list.hpp Add: [Script] Saving/loading ScriptList 2025-03-02 13:41:12 +01:00
script_log.cpp Codechange: remove unused alloc_func.hpp includes 2025-02-24 20:00:19 +01: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: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_marine.hpp Codechange: [Script] do not redefine types in the script API 2025-01-28 18:57:40 +01:00
script_newgrf.cpp Codechange: Use EnumBitSet for GRFConfigFlags. 2025-02-02 10:49:45 +00: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: Pass encoded script strings as EncodedString. 2025-03-04 21:40:39 +00:00
script_news.hpp Codechange: use std::variant instead of a custom version for news references 2025-02-16 14:50:15 +01:00
script_object.cpp Codechange: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +01:00
script_object.hpp Codechange: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +01:00
script_objecttype.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_objecttype.hpp Cleanup: Fix various spelling errors 2025-02-12 22:44:51 +01: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: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +01:00
script_order.hpp Codechange: simplify logic and prevent invalid bit 2025-03-16 14:14:21 +01:00
script_priorityqueue.cpp Codechange: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +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: Replace out parameters with result tuples. 2025-04-28 20:50:13 +02:00
script_rail.hpp Codechange: remove unused INVALID_TRACK_BIT 2025-03-15 22:03:17 +01:00
script_railtypelist.cpp Codechange: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01:00
script_railtypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_road.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_road.hpp Codechange: strongly type StationID 2025-02-16 18:25:51 +01:00
script_roadtypelist.cpp Codechange: [Script] Use helper function over direct casting CompanyID 2025-02-08 23:42:19 +01:00
script_roadtypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_sign.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_sign.hpp Codechange: [Script] do not redefine types in the script API 2025-01-28 18:57:40 +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 Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner (#13406) 2025-05-22 13:47:04 +02:00
script_station.hpp Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner (#13406) 2025-05-22 13:47:04 +02:00
script_stationlist.cpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_stationlist.hpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_story_page.cpp Codechange: Pass encoded script strings as EncodedString. 2025-03-04 21:40:39 +00:00
script_story_page.hpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_storypageelementlist.cpp Codechange: [Script] replace some enums with constexpr values of the internal type 2025-02-01 02:38:37 +01:00
script_storypageelementlist.hpp Codechange: [Script] replace some enums with constexpr values of the internal type 2025-02-01 02:38:37 +01:00
script_storypagelist.cpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_storypagelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_subsidy.cpp Fix: [Script] Getting expiry date could cause out of bounds access 2025-03-08 16:14:18 +01:00
script_subsidy.hpp Codechange: [Script] do not redefine types in the script API 2025-01-28 18:57:40 +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 Codechange: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +01:00
script_testmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_text.cpp Codechange: use std::string_view for sq_pushstring 2025-05-03 23:02:09 +02:00
script_text.hpp Change: Remove the limit of 20 parameters to a Script Text string. (#14193) 2025-05-03 18:33:29 +01:00
script_tile.cpp Codechange: Handle SnowTile state separately from ClearGround. 2025-02-25 08:22:46 +00:00
script_tile.hpp Codechange: rename CargoID to CargoType and amend related variables/comments 2025-01-26 18:07:10 +01:00
script_tilelist.cpp Codechange: (re)set multiple bitset flags in one call. (#14017) 2025-04-18 14:07:57 +01:00
script_tilelist.hpp Add: [Script] Saving/loading ScriptList 2025-03-02 13:41:12 +01:00
script_town.cpp Codechange: Use EnumBitSet for HouseZones. (#14137) 2025-04-28 20:27:43 +01:00
script_town.hpp Codechange: Use EnumBitSet for TownActions. (#13542) 2025-02-13 18:02:39 +00: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: Pass ScriptInstance by reference. 2025-04-28 23:08:20 +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 Doc: [Script] some IDs were not mentioned in script_types.hpp 2025-01-28 18:57:40 +01:00
script_vehicle.cpp Change: Don't replace stripped control codes with '?' for scripts. (#14028) 2025-04-18 17:20:08 +01:00
script_vehicle.hpp Codechange: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_vehiclelist.cpp Add: [Script] ScriptVehicleList_Waypoint (#13456) 2025-05-19 14:48:17 +02:00
script_vehiclelist.hpp Add: [Script] ScriptVehicleList_Waypoint (#13456) 2025-05-19 14:48:17 +02:00
script_viewport.cpp Codechange: strongly type CompanyID 2025-02-16 14:02:18 +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: replace INVALID_X with XID::Invalid() for PoolIDs 2025-02-16 20:23:00 +01:00
script_waypoint.hpp Codefix 75387b9e2b: Prefer using EnumBitSet.base() instead of shifting StationFacility. (#13575) 2025-02-16 11:52:40 +00:00
script_waypointlist.cpp Codechange: strongly type StationID 2025-02-16 18:25:51 +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