2011-12-19 21:56:42 +01:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file game_changelog.hpp Lists all changes / additions to the API.
|
|
|
|
*
|
|
|
|
* Only new / renamed / deleted api functions will be listed here. A list of
|
|
|
|
* bug fixes can be found in the normal changelog. Note that removed API
|
|
|
|
* functions may still be available if you return an older API version
|
|
|
|
* in GetAPIVersion() in info.nut.
|
|
|
|
*
|
2021-09-25 13:48:03 +02:00
|
|
|
* \b 13.0
|
2019-03-03 20:51:57 +01:00
|
|
|
*
|
|
|
|
* This version is not yet released. The following changes are not set in stone yet.
|
|
|
|
*
|
2022-06-22 12:34:25 +02:00
|
|
|
* API additions:
|
|
|
|
* \li GSCargo::GetWeight
|
2022-01-22 13:39:55 +01:00
|
|
|
* \li GSIndustryType::ResolveNewGRFID
|
2022-01-20 22:33:37 +01:00
|
|
|
* \li GSObjectType::ResolveNewGRFID
|
2022-11-26 18:03:03 +01:00
|
|
|
* \li GSLeagueTable
|
2022-01-20 22:33:37 +01:00
|
|
|
*
|
2022-06-26 21:49:08 +02:00
|
|
|
* Other changes:
|
|
|
|
* \li GSRoad::HasRoadType now correctly checks RoadType against RoadType
|
|
|
|
*
|
2021-09-25 13:48:03 +02:00
|
|
|
* \b 12.0
|
|
|
|
*
|
2021-08-09 23:34:50 +02:00
|
|
|
* API additions:
|
|
|
|
* \li GSNewGRF
|
|
|
|
* \li GSNewGRFList
|
2021-09-14 22:06:55 +02:00
|
|
|
* \li GSMarine::BT_LOCK
|
|
|
|
* \li GSMarine::BT_CANAL
|
|
|
|
* \li GSTile::IsSeaTile
|
|
|
|
* \li GSTile::IsRiverTile
|
|
|
|
* \li GSTile::BT_CLEAR_WATER
|
2021-09-25 13:39:40 +02:00
|
|
|
* \li GSObjectTypeList
|
|
|
|
* \li GSObjectType
|
2021-08-09 23:34:50 +02:00
|
|
|
*
|
2021-03-14 20:47:31 +01:00
|
|
|
* \b 1.11.0
|
|
|
|
*
|
2020-05-22 22:22:55 +02:00
|
|
|
* API additions:
|
2021-01-09 15:15:14 +01:00
|
|
|
* \li GSCargo::GetName
|
2020-05-22 22:22:55 +02:00
|
|
|
* \li GSEventStoryPageButtonClick
|
|
|
|
* \li GSEventStoryPageTileSelect
|
|
|
|
* \li GSEventStoryPageVehicleSelect
|
2020-12-22 14:21:31 +01:00
|
|
|
* \li GSIndustry::GetCargoLastAcceptedDate
|
|
|
|
* \li GSIndustry::GetControlFlags
|
2020-12-22 14:29:48 +01:00
|
|
|
* \li GSIndustry::GetExclusiveConsumer
|
|
|
|
* \li GSIndustry::GetExclusiveSupplier
|
2020-12-22 14:21:31 +01:00
|
|
|
* \li GSIndustry::GetLastProductionYear
|
|
|
|
* \li GSIndustry::SetControlFlags
|
2020-12-22 14:29:48 +01:00
|
|
|
* \li GSIndustry::SetExclusiveConsumer
|
|
|
|
* \li GSIndustry::SetExclusiveSupplier
|
2021-01-15 15:38:14 +01:00
|
|
|
* \li GSIndustry::SetText
|
2020-05-22 22:22:55 +02:00
|
|
|
* \li GSStoryPage::MakePushButtonReference
|
|
|
|
* \li GSStoryPage::MakeTileButtonReference
|
|
|
|
* \li GSStoryPage::MakeVehicleButtonReference
|
2020-04-19 00:53:30 +02:00
|
|
|
* \li GSPriorityQueue
|
2020-05-22 22:22:55 +02:00
|
|
|
*
|
2021-01-22 10:28:26 +01:00
|
|
|
* Other changes:
|
|
|
|
* \li GSCompany::ChangeBankBalance takes one extra parameter to refer to a location to show text effect on
|
2021-02-02 17:14:26 +01:00
|
|
|
* \li GSGoal::Question and GSGoal::QuestionClient no longer require to have any buttons except for the window type GSGoal.QT_QUESTION
|
2021-01-22 10:28:26 +01:00
|
|
|
*
|
2020-02-08 22:44:31 +01:00
|
|
|
* \b 1.10.0
|
|
|
|
*
|
2019-03-31 03:15:20 +02:00
|
|
|
* API additions:
|
|
|
|
* \li GSVehicle::BuildVehicleWithRefit
|
|
|
|
* \li GSVehicle::GetBuildWithRefitCapacity
|
2019-04-06 08:46:15 +02:00
|
|
|
* \li GSRoad::GetName
|
|
|
|
* \li GSRoad::RoadVehCanRunOnRoad
|
|
|
|
* \li GSRoad::RoadVehHasPowerOnRoad
|
|
|
|
* \li GSRoad::ConvertRoadType
|
|
|
|
* \li GSRoad::GetMaxSpeed
|
2020-01-15 18:46:26 +01:00
|
|
|
* \li GSEngine::EnableForCompany
|
|
|
|
* \li GSEngine::DisableForCompany
|
2019-03-31 03:15:20 +02:00
|
|
|
*
|
2018-03-14 20:36:41 +01:00
|
|
|
* \b 1.9.0
|
|
|
|
*
|
2018-04-22 15:42:29 +02:00
|
|
|
* API additions:
|
2018-09-14 14:03:52 +02:00
|
|
|
* \li GSAirport::GetMonthlyMaintenanceCost
|
2018-04-22 15:42:29 +02:00
|
|
|
* \li GSClient
|
|
|
|
* \li GSClientList
|
|
|
|
* \li GSClientList_Company
|
2018-04-24 19:19:01 +02:00
|
|
|
* \li GSViewport::ScrollEveryoneTo
|
|
|
|
* \li GSViewport::ScrollCompanyClientsTo
|
|
|
|
* \li GSViewport::ScrollClientTo
|
2018-04-28 17:37:59 +02:00
|
|
|
* \li GSGoal::QuestionClient
|
2018-03-14 20:36:41 +01:00
|
|
|
*
|
2019-02-01 00:08:03 +01:00
|
|
|
* Other changes:
|
|
|
|
* \li GSBridge::GetName takes one extra parameter to refer the vehicle type
|
|
|
|
*
|
2017-03-11 21:50:26 +01:00
|
|
|
* \b 1.8.0
|
|
|
|
*
|
2018-04-22 15:42:29 +02:00
|
|
|
* No changes
|
2017-03-11 21:50:26 +01:00
|
|
|
*
|
2019-04-06 08:46:15 +02:00
|
|
|
* API additions:
|
|
|
|
* \li GSRoad::ERR_ROADTYPE_DISALLOWS_CROSSING
|
|
|
|
*
|
2017-12-24 13:18:36 +01:00
|
|
|
* \b 1.7.0 - 1.7.2
|
2016-03-01 21:00:22 +01:00
|
|
|
*
|
2017-03-11 21:50:26 +01:00
|
|
|
* No changes
|
2016-03-01 21:00:22 +01:00
|
|
|
*
|
2017-03-11 14:34:01 +01:00
|
|
|
* \b 1.6.1 - 1.6.0
|
2015-03-17 21:33:44 +01:00
|
|
|
*
|
2016-03-01 21:00:22 +01:00
|
|
|
* No changes
|
2014-03-17 21:02:30 +01:00
|
|
|
*
|
2017-03-11 14:34:01 +01:00
|
|
|
* \b 1.5.3 - 1.5.1
|
2015-12-01 20:49:49 +01:00
|
|
|
*
|
|
|
|
* No changes
|
|
|
|
*
|
2015-03-17 21:33:44 +01:00
|
|
|
* \b 1.5.0
|
2014-03-17 21:02:30 +01:00
|
|
|
*
|
2014-05-04 15:57:48 +02:00
|
|
|
* API additions:
|
2014-09-21 18:25:15 +02:00
|
|
|
* \li GSList::SwapList
|
2014-09-21 18:20:14 +02:00
|
|
|
* \li GSStation::GetCargoPlanned
|
|
|
|
* \li GSStation::GetCargoPlannedFrom
|
|
|
|
* \li GSStation::GetCargoPlannedFromVia
|
|
|
|
* \li GSStation::GetCargoPlannedVia
|
2014-05-04 15:57:48 +02:00
|
|
|
* \li GSStation::GetCargoWaitingFromVia
|
2014-09-21 18:20:48 +02:00
|
|
|
* \li GSStationList_CargoPlannedByFrom
|
|
|
|
* \li GSStationList_CargoPlannedByVia
|
|
|
|
* \li GSStationList_CargoPlannedFromByVia
|
|
|
|
* \li GSStationList_CargoPlannedViaByFrom
|
|
|
|
* \li GSStationList_CargoWaitingByFrom
|
|
|
|
* \li GSStationList_CargoWaitingByVia
|
|
|
|
* \li GSStationList_CargoWaitingFromByVia
|
|
|
|
* \li GSStationList_CargoWaitingViaByFrom
|
2014-05-04 15:57:48 +02:00
|
|
|
*
|
2015-02-22 18:25:29 +01:00
|
|
|
* Other changes:
|
|
|
|
* \li GSNews::Create takes two extra parameters to refer to a location, station,
|
|
|
|
* industry, or town. The user can click at the news message to jump to the
|
|
|
|
* referred location.
|
|
|
|
*
|
2017-03-11 14:34:01 +01:00
|
|
|
* \b 1.4.4 - 1.4.3
|
2014-10-23 11:47:15 +02:00
|
|
|
*
|
|
|
|
* No changes
|
|
|
|
*
|
2014-08-17 18:13:23 +02:00
|
|
|
* \b 1.4.2
|
|
|
|
*
|
2014-07-12 19:04:14 +02:00
|
|
|
* Other changes:
|
|
|
|
* \li GSCargoMonitor delivery and pickup monitor functions have improved boundary checking for
|
|
|
|
* their parameters, and return \c -1 if they are found out of bounds.
|
|
|
|
*
|
2014-08-17 18:13:23 +02:00
|
|
|
* \b 1.4.1
|
|
|
|
*
|
|
|
|
* No changes
|
|
|
|
*
|
2013-02-14 19:58:04 +01:00
|
|
|
* \b 1.4.0
|
|
|
|
*
|
2013-04-06 14:36:33 +02:00
|
|
|
* API additions:
|
2014-03-10 23:18:53 +01:00
|
|
|
* \li AICargo::GetDistributionType
|
2013-09-21 15:07:42 +02:00
|
|
|
* \li GSCompany::ChangeBankBalance
|
2014-02-06 20:50:34 +01:00
|
|
|
* \li GSDate::DATE_INVALID
|
|
|
|
* \li GSDate::IsValidDate
|
2013-11-16 18:41:57 +01:00
|
|
|
* \li GSGoal::GT_STORY_PAGE
|
2013-05-26 21:54:43 +02:00
|
|
|
* \li GSGoal::IsCompleted
|
|
|
|
* \li GSGoal::SetCompleted
|
|
|
|
* \li GSGoal::SetProgress
|
|
|
|
* \li GSGoal::SetText
|
2013-07-14 10:55:38 +02:00
|
|
|
* \li GSStation::HasCargoRating
|
2014-05-04 15:57:48 +02:00
|
|
|
* \li GSStation::GetCargoWaitingFrom
|
|
|
|
* \li GSStation::GetCargoWaitingVia
|
2013-06-12 21:31:33 +02:00
|
|
|
* \li GSStoryPage
|
2014-02-06 20:25:39 +01:00
|
|
|
* \li GSStoryPageList
|
2014-02-06 20:41:56 +01:00
|
|
|
* \li GSStoryPageElementList
|
2013-04-30 19:16:32 +02:00
|
|
|
* \li GSTile::GetTerrainType
|
2013-09-19 20:48:05 +02:00
|
|
|
* \li GSTown::FoundTown
|
2013-11-12 18:57:32 +01:00
|
|
|
* \li GSTown::GetFundBuildingsDuration
|
2013-09-19 20:48:05 +02:00
|
|
|
* \li GSTown::SetName
|
2013-11-12 18:57:12 +01:00
|
|
|
* \li GSTown::TOWN_GROWTH_NONE
|
2013-11-12 18:56:35 +01:00
|
|
|
* \li GSTown::TOWN_GROWTH_NORMAL
|
2013-04-06 14:36:33 +02:00
|
|
|
*
|
|
|
|
* Other changes:
|
2013-05-27 23:59:11 +02:00
|
|
|
* \li GSGoal::New can now create up to 64000 concurrent goals. The old limit was 256 goals.
|
2013-07-14 10:55:38 +02:00
|
|
|
* \li GSStation::GetCargoRating does return -1 for cargo-station combinations that
|
2013-04-06 14:36:33 +02:00
|
|
|
* do not have a rating yet instead of returning 69.
|
|
|
|
*
|
2017-03-11 14:34:01 +01:00
|
|
|
* \b 1.3.3 - 1.3.2
|
2013-11-29 14:15:02 +01:00
|
|
|
*
|
|
|
|
* No changes
|
|
|
|
*
|
|
|
|
* \b 1.3.1
|
|
|
|
*
|
|
|
|
* API additions:
|
|
|
|
* \li GSTile::GetTerrainType
|
|
|
|
*
|
2012-02-19 20:14:17 +01:00
|
|
|
* \b 1.3.0
|
|
|
|
*
|
2012-04-17 21:43:18 +02:00
|
|
|
* API additions:
|
2012-07-15 19:11:14 +02:00
|
|
|
* \li GSCargoMonitor
|
2012-08-21 22:07:41 +02:00
|
|
|
* \li GSEngine::IsValidEngine and GSEngine::IsBuildable when outside GSCompanyMode scope
|
2012-05-26 16:16:38 +02:00
|
|
|
* \li GSEventExclusiveTransportRights
|
2012-05-26 16:16:45 +02:00
|
|
|
* \li GSEventRoadReconstruction
|
2012-05-26 16:16:12 +02:00
|
|
|
* \li GSNews::NT_ACCIDENT, GSNews::NT_COMPANY_INFO, GSNews::NT_ADVICE, GSNews::NT_ACCEPTANCE
|
2012-09-08 14:14:00 +02:00
|
|
|
* \li GSIndustryType::IsProcessingIndustry
|
2012-04-17 21:43:18 +02:00
|
|
|
* \li GSStation::IsAirportClosed
|
|
|
|
* \li GSStation::OpenCloseAirport
|
2012-10-03 22:43:32 +02:00
|
|
|
* \li GSController::Break
|
2012-10-22 20:56:21 +02:00
|
|
|
* \li GSIndustryType::BuildIndustry, GSIndustryType::CanBuildIndustry, GSIndustryType::ProspectIndustry and GSIndustryType::CanProspectIndustry when outside GSCompanyMode scope
|
2012-04-17 21:43:18 +02:00
|
|
|
*
|
2013-02-10 20:49:04 +01:00
|
|
|
* Other changes:
|
|
|
|
* \li Company specific goals are now removed when a company goes bankrupt or is taken over.
|
|
|
|
*
|
2017-03-11 14:34:01 +01:00
|
|
|
* \b 1.2.3 - 1.2.1
|
2012-08-16 20:47:10 +02:00
|
|
|
*
|
|
|
|
* No changes
|
|
|
|
*
|
2011-12-19 21:56:42 +01:00
|
|
|
* \b 1.2.0
|
|
|
|
* \li First stable release with the NoGo framework.
|
|
|
|
*/
|