Added the following binds for completeness:
- ignoreRidePrice
- makeAllDestructible
- forcedParkRating*
`allowSpecialColourSchemes` was missing from the type definition file so I added that as well.
\*forcedParkRating required a little more logic than the boolean cheats and I added some safeguards to prevent setting invalid values
* Scripting: Redraw vehicle when setting track location
* Scripting: introduce car.moveToTrack
A new function to move cars to tracks easier. Also redraws the car.
* Revert car.trackLocation to CoordsXYZD
reverts 30a555d3c2
car.moveToTrack() achieves the same thing in a saner API.
* Final fixes for vehicle.moveToTrack
added back tracklocation.Get with track type
added EntityTweener call at the end of travelBy/moveToTrack
* moveToTrack: final bassie review fixes.
* moveToTrack: use tile coords
* moveToTrack: api increment
---------
Co-authored-by: Guy Sviry <guy@axissecurity.com>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
* Refactor: Migrate rest of .d.ts file to use JSDoc-style comment notation
- Adds markdown links for file references
- Refactor inline lists into structured markdown lists
- More verbose bitmask documentation
- Adds @link fields where appropriate
- Moves some comments from being inline to above the referenced line to allow for IDE notation
- Fixes some broken/moved C file path references
- Adds bitmask documentation for staff orders
* Fix: Type name
* Change: contributors.md file
* Remove outdated recommendation
* Change file links to github links
* Add comment applicability disclaimer
* Add link to LandSetRightsArgs ownership file
* Remove `ClimateSetArgs`
* Rename ClimateState to WeatherState
* Rename ClimateCurrent to WeatherCurrent
* Rename ClimateNext to WeatherNext
* Rename ClimateUpdateTimer to WeatherUpdateTimer
* Use named initialisers for weather state import in S4/S6 importers
* Rename S4::ClimateTimer to WeatherUpdateTimer as well
* Rename WeatherState struct properties to lowerCamelCase
Testing showed that the event returns CoordsXY instead of CoordsXYZ. The code can be traced back to InteractionInfo.Loc (Viewport.h), which is CoordsXY.
In order to transition staff costumes to objects, we must further disentangle staff from regular peeps. This has many advantages, such as making custom entertainers or even handymen costumes. However, this means putting some restrictions on what costumes can be assigned to staff in the mean while.
We are aware of plug-ins allowing staff to be decorated like normal peeps, though, e.g. using @Manticore-007's Peep Editor. Splitting staff from peeps will mean breaking such functionality. We can do our very best to reverting 'invalid' staff to their normal outfits instead of them outright disappearing. However, in the mean time, we should disallow peep costumes from being assigned to staff to prevent further disappointment down the line.
Once we get to actually adding custom staff costumes, I plan to add a new plug-in API to get available costumes for a particular staff type. This would apply to entertainers, but also other staff types. This should make it easier for plug-in authors to tap into custom costumes in the future.
* Added API for getAllPlugins
Added functionality to the Scripting API to allow Contexts to return a list of all registered plugins.
* Fixed naming conventions, returning list of authors
Changed function names to follow get/set convention. Removed unnecessary copies of shared pointers, now using auto instead. Changed the functionality to return an array of authors instead of a string.
* Added changelog entry
Also added myself to list of contributors
* Moved all functionality to ScPlugin
Created a ScPlugin class and moved the current getPlugins functionality there.
* Changed from method to property
Function names now match the get/set convention for properties. Also did some code cleanup.
* Update copyright
* Bump plugin version
---------
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
* Add API for guest items in openrct2.d.ts
* Create GuestItem interfaces
* Set fields to readonly and add documentation
* Implement getting items array
* Implement checking if a guest has an item
* Implement removing items from guests
* Implement giving a guest an item
* Re-merge GuestItemType with FoodDrinkType
* Add more data validation for the EnumMaps
* Update versioning and changelog
* Add some errors to the give_item method
* Bump network version
* Update VoucherType to if/else
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
* Add static_assert to ScGuest.hpp
---------
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>