@@ -1710,6 +1710,7 @@ declare global {
17101710 readonly year : number ;
17111711 }
17121712
1713+
17131714 /**
17141715 * APIs for the map.
17151716 */
@@ -1731,11 +1732,15 @@ declare global {
17311732 getAllEntities ( type : "staff" ) : Staff [ ] ;
17321733 getAllEntities ( type : "car" ) : Car [ ] ;
17331734 getAllEntities ( type : "litter" ) : Litter [ ] ;
1735+ getAllEntities ( type : "balloon" ) : Balloon [ ] ;
1736+ getAllEntities ( type : "money_effect" ) : MoneyEffect [ ] ;
17341737 getAllEntitiesOnTile ( type : EntityType , tilePos : CoordsXY ) : Entity [ ] ;
17351738 getAllEntitiesOnTile ( type : "guest" , tilePos : CoordsXY ) : Guest [ ] ;
17361739 getAllEntitiesOnTile ( type : "staff" , tilePos : CoordsXY ) : Staff [ ] ;
17371740 getAllEntitiesOnTile ( type : "car" , tilePos : CoordsXY ) : Car [ ] ;
17381741 getAllEntitiesOnTile ( type : "litter" , tilePos : CoordsXY ) : Litter [ ] ;
1742+ getAllEntitiesOnTile ( type : "balloon" , tilePos : CoordsXY ) : Balloon [ ] ;
1743+ getAllEntitiesOnTile ( type : "money_effect" , tilePos : CoordsXY ) : MoneyEffect [ ] ;
17391744 createEntity ( type : EntityType , initializer : object ) : Entity ;
17401745
17411746 /**
@@ -1745,6 +1750,7 @@ declare global {
17451750 * @param elementIndex The index of the track element on the tile.
17461751 */
17471752 getTrackIterator ( location : CoordsXY , elementIndex : number ) : TrackIterator | null ;
1753+
17481754 }
17491755
17501756 type TileElementType =
@@ -2495,12 +2501,31 @@ declare global {
24952501 * Highest drop height in height units. Use `context.formatString()` to convert into metres/feet. Ex: `formatString('{HEIGHT}', ride.highestDropHeight)`.
24962502 */
24972503 readonly highestDropHeight : number ;
2504+
2505+ /**
2506+ * The current breakdown of the ride.
2507+ */
2508+ readonly breakdown : BreakdownType ;
2509+
2510+ /**
2511+ * Set a breakdown on a ride.
2512+ * @param breakdown The type of breakdown to set.
2513+ */
2514+ setBreakdown ( breakdown : BreakdownType ) : void ;
2515+
2516+ /**
2517+ * Fix a ride / clear the breakdown.
2518+ */
2519+ fixBreakdown ( ) : void ;
2520+
24982521 }
24992522
25002523 type RideClassification = "ride" | "stall" | "facility" ;
25012524
25022525 type RideStatus = "closed" | "open" | "testing" | "simulating" ;
25032526
2527+ type BreakdownType = "brakes_failure" | "control_failure" | "doors_stuck_closed" | "doors_stuck_open" | "restraints_stuck_closed" | "restraints_stuck_open" | "safety_cut_out" | "vehicle_malfunction" ;
2528+
25042529 interface TrackColour {
25052530 main : number ;
25062531 additional : number ;
@@ -2897,6 +2922,11 @@ declare global {
28972922 */
28982923 isReversed : boolean ;
28992924
2925+ /**
2926+ * Whether to draw the car sprite as a smoke plume.
2927+ */
2928+ isCrashed : boolean ;
2929+
29002930 /**
29012931 * The colour of the car.
29022932 */
@@ -3844,6 +3874,26 @@ declare global {
38443874 "empty_juice_cup" |
38453875 "empty_bowl_blue" ;
38463876
3877+ /**
3878+ * Represents balloon entity.
3879+ */
3880+ interface Balloon extends Entity {
3881+ /**
3882+ * The colour of the balloon.
3883+ */
3884+ colour : number ;
3885+ }
3886+
3887+ /**
3888+ * Represents money_effect entity.
3889+ */
3890+ interface MoneyEffect extends Entity {
3891+ /**
3892+ * The value of the money effect.
3893+ */
3894+ value : number ;
3895+ }
3896+
38473897 /**
38483898 * Network APIs
38493899 * Use `network.mode` to determine whether the current game is a client, server or in single player mode.
@@ -4129,6 +4179,53 @@ declare global {
41294179 "scenarioCompleteNameInput" |
41304180 "unlockAllPrices" ;
41314181
4182+ type AwardType =
4183+ "mostUntidy" |
4184+ "mostTidy" |
4185+ "bestRollerCoasters" |
4186+ "bestValue" |
4187+ "mostBeautiful" |
4188+ "worstValue" |
4189+ "safest" |
4190+ "bestStaff" |
4191+ "bestFood" |
4192+ "worstFood" |
4193+ "bestToilets" |
4194+ "mostDisappointing" |
4195+ "bestWaterRides" |
4196+ "bestCustomDesignedRides" |
4197+ "mostDazzlingRideColours" |
4198+ "mostConfusingLayout" |
4199+ "bestGentleRides" ;
4200+
4201+ interface Award {
4202+ /**
4203+ * The type of the award.
4204+ */
4205+ readonly type : AwardType ;
4206+
4207+ /**
4208+ * The award description.
4209+ */
4210+ readonly text : string ;
4211+
4212+ /**
4213+ * Number of months this award will remain active.
4214+ * Starts at 5, expires at 0.
4215+ */
4216+ readonly monthsRemaining : number ;
4217+
4218+ /**
4219+ * The sprite of the award.
4220+ */
4221+ readonly imageId : number ;
4222+
4223+ /**
4224+ * Whether this is a positive or negative award.
4225+ */
4226+ readonly positive : boolean ;
4227+ }
4228+
41324229 interface Park {
41334230 cash : number ;
41344231 rating : number ;
@@ -4276,6 +4373,25 @@ declare global {
42764373 * @param type The type of expenditure to get.
42774374 */
42784375 getMonthlyExpenditure ( type : ExpenditureType ) : number [ ]
4376+
4377+ /**
4378+ * The current awards of the park.
4379+ */
4380+ readonly awards : Award [ ]
4381+
4382+ /**
4383+ * Clear all awards.
4384+ */
4385+ clearAwards ( ) : void
4386+
4387+ /**
4388+ * Grant the given award type to the park.
4389+ * Does not check eligibility.
4390+ * If the park already has an active award of the given type, the old award will be removed.
4391+ * If the park already has 4 active awards, the oldest award will be removed.
4392+ * @param type the award type to grant
4393+ */
4394+ grantAward ( type : AwardType ) : void
42794395 }
42804396
42814397 interface Research {
@@ -4539,6 +4655,7 @@ declare global {
45394655
45404656 interface Cheats {
45414657 allowArbitraryRideTypeChanges : boolean ;
4658+ allowSpecialColourSchemes : boolean ;
45424659 allowTrackPlaceInvalidHeights : boolean ;
45434660 buildInPauseMode : boolean ;
45444661 disableAllBreakdowns : boolean ;
@@ -4553,10 +4670,13 @@ declare global {
45534670 enableAllDrawableTrackPieces : boolean ;
45544671 enableChainLiftOnAllTrack : boolean ;
45554672 fastLiftHill : boolean ;
4673+ forcedParkRating : number ;
45564674 freezeWeather : boolean ;
45574675 ignoreResearchStatus : boolean ;
45584676 ignoreRideIntensity : boolean ;
4677+ ignoreRidePrice : boolean ;
45594678 neverendingMarketing : boolean ;
4679+ makeAllDestructible : boolean ;
45604680 sandboxMode : boolean ;
45614681 showAllOperatingModes : boolean ;
45624682 showVehiclesFromOtherTrackTypes : boolean ;
0 commit comments