mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-26 05:34:12 +01:00
Add: [Script] ScriptError::ERR_BRIDGE_TOO_LOW (#14560)
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
* \li AICargo::CC_POTABLE
|
* \li AICargo::CC_POTABLE
|
||||||
* \li AICargo::CC_NON_POTABLE
|
* \li AICargo::CC_NON_POTABLE
|
||||||
* \li AIVehicleList_Waypoint
|
* \li AIVehicleList_Waypoint
|
||||||
|
* \li AIError::ERR_BRIDGE_TOO_LOW
|
||||||
*
|
*
|
||||||
* Other changes:
|
* Other changes:
|
||||||
* \li AIBridge::GetBridgeID renamed to AIBridge::GetBridgeType
|
* \li AIBridge::GetBridgeID renamed to AIBridge::GetBridgeType
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
* \li GSCargo::CC_NON_POTABLE
|
* \li GSCargo::CC_NON_POTABLE
|
||||||
* \li GSVehicleList_Waypoint
|
* \li GSVehicleList_Waypoint
|
||||||
* \li GSBaseStation::GetOwner
|
* \li GSBaseStation::GetOwner
|
||||||
|
* \li GSError:ERR_BRIDGE_TOO_LOW
|
||||||
*
|
*
|
||||||
* Other changes:
|
* Other changes:
|
||||||
* \li GSBridge::GetBridgeID renamed to GSBridge::GetBridgeType
|
* \li GSBridge::GetBridgeID renamed to GSBridge::GetBridgeType
|
||||||
|
|||||||
@@ -175,6 +175,9 @@ public:
|
|||||||
|
|
||||||
/** Station is too spread out */
|
/** Station is too spread out */
|
||||||
ERR_STATION_TOO_SPREAD_OUT, // [STR_ERROR_STATION_TOO_SPREAD_OUT]
|
ERR_STATION_TOO_SPREAD_OUT, // [STR_ERROR_STATION_TOO_SPREAD_OUT]
|
||||||
|
|
||||||
|
/** Bridge is too low */
|
||||||
|
ERR_BRIDGE_TOO_LOW, // [STR_ERROR_BRIDGE_TOO_LOW_FOR_STATION, STR_ERROR_BRIDGE_TOO_LOW_FOR_ROADSTOP, STR_ERROR_BRIDGE_TOO_LOW_FOR_BUOY, STR_ERROR_BRIDGE_TOO_LOW_FOR_RAIL_WAYPOINT, STR_ERROR_BRIDGE_TOO_LOW_FOR_ROAD_WAYPOINT]
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ public:
|
|||||||
* @exception ScriptError::ERR_AREA_NOT_CLEAR
|
* @exception ScriptError::ERR_AREA_NOT_CLEAR
|
||||||
* @exception ScriptError::ERR_SITE_UNSUITABLE
|
* @exception ScriptError::ERR_SITE_UNSUITABLE
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
||||||
|
* @exception ScriptError::ERR_BRIDGE_TOO_LOW
|
||||||
* @return Whether the buoy has been/can be build or not.
|
* @return Whether the buoy has been/can be build or not.
|
||||||
*/
|
*/
|
||||||
static bool BuildBuoy(TileIndex tile);
|
static bool BuildBuoy(TileIndex tile);
|
||||||
|
|||||||
@@ -262,6 +262,7 @@ public:
|
|||||||
* @exception ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
* @exception ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
||||||
|
* @exception ScriptError::ERR_BRIDGE_TOO_LOW
|
||||||
* @return Whether the station has been/can be build or not.
|
* @return Whether the station has been/can be build or not.
|
||||||
*/
|
*/
|
||||||
static bool BuildRailStation(TileIndex tile, RailTrack direction, SQInteger num_platforms, SQInteger platform_length, StationID station_id);
|
static bool BuildRailStation(TileIndex tile, RailTrack direction, SQInteger num_platforms, SQInteger platform_length, StationID station_id);
|
||||||
@@ -299,6 +300,7 @@ public:
|
|||||||
* @exception ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
* @exception ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
||||||
|
* @exception ScriptError::ERR_BRIDGE_TOO_LOW
|
||||||
* @return Whether the station has been/can be build or not.
|
* @return Whether the station has been/can be build or not.
|
||||||
*/
|
*/
|
||||||
static bool BuildNewGRFRailStation(TileIndex tile, RailTrack direction, SQInteger num_platforms, SQInteger platform_length, StationID station_id, CargoType cargo_type, IndustryType source_industry, IndustryType goal_industry, SQInteger distance, bool source_station);
|
static bool BuildNewGRFRailStation(TileIndex tile, RailTrack direction, SQInteger num_platforms, SQInteger platform_length, StationID station_id, CargoType cargo_type, IndustryType source_industry, IndustryType goal_industry, SQInteger distance, bool source_station);
|
||||||
@@ -312,6 +314,7 @@ public:
|
|||||||
* @pre IsRailTypeAvailable(GetCurrentRailType()).
|
* @pre IsRailTypeAvailable(GetCurrentRailType()).
|
||||||
* @game @pre ScriptCompanyMode::IsValid().
|
* @game @pre ScriptCompanyMode::IsValid().
|
||||||
* @exception ScriptError::ERR_FLAT_LAND_REQUIRED
|
* @exception ScriptError::ERR_FLAT_LAND_REQUIRED
|
||||||
|
* @exception ScriptError::ERR_BRIDGE_TOO_LOW
|
||||||
* @return Whether the rail waypoint has been/can be build or not.
|
* @return Whether the rail waypoint has been/can be build or not.
|
||||||
*/
|
*/
|
||||||
static bool BuildRailWaypoint(TileIndex tile);
|
static bool BuildRailWaypoint(TileIndex tile);
|
||||||
|
|||||||
@@ -446,6 +446,7 @@ public:
|
|||||||
* @exception ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
* @exception ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
||||||
|
* @exception ScriptError::ERR_BRIDGE_TOO_LOW
|
||||||
* @return Whether the station has been/can be build or not.
|
* @return Whether the station has been/can be build or not.
|
||||||
*/
|
*/
|
||||||
static bool BuildRoadStation(TileIndex tile, TileIndex front, RoadVehicleType road_veh_type, StationID station_id);
|
static bool BuildRoadStation(TileIndex tile, TileIndex front, RoadVehicleType road_veh_type, StationID station_id);
|
||||||
@@ -471,6 +472,7 @@ public:
|
|||||||
* @exception ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
* @exception ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS
|
||||||
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
||||||
|
* @exception ScriptError::ERR_BRIDGE_TOO_LOW
|
||||||
* @return Whether the station has been/can be build or not.
|
* @return Whether the station has been/can be build or not.
|
||||||
*/
|
*/
|
||||||
static bool BuildDriveThroughRoadStation(TileIndex tile, TileIndex front, RoadVehicleType road_veh_type, StationID station_id);
|
static bool BuildDriveThroughRoadStation(TileIndex tile, TileIndex front, RoadVehicleType road_veh_type, StationID station_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user