Create a TrackDesignEntranceElement struct to replace rct_td6_entrance_element #10052
Labels
good-first-issue
Low hanging fruits good for people new to open source or OpenRCT2.
refactor
A task that will improve code readability, without changing outcome.
We recently created a new TD6 and TD4 importer that takes the existing CS structs (
rct_track_td6
,rct_track_td4
) and imports them into the new internalTrackDesign
struct. This is the start of creating a new track design format for OpenRCT2. As part of this process we need to create new structs for the internal structs of the TrackDesign struct. The newTrackDesign
has four structs that are still in the original CS types. These are:We need to convert the above structs into our own format so that we can improve them for greater flexibility. The first stage of doing this is to just create an identical struct with a new name and use it when importing and for the TrackDesign struct. I suggest we call them the following:
This refactor has been split into 4 parts. See also #10051, #10053, #10054.
This issue is only for the changes to implement
TrackDesignEntranceElement
.Make the new struct in
ride/TrackDesign.h
. Make sure it has the exact same fields asrct_td6_entrance_element
. Look at every use ofrct_td6_entrance_element
and if it is NOT in the following files change it toTrackDesignEntranceElement
: T6Exporter.cpp, T6Importer.cpp, T4Importer.cpp.For T6Exporter.cpp, T6Importer.cpp, T4Importer.cpp you will need to modify the importers/exporter to convert between the two structs. Do this field by field.
Example T6Importer
The text was updated successfully, but these errors were encountered: