diff --git a/.github/workflows/backtrace-commit-fix.yml b/.github/workflows/backtrace-commit-fix.yml index ee1923e885..5297d55455 100644 --- a/.github/workflows/backtrace-commit-fix.yml +++ b/.github/workflows/backtrace-commit-fix.yml @@ -17,7 +17,7 @@ jobs: BODY: ${{ github.event.issue.body }} id: fix run: | - changed_body=$(echo "$BODY" | sed '/commit<\/strong>/,/<\/li>/ s/\([0-9a-f]\{7,\}\)<\/code>/\1/') + changed_body=$(echo "$BODY" | sed '/commit<\/strong>/,/<\/ul>/ s/\([0-9a-f]\{7,\}\)<\/code>/\1/g') if [[ "$changed_body" == "$BODY" ]]; then echo "Unable to match the Backtrace report format." exit 1 diff --git a/.github/workflows/stale-backtrace-issues.yml b/.github/workflows/stale-backtrace-issues.yml index c8a959f04e..d5233e80b0 100644 --- a/.github/workflows/stale-backtrace-issues.yml +++ b/.github/workflows/stale-backtrace-issues.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'OpenRCT2/OpenRCT2' steps: - - uses: actions/stale@v7 + - uses: actions/stale@v8 with: days-before-issue-stale: 60 days-before-issue-close: 1 diff --git a/.github/workflows/stale-prs.yml b/.github/workflows/stale-prs.yml index f3400497dd..68c77aecc8 100644 --- a/.github/workflows/stale-prs.yml +++ b/.github/workflows/stale-prs.yml @@ -8,8 +8,10 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'OpenRCT2/OpenRCT2' steps: - - uses: actions/stale@v7 + - uses: actions/stale@v8 with: + exempt-all-pr-assignees: true + exempt-all-pr-milestones: true days-before-issue-stale: -1 days-before-issue-close: -1 days-before-pr-stale: 31 diff --git a/CMakeLists.txt b/CMakeLists.txt index 78307ec3de..2f7e5ace65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,9 +60,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}") -set(TITLE_SEQUENCE_VERSION "0.4.0") +set(TITLE_SEQUENCE_VERSION "0.4.6") set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/download/v${TITLE_SEQUENCE_VERSION}/title-sequences.zip") -set(TITLE_SEQUENCE_SHA1 "4ab0065e5a4d9f9c77d94718bbdfcfcd5a389da0") +set(TITLE_SEQUENCE_SHA1 "80fefc6ebbabc42a6f4703412daa5c62f661420d") set(OBJECTS_VERSION "1.3.11") set(OBJECTS_URL "https://github.com/OpenRCT2/objects/releases/download/v${OBJECTS_VERSION}/objects.zip") @@ -72,9 +72,9 @@ set(OPENSFX_VERSION "1.0.3") set(OPENSFX_URL "https://github.com/OpenRCT2/OpenSoundEffects/releases/download/v${OPENSFX_VERSION}/opensound.zip") set(OPENSFX_SHA1 "ffec5a97bd5035860c4c9a43fe32cf51886478e3") -set(OPENMSX_VERSION "1.3.0") +set(OPENMSX_VERSION "1.3.1") set(OPENMSX_URL "https://github.com/OpenRCT2/OpenMusic/releases/download/v${OPENMSX_VERSION}/openmusic.zip") -set(OPENMSX_SHA1 "b0cec998a3679f1cde17d91f2508ec4923c1a25c") +set(OPENMSX_SHA1 "cb7b05af97aaf7949fb509063d45df6613f20521") set(REPLAYS_VERSION "0.0.78") set(REPLAYS_URL "https://github.com/OpenRCT2/replays/releases/download/v${REPLAYS_VERSION}/replays.zip") @@ -86,8 +86,8 @@ option(PORTABLE "Create a portable build (-rpath=$ORIGIN)" OFF) option(APPIMAGE "Create an appimage build (-rpath=$ORIGIN/../lib)" OFF) option(DOWNLOAD_TITLE_SEQUENCES "Download title sequences during installation." ON) option(DOWNLOAD_OBJECTS "Download objects during installation." ON) -option(DOWNLOAD_OPENSFX "Download OpenSoundEffects during installation." OFF) -option(DOWNLOAD_OPENMSX "Download OpenMusic during installation." OFF) +option(DOWNLOAD_OPENSFX "Download OpenSoundEffects during installation." ON) +option(DOWNLOAD_OPENMSX "Download OpenMusic during installation." ON) CMAKE_DEPENDENT_OPTION(DOWNLOAD_REPLAYS "Download replays during installation." ON "WITH_TESTS" OFF) CMAKE_DEPENDENT_OPTION(MACOS_USE_DEPENDENCIES "Use OpenRCT2 dependencies instead of system libraries" ON @@ -100,7 +100,8 @@ option(STATIC "Create a static build.") option(USE_MMAP "Use mmap to try loading rct2's data segment into memory.") option(DISABLE_DISCORD_RPC "Disable Discord-RPC support." OFF) -option(DISABLE_GOOGLE_BENCHMARK "Disable Google Benchmarks support." OFF) +# Currently unused, disable by default. +option(DISABLE_GOOGLE_BENCHMARK "Disable Google Benchmarks support." ON) option(DISABLE_HTTP "Disable HTTP support.") option(DISABLE_NETWORK "Disable multiplayer functionality. Mainly for testing.") option(DISABLE_TTF "Disable support for TTF provided by freetype2.") @@ -160,12 +161,6 @@ if (MACOS_USE_DEPENDENCIES) endif () endif () -# If OS is Linux, import OpenSoundEffects and OpenMusic -if(UNIX AND NOT APPLE) - set(DOWNLOAD_OPENMSX ON) - set(DOWNLOAD_OPENSFX ON) -endif() - # LIST of supported flags, use SET_CHECK_CXX_FLAGS() to apply to target. # Use ADD_CHECK_CXX_COMPILER_FLAG() to add to list. set(SUPPORTED_CHECK_CXX_COMPILER_FLAGS "") diff --git a/contributors.md b/contributors.md index 4d79b03284..224807024e 100644 --- a/contributors.md +++ b/contributors.md @@ -8,7 +8,6 @@ Includes all git commit authors. Aliases are GitHub user names. * Hielke Morsink (Broxzier) * Tulio Paschoalin Leao (tupaschoal) * Olivier Wervers (Oli414) -* Rik Smeets (rik-smeets) * Matthias Moninger (ZehMatt) ## Former development team members @@ -18,6 +17,7 @@ Includes all git commit authors. Aliases are GitHub user names. * Richard Jenkins (rwjuk) * Aaron van Geffen (AaronVanGeffen) * Michael Steenbeek (Gymnasiast) +* Rik Smeets (rik-smeets) ## Long term contributors The following people are not part of the development team, but have been contributing for a long time. @@ -108,6 +108,7 @@ The following people are not part of the development team, but have been contrib * Phumdol Lookthipnapha (beam41) - Misc. * Nikolas Parshook (nparshook) - Misc. * Wenzhao Qiu (qwzhaox) - Misc. +* Tiago Reul (reul) - Misc. ## Bug fixes * (KirilAngelov) @@ -213,13 +214,15 @@ The following people are not part of the development team, but have been contrib * Conrad Cash (HouseholdVTuber) * Michael Bickerton (mdbckrtn) * Nehemiah Negussie (nehemiah-negussie) -* (zzril) +* Severin Paul Höfer (zzril) * Ernest Elgin (eaeiv) * Ernest Wong (ErnWong) * Joel H. (HtotheTML) * John Mulcahy (jayjay300) * Chase Percy (Chase-Percy) * Wenzhao Qiu (qwzhaox) +* Michael Bernardi (mrmbernardi) +* Aram Kazorian (aramk-hub) ## Toolchain * (Balletie) - macOS @@ -259,7 +262,7 @@ The following people are not part of the development team, but have been contrib * Esperanto - (tellovishous), Raymond Zhao (rzhao271) * Finnish - (DJHasis), (Zode), (TheWing) * French - (fbourigault), Joël Troch (JoelTroch), Michael Steenbeek (Gymnasiast), Romain Vigier (rmnvgr), (AziasYur), Hugo Courtial (s0r00t), David Delobel (incyclum), Nicolas Hawrysh (xp4xbox) -* German - (danidoedel), (atmaxinger), (Yepoleb), Daniel Kessel (dkessel), Leon (AllGoodNamesAreTaken), (raidcookie) +* German - (danidoedel), (atmaxinger), (Yepoleb), Daniel Kessel (dkessel), Leon (AllGoodNamesAreTaken), (raidcookie), Gilian Rehm (gr33ndev) * Italian - Luca Andrea Rossi (LucaRed), Precious Ugo Abara (48cfu) * Japanese - Aaron van Geffen (AaronVanGeffen), Haruna Chinzei, Nick Hall (nickhall), (jhako), Harry Lam (daihakken) * Korean - Willem J. Lee (telk5093), (NeverDruid); small fixes: (kexplo) @@ -277,6 +280,13 @@ The following people are not part of the development team, but have been contrib ## Music * Karst "Jalmaan" van Galen Last (AuraSpecs) * (Flyxxpy) +* Jan Büchner (Greyfade) +* Allister Brimble +* Herman Riddering + +## Sound Effects +* Karst van Galen Last (AuraSpecs) +* (ThatGuyYouKnow) ## RollerCoaster Tycoon 2 credits Design and programming by Chris Sawyer diff --git a/data/language/ca-ES.txt b/data/language/ca-ES.txt index 721b5ce172..00113b2342 100644 --- a/data/language/ca-ES.txt +++ b/data/language/ca-ES.txt @@ -3692,6 +3692,13 @@ STR_6582 :Obre la finestra de dreceres de teclat STR_6583 :{WINDOW_COLOUR_2}Inverteix el sentit STR_6584 :Trieu-ho per a invertir el sentit de moviment dels cotxes STR_6585 :Els canvis no es poden fer… +STR_6586 :OpenRCT2 +STR_6587 :El tema principal de l’OpenRCT2 és obra de l’Allister Brimble,{NEWLINE}amb llicència CC BY-SA 4.0. +STR_6588 :Gràcies al Herman Riddering per permetre’ns gravar el 35er Voigt. +STR_6589 :Mostra els botons de les finestres a l’esquerra +STR_6590 :Mostra els botons de les finestres (com ara el de tancar la finestra) a l’esquerra en lloc de mostrar-los a la dreta. +STR_6591 :L’empleat ara mateix arregla una atracció i no se’l pot acomiadar. +STR_6592 :L’empleat ara mateix fa una inspecció i no se’l pot acomidiar. ############# # Scenarios # diff --git a/data/language/de-DE.txt b/data/language/de-DE.txt index 955778ba30..5b8feb9561 100644 --- a/data/language/de-DE.txt +++ b/data/language/de-DE.txt @@ -3684,6 +3684,13 @@ STR_6582 :Tastenkürzelfenster öffnen STR_6583 :{WINDOW_COLOUR_2}Umgekehrte Züge STR_6584 :Auswählen, um Züge rückwärts fahren zu lassen STR_6585 :Änderungen können nicht ausgeführt werden … +STR_6586 :OpenRCT2 +STR_6587 :Das OpenRCT2-Titelthema ist ein Werk von Allister Brimble, {NEWLINE}lizenziert unter CC BY-SA 4.0. +STR_6588 :Vielen Dank an Herman Riddering für die Erlaubnis, den 35er Voigt aufzunehmen. +STR_6589 :Schaltflächen auf der linken Seite anzeigen +STR_6590 :Schaltflächen (z.B. zum Schließen des Fensters) auf der linken anstatt auf der rechten Seite der Titelleiste anzeigen. +STR_6591 :Der Mitarbeiter repariert gerade ein Fahrgeschäft und kann deshalb nicht entlassen werden. +STR_6592 :Der Mitarbeiter inspiziert gerade ein Fahrgeschäft und kann deshalb nicht entlassen werden. ############# # Scenarios # diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 8f0fa47df9..5269239a1f 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -3682,14 +3682,19 @@ STR_6576 :Adds special colours to colour dropdown STR_6577 :Block brake speed STR_6578 :Set speed limit for block brakes. In block section mode, adjacent brakes with a slower speed are linked to the block brake. STR_6579 :Block brakes will be set to default speed when saved as track design - STR_6580 :Reset STR_6581 :Are you sure you want to reset all shortcut keys on this tab? STR_6582 :Open keyboard shortcuts window - STR_6583 :{WINDOW_COLOUR_2}Reversed Trains STR_6584 :Select to run trains backwards STR_6585 :Can’t make changes… +STR_6586 :OpenRCT2 +STR_6587 :The OpenRCT2 Title Theme is a work of Allister Brimble,{NEWLINE}licensed CC BY-SA 4.0. +STR_6588 :Thanks to Herman Riddering for allowing us to record the 35er Voigt. +STR_6589 :Show window buttons on the left +STR_6590 :Show the window buttons (e.g. to close the window) on the left of the title bar instead of on the right. +STR_6591 :Staff member is currently fixing a ride and can’t be fired. +STR_6592 :Staff member is currently inspecting a ride and can’t be fired. ############# # Scenarios # @@ -4133,17 +4138,6 @@ STR_SCNR :Fort Anachronism STR_PARK :Fort Anachronism STR_DTLS : -########### -# Scenery # -########### - -## Start OpenRCT2 Official - -[TTPIRF05] -STR_NAME :Roof - -## End OpenRCT2 Official - ############################################################################### ## RCT2 Scenarios ############################################################################### diff --git a/data/language/eo-ZZ.txt b/data/language/eo-ZZ.txt index cf23ebdf2f..eaaf7da10d 100644 --- a/data/language/eo-ZZ.txt +++ b/data/language/eo-ZZ.txt @@ -3687,6 +3687,13 @@ STR_6582 :Malfermi klavarokomandoj-fenestron STR_6583 :{WINDOW_COLOUR_2}Inversaj Trajnoj STR_6584 :Elektu por funkciigi trajnojn inverse STR_6585 :Ne eblas ŝanĝi tion… +STR_6586 :OpenRCT2 +STR_6587 :La Titolomuziko de OpenRCT2 estas verko de Allister Brimble,{NEWLINE}rajtigita CC BY-SA 4.0. +STR_6588 :Dank' al Herman Riddering pro permesi al ni registri la 35er Voigt. +STR_6589 :Montri fenestro-butonojn maldekstre +STR_6590 :Montri la fenestro-butonojn (ekz. fermi la fenestron) maldekstre de la titola breto anstataŭ dekstre. +STR_6591 :Dungito nune estas riparanta atrakcion kaj ne povas esti maldungita. +STR_6592 :Dungito nune estas inspektanta atrakcion kaj ne povas esti maldungita. ############# # Scenarios # diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index f6e03ebd6e..b76d27cdd8 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -3691,6 +3691,13 @@ STR_6582 :Abrir ventana de atajos de teclado STR_6583 :{WINDOW_COLOUR_2}Trenes Invertidos STR_6584 :Selecciona para que los trenes viajen marcha atrás STR_6585 :No se puede realizar cambios… +STR_6586 :OpenRCT2 +STR_6587 :El tema principal de OpenRTC es una obra de Allister Brimble,{NEWLINE}licenciada bajo CC BY-SA 4.0. +STR_6588 :Gracias a Herman Riddering por permitirnos grabar el 35er Voigt. +STR_6589 :Mostrar botones de ventana a la izquierda +STR_6590 :Mostrar los botones de ventana (como el de cerrar la ventana) a la izquierda de la barra de título en lugar de a la derecha. +STR_6591 :El empleado está reparando una atracción y no puede ser despedido. +STR_6592 :El empleado está inspeccionando una atracción y no puede ser despedido. ############## # Escenarios # diff --git a/data/language/fr-FR.txt b/data/language/fr-FR.txt index 28062d2499..f2f960ebd6 100644 --- a/data/language/fr-FR.txt +++ b/data/language/fr-FR.txt @@ -3693,6 +3693,16 @@ STR_6579 :La vitesse des freins de bloc sera changée à la valeur par défau STR_6580 :Réinitialiser STR_6581 :Voulez-vous vraiment réinitialiser tous les raccourcis claviers de cet onglet ? STR_6582 :Ouvrir la fenêtre des raccourcis clavier +STR_6583 :{WINDOW_COLOUR_2}Trains inversés +STR_6584 :Fait rouler les trains à l’envers +STR_6585 :Impossible d’effectuer les changements… +STR_6586 :OpenRCT2 +STR_6587 :Le thème principal d’OpenRCT2 est une création d’Allister Brimble,{NEWLINE}sous licence CC BY-SA 4.0. +STR_6588 :Merci à Herman Riddering pour nous avoir permis d’enregistrer le 35er Voigt. +STR_6589 :Placer les boutons de fenêtre à gauche +STR_6590 :Place les boutons de fenêtre (par exemple pour fermer la fenêtre) sur la gauche de la barre de titre au lieu de la droite +STR_6591 :L’employé est en train de réparer une attraction et ne peut pas être licencié. +STR_6592 :L’employé est en train d’inspecter une attraction et ne peut pas être licencié. ############# # Scenarios # diff --git a/data/language/hu-HU.txt b/data/language/hu-HU.txt index 6b4c943027..5d554d0c6b 100644 --- a/data/language/hu-HU.txt +++ b/data/language/hu-HU.txt @@ -2087,7 +2087,7 @@ STR_3008 :{PEARLAQUA}ABC STR_3009 :{PALESILVER}ABC STR_3010 :A fájl betöltése sikertelen… STR_3011 :A fájl érvénytelen adatod tartalmaz -STR_3012 :Dodzsem beat stílus +STR_3012 :Dodzsem stílus STR_3013 :Vásári orgona stílus STR_3014 :Római harsona stílus STR_3015 :Keleti stílus @@ -3629,6 +3629,50 @@ STR_6545 :RCT1 kamatszámítás használata STR_6546 :A RollerCoaster Tycoon 1 kamatszámítási algoritmusának használata, amely egy rögzített százalékot használ, ami körülbelül 1,33%. STR_6547 :Minden díszlet STR_6548 :Korlátok megjelenítése csomópontoknál +STR_6549 :A kompatibilitási objektumok nem választhatóak ki! +STR_6550 :Ez az elem visszafelé kompatibilitási céllal szerepel, régi vagy sérült objektumokhoz. Nem lehet kiválasztani, csak eltávolítani. +STR_6551 :Katonaszín +STR_6552 :Dinnyesárga +STR_6553 :Cser +STR_6554 :Marrone +STR_6555 :Korallrózsaszín +STR_6556 :Erdőzöld +STR_6557 :Chartreuse-szín +STR_6558 :Vadászzöld +STR_6559 :Szeladon +STR_6560 :Limezöld +STR_6561 :Szépia +STR_6562 :Barack +STR_6563 :Periwinkle +STR_6564 :Viridián +STR_6565 :Tengerzöld +STR_6566 :Ibolya +STR_6567 :Levendula +STR_6568 :Pasztellnarancs +STR_6569 :Mélyvíz +STR_6570 :Pasztellrózsaszín +STR_6571 :Umbra +STR_6572 :Bézs +STR_6573 :Láthatatlan +STR_6574 :Üresség +STR_6575 :Speciális színsémák engedélyezése +STR_6576 :Speciális színek hozzáadása a színkiválasztó listához +STR_6577 :Blokkfék sebessége +STR_6578 :A blokkfékek sebességkorlátjának beállítása. A blokkszakasz üzemmódban a lassabb sebességű szomszédos fékek a blokkfékhez kapcsolódnak. +STR_6579 :A blokkfékek alapértelmezett sebességre lesznek beállítva, amikor pályatervként elmentésre kerül +STR_6580 :Visszaállítás +STR_6581 :Biztosan vissza szeretnéd állítani az összes gyorsbillentyűt ezen a fülön? +STR_6582 :Gyorsbillentyűk ablak megnyitása +STR_6583 :{WINDOW_COLOUR_2}Fordított vonatok +STR_6584 :Válassza ki, hogy a vonatok fordítva közlekedjenek +STR_6585 :Nem lehet a változtatásokat végrehajtani… +STR_6586 :OpenRCT2 +STR_6587 :Az OpenRCT2 főcímzenéje Allister Brimble műve,{NEWLINE}CC BY-SA 4.0 licenccel. +STR_6588 :Köszönet Herman Ridderingnek, hogy lehetővé tette számunkra a 35er Voigt rögzítését. +STR_6589 :Ablak gombok mutatása a bal oldalon +STR_6590 :Az ablak gombok (pl. az ablak bezárása) mutatása az ablak címsorának bal oldalán, ahelyett hogy a jobb oldalon lennének. +STR_6591 :Az alkalmazott jelenleg egy játékot javít, és nem lehet kirúgni. +STR_6592 :Az alkalmazott jelenleg egy játékot ellenőriz, és nem lehet kirúgni. ############# # Scenarios # diff --git a/data/language/it-IT.txt b/data/language/it-IT.txt index f0f66dc9ea..75f7100382 100644 --- a/data/language/it-IT.txt +++ b/data/language/it-IT.txt @@ -2997,7 +2997,7 @@ STR_5832 :Mostra l’altezza in unità generiche invece del formato impostato STR_5833 :Cambia il formato della data utilizzato STR_5834 :Seleziona il dispositivo audio utilizzato da OpenRCT2 STR_5835 :Disattiva l’audio del gioco se la finestra perde il focus -STR_5836 :Imposta la musica da utilizzare nel menu principale.{NEWLINE}Selezionando RCT1 sarà necessario copiare il file “data/css17.dat” dalla cartella di RCT1 a “data/css50.dat” nella cartella di RCT2, oppure impostare il percorso di RCT1 nella scheda “Altro”. +STR_5836 :Seleziona la musica da utilizzare nel menu principale.{NEWLINE}Per selezionare il tema di RCT1 è necessario impostare il percorso di RCT1 nella scheda Avanzate. STR_5837 :Crea e gestisci i temi dell’interfaccia STR_5838 :Mostra un pulsante differente per le finanze nella barra degli strumenti STR_5839 :Mostra un pulsante differente per le ricerche e sviluppo nella barra degli strumenti @@ -3286,8 +3286,8 @@ STR_6133 :Permette di accedere ad attrazioni e scenari non ancora inventati STR_6134 :Rimuovi scenario STR_6135 :Il client ha inviato una richiesta non valida STR_6136 :Il server ha inviato una richiesta non valida -STR_6137 :OpenRCT2, un clone libero e open-source di Roller Coaster Tycoon 2. -STR_6138 :OpenRCT2 è frutto del lavoro di molti autori, una lista completa si può trovare nel file “contributors.md”. Per ulteriori informazioni, visitare http://github.com/OpenRCT2/OpenRCT2 +STR_6137 :OpenRCT2, un remake con aggiunte gratuito e open-source di Roller Coaster Tycoon 2. +STR_6138 :OpenRCT2 è frutto del lavoro di molti autori, una lista completa si può trovare cliccando il pulsante “Collaboratori”. Per ulteriori informazioni, visitare http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Tutti i nomi di prodotti e aziende appartengono ai rispettivi proprietari. Il loro uso non implica alcuna affiliazione o approvazione da parte di essi. STR_6140 :Storico delle modifiche… STR_6141 :Barra degli strumenti inferiore alla RCT1 @@ -3431,7 +3431,7 @@ STR_6318 :Network desync rilevato.{NEWLINE}File log: {STRING} STR_6319 :Blocco freno chiuso STR_6320 :Indistruttibile STR_6321 :L’aggiunta è rotta -STR_6322 :{WINDOW_COLOUR_2}Sprite Id: {BLACK}{INT32} +STR_6322 :{WINDOW_COLOUR_2}Id entità: {BLACK}{INT32} STR_6323 :Simulazione STR_6324 :Simula STR_6325 :Simula attrazione @@ -3598,9 +3598,9 @@ STR_6487 :Mostra/nascondi personale STR_6488 :{RED}I visitatori si lamentano per la lunghezza delle code nel tuo parco.{NEWLINE}Prendi in considerazione di accorciare quelle problematiche o di aumentare il flusso di visitatori delle attrazioni. STR_6489 :Errore: versione parco non compatibile STR_6490 :Avviso: versione parco semi-compatibile -STR_6491 :Questo parco è stato salvato in una versione più recente di OpenRCT2. Il parco è v{INT32} e richiede almeno v{INT32}. +STR_6491 :Questo parco è stato salvato in una versione più recente di OpenRCT2. Il parco è stato salvato nella v{INT32} e richiede almeno v{INT32}. Si sta usando la v{INT32}. STR_6492 :Questo parco è stato salvato in una versione più vecchia di OpenRCT2 e non può essere aperto con questa versione. Il parco è v{INT32}. -STR_6493 :Questo parco è stato salvato in una versione più recente di OpenRCT2, alcuni dati potrebbero essere persi. Il parco è v{INT32} e richiede almeno v{INT32}. +STR_6493 :Questo parco è stato salvato in una versione più recente di OpenRCT2, alcuni dati potrebbero essere persi. Il parco è stato salvato nella v{INT32}. Si sta usando la v{INT32}. STR_6494 :Raggruppa per tipo attrazione STR_6495 :Raggruppa le attrazioni in base al loro tipo anziché mostrare ogni veicolo separatamente. STR_6496 :{WINDOW_COLOUR_2}{STRINGID} @@ -3622,11 +3622,84 @@ STR_6511 :Zero G Roll (Dx) STR_6512 :Zero G Roll Grande (Sx) STR_6513 :Zero G Roll Grande (Dx) STR_6514 :Altezza non valida! -STR_6515 :{BLACK}RCT1 non collegato - saranno usate immagini di ripiego. -STR_6516 :Uno o più oggetti aggiunti necessitano che RCT1 sia collegato per una corretta visualizzazione. Saranno usate immagini di ripiego. -STR_6517 :Uno o più oggetti di questo parco necessitano che RCT1 sia collegato per una corretta visualizzazione. Saranno usate immagini di ripiego. +STR_6515 :{BLACK}RollerCoaster Tycoon 1 non collegato - saranno usate immagini di ripiego. +STR_6516 :Uno o più oggetti aggiunti necessitano che RollerCoaster Tycoon 1 sia collegato per una corretta visualizzazione. Saranno usate immagini di ripiego. +STR_6517 :Uno o più oggetti di questo parco necessitano che RollerCoaster Tycoon 1 sia collegato per una corretta visualizzazione. Saranno usate immagini di ripiego. STR_6518 :{BLACK}Passa il cursore sopra a uno scenario per visualizzare la sua descrizione e il suo obiettivo. Fai clic per iniziare a giocare. STR_6519 :Extra +STR_6520 :Pacchetti di risorse +STR_6521 :Bassa priorità +STR_6522 :Alta priorità +STR_6523 :Abbassa la priorità del pacchetto di risorse selezionato. +STR_6524 :Aumenta la priorità del pacchetto di risorse selezionato. +STR_6525 :Ricarica tutte le risorse nel gioco con i pacchetti di risorse attivi. +STR_6526 :(grafica, musica ed effetti sonori di base) +STR_6527 :Competizioni +STR_6528 :Parametri del tracciato non validi! +STR_6529 :Parametro dello schema colore non valido! +STR_6530 :User Created Expansion Set +STR_6531 :The Time Machine +STR_6532 :Katy’s Dreamworld +STR_6533 :{WINDOW_COLOUR_2}Fattore di divertimento: {BLACK}-{COMMA16}% +STR_6534 :{WINDOW_COLOUR_2}Fattore d’intensità: {BLACK}-{COMMA16}% +STR_6535 :{WINDOW_COLOUR_2}Fattore di nausea: {BLACK}-{COMMA16}% +STR_6536 :Questo parco è stato salvato in una versione più recente di OpenRCT2. il parco è stato salvato nella v{INT32}, si sta usando la v{INT32}. +STR_6537 :Permette di usare percorsi regolari come code +STR_6538 :Mostra i percorsi regolari nel menu a cascata della finestra dei Sentieri. +STR_6539 :Freno chiuso +STR_6540 :{WINDOW_COLOUR_2}Un ringraziamento speciale alle seguenti aziende per aver concesso l'utilizzo della loro immagine: +STR_6541 :{WINDOW_COLOUR_2}Rocky Mountain Construction Group, Josef Wiegand GmbH & Co. KG +STR_6542 :Collaboratori +STR_6543 :Collaboratori… +STR_6544 :I prestiti non posso essere negativi! +STR_6545 :Usa il calcolo dell’intersse di RCT1 +STR_6546 :Usa l’algoritmo di calcolo dell’interesse di RollerCoaster Tycoon 1, che usa una percentuale fissa del circa 1.33%. +STR_6547 :Tutto lo scenario +STR_6548 :Mostra le ringhiere agli incroci +STR_6549 :Gli oggetti per la compatibilità non possono essere selezionati! +STR_6550 :Questa voce è inclusa per retrocompatibilità con oggetti vecchi o danneggiati. Non può essere selezionata, solo deselezionata. +STR_6551 :Verde militare +STR_6552 :Verde pallido +STR_6553 :Tanno +STR_6554 :Marrone +STR_6555 :Rosa corallo +STR_6556 :Verde foresta +STR_6557 :Chartreuse +STR_6558 :Verde cacciatore +STR_6559 :Celadon +STR_6560 :Verde lime +STR_6561 :Seppia +STR_6562 :Pesca +STR_6563 :Pervinca +STR_6564 :Verde viridiano +STR_6565 :Verde schiuma marina +STR_6566 :Violetto +STR_6567 :Lavanda +STR_6568 :Arancio pastello +STR_6569 :Acqua Profonda +STR_6570 :Rosa pastello +STR_6571 :Terra d’ombra +STR_6572 :Beige +STR_6573 :Invisibile +STR_6574 :Oblio +STR_6575 :Peremtti combinazioni di colori speciali +STR_6576 :Aggiunge i colori speciali al menu a cascata dei colori +STR_6577 :Velocità freni di blocco +STR_6578 :Fissa un limite di velocità per i freni di blocco. In modalità sezione a blocchi, freni adiacenti con una velocità inferiore sono collegati con i freni di blocco. +STR_6579 :I freni di blocco saranno impostati alla velocità predefinita quando salvati come progetto di percorso +STR_6580 :Ripristina +STR_6581 :Si è sicuri di voler ripristinare tutte le scorciatorie di questa scheda? +STR_6582 :Finestra delle scorciatoie da tastiera +STR_6583 :{WINDOW_COLOUR_2}Treni invertiti +STR_6584 :Selezionare per far andare i treni al contrario +STR_6585 :Impossibile effettuare modifiche… +STR_6586 :OpenRCT2 +STR_6587 :Il tema principale di OpenRCT2 è un lavoro di Allister Brimble,{NEWLINE}con licensa CC BY-SA 4.0. +STR_6588 :Si ringrazia Herman Riddering per averci permesso di registrare il 35er Voigt. +STR_6589 :Mostra i pulsanti di controllo della finestra a sinistra +STR_6590 :Mostra i pulsanti di controllo della finestra a sinistra della barra del titolo invece che a destra. +STR_6591 :Il dipendente sta riparando un’attrazione e non può essere licenziato. +STR_6592 :Il dipendente sta ispezionando un’attrazione e non può essere licenziato. ############# @@ -4383,3 +4456,102 @@ STR_DTLS :Questo vecchio parco a tema ha vissuto tempi migliori. Aiuta il pro STR_SCNR :Il Mondo dei Panda STR_PARK :Il Mondo dei Panda STR_DTLS :Aggiungi più attrazioni per attirare più visitatori in questo parco a tema sui panda. + +### + +STR_SCNR :Cemetery Ridge +STR_PARK :Cemetery Ridge +STR_DTLS :Questo è Halloween, l’Halloween di UCES, le zucche urlano nel bel mezzo della notte! Questo cimitero è in grossi guai e tocca a te salvarlo, lasciando però i morti riposare in pace! Sarai in grado di tenere i fantasmi all’interno delle loro tombe e far rabbrividire i tuoi visitatori?{NEWLINE}Autore: Squid + +############################################################################### +## UCES: The Time Machine (2003) +############################################################################### + +STR_SCNR :The Lighthouse of Alexandria +STR_PARK :The Lighthouse of Alexandria +STR_DTLS :Alessandro costruì la città; i greci, i romani e gli egiziani lasciarono le loro tracce. Ma il più grande regalo è una delle Meraviglie del Mondo Antico, il Faro. Visitalo e creaci un parco!{NEWLINE}Autore: Katatude + + +STR_SCNR :Luna Park, Cleveland +STR_PARK :Luna Park +STR_DTLS :Proprio com’era il giorno della sua apertura, il 18 maggio 1905.{NEWLINE}Autore: Aetherwave + + +STR_SCNR :Mount Vesuvius +STR_PARK :Mount Vesuvius +STR_DTLS :Pompei ed Ercolano furono ricoperte dal Vesuvio nel 79 a.C. Visita gli scavi e costruiscici un parco!{NEWLINE}Autore: Katatude + + +STR_SCNR :The Sandbox +STR_PARK :The Sandbox +STR_DTLS :Quello che tutti desiderano - una sandbox! Quindi prendi secchio e pala e costruisci un parco!{NEWLINE}Autore: Katatude + + +STR_SCNR :Niagara Falls & Gorge +STR_PARK :Niagara Falls +STR_DTLS :Le American Falls, le Bridal Falls e le Canadian Horseshoe Falls sul confine del Niagara, 1850.{NEWLINE}Autore: Katatude + + +STR_SCNR :Rocky Mountain Miners +STR_PARK :Rocky Mountain Miners +STR_DTLS :Una frana ha danneggiato la tua ferrovia. I tuoi lavoratori sono andati a scavare, ci sarà dell’oro nelle montagne russe?{NEWLINE}Autori: Squid, Buckone, Fossil + + +STR_SCNR :The Time Machine +STR_PARK :The Time Machine +STR_DTLS :La macchina del tempo. Costruisci e viaggia, dove vuoi, quando vuoi. L’eternità ti aspetta. È tutto relativo.{NEWLINE}Autore: Katatude + + +STR_SCNR :Tower of Babel +STR_PARK :Tower of Babel +STR_DTLS :Ehii! Guarda dove ci ha portato adesso la macchina del tempo! Dove sono finiti tutti?{NEWLINE}Autore: Fossil + + +STR_SCNR :Transformation +STR_PARK :Transformation +STR_DTLS :Ti stavamo aspettando…{NEWLINE}Autore: Fossil + + +STR_SCNR :Urbis Incognitus +STR_PARK :Urbis Incognitus +STR_DTLS :I romani sono stanchi delle lotte noiose tra gladiatori. Dagli qualcosa di più eccitante, trasforma la città romana nel più grande parco divertimenti della storia!{NEWLINE}Autore: Kaffe + +############################################################################### +## UCES: Katy’s Dreamworld (2003) +############################################################################### + + +STR_SCNR :Beneath the Christmas Tree +STR_PARK :Winter Wonderland +STR_DTLS :La mamma ha costruito questa scena sotto al nostro albero. Ora vuole che ci costruiamo un parco! Puoi aiutarci?{NEWLINE}Autore: Katatude + + +STR_SCNR :Bigrock Blast +STR_PARK :Bigrock Blast +STR_DTLS :Dopo un’esplosione alle Miniere Pietragrossa S.p.A., agli abitanti di Pietragrossa tocca costruire un parco divertimenti per mantenere la loro città viva.{NEWLINE}Autori: rbarclay & buckone + + +STR_SCNR :Camp Mockingbird +STR_PARK :Camp Mockingbird +STR_DTLS :Solo 500 dollari a settimana per questo campo estivo! Spacca il salvadanaio e divertiti a costruire un parco.{NEWLINE}Autore: Katatude + + +STR_SCNR :Choo-Choo Town +STR_PARK :Choo-Choo Town +STR_DTLS :Mamma! Papà! Voglio andare a Choo-Choo Town!{NEWLINE}Autore: Fossil + + +STR_SCNR :Dragon Islands +STR_PARK :Dragon Islands +STR_DTLS :L’isola dei dragoni? Non sono sicuro di volerci andare…{NEWLINE}Autore: Fossil + + +STR_SCNR :Kiddie Karnival II +STR_PARK :Kiddie Karnival +STR_DTLS :Ehi bambini! Divertiamoci!{NEWLINE}Autori: Piehead & Fossil + + +STR_SCNR :Sand Dune +STR_PARK :Sand Dune +STR_DTLS :In veste di proprietario di un piccolo parco, hai acquistato un ampio terreno lungo la costa per espanderti e portare più visitatori tra le dune di sabbia, ma stai attento: non puoi disturbare queste dune così ecologicamente fragili!{NEWLINE}Autore: rbarclay + diff --git a/data/language/ko-KR.txt b/data/language/ko-KR.txt index 5b70181f0b..55a3ef57b0 100644 --- a/data/language/ko-KR.txt +++ b/data/language/ko-KR.txt @@ -3690,7 +3690,13 @@ STR_6582 :키보드 단축키 창 열기 STR_6583 :{WINDOW_COLOUR_2}역방향 차량 STR_6584 :차량을 뒤집어서 운행하려면 체크하세요 STR_6585 :변경할 수 없습니다… - +STR_6586 :OpenRCT2 +STR_6587 :Allister Brimble이 제작한 OpenRCT2 타이틀 테마 음악{NEWLINE}저작권: CC BY-SA 4.0. +STR_6588 :35er Voigt 녹음을 허락해주신 Herman Riddering에게 감사드립니다. +STR_6589 :창 버튼을 왼쪽에 표시 +STR_6590 :창 버튼(e.g. 창 닫기 버튼)을 타이틀 바의 오른쪽 대신 왼쪽에 표시합니다. +STR_6591 :직원이 지금 놀이기구를 수리하고 있어서 해고할 수 없습니다. +STR_6592 :직원이 지금 놀이기구를 점검하고 있어서 해고할 수 없습니다. ############# # Scenarios # diff --git a/data/language/nl-NL.txt b/data/language/nl-NL.txt index f65f5db6d2..6a6b02b532 100644 --- a/data/language/nl-NL.txt +++ b/data/language/nl-NL.txt @@ -3686,6 +3686,13 @@ STR_6582 :Sneltoetsen openen STR_6583 :{WINDOW_COLOUR_2}Achterstevoren STR_6584 :Keert de trein om, zodat hij achterstevoren over de baan rijdt. STR_6585 :Kan dit niet wijzigen… +STR_6586 :OpenRCT2 +STR_6587 :De titelmuziek van OpenRCT2 Title Theme is gemaakt door Allister Brimble,{NEWLINE}en beschikbaar gemaakt onder de CC BY-SA 4.0-licentie. +STR_6588 :Met dank aan Herman Riddering, die ons toestemming gaf om zijn 35er Voigt op te nemen. +STR_6589 :Vensterknoppen aan de linkerkant +STR_6590 :Verplaatst de vensterknoppen (o.a. voor het sluiten van het venster), die normaal gesproken rechts staan, naar de linkerkant van de titelbalk. +STR_6591 :Deze werknemer is momenteel bezig met het repareren van een attractie en kan daarom niet worden ontslagen. +STR_6592 :Deze werknemer is momenteel bezig met het inspecteren van een attractie en kan daarom niet worden ontslagen. ############# # Scenarios # diff --git a/data/language/pl-PL.txt b/data/language/pl-PL.txt index 935f42afd8..8eb0b912ca 100644 --- a/data/language/pl-PL.txt +++ b/data/language/pl-PL.txt @@ -970,7 +970,7 @@ STR_1581 : STR_1582 : STR_1583 : STR_1584 :“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalne” -STR_1585 :“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalneENDQUOTES} +STR_1585 :“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalne” STR_1586 :“To zdjęcie z przejażdżki na {STRINGID} było naprawdę opłacalne” STR_1587 :“Ten precel z {STRINGID} był naprawdę opłacalny” STR_1588 :“Ta gorąca czekolada z {STRINGID} była naprawdę opłacalna” diff --git a/data/language/pt-BR.txt b/data/language/pt-BR.txt index 75907c03f0..707ba86379 100644 --- a/data/language/pt-BR.txt +++ b/data/language/pt-BR.txt @@ -3687,6 +3687,13 @@ STR_6582 :Abrir janela de atalhos do teclado STR_6583 :{WINDOW_COLOUR_2}Trens Invertidos STR_6584 :Selecione para que os trens operem de costas STR_6585 :Não é possível fazer alterações… +STR_6586 :OpenRCT2 +STR_6587 :A música tema do OpenRCT2 é uma criação de Allister Brimble,{NEWLINE}licenciada com CC BY-SA 4.0. +STR_6588 :Agradecemos a Herman Riddering por nos deixar gravar a 35er Voigt. +STR_6589 :Mostrar botões de janela à esquerda +STR_6590 :Mostra os botões de janela (como o de fechar a janela) à esquerda do topo, em vez de à direita. +STR_6591 :O funcionário está atualmente consertando uma atração e não pode ser demitido. +STR_6592 :O funcionário está atualmente inspecionando uma atração e não pode ser demitido. ############# # Scenarios # diff --git a/data/language/zh-CN.txt b/data/language/zh-CN.txt index a5f02cdef9..70590d0153 100644 --- a/data/language/zh-CN.txt +++ b/data/language/zh-CN.txt @@ -3687,6 +3687,13 @@ STR_6582 :打开快捷键窗口 STR_6583 :{WINDOW_COLOUR_2}反向列车 STR_6584 :选择反向运行列车 STR_6585 :无法做出更改…… +STR_6586 :OpenRCT2 +STR_6587 :OpenRCT2的标题样式由Allister Brimble设计,{NEWLINE}许可证类型 CC BY-SA 4.0. +STR_6588 :感谢Herman Riddering允许我们录制“35er Voigt”。 +STR_6589 :在左侧显示窗口按钮 +STR_6590 :在左侧显示窗口按钮(例如关闭窗口的按钮)在标题栏左侧而不是右侧。 +STR_6591 :维修人员目前正在修理游乐设施,不能被开除。 +STR_6592 :维修人员目前正在检查游乐设施,不能被开除。 ############# # Scenarios # diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 1ead5c2e09..3cb43d44a6 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,12 +1,59 @@ +0.4.6 (in development) +------------------------------------------------------------------------ +- Feature: [#15660] Ability to show window buttons on the left. +- Feature: [#20680] New title sequences (https://github.com/OpenRCT2/title-sequences/releases/tag/v0.4.6). +- Feature: [OpenMusic#41] Official Title Theme by Allister Brimble. +- Improved: [#20119, #20243] Add new colour presets to several roller coasters (using the new colours). +- Improved: [#20393, #20410] Add Cyrillic characters Ґґ, Ѕѕ, Єє, Іі, Її, and Јј to the sprite font. +- Change: [#19785] OpenMusic is now selected by default when opening SC4/SC6 - or creating new - scenarios. +- Change: [#20110] Fix a few RCT1 build height parity discrepancies. +- Change: [#20550] Change SEK conversion rate from 1 GBP to 0.1 GBP. +- Fix: [#6152] Camera and UI are no longer locked at 40 Hz, providing a smoother experience. +- Fix: [#9534] Screams no longer cut-off on steep diagonal drops. +- Fix: [#17666] Using the mountain tool near the edge of the map with clearance checks disabled causes visual glitches. +- Fix: [#19450] The correct element is now auto-suggested when building a Medium Half Loop backwards. +- Fix: [#19735] Server unable to advertise to master server after a connection loss. +- Fix: [#19822] Tile inspector does not deep copy banners. +- Fix: [#19823] Parkobj: disallow overriding objects of different object types. +- Fix: [#19878] Unresearched scenery can be placed via prebuilt rides. +- Fix: [#20083] Cannot use terrain surfaces with ID > 32 and terrain edges with ID > 16. +- Fix: [#20089] Potential crash when a window is closed from another window. +- Fix: [#20103] [Plugin] Crash when custom plugin actions fail due to immutable state. +- Fix: [#20111] All coaster types can access the new diagonal slope pieces. +- Fix: [#20155] Fairground organ style 2 shows up as regular music, rather than for the merry-go-round. +- Fix: [#20260] Ride locks up when inspecting/fixing staff member is fired. +- Fix: [#20262] Title screen music missing when “random” title music is selected and RCT1 is no longer linked. +- Fix: [#20310] Map animations are not created on the title screen. +- Fix: [#20342] Large Half Loop (left) now only appears once in the special elements dropdown. +- Fix: [#20361] Crash when using random map generation. +- Fix: [#20364] Adding too much money with cheats causes an overflow. +- Fix: [#20365] Money cheat input does not support negative values. +- Fix: [#20389] Reversed vehicles are now correctly banked on diagonal slopes. +- Fix: [#20413] Crash when attempting to navigate an empty console history. +- Fix: [#20417] Plugin/custom windows are missing the left border in the title bar. +- Fix: [#20429] Error window tooltip not closing after 8 seconds. +- Fix: [#20456] Downward large half loops on flying coasters (fly-to-lie) are now correctly named. +- Fix: [#20484] Console caret not properly updated when using command history. +- Fix: [#20496] Ride rating requirements for compact inverted coasters is no longer relaxed. +- Fix: [#20543] Crash using show segments height from debug paint options. +- Fix: [#20607] Infinite loop when renaming rides with default names longer than 32 bytes. +- Fix: [#20642] Track list is sometimes empty due to uninitialized data for the filter string. +- Fix: [#20659] Phantom rides remain when closing construction window while paused. +- Fix: [#20672] Maze ghost elements incorrectly displayed. +- Fix: [#20684] Footpath additions getting removed by Miniature railway ghost elements. +- Fix: [#20693] Incorrect information shown when hovering over station when another station before it was removed. +- Fix: [#20739] Build version info on title screen leaving stray pixels when the camera is moved. + 0.4.5 (2023-05-08) ------------------------------------------------------------------------ -- Feature: [#18713] Block brakes have speed control and brakes slower than adjacent block brakes copy block brake speed when block brake open. +- Feature: [#18713] Block brakes have speed control and brakes slower than adjacent block brakes copy block brake speed when the block brake is open. - Feature: [#19276] Add Powered Lifthill to Giga Coaster. - Feature: [#19305] Add new Reversed Trains ride setting to run trains backwards, granting a bonus to ride ratings. - Feature: [#19305] [Plugin] Add “Car.isReversed” to allow individual ride vehicles to run backwards. -- Feature: [#19446] Add new color options to color dropdown. +- Feature: [#19446] Add new colour options to colour dropdown. - Feature: [#19547] Add large sloped turns to hybrid coaster and single rail coaster. - Feature: [#19930] Add plugin APIs for research. +- Feature: [#19979] Add plugin API for scenery groups. - Feature: [OpenMusic#25] Added Prehistoric ride music style. - Feature: [OpenMusic#26] Fairground Organ style 2 with new recordings from Herman's 35er Voigt (Previously known as Bressingham Voigt). - Feature: [OpenMusic#28] Add Ragtime style 2 ride music. @@ -33,6 +80,7 @@ - Fix: [#19767] No message when path is not connected to ride exit and is therefore unreachable for mechanics. - Fix: [#19800] Crash when displaying station stats with more than 62 stations. - Fix: [#19801] The in-game load/save window cannot be resized anymore. +- Fix: [#19832] Some scenery group items missing from all scenery tab. - Fix: [#19854] Looping Coaster trains clipping through steep quarter turns down. - Fix: [#19858] Issue drawing simulate flag icon on alternate colour palettes. - Fix: [#19901] Random shop colours never assigning last colour. diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index fd02debea6..caf4312222 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -41,6 +41,10 @@ declare global { var climate: Climate; /** APIs for performance profiling. */ var profiler: Profiler; + /** + * APIs for getting, loading, and unloading objects. + */ + var objectManager: ObjectManager; /** * APIs for creating and editing title sequences. * These will only be available to clients that are not running headless mode. @@ -217,19 +221,40 @@ declare global { captureImage(options: CaptureOptions): void; /** - * Gets the loaded object at the given index. - * @param type The object type. - * @param index The index. + * @deprecated Use {@link ObjectManager.getObject} instead. */ getObject(type: ObjectType, index: number): LoadedImageObject; - getObject(type: "music", index: number): LoadedObject; + + /** + * @deprecated Use {@link ObjectManager.getObject} instead. + */ getObject(type: "ride", index: number): RideObject; + + /** + * @deprecated Use {@link ObjectManager.getObject} instead. + */ getObject(type: "small_scenery", index: number): SmallSceneryObject; + /** + * @deprecated Use {@link ObjectManager.getObject} instead. + */ + getObject(type: "music", index: number): LoadedObject; + + /** + * @deprecated Use {@link ObjectManager.getAllObjects} instead. + */ getAllObjects(type: ObjectType): LoadedImageObject[]; - getAllObjects(type: "music"): LoadedObject[]; + + /** + * @deprecated Use {@link ObjectManager.getAllObjects} instead. + */ getAllObjects(type: "ride"): RideObject[]; + /** + * @deprecated Use {@link ObjectManager.getAllObjects} instead. + */ + getAllObjects(type: "music"): LoadedObject[]; + /** * Gets the {@link TrackSegment} for the given type. * @param type The track segment type. @@ -1586,10 +1611,80 @@ declare global { removeElement(index: number): void; } + type ObjectSourceGame = + "rct1" | + "added_attractions" | + "loopy_landscapes" | + "rct2" | + "wacky_worlds" | + "time_twister" | + "custom" | + "openrct2_official"; + + type ObjectGeneration = "dat" | "json"; + + /** + * Represents an installed OpenRCT2 object which may or may not be currently loaded into the park. + */ + interface InstalledObject { + /** + * The full path of the object file. + */ + readonly path: string; + + /** + * Whether the object is an original .DAT file, or a .parkobj / .json file. + */ + readonly generation: ObjectGeneration; + + /** + * The object type. + */ + readonly type: ObjectType; + + /** + * The original game or expansion pack this object first appeared in. + */ + readonly sourceGames: ObjectSourceGame[]; + + /** + * The unique identifier of the object, e.g. "rct2.burgb". + * For legacy DAT objects, the identifier will be in a format similar to "09F55405|DirtGras|B9B19A7F". + */ + readonly identifier: string; + + /** + * The original unique identifier of the object, e.g. "BURGB ". + * This may have trailing spaces if the name is shorter than 8 characters. + * Only .DAT objects or JSON objects based on .DAT objects will have legacy identifiers. + */ + readonly legacyIdentifier: string | null; + + /** + * The object version, e.g. "1.5.2-pre". + */ + readonly version: string; + + /** + * Gets the list of authors for the object. + */ + readonly authors: string[]; + + /** + * The name in the user's current language. + */ + readonly name: string; + } + /** * Represents the definition of a loaded object (.DAT or .json) such as ride type or scenery item. */ interface LoadedObject { + /** + * Gets a reference to the installed object. + */ + readonly installedObject: InstalledObject; + /** * The object type. */ @@ -1602,7 +1697,7 @@ declare global { /** * The unique identifier of the object, e.g. "rct2.burgb". - * Only JSON objects will have an identifier. + * For legacy DAT objects, the identifier will be in a format similar to "09F55405|DirtGras|B9B19A7F". */ readonly identifier: string; @@ -1752,10 +1847,19 @@ declare global { readonly numVerticalFramesOverride: number; } + interface SceneryObject extends LoadedImageObject { + /** + * A list of scenery groups this object belongs to. This may not contain any + * scenery groups that contain this object by default. This is typically + * used for custom objects to be part of existing scenery groups. + */ + readonly sceneryGroups: string[]; + } + /** * Represents the object definition of a small scenery item such a tree. */ - interface SmallSceneryObject extends LoadedImageObject { + interface SmallSceneryObject extends SceneryObject { /** * Raw bit flags that describe characteristics of the scenery item. */ @@ -1777,6 +1881,32 @@ declare global { readonly removalPrice: number; } + interface LargeSceneryObject extends SceneryObject { + + } + + interface WallObject extends SceneryObject { + + } + + interface FootpathAdditionObject extends SceneryObject { + + } + + interface BannerObject extends SceneryObject { + + } + + /** + * Represents the object definition of a scenery group. + */ + interface SceneryGroupObject extends LoadedImageObject { + /** + * The scenery items that belong to this scenery group. + */ + readonly items: string[]; + } + /** * Represents a ride or stall within the park. */ @@ -2337,11 +2467,11 @@ declare global { * The current tilt of the car in the X/Y axis. */ bankRotation: number; - - /** - * Whether the car sprite is reversed or not. - */ - isReversed: boolean; + + /** + * Whether the car sprite is reversed or not. + */ + isReversed: boolean; /** * The colour of the car. @@ -3443,7 +3573,7 @@ declare global { /** * The objective type. */ - type: ScenarioObjective; + type: ScenarioObjectiveType; /** * The required number of guests. @@ -3869,7 +3999,7 @@ declare global { "map_north_pressed" | "map_south" | "map_south_pressed" | "map_west" | "map_west_pressed" | "mountain_tool_even" | "mountain_tool_odd" | "multiplayer" | "multiplayer_desync" | "multiplayer_sync" | "multiplayer_toolbar" | "multiplayer_toolbar_pressed" | "mute" | "mute_pressed" | "news_messages" | - "normal_selection_6x6" | "paste" | "path_railings" | "path_surfaces" | "paths" | "placeholder" | + "normal_selection_6x6" | "palette_invisible" | "palette_invisible_pressed" | "paste" | "path_railings" | "path_surfaces" | "paths" | "placeholder" | "rct1_close_off" | "rct1_close_off_pressed" | "rct1_close_on" | "rct1_close_on_pressed" | "rct1_open_off" | "rct1_open_off_pressed" | "rct1_open_on" | "rct1_open_on_pressed" | "rct1_simulate_off" | "rct1_simulate_off_pressed" | "rct1_simulate_on" | "rct1_simulate_on_pressed" | "rct1_test_off" | @@ -4588,4 +4718,81 @@ declare global { readonly parents: number[]; readonly children: number[]; } + + interface ObjectManager { + /** + * Gets all the objects that are installed and can be loaded into the park. + */ + readonly installedObjects: InstalledObject[]; + + /** + * Gets the installed object with the given identifier, or null + * if the object was not found. + * @param identifier The object identifier. + */ + getInstalledObject(identifier: string): InstalledObject | null; + + /** + * Attempt to load the object into the current park at the given index for the object type. + * If an object already exists at the given index, that object will be unloaded and this object + * will replace it, providing the object type is the same. + * @param identifier The object identifier. + * @param index The index to load the object to. If not provided, an empty slot will be used. + * @returns The index of the loaded object. + */ + load(identifier: string, index?: number): LoadedObject | null; + + /** + * Attempt to load the given objects into the current park, given they are not already loaded. + */ + load(identifiers: string[]): (LoadedObject | null)[]; + + /** + * Unloads the object, if loaded. + * @param identifier The object identifier to unload. + */ + unload(identifier: string): void; + + /** + * Unloads the specified objects, if loaded. + * @param identifiers The object identifiers to unload. + */ + unload(identifiers: string[]): void; + + /** + * Unloads the specified object, if loaded. + * @param type The object type. + * @param index The index of the slot to unload for the given type. + */ + unload(type: ObjectType, index: number): void; + + /** + * Gets the loaded object at the given index. + * @param type The object type. + * @param index The index. + */ + getObject(type: ObjectType, index: number): LoadedObject; + getObject(type: "ride", index: number): RideObject; + getObject(type: "small_scenery", index: number): SmallSceneryObject; + getObject(type: "large_scenery", index: number): LargeSceneryObject; + getObject(type: "wall", index: number): WallObject; + getObject(type: "footpath_addition", index: number): FootpathAdditionObject; + getObject(type: "banner", index: number): BannerObject; + getObject(type: "scenery_group", index: number): SceneryGroupObject; + getObject(type: "music", index: number): LoadedObject; + + /** + * Gets all the currently loaded objects for a given object type. + * @param type The object type. + */ + getAllObjects(type: ObjectType): LoadedObject[]; + getAllObjects(type: "ride"): RideObject[]; + getAllObjects(type: "small_scenery"): SmallSceneryObject[]; + getAllObjects(type: "large_scenery"): LargeSceneryObject[]; + getAllObjects(type: "wall"): WallObject[]; + getAllObjects(type: "footpath_addition"): FootpathAdditionObject[]; + getAllObjects(type: "banner"): BannerObject[]; + getAllObjects(type: "scenery_group"): SceneryGroupObject[]; + getAllObjects(type: "music"): LoadedObject[]; + } } diff --git a/openrct2.common.props b/openrct2.common.props index 6c3401d04c..ecb0b4a280 100644 --- a/openrct2.common.props +++ b/openrct2.common.props @@ -58,7 +58,7 @@ C4549: 'operator': operator before comma has no effect; did you intend 'operator'? C4555: expression has no effect; expected expression with side-effect --> - BENCHMARK_STATIC_DEFINE;OPENGL_NO_LINK;_CRT_SECURE_NO_WARNINGS;SDL_MAIN_HANDLED;_WINSOCK_DEPRECATED_NO_WARNINGS;NOMINMAX;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions) + OPENGL_NO_LINK;_CRT_SECURE_NO_WARNINGS;SDL_MAIN_HANDLED;_WINSOCK_DEPRECATED_NO_WARNINGS;NOMINMAX;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions) __AVX2__;__SSE4_1__;%(PreprocessorDefinitions) ENABLE_SCRIPTING;%(PreprocessorDefinitions) MultiThreaded @@ -86,7 +86,7 @@ DebugFull - benchmark.lib;brotlicommon-static.lib;brotlidec-static.lib;brotlienc-static.lib;%(AdditionalDependencies) + brotlicommon-static.lib;brotlidec-static.lib;brotlienc-static.lib;%(AdditionalDependencies) libbreakpadd.lib;libbreakpad_clientd.lib;%(AdditionalDependencies) bz2d.lib;discord-rpc.lib;flac.lib;freetyped.lib;libpng16d.lib;ogg.lib;speexdsp.lib;SDL2-staticd.lib;vorbis.lib;vorbisfile.lib;zip.lib;zlibd.lib;%(AdditionalDependencies) @@ -107,7 +107,7 @@ DebugFull true true - benchmark.lib;brotlicommon-static.lib;brotlidec-static.lib;brotlienc-static.lib;%(AdditionalDependencies) + brotlicommon-static.lib;brotlidec-static.lib;brotlienc-static.lib;%(AdditionalDependencies) libbreakpad.lib;libbreakpad_client.lib;%(AdditionalDependencies) bz2.lib;discord-rpc.lib;flac.lib;freetype.lib;libpng16.lib;ogg.lib;speexdsp.lib;SDL2-static.lib;vorbis.lib;vorbisfile.lib;zip.lib;zlib.lib;%(AdditionalDependencies) diff --git a/openrct2.proj b/openrct2.proj index 8d84896507..252dc79eb2 100644 --- a/openrct2.proj +++ b/openrct2.proj @@ -43,14 +43,14 @@ 930df83ef49d91b1ef886f5dbf0a9cb61d704a50 https://github.com/OpenRCT2/Dependencies/releases/download/v34/openrct2-libs-v34-arm64-windows-static.zip bd338aa3da9a357fb996dcaa6cea02c4f906718c - https://github.com/OpenRCT2/title-sequences/releases/download/v0.4.0/title-sequences.zip - 4ab0065e5a4d9f9c77d94718bbdfcfcd5a389da0 + https://github.com/OpenRCT2/title-sequences/releases/download/v0.4.6/title-sequences.zip + 80fefc6ebbabc42a6f4703412daa5c62f661420d https://github.com/OpenRCT2/objects/releases/download/v1.3.11/objects.zip 02ddf6c685a2da8bac98a57b34be95d63192443d https://github.com/OpenRCT2/OpenSoundEffects/releases/download/v1.0.3/opensound.zip ffec5a97bd5035860c4c9a43fe32cf51886478e3 - https://github.com/OpenRCT2/OpenMusic/releases/download/v1.3.0/openmusic.zip - b0cec998a3679f1cde17d91f2508ec4923c1a25c + https://github.com/OpenRCT2/OpenMusic/releases/download/v1.3.1/openmusic.zip + cb7b05af97aaf7949fb509063d45df6613f20521 https://github.com/OpenRCT2/replays/releases/download/v0.0.78/replays.zip 31C5D07EED8481D5C6D57F9E4FE9443AAEDE7739 diff --git a/resources/g2/font/cyrillic/U1028-bold.png b/resources/g2/font/cyrillic/U1028-bold.png new file mode 100644 index 0000000000..c45cd60f13 Binary files /dev/null and b/resources/g2/font/cyrillic/U1028-bold.png differ diff --git a/resources/g2/font/cyrillic/U1028-small.png b/resources/g2/font/cyrillic/U1028-small.png new file mode 100644 index 0000000000..02134fe4b3 Binary files /dev/null and b/resources/g2/font/cyrillic/U1028-small.png differ diff --git a/resources/g2/font/cyrillic/U1028-tiny.png b/resources/g2/font/cyrillic/U1028-tiny.png new file mode 100644 index 0000000000..0d7fcb643d Binary files /dev/null and b/resources/g2/font/cyrillic/U1028-tiny.png differ diff --git a/resources/g2/font/cyrillic/U1108-bold.png b/resources/g2/font/cyrillic/U1108-bold.png new file mode 100644 index 0000000000..8afe168c79 Binary files /dev/null and b/resources/g2/font/cyrillic/U1108-bold.png differ diff --git a/resources/g2/font/cyrillic/U1108-small.png b/resources/g2/font/cyrillic/U1108-small.png new file mode 100644 index 0000000000..409f17816b Binary files /dev/null and b/resources/g2/font/cyrillic/U1108-small.png differ diff --git a/resources/g2/font/cyrillic/U1108-tiny.png b/resources/g2/font/cyrillic/U1108-tiny.png new file mode 100644 index 0000000000..ea56e96c5e Binary files /dev/null and b/resources/g2/font/cyrillic/U1108-tiny.png differ diff --git a/resources/g2/font/cyrillic/U1168-bold.png b/resources/g2/font/cyrillic/U1168-bold.png new file mode 100644 index 0000000000..41e80b811a Binary files /dev/null and b/resources/g2/font/cyrillic/U1168-bold.png differ diff --git a/resources/g2/font/cyrillic/U1168-small.png b/resources/g2/font/cyrillic/U1168-small.png new file mode 100644 index 0000000000..bdcdd2018d Binary files /dev/null and b/resources/g2/font/cyrillic/U1168-small.png differ diff --git a/resources/g2/font/cyrillic/U1168-tiny.png b/resources/g2/font/cyrillic/U1168-tiny.png new file mode 100644 index 0000000000..98c4fef6b7 Binary files /dev/null and b/resources/g2/font/cyrillic/U1168-tiny.png differ diff --git a/resources/g2/font/cyrillic/U1169-bold.png b/resources/g2/font/cyrillic/U1169-bold.png new file mode 100644 index 0000000000..1c434bba46 Binary files /dev/null and b/resources/g2/font/cyrillic/U1169-bold.png differ diff --git a/resources/g2/font/cyrillic/U1169-small.png b/resources/g2/font/cyrillic/U1169-small.png new file mode 100644 index 0000000000..d31f148a2d Binary files /dev/null and b/resources/g2/font/cyrillic/U1169-small.png differ diff --git a/resources/g2/font/cyrillic/U1169-tiny.png b/resources/g2/font/cyrillic/U1169-tiny.png new file mode 100644 index 0000000000..1f9a2dcbfe Binary files /dev/null and b/resources/g2/font/cyrillic/U1169-tiny.png differ diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index b4919ac0fa..30e04cda64 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -305,6 +305,252 @@ "x_offset": 2, "y_offset": 2 }, + { + "path": "icons/colour_invisible.png" + }, + { + "path": "icons/colour_invisible_pressed.png" + }, + { + "path": "palette_map/palette_map_dark_olive_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_dark_olive_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_saturated_brown_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_bordeaux_red_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_bordeaux_red_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_grass_green_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_grass_green_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_olive_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_olive_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_saturated_green_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_tan_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_tan_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_dull_purple_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_dull_green_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_dull_green_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_saturated_purple_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_saturated_purple_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_orange_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_aqua_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_magenta_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_dull_brown_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_dull_brown_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_invisible.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_void.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_dark_olive_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_dark_olive_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_saturated_brown_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_bordeaux_red_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_bordeaux_red_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_grass_green_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_grass_green_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_olive_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_olive_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_saturated_green_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_tan_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_tan_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_dull_purple_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_dull_green_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_dull_green_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_saturated_purple_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_saturated_purple_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_orange_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_aqua_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_magenta_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_dull_brown_dark.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_dull_brown_light.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_invisible.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "palette_map/palette_map_glass_void.png", + "palette": "keep", + "forceBmp": true + }, { "path": "surface/glassy_recolourable.png", "x_offset": -32, @@ -356,6 +602,11 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/cyrillic/U1028-small.png", + "palette": "keep", + "forceBmp": true + }, { "path": "font/cyrillic/U1041-small.png", "palette": "keep", @@ -583,6 +834,23 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/cyrillic/U1108-small.png", + "y_offset": 2, + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/cyrillic/U1168-small.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/cyrillic/U1169-small.png", + "y_offset": 1, + "palette": "keep", + "forceBmp": true + }, { "path": "font/german-openquotes-small.png", "y_offset": 6, @@ -985,6 +1253,11 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/cyrillic/U1028-bold.png", + "palette": "keep", + "forceBmp": true + }, { "path": "font/cyrillic/U1041-bold.png", "palette": "keep", @@ -1212,6 +1485,23 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/cyrillic/U1108-bold.png", + "y_offset": 2, + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/cyrillic/U1168-bold.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/cyrillic/U1169-bold.png", + "y_offset": 1, + "palette": "keep", + "forceBmp": true + }, { "path": "font/german-openquotes-bold.png", "y_offset": 5, @@ -1613,6 +1903,11 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/cyrillic/U1028-tiny.png", + "palette": "keep", + "forceBmp": true + }, { "path": "font/cyrillic/U1041-tiny.png", "palette": "keep", @@ -1730,6 +2025,7 @@ }, { "path": "font/cyrillic/U1075-tiny.png", + "y_offset": 1, "palette": "keep", "forceBmp": true }, @@ -1850,6 +2146,23 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/cyrillic/U1108-tiny.png", + "y_offset": 1, + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/cyrillic/U1168-tiny.png", + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/cyrillic/U1169-tiny.png", + "y_offset": 1, + "palette": "keep", + "forceBmp": true + }, { "path": "font/german-openquotes-tiny.png", "y_offset": 4, @@ -2317,7 +2630,7 @@ "path": "track/intamin/liftbooster_0.png", "x_offset": -21, "y_offset": -20, - "palette": "keep" + "palette": "keep" }, { "path": "track/intamin/liftbooster_1.png", @@ -20612,251 +20925,5 @@ "x_offset": -5, "y_offset": -20, "palette": "keep" - }, - { - "path": "icons/colour_invisible.png" - }, - { - "path": "icons/colour_invisible_pressed.png" - }, - { - "path": "palette_map/palette_map_dark_olive_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_dark_olive_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_saturated_brown_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_bordeaux_red_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_bordeaux_red_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_grass_green_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_grass_green_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_olive_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_olive_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_saturated_green_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_tan_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_tan_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_dull_purple_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_dull_green_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_dull_green_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_saturated_purple_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_saturated_purple_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_orange_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_aqua_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_magenta_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_dull_brown_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_dull_brown_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_invisible.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_void.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_dark_olive_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_dark_olive_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_saturated_brown_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_bordeaux_red_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_bordeaux_red_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_grass_green_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_grass_green_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_olive_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_olive_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_saturated_green_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_tan_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_tan_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_dull_purple_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_dull_green_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_dull_green_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_saturated_purple_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_saturated_purple_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_orange_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_aqua_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_magenta_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_dull_brown_dark.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_dull_brown_light.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_invisible.png", - "palette": "keep", - "forceBmp": true - }, - { - "path": "palette_map/palette_map_glass_void.png", - "palette": "keep", - "forceBmp": true } ] diff --git a/src/openrct2-cli/Cli.cpp b/src/openrct2-cli/Cli.cpp index c9deea36e2..5e2a37ff0b 100644 --- a/src/openrct2-cli/Cli.cpp +++ b/src/openrct2-cli/Cli.cpp @@ -21,7 +21,6 @@ int main(int argc, const char** argv) { int32_t rc = EXIT_SUCCESS; int runGame = CommandLineRun(argv, argc); - Platform::CoreInit(); if (runGame == EXITCODE_CONTINUE) { gOpenRCT2Headless = true; diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 3e145f5053..34786847c2 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -202,7 +202,7 @@ if(MACOS_BUNDLE) endif() - if(${OPENRCT2_BRANCH} EQUAL master) + if(OPENRCT2_BRANCH EQUAL master) set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${OPENRCT2_VERSION_TAG}") else() set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${OPENRCT2_VERSION_TAG} ${OPENRCT2_BRANCH}") diff --git a/src/openrct2-ui/CursorData.cpp b/src/openrct2-ui/CursorData.cpp index 3d047efe3b..2a5c8029da 100644 --- a/src/openrct2-ui/CursorData.cpp +++ b/src/openrct2-ui/CursorData.cpp @@ -14,12 +14,12 @@ namespace OpenRCT2::Ui { // clang-format off - static constexpr const CursorData BlankCursorData = + static constexpr CursorData BlankCursorData = { { 0, 0 }, { 0 }, { 0 } }; - static constexpr const CursorData UpArrowCursorData = + static constexpr CursorData UpArrowCursorData = { { 15, 0 }, { @@ -44,7 +44,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData UpDownArrowCursorData = + static constexpr CursorData UpDownArrowCursorData = { { 17, 15 }, { @@ -69,7 +69,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData ZZZCursorData = + static constexpr CursorData ZZZCursorData = { { 0, 0 }, { @@ -94,7 +94,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData DiagonalArrowCursorData = + static constexpr CursorData DiagonalArrowCursorData = { { 0, 0 }, { @@ -119,7 +119,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData PickerArrowCursorData = + static constexpr CursorData PickerArrowCursorData = { { 15, 31 }, { @@ -144,7 +144,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData TreeDownCursorData = + static constexpr CursorData TreeDownCursorData = { { 7, 31 }, { @@ -169,7 +169,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData FountainDownCursorData = + static constexpr CursorData FountainDownCursorData = { { 7, 31 }, { @@ -194,7 +194,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData StatueDownCursorData = + static constexpr CursorData StatueDownCursorData = { { 7, 31 }, { @@ -219,7 +219,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData BenchDownCursorData = + static constexpr CursorData BenchDownCursorData = { { 7, 31 }, { @@ -244,7 +244,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData CrossHairCursorData = + static constexpr CursorData CrossHairCursorData = { { 15, 15 }, { @@ -269,7 +269,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData BinDownCursorData = + static constexpr CursorData BinDownCursorData = { { 7, 31 }, { @@ -294,7 +294,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData LampPostDownCursorData = + static constexpr CursorData LampPostDownCursorData = { { 7, 31 }, { @@ -319,7 +319,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData FenceDownCursorData = + static constexpr CursorData FenceDownCursorData = { { 7, 31 }, { @@ -344,7 +344,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData FlowerDownCursorData = + static constexpr CursorData FlowerDownCursorData = { { 7, 31 }, { @@ -369,7 +369,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData FootpathDownCursorData = + static constexpr CursorData FootpathDownCursorData = { { 7, 31 }, { @@ -394,7 +394,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData DigDownCursorData = + static constexpr CursorData DigDownCursorData = { { 7, 31 }, { @@ -419,7 +419,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData WaterDownCursorData = + static constexpr CursorData WaterDownCursorData = { { 7, 31 }, { @@ -444,7 +444,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData HouseDownCursorData = + static constexpr CursorData HouseDownCursorData = { { 7, 31 }, { @@ -469,7 +469,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData VolcanoDownCursorData = + static constexpr CursorData VolcanoDownCursorData = { { 7, 31 }, { @@ -494,7 +494,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData WalkDownCursorData = + static constexpr CursorData WalkDownCursorData = { { 7, 31 }, { @@ -519,7 +519,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData PaintDownCursorData = + static constexpr CursorData PaintDownCursorData = { { 8, 30 }, { @@ -544,7 +544,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData EntranceDownCursorData = + static constexpr CursorData EntranceDownCursorData = { { 7, 31 }, { @@ -569,7 +569,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData HandOpenDownCursorData = + static constexpr CursorData HandOpenDownCursorData = { { 14, 15 }, { @@ -594,7 +594,7 @@ namespace OpenRCT2::Ui } }; - static constexpr const CursorData HandClosedDownCursorData = + static constexpr CursorData HandClosedDownCursorData = { { 14, 15 }, { diff --git a/src/openrct2-ui/Ui.cpp b/src/openrct2-ui/Ui.cpp index eeda41160d..3364bb29e8 100644 --- a/src/openrct2-ui/Ui.cpp +++ b/src/openrct2-ui/Ui.cpp @@ -44,7 +44,6 @@ int main(int argc, const char** argv) std::unique_ptr context; int32_t rc = EXIT_SUCCESS; int runGame = CommandLineRun(argv, argc); - Platform::CoreInit(); RegisterBitmapReader(); if (runGame == EXITCODE_CONTINUE) { diff --git a/src/openrct2-ui/UiContext.Android.cpp b/src/openrct2-ui/UiContext.Android.cpp index 6c633de740..b0dac35ba0 100644 --- a/src/openrct2-ui/UiContext.Android.cpp +++ b/src/openrct2-ui/UiContext.Android.cpp @@ -60,7 +60,7 @@ namespace OpenRCT2::Ui std::string ShowFileDialog(SDL_Window* window, const FileDialogDesc& desc) override { - STUB(); + LOG_WARNING("Function %s at %s:%d is a stub.", __PRETTY_FUNCTION__, __FILE__, __LINE__); return nullptr; } @@ -68,7 +68,7 @@ namespace OpenRCT2::Ui std::string ShowDirectoryDialog(SDL_Window* window, const std::string& title) override { LOG_INFO(title.c_str()); - STUB(); + LOG_WARNING("Function %s at %s:%d is a stub.", __PRETTY_FUNCTION__, __FILE__, __LINE__); return "/sdcard/rct2"; } @@ -79,7 +79,7 @@ namespace OpenRCT2::Ui void OpenURL(const std::string& url) override { - STUB(); + LOG_WARNING("Function %s at %s:%d is a stub.", __PRETTY_FUNCTION__, __FILE__, __LINE__); } bool HasFilePicker() const override diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index c1b3b85b58..e605d89f5c 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -22,6 +22,7 @@ # include # include # include +# include namespace OpenRCT2::Ui { diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 2cd1e99242..59ad7ee05d 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -172,7 +172,7 @@ public: void SetFullscreenMode(FULLSCREEN_MODE mode) override { - static constexpr const int32_t _sdlFullscreenFlags[] = { + static constexpr int32_t _sdlFullscreenFlags[] = { 0, SDL_WINDOW_FULLSCREEN, SDL_WINDOW_FULLSCREEN_DESKTOP, diff --git a/src/openrct2-ui/UiContext.macOS.mm b/src/openrct2-ui/UiContext.macOS.mm index 5e211f2fb6..543c9e641a 100644 --- a/src/openrct2-ui/UiContext.macOS.mm +++ b/src/openrct2-ui/UiContext.macOS.mm @@ -49,7 +49,7 @@ namespace OpenRCT2::Ui bool IsSteamOverlayAttached() override { - STUB(); + LOG_WARNING("Function %s at %s:%d is a stub.", __PRETTY_FUNCTION__, __FILE__, __LINE__); return false; } diff --git a/src/openrct2-ui/WindowManager.cpp b/src/openrct2-ui/WindowManager.cpp index 3ede2e6698..c006c7c52c 100644 --- a/src/openrct2-ui/WindowManager.cpp +++ b/src/openrct2-ui/WindowManager.cpp @@ -285,7 +285,7 @@ public: } case WindowClass::ScenarioSelect: return WindowScenarioselectOpen( - reinterpret_cast(intent->GetPointerExtra(INTENT_EXTRA_CALLBACK)), false); + reinterpret_cast(intent->GetPointerExtra(INTENT_EXTRA_CALLBACK))); case WindowClass::Null: // Intent does not hold a window class @@ -455,34 +455,17 @@ public: case INTENT_ACTION_INVALIDATE_VEHICLE_WINDOW: { auto vehicle = static_cast(intent.GetPointerExtra(INTENT_EXTRA_VEHICLE)); - auto* w = WindowFindByNumber(WindowClass::Ride, vehicle->ride.ToUnderlying()); - if (w == nullptr) - return; - - auto ride = vehicle->GetRide(); - auto viewVehicleIndex = w->ride.view - 1; - if (ride == nullptr || viewVehicleIndex < 0 || viewVehicleIndex >= ride->NumTrains) - return; - - if (vehicle->Id != ride->vehicles[viewVehicleIndex]) - return; - - w->Invalidate(); + if (vehicle != nullptr) + { + WindowRideInvalidateVehicle(*vehicle); + } break; } case INTENT_ACTION_RIDE_PAINT_RESET_VEHICLE: { auto rideIndex = intent.GetUIntExtra(INTENT_EXTRA_RIDE_ID); - auto w = WindowFindByNumber(WindowClass::Ride, rideIndex); - if (w != nullptr) - { - if (w->page == 4) // WINDOW_RIDE_PAGE_COLOUR - { - w->vehicleIndex = 0; - } - w->Invalidate(); - } + WindowRidePaintResetVehicle(RideId::FromUnderlying(rideIndex)); break; } @@ -514,7 +497,7 @@ public: case INTENT_ACTION_UPDATE_BANNER: { - uint8_t bannerIndex = static_cast(intent.GetUIntExtra(INTENT_EXTRA_BANNER_INDEX)); + rct_windownumber bannerIndex = static_cast(intent.GetUIntExtra(INTENT_EXTRA_BANNER_INDEX)); WindowBase* w = WindowFindByNumber(WindowClass::Banner, bannerIndex); if (w != nullptr) @@ -546,6 +529,12 @@ public: break; } + case INTENT_ACTION_TILE_MODIFY: + { + WindowInvalidateByClass(WindowClass::TileInspector); + break; + } + default: break; } diff --git a/src/openrct2-ui/drawing/engines/opengl/DrawRectShader.cpp b/src/openrct2-ui/drawing/engines/opengl/DrawRectShader.cpp index 55904a1ce1..b3808515f7 100644 --- a/src/openrct2-ui/drawing/engines/opengl/DrawRectShader.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/DrawRectShader.cpp @@ -27,7 +27,7 @@ constexpr VDStruct VertexData[4] = { { 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f }, }; -constexpr const size_t InitialInstancesBufferSize = 32768; +constexpr size_t InitialInstancesBufferSize = 32768; DrawRectShader::DrawRectShader() : OpenGLShaderProgram("drawrect") diff --git a/src/openrct2-ui/input/MouseInput.cpp b/src/openrct2-ui/input/MouseInput.cpp index 7fbfc8a902..dcb1ab5a3d 100644 --- a/src/openrct2-ui/input/MouseInput.cpp +++ b/src/openrct2-ui/input/MouseInput.cpp @@ -32,6 +32,7 @@ #include #include #include +#include struct RCTMouseData { @@ -44,7 +45,7 @@ static RCTMouseData _mouseInputQueue[64]; static uint8_t _mouseInputQueueReadIndex = 0; static uint8_t _mouseInputQueueWriteIndex = 0; -static uint32_t _ticksSinceDragStart; +static std::optional _ticksSinceDragStart; static WidgetRef _dragWidget; static uint8_t _dragScrollIndex; static int32_t _originalWindowWidth; @@ -55,11 +56,11 @@ static uint8_t _currentScrollArea; ScreenCoordsXY gInputDragLast; -uint16_t gTooltipTimeout; +uint32_t gTooltipCloseTimeout; WidgetRef gTooltipWidget; ScreenCoordsXY gTooltipCursor; -static int16_t _clickRepeatTicks; +static std::optional _clickRepeatTicks; static MouseState GameGetNextInput(ScreenCoordsXY& screenCoords); static void InputWidgetOver(const ScreenCoordsXY& screenCoords, WindowBase* w, WidgetIndex widgetIndex); @@ -103,8 +104,6 @@ static void InputUpdateTooltip(WindowBase* w, WidgetIndex widgetIndex, const Scr */ void GameHandleInput() { - WindowVisitEach([](WindowBase* w) { WindowEventPeriodicUpdateCall(w); }); - InvalidateAllWindowsAfterInput(); MouseState state; @@ -178,7 +177,7 @@ static void InputScrollDragBegin(const ScreenCoordsXY& screenCoords, WindowBase* _dragWidget.window_classification = w->classification; _dragWidget.window_number = w->number; _dragWidget.widget_index = widgetIndex; - _ticksSinceDragStart = 0; + _ticksSinceDragStart = gCurrentRealTimeTicks; _dragScrollIndex = WindowGetScrollDataIndex(*w, widgetIndex); ContextHideCursor(); @@ -197,6 +196,8 @@ static void InputScrollDragContinue(const ScreenCoordsXY& screenCoords, WindowBa auto& scroll = w->scrolls[scrollIndex]; ScreenCoordsXY differentialCoords = screenCoords - gInputDragLast; + if (differentialCoords.x == 0 && differentialCoords.y == 0) + return; if (scroll.flags & HSCROLLBAR_VISIBLE) { @@ -242,10 +243,9 @@ static void InputScrollRight(const ScreenCoordsXY& screenCoords, MouseState stat switch (state) { case MouseState::Released: - _ticksSinceDragStart += gCurrentDeltaTime; if (screenCoords.x != 0 || screenCoords.y != 0) { - _ticksSinceDragStart = 1000; + _ticksSinceDragStart = std::nullopt; InputScrollDragContinue(screenCoords, w); } break; @@ -348,7 +348,7 @@ static void GameHandleInputMouse(const ScreenCoordsXY& screenCoords, MouseState else if (state == MouseState::RightRelease) { InputViewportDragEnd(); - if (_ticksSinceDragStart < 500) + if (_ticksSinceDragStart.has_value() && gCurrentRealTimeTicks - _ticksSinceDragStart.value() < 500) { // If the user pressed the right mouse button for less than 500 ticks, interpret as right click ViewportInteractionRightClick(screenCoords); @@ -480,7 +480,7 @@ static void InputWindowPositionContinue( static void InputWindowPositionEnd(WindowBase& w, const ScreenCoordsXY& screenCoords) { _inputState = InputState::Normal; - gTooltipTimeout = 0; + gTooltipCloseTimeout = 0; gTooltipWidget = _dragWidget; WindowEventMovedCall(&w, screenCoords); } @@ -511,7 +511,7 @@ static void InputWindowResizeContinue(WindowBase& w, const ScreenCoordsXY& scree static void InputWindowResizeEnd() { _inputState = InputState::Normal; - gTooltipTimeout = 0; + gTooltipCloseTimeout = 0; gTooltipWidget = _dragWidget; } @@ -525,7 +525,7 @@ static void InputViewportDragBegin(WindowBase& w) _inputState = InputState::ViewportRight; _dragWidget.window_classification = w.classification; _dragWidget.window_number = w.number; - _ticksSinceDragStart = 0; + _ticksSinceDragStart = gCurrentRealTimeTicks; auto cursorPosition = ContextGetCursorPosition(); gInputDragLast = cursorPosition; if (!gConfigGeneral.InvertViewportDrag) @@ -543,9 +543,11 @@ static void InputViewportDragContinue() Viewport* viewport; auto newDragCoords = ContextGetCursorPosition(); - const CursorState* cursorState = ContextGetCursorState(); auto differentialCoords = newDragCoords - gInputDragLast; + if (differentialCoords.x == 0 && differentialCoords.y == 0) + return; + w = WindowFindByNumber(_dragWidget.window_classification, _dragWidget.window_number); // #3294: Window can be closed during a drag session, so just finish @@ -557,7 +559,6 @@ static void InputViewportDragContinue() } viewport = w->viewport; - _ticksSinceDragStart += gCurrentDeltaTime; if (viewport == nullptr) { ContextShowCursor(); @@ -571,7 +572,7 @@ static void InputViewportDragContinue() // If the drag time is less than 500 the "drag" is usually interpreted as a right click. // As the user moved the mouse, don't interpret it as right click in any case. - _ticksSinceDragStart = 1000; + _ticksSinceDragStart = std::nullopt; differentialCoords.x = (viewport->zoom + 1).ApplyTo(differentialCoords.x); differentialCoords.y = (viewport->zoom + 1).ApplyTo(differentialCoords.y); @@ -586,6 +587,7 @@ static void InputViewportDragContinue() } } + const CursorState* cursorState = ContextGetCursorState(); if (cursorState->touch || gConfigGeneral.InvertViewportDrag) { gInputDragLast = newDragCoords; @@ -983,7 +985,7 @@ static void InputWidgetOverFlatbuttonInvalidate() WindowBase* w = WindowFindByNumber(gHoverWidget.window_classification, gHoverWidget.window_number); if (w != nullptr) { - WindowEventInvalidateCall(w); + WindowEventOnPrepareDrawCall(w); if (w->widgets[gHoverWidget.widget_index].type == WindowWidgetType::FlatBtn) { WidgetInvalidateByNumber(gHoverWidget.window_classification, gHoverWidget.window_number, gHoverWidget.widget_index); @@ -1086,7 +1088,7 @@ static void InputWidgetLeft(const ScreenCoordsXY& screenCoords, WindowBase* w, W gPressedWidget.widget_index = widgetIndex; _inputFlags |= INPUT_FLAG_WIDGET_PRESSED; _inputState = InputState::WidgetPressed; - _clickRepeatTicks = 1; + _clickRepeatTicks = gCurrentRealTimeTicks; WidgetInvalidateByNumber(windowClass, windowNumber, widgetIndex); WindowEventMouseDownCall(w, widgetIndex); @@ -1304,17 +1306,28 @@ void InputStateWidgetPressed( if (WidgetIsDisabled(*w, widgetIndex)) break; - if (_clickRepeatTicks != 0) + // If this variable is non-zero then its the last tick the mouse down event was fired. + if (_clickRepeatTicks.has_value()) { - _clickRepeatTicks++; + // The initial amount of time in ticks to wait until the first click repeat. + constexpr auto ticksUntilRepeats = 16U; - // Handle click repeat - if (_clickRepeatTicks >= 16 && (_clickRepeatTicks & 3) == 0) + // The amount of ticks between each click repeat. + constexpr auto eventDelayInTicks = 3U; + + // The amount of ticks since the last click repeat. + const auto clickRepeatsDelta = gCurrentRealTimeTicks - _clickRepeatTicks.value(); + + // Handle click repeat, only start this when at least 16 ticks elapsed. + if (clickRepeatsDelta >= ticksUntilRepeats && (clickRepeatsDelta & eventDelayInTicks) == 0) { if (WidgetIsHoldable(*w, widgetIndex)) { WindowEventMouseDownCall(w, widgetIndex); } + + // Subtract initial delay from here on we want the event each third tick. + _clickRepeatTicks = gCurrentRealTimeTicks - ticksUntilRepeats; } } @@ -1388,7 +1401,7 @@ void InputStateWidgetPressed( } _inputState = InputState::Normal; - gTooltipTimeout = 0; + gTooltipCloseTimeout = 0; gTooltipWidget.widget_index = cursor_widgetIndex; gTooltipWidget.window_classification = cursor_w_class; gTooltipWidget.window_number = cursor_w_number; @@ -1412,7 +1425,7 @@ void InputStateWidgetPressed( return; } - gTooltipTimeout = 0; + gTooltipCloseTimeout = 0; gTooltipWidget.widget_index = cursor_widgetIndex; if (w == nullptr) @@ -1439,7 +1452,7 @@ void InputStateWidgetPressed( return; } - _clickRepeatTicks = 0; + _clickRepeatTicks = std::nullopt; if (_inputState != InputState::DropdownActive) { // Hold down widget and drag outside of area?? @@ -1500,19 +1513,23 @@ static void InputUpdateTooltip(WindowBase* w, WidgetIndex widgetIndex, const Scr { if (gTooltipCursor == screenCoords) { - _tooltipNotShownTicks++; - if (_tooltipNotShownTicks > 50 && w != nullptr && WidgetIsVisible(*w, widgetIndex)) + if (gCurrentRealTimeTicks >= _tooltipNotShownTimeout && w != nullptr && WidgetIsVisible(*w, widgetIndex)) { - gTooltipTimeout = 0; + gTooltipCloseTimeout = gCurrentRealTimeTicks + 8000; WindowTooltipOpen(w, widgetIndex, screenCoords); } } + else + { + ResetTooltipNotShown(); + } - gTooltipTimeout = 0; + gTooltipCloseTimeout = gCurrentRealTimeTicks + 8000; gTooltipCursor = screenCoords; } else { + gTooltipCursor = screenCoords; ResetTooltipNotShown(); if (w == nullptr || gTooltipWidget.window_classification != w->classification @@ -1522,8 +1539,7 @@ static void InputUpdateTooltip(WindowBase* w, WidgetIndex widgetIndex, const Scr WindowTooltipClose(); } - gTooltipTimeout += gCurrentDeltaTime; - if (gTooltipTimeout >= 8000) + if (gCurrentRealTimeTicks >= gTooltipCloseTimeout) { WindowCloseByClass(WindowClass::Tooltip); } diff --git a/src/openrct2-ui/input/ShortcutInput.cpp b/src/openrct2-ui/input/ShortcutInput.cpp index dd147ee40d..6c6502eb34 100644 --- a/src/openrct2-ui/input/ShortcutInput.cpp +++ b/src/openrct2-ui/input/ShortcutInput.cpp @@ -23,51 +23,51 @@ constexpr uint32_t UsefulModifiers = KMOD_SHIFT | KMOD_CTRL | KMOD_ALT | KMOD_GU static uint32_t ParseModifier(std::string_view text) { - if (String::Equals(text, "CTRL", true)) + if (String::IEquals(text, "CTRL")) { return KMOD_CTRL; } - if (String::Equals(text, "LCTRL", true)) + if (String::IEquals(text, "LCTRL")) { return KMOD_LCTRL; } - if (String::Equals(text, "RCTRL", true)) + if (String::IEquals(text, "RCTRL")) { return KMOD_RCTRL; } - if (String::Equals(text, "SHIFT", true)) + if (String::IEquals(text, "SHIFT")) { return KMOD_SHIFT; } - if (String::Equals(text, "LSHIFT", true)) + if (String::IEquals(text, "LSHIFT")) { return KMOD_LSHIFT; } - if (String::Equals(text, "RSHIFT", true)) + if (String::IEquals(text, "RSHIFT")) { return KMOD_RSHIFT; } - if (String::Equals(text, "ALT", true)) + if (String::IEquals(text, "ALT")) { return KMOD_ALT; } - if (String::Equals(text, "LALT", true)) + if (String::IEquals(text, "LALT")) { return KMOD_LALT; } - if (String::Equals(text, "RALT", true)) + if (String::IEquals(text, "RALT")) { return KMOD_RALT; } - if (String::Equals(text, "GUI", true)) + if (String::IEquals(text, "GUI")) { return KMOD_GUI; } - if (String::Equals(text, "LCTRL", true)) + if (String::IEquals(text, "LCTRL")) { return KMOD_LGUI; } - if (String::Equals(text, "RGUI", true)) + if (String::IEquals(text, "RGUI")) { return KMOD_RGUI; } @@ -167,13 +167,13 @@ ShortcutInput::ShortcutInput(std::string_view value) Button = *number - 1; } } - else if (String::Equals(rem, "LMB", true)) + else if (String::IEquals(rem, "LMB")) { Kind = InputDeviceKind::Mouse; Modifiers = modifiers; Button = 0; } - else if (String::Equals(rem, "RMB", true)) + else if (String::IEquals(rem, "RMB")) { Kind = InputDeviceKind::Mouse; Modifiers = modifiers; diff --git a/src/openrct2-ui/input/Shortcuts.cpp b/src/openrct2-ui/input/Shortcuts.cpp index 2c656c310c..437e4d0efd 100644 --- a/src/openrct2-ui/input/Shortcuts.cpp +++ b/src/openrct2-ui/input/Shortcuts.cpp @@ -149,10 +149,10 @@ static void ShortcutRemoveTopBottomToolbarToggle() { if (WindowFindByClass(WindowClass::TitleLogo) != nullptr) { - WindowClose(*WindowFindByClass(WindowClass::TitleLogo)); - WindowClose(*WindowFindByClass(WindowClass::TitleOptions)); - WindowClose(*WindowFindByClass(WindowClass::TitleMenu)); - WindowClose(*WindowFindByClass(WindowClass::TitleExit)); + WindowCloseByClass(WindowClass::TitleLogo); + WindowCloseByClass(WindowClass::TitleOptions); + WindowCloseByClass(WindowClass::TitleMenu); + WindowCloseByClass(WindowClass::TitleExit); TitleSetHideVersionInfo(true); } else @@ -164,9 +164,9 @@ static void ShortcutRemoveTopBottomToolbarToggle() { if (WindowFindByClass(WindowClass::TopToolbar) != nullptr) { - WindowClose(*WindowFindByClass(WindowClass::Dropdown)); - WindowClose(*WindowFindByClass(WindowClass::TopToolbar)); - WindowClose(*WindowFindByClass(WindowClass::BottomToolbar)); + WindowCloseByClass(WindowClass::Dropdown); + WindowCloseByClass(WindowClass::TopToolbar); + WindowCloseByClass(WindowClass::BottomToolbar); } else { diff --git a/src/openrct2-ui/interface/Dropdown.h b/src/openrct2-ui/interface/Dropdown.h index 86ceaeb95d..d7f26db20c 100644 --- a/src/openrct2-ui/interface/Dropdown.h +++ b/src/openrct2-ui/interface/Dropdown.h @@ -19,10 +19,10 @@ namespace Dropdown { struct Item; - constexpr const StringId SeparatorString = 0; - constexpr const StringId FormatColourPicker = 0xFFFE; - constexpr const StringId FormatLandPicker = 0xFFFF; - constexpr const int32_t ItemsMaxSize = 512; + constexpr StringId SeparatorString = 0; + constexpr StringId FormatColourPicker = 0xFFFE; + constexpr StringId FormatLandPicker = 0xFFFF; + constexpr int32_t ItemsMaxSize = 512; enum Flag { diff --git a/src/openrct2-ui/interface/InGameConsole.cpp b/src/openrct2-ui/interface/InGameConsole.cpp index 31c7a26ed5..04baa240e7 100644 --- a/src/openrct2-ui/interface/InGameConsole.cpp +++ b/src/openrct2-ui/interface/InGameConsole.cpp @@ -80,9 +80,10 @@ void InGameConsole::Input(ConsoleInput input) } _consoleTextInputSession->Length = UTF8Length(_consoleCurrentLine.c_str()); _consoleTextInputSession->SelectionStart = _consoleCurrentLine.size(); + RefreshCaret(_consoleTextInputSession->SelectionStart); break; case ConsoleInput::HistoryNext: - if (_consoleHistoryIndex < _consoleHistory.size() - 1) + if (_consoleHistoryIndex + 1 < _consoleHistory.size()) { _consoleHistoryIndex++; _consoleCurrentLine = _consoleHistory[_consoleHistoryIndex]; @@ -94,6 +95,7 @@ void InGameConsole::Input(ConsoleInput input) _consoleHistoryIndex = _consoleHistory.size(); ClearInput(); } + RefreshCaret(_consoleTextInputSession->SelectionStart); break; case ConsoleInput::ScrollPrevious: { diff --git a/src/openrct2-ui/interface/Theme.cpp b/src/openrct2-ui/interface/Theme.cpp index 0f6feb6a84..868b450fae 100644 --- a/src/openrct2-ui/interface/Theme.cpp +++ b/src/openrct2-ui/interface/Theme.cpp @@ -115,7 +115,7 @@ struct WindowThemeDesc #define TWINDOW(window_class, window_name, window_string_id, theme) { window_class, window_name, window_string_id, theme } -static constexpr const WindowThemeDesc WindowThemeDescriptors[] = +static constexpr WindowThemeDesc WindowThemeDescriptors[] = { // WindowClass WindowClassSZ WindowName NumColours, DefaultTheme { WindowClass::TopToolbar, "WC_TOP_TOOLBAR", STR_THEMES_WINDOW_TOP_TOOLBAR, COLOURS_4(COLOUR_LIGHT_BLUE, COLOUR_DARK_GREEN, COLOUR_DARK_BROWN, COLOUR_GREY ) }, @@ -191,7 +191,7 @@ static constexpr const WindowThemeDesc WindowThemeDescriptors[] = #define COLOURS_RCT1(c0, c1, c2, c3, c4, c5) { { (c0), (c1), (c2), (c3), (c4), (c5) } } -static constexpr const UIThemeWindowEntry PredefinedThemeRCT1_Entries[] = +static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] = { { WindowClass::TopToolbar, COLOURS_RCT1(COLOUR_GREY, COLOUR_GREY, COLOUR_GREY, COLOUR_GREY, COLOUR_BLACK, COLOUR_BLACK) }, { WindowClass::BottomToolbar, COLOURS_RCT1(TRANSLUCENT(COLOUR_GREY), TRANSLUCENT(COLOUR_GREY), COLOUR_BLACK, COLOUR_YELLOW, COLOUR_BLACK, COLOUR_BLACK) }, @@ -219,7 +219,7 @@ static constexpr const UIThemeWindowEntry PredefinedThemeRCT1_Entries[] = }; // clang-format on -static constexpr const UIThemeWindowEntry PredefinedThemeRCT2_Entries[] = { +static constexpr UIThemeWindowEntry PredefinedThemeRCT2_Entries[] = { THEME_DEF_END, }; @@ -236,7 +236,7 @@ struct PredefinedTheme StringId Name; }; -static constexpr const PredefinedTheme PredefinedThemes[] = { +static constexpr PredefinedTheme PredefinedThemes[] = { { &PredefinedThemeRCT1, STR_TITLE_SEQUENCE_RCT1 }, { &PredefinedThemeRCT2, STR_TITLE_SEQUENCE_RCT2 }, }; @@ -537,12 +537,12 @@ namespace ThemeManager auto scanner = Path::ScanDirectory(themesPattern, true); while (scanner->Next()) { - auto fileInfo = scanner->GetFileInfo(); - auto name = Path::GetFileNameWithoutExtension(std::string(fileInfo->Name)); + const auto& fileInfo = scanner->GetFileInfo(); + auto name = Path::GetFileNameWithoutExtension(fileInfo.Name); AvailableTheme theme{}; theme.Name = name; - theme.Path = GetThemeFileName(theme.Name); + theme.Path = GetThemeFileName(name); outThemes->push_back(std::move(theme)); if (Path::Equals(CurrentThemePath, scanner->GetPath())) @@ -721,7 +721,7 @@ size_t ThemeGetIndexForName(const utf8* name) for (size_t i = 0; i < count; i++) { const utf8* tn = ThemeManagerGetAvailableThemeName(i); - if (String::Equals(tn, name, true)) + if (String::IEquals(tn, name)) { return i; } diff --git a/src/openrct2-ui/interface/ViewportInteraction.cpp b/src/openrct2-ui/interface/ViewportInteraction.cpp index 9039a4923e..4c5951bbb1 100644 --- a/src/openrct2-ui/interface/ViewportInteraction.cpp +++ b/src/openrct2-ui/interface/ViewportInteraction.cpp @@ -32,9 +32,9 @@ #include #include #include -#include #include #include +#include #include #include #include @@ -52,12 +52,12 @@ #include #include -static void ViewportInteractionRemoveScenery(TileElement* tileElement, const CoordsXY& mapCoords); -static void ViewportInteractionRemoveFootpath(TileElement* tileElement, const CoordsXY& mapCoords); -static void ViewportInteractionRemoveFootpathItem(TileElement* tileElement, const CoordsXY& mapCoords); -static void ViewportInteractionRemoveParkWall(TileElement* tileElement, const CoordsXY& mapCoords); -static void ViewportInteractionRemoveLargeScenery(TileElement* tileElement, const CoordsXY& mapCoords); -static void ViewportInteractionRemoveParkEntrance(TileElement* tileElement, CoordsXY mapCoords); +static void ViewportInteractionRemoveScenery(const SmallSceneryElement& smallSceneryElement, const CoordsXY& mapCoords); +static void ViewportInteractionRemoveFootpath(const PathElement& pathElement, const CoordsXY& mapCoords); +static void ViewportInteractionRemovePathAddition(const PathElement& pathElement, const CoordsXY& mapCoords); +static void ViewportInteractionRemoveParkWall(const WallElement& wallElement, const CoordsXY& mapCoords); +static void ViewportInteractionRemoveLargeScenery(const LargeSceneryElement& largeSceneryElement, const CoordsXY& mapCoords); +static void ViewportInteractionRemoveParkEntrance(const EntranceElement& entranceElement, CoordsXY mapCoords); static Peep* ViewportInteractionGetClosestPeep(ScreenCoordsXY screenCoords, int32_t maxDistance); /** @@ -126,7 +126,8 @@ InteractionInfo ViewportInteractionGetItemLeft(const ScreenCoordsXY& screenCoord } break; case ViewportInteractionItem::Ride: - RideSetMapTooltip(tileElement); + Guard::ArgumentNotNull(tileElement); + RideSetMapTooltip(*tileElement); break; case ViewportInteractionItem::ParkEntrance: { @@ -478,7 +479,7 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor SetMapTooltip(ft); return info; - case ViewportInteractionItem::FootpathItem: + case ViewportInteractionItem::PathAddition: { auto* pathAddEntry = tileElement->AsPath()->GetAdditionEntry(); ft.Add(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_REMOVE); @@ -573,22 +574,22 @@ bool ViewportInteractionRightClick(const ScreenCoordsXY& screenCoords) RideModify(tileElement); break; case ViewportInteractionItem::Scenery: - ViewportInteractionRemoveScenery(info.Element, info.Loc); + ViewportInteractionRemoveScenery(*info.Element->AsSmallScenery(), info.Loc); break; case ViewportInteractionItem::Footpath: - ViewportInteractionRemoveFootpath(info.Element, info.Loc); + ViewportInteractionRemoveFootpath(*info.Element->AsPath(), info.Loc); break; - case ViewportInteractionItem::FootpathItem: - ViewportInteractionRemoveFootpathItem(info.Element, info.Loc); + case ViewportInteractionItem::PathAddition: + ViewportInteractionRemovePathAddition(*info.Element->AsPath(), info.Loc); break; case ViewportInteractionItem::ParkEntrance: - ViewportInteractionRemoveParkEntrance(info.Element, info.Loc); + ViewportInteractionRemoveParkEntrance(*info.Element->AsEntrance(), info.Loc); break; case ViewportInteractionItem::Wall: - ViewportInteractionRemoveParkWall(info.Element, info.Loc); + ViewportInteractionRemoveParkWall(*info.Element->AsWall(), info.Loc); break; case ViewportInteractionItem::LargeScenery: - ViewportInteractionRemoveLargeScenery(info.Element, info.Loc); + ViewportInteractionRemoveLargeScenery(*info.Element->AsLargeScenery(), info.Loc); break; case ViewportInteractionItem::Banner: ContextOpenDetailWindow(WD_BANNER, info.Element->AsBanner()->GetIndex().ToUnderlying()); @@ -602,11 +603,11 @@ bool ViewportInteractionRightClick(const ScreenCoordsXY& screenCoords) * * rct2: 0x006E08D2 */ -static void ViewportInteractionRemoveScenery(TileElement* tileElement, const CoordsXY& mapCoords) +static void ViewportInteractionRemoveScenery(const SmallSceneryElement& smallSceneryElement, const CoordsXY& mapCoords) { auto removeSceneryAction = SmallSceneryRemoveAction( - { mapCoords.x, mapCoords.y, tileElement->GetBaseZ() }, tileElement->AsSmallScenery()->GetSceneryQuadrant(), - tileElement->AsSmallScenery()->GetEntryIndex()); + { mapCoords.x, mapCoords.y, smallSceneryElement.GetBaseZ() }, smallSceneryElement.GetSceneryQuadrant(), + smallSceneryElement.GetEntryIndex()); GameActions::Execute(&removeSceneryAction); } @@ -615,20 +616,17 @@ static void ViewportInteractionRemoveScenery(TileElement* tileElement, const Coo * * rct2: 0x006A614A */ -static void ViewportInteractionRemoveFootpath(TileElement* tileElement, const CoordsXY& mapCoords) +static void ViewportInteractionRemoveFootpath(const PathElement& pathElement, const CoordsXY& mapCoords) { - WindowBase* w; - TileElement* tileElement2; - - auto z = tileElement->GetBaseZ(); - - w = WindowFindByClass(WindowClass::Footpath); + WindowBase* w = WindowFindByClass(WindowClass::Footpath); if (w != nullptr) FootpathProvisionalUpdate(); - tileElement2 = MapGetFirstElementAt(mapCoords); + TileElement* tileElement2 = MapGetFirstElementAt(mapCoords); if (tileElement2 == nullptr) return; + + auto z = pathElement.GetBaseZ(); do { if (tileElement2->GetType() == TileElementType::Path && tileElement2->GetBaseZ() == z) @@ -644,9 +642,9 @@ static void ViewportInteractionRemoveFootpath(TileElement* tileElement, const Co * * rct2: 0x006A61AB */ -static void ViewportInteractionRemoveFootpathItem(TileElement* tileElement, const CoordsXY& mapCoords) +static void ViewportInteractionRemovePathAddition(const PathElement& pathElement, const CoordsXY& mapCoords) { - auto footpathAdditionRemoveAction = FootpathAdditionRemoveAction({ mapCoords.x, mapCoords.y, tileElement->GetBaseZ() }); + auto footpathAdditionRemoveAction = FootpathAdditionRemoveAction({ mapCoords.x, mapCoords.y, pathElement.GetBaseZ() }); GameActions::Execute(&footpathAdditionRemoveAction); } @@ -654,10 +652,10 @@ static void ViewportInteractionRemoveFootpathItem(TileElement* tileElement, cons * * rct2: 0x00666C0E */ -void ViewportInteractionRemoveParkEntrance(TileElement* tileElement, CoordsXY mapCoords) +void ViewportInteractionRemoveParkEntrance(const EntranceElement& entranceElement, CoordsXY mapCoords) { - int32_t rotation = tileElement->GetDirectionWithOffset(1); - switch (tileElement->AsEntrance()->GetSequenceIndex()) + int32_t rotation = entranceElement.GetDirectionWithOffset(1); + switch (entranceElement.GetSequenceIndex()) { case 1: mapCoords += CoordsDirectionDelta[rotation]; @@ -666,7 +664,7 @@ void ViewportInteractionRemoveParkEntrance(TileElement* tileElement, CoordsXY ma mapCoords -= CoordsDirectionDelta[rotation]; break; } - auto parkEntranceRemoveAction = ParkEntranceRemoveAction({ mapCoords.x, mapCoords.y, tileElement->GetBaseZ() }); + auto parkEntranceRemoveAction = ParkEntranceRemoveAction({ mapCoords.x, mapCoords.y, entranceElement.GetBaseZ() }); GameActions::Execute(&parkEntranceRemoveAction); } @@ -674,16 +672,16 @@ void ViewportInteractionRemoveParkEntrance(TileElement* tileElement, CoordsXY ma * * rct2: 0x006E57A9 */ -static void ViewportInteractionRemoveParkWall(TileElement* tileElement, const CoordsXY& mapCoords) +static void ViewportInteractionRemoveParkWall(const WallElement& wallElement, const CoordsXY& mapCoords) { - auto* wallEntry = tileElement->AsWall()->GetEntry(); + auto* wallEntry = wallElement.GetEntry(); if (wallEntry->scrolling_mode != SCROLLING_MODE_NONE) { - ContextOpenDetailWindow(WD_SIGN_SMALL, tileElement->AsWall()->GetBannerIndex().ToUnderlying()); + ContextOpenDetailWindow(WD_SIGN_SMALL, wallElement.GetBannerIndex().ToUnderlying()); } else { - CoordsXYZD wallLocation = { mapCoords.x, mapCoords.y, tileElement->GetBaseZ(), tileElement->GetDirection() }; + CoordsXYZD wallLocation = { mapCoords.x, mapCoords.y, wallElement.GetBaseZ(), wallElement.GetDirection() }; auto wallRemoveAction = WallRemoveAction(wallLocation); GameActions::Execute(&wallRemoveAction); } @@ -693,20 +691,20 @@ static void ViewportInteractionRemoveParkWall(TileElement* tileElement, const Co * * rct2: 0x006B88DC */ -static void ViewportInteractionRemoveLargeScenery(TileElement* tileElement, const CoordsXY& mapCoords) +static void ViewportInteractionRemoveLargeScenery(const LargeSceneryElement& largeSceneryElement, const CoordsXY& mapCoords) { - auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); + auto* sceneryEntry = largeSceneryElement.GetEntry(); if (sceneryEntry->scrolling_mode != SCROLLING_MODE_NONE) { - auto bannerIndex = tileElement->AsLargeScenery()->GetBannerIndex(); + auto bannerIndex = largeSceneryElement.GetBannerIndex(); ContextOpenDetailWindow(WD_SIGN, bannerIndex.ToUnderlying()); } else { auto removeSceneryAction = LargeSceneryRemoveAction( - { mapCoords.x, mapCoords.y, tileElement->GetBaseZ(), tileElement->GetDirection() }, - tileElement->AsLargeScenery()->GetSequenceIndex()); + { mapCoords.x, mapCoords.y, largeSceneryElement.GetBaseZ(), largeSceneryElement.GetDirection() }, + largeSceneryElement.GetSequenceIndex()); GameActions::Execute(&removeSceneryAction); } } diff --git a/src/openrct2-ui/interface/Widget.cpp b/src/openrct2-ui/interface/Widget.cpp index b86d3e1293..6fd4270484 100644 --- a/src/openrct2-ui/interface/Widget.cpp +++ b/src/openrct2-ui/interface/Widget.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -565,11 +566,14 @@ static void WidgetCaptionDraw(DrawPixelInfo& dpi, WindowBase& w, WidgetIndex wid int32_t width = widget->width() - 4; if ((widget + 1)->type == WindowWidgetType::CloseBox) { - width -= 10; + width -= CloseButtonWidth; if ((widget + 2)->type == WindowWidgetType::CloseBox) - width -= 10; + width -= CloseButtonWidth; } topLeft.x += width / 2; + if (gConfigInterface.WindowButtonsOnTheLeft) + topLeft.x += CloseButtonWidth; + DrawTextEllipsised( dpi, topLeft, width, widget->text, Formatter::Common(), { COLOUR_WHITE | static_cast(COLOUR_FLAG_OUTLINE), TextAlignment::CENTRE }); @@ -722,7 +726,7 @@ static void WidgetScrollDraw(DrawPixelInfo& dpi, WindowBase& w, WidgetIndex widg // Draw the scroll contents if (scroll_dpi.width > 0 && scroll_dpi.height > 0) - WindowEventScrollPaintCall(&w, scroll_dpi, scrollIndex); + WindowEventScrollDrawCall(&w, scroll_dpi, scrollIndex); } static void WidgetHScrollbarDraw( diff --git a/src/openrct2-ui/interface/Window.cpp b/src/openrct2-ui/interface/Window.cpp index 62a83d94a6..2752f254eb 100644 --- a/src/openrct2-ui/interface/Window.cpp +++ b/src/openrct2-ui/interface/Window.cpp @@ -38,6 +38,8 @@ static bool WindowFitsBetweenOthers(const ScreenCoordsXY& loc, int32_t width, in { for (auto& w : g_window_list) { + if (w->flags & WF_DEAD) + continue; if (w->flags & WF_STICK_TO_BACK) continue; @@ -131,6 +133,8 @@ static ScreenCoordsXY GetAutoPositionForNewWindow(int32_t width, int32_t height) // Place window next to another for (auto& w : g_window_list) { + if (w->flags & WF_DEAD) + continue; if (w->flags & WF_STICK_TO_BACK) continue; @@ -158,6 +162,8 @@ static ScreenCoordsXY GetAutoPositionForNewWindow(int32_t width, int32_t height) // Overlap for (auto& w : g_window_list) { + if (w->flags & WF_DEAD) + continue; if (w->flags & WF_STICK_TO_BACK) continue; @@ -222,6 +228,8 @@ WindowBase* WindowCreate( // Close least recently used window for (auto& w : g_window_list) { + if (w->flags & WF_DEAD) + continue; if (!(w->flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT | WF_NO_AUTO_CLOSE))) { WindowClose(*w.get()); @@ -236,6 +244,8 @@ WindowBase* WindowCreate( { for (auto it = g_window_list.begin(); it != g_window_list.end(); it++) { + if ((*it)->flags & WF_DEAD) + continue; if (!((*it)->flags & WF_STICK_TO_BACK)) { itDestPos = it; @@ -246,6 +256,8 @@ WindowBase* WindowCreate( { for (auto it = g_window_list.rbegin(); it != g_window_list.rend(); it++) { + if ((*it)->flags & WF_DEAD) + continue; if (!((*it)->flags & WF_STICK_TO_FRONT)) { itDestPos = it.base(); @@ -277,9 +289,6 @@ WindowBase* WindowCreate( w->max_height = height; w->focus = std::nullopt; - w->page = 0; - w->var_48C = 0; - w->var_492 = 0; ColourSchemeUpdate(w); w->Invalidate(); @@ -287,26 +296,6 @@ WindowBase* WindowCreate( return w; } -WindowBase* WindowCreate( - const ScreenCoordsXY& pos, int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags) -{ - auto w = std::make_unique(); - w->event_handlers = event_handlers; - return WindowCreate(std::move(w), cls, pos, width, height, flags); -} - -WindowBase* WindowCreateAutoPos(int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags) -{ - auto pos = GetAutoPositionForNewWindow(width, height); - return WindowCreate(pos, width, height, event_handlers, cls, flags); -} - -WindowBase* WindowCreateCentred(int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags) -{ - auto pos = GetCentrePositionForNewWindow(width, height); - return WindowCreate(pos, width, height, event_handlers, cls, flags); -} - static int32_t WindowGetWidgetIndex(const WindowBase& w, Widget* widget) { int32_t i = 0; @@ -748,6 +737,16 @@ void Window::SetWidgetDisabled(WidgetIndex widgetIndex, bool value) WidgetSetDisabled(*this, widgetIndex, value); } +void Window::SetWidgetDisabledAndInvalidate(WidgetIndex widgetIndex, bool value) +{ + bool oldState = IsWidgetDisabled(widgetIndex); + if (oldState != value) + { + WidgetSetDisabled(*this, widgetIndex, value); + InvalidateWidget(widgetIndex); + } +} + void Window::SetWidgetPressed(WidgetIndex widgetIndex, bool value) { WidgetSetPressed(*this, widgetIndex, value); @@ -819,12 +818,25 @@ void WindowAlignTabs(WindowBase* w, WidgetIndex start_tab_id, WidgetIndex end_ta for (i = start_tab_id; i <= end_tab_id; i++) { + auto& widget = w->widgets[i]; if (!WidgetIsDisabled(*w, i)) { - auto& widget = w->widgets[i]; widget.left = x; widget.right = x + tab_width; x += tab_width + 1; } + else + { + // Workaround #20535: Avoid disabled widgets from sharing the same space as active ones, otherwise + // WindowFindWidgetFromPoint could return the disabled one, causing issues. + widget.left = 0; + widget.right = 0; + } } } + +ScreenCoordsXY WindowGetViewportSoundIconPos(WindowBase& w) +{ + const uint8_t buttonOffset = (gConfigInterface.WindowButtonsOnTheLeft) ? CloseButtonWidth + 2 : 0; + return w.windowPos + ScreenCoordsXY{ 2 + buttonOffset, 2 }; +} diff --git a/src/openrct2-ui/interface/Window.h b/src/openrct2-ui/interface/Window.h index 576e194ebe..1a672fb3bc 100644 --- a/src/openrct2-ui/interface/Window.h +++ b/src/openrct2-ui/interface/Window.h @@ -24,6 +24,7 @@ struct Window : WindowBase bool IsWidgetPressed(WidgetIndex widgetIndex) const; void SetWidgetEnabled(WidgetIndex widgetIndex, bool value); void SetWidgetDisabled(WidgetIndex widgetIndex, bool value); + void SetWidgetDisabledAndInvalidate(WidgetIndex widgetIndex, bool value); void SetWidgetPressed(WidgetIndex widgetIndex, bool value); void SetCheckboxValue(WidgetIndex widgetIndex, bool value); void DrawWidgets(DrawPixelInfo& dpi); @@ -39,3 +40,4 @@ struct Window : WindowBase void WindowAllWheelInput(); void ApplyScreenSaverLockSetting(); void WindowAlignTabs(WindowBase* w, WidgetIndex start_tab_id, WidgetIndex end_tab_id); +ScreenCoordsXY WindowGetViewportSoundIconPos(WindowBase& w); diff --git a/src/openrct2-ui/ride/Construction.h b/src/openrct2-ui/ride/Construction.h index 649aa3acf3..1c18a5b1cc 100644 --- a/src/openrct2-ui/ride/Construction.h +++ b/src/openrct2-ui/ride/Construction.h @@ -127,14 +127,14 @@ constexpr std::array DropdownOrder = { TrackElemType::RightLargeZeroGRollDown, TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp, TrackElemType::LeftFlyerLargeHalfLoopInvertedDown, - TrackElemType::RightFlyerLargeHalfLoopUninvertedUp, - TrackElemType::RightFlyerLargeHalfLoopInvertedDown, TrackElemType::LeftFlyerLargeHalfLoopInvertedUp, TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown, + TrackElemType::RightFlyerLargeHalfLoopUninvertedUp, + TrackElemType::RightFlyerLargeHalfLoopInvertedDown, TrackElemType::RightFlyerLargeHalfLoopInvertedUp, TrackElemType::RightFlyerLargeHalfLoopUninvertedDown, }; -constexpr const size_t DropdownLength = DropdownOrder.size(); +constexpr size_t DropdownLength = DropdownOrder.size(); // Update the magic number with the current number of track elements to silence static_assert(TrackElemType::Count == 337, "Reminder to add new track element to special dropdown list"); diff --git a/src/openrct2-ui/scripting/CustomMenu.cpp b/src/openrct2-ui/scripting/CustomMenu.cpp index 73557bec04..f011e8aa17 100644 --- a/src/openrct2-ui/scripting/CustomMenu.cpp +++ b/src/openrct2-ui/scripting/CustomMenu.cpp @@ -71,7 +71,7 @@ namespace OpenRCT2::Scripting { "water", ViewportInteractionItem::Water }, { "scenery", ViewportInteractionItem::Scenery }, { "footpath", ViewportInteractionItem::Footpath }, - { "footpath_item", ViewportInteractionItem::FootpathItem }, + { "footpath_item", ViewportInteractionItem::PathAddition }, { "park_entrance", ViewportInteractionItem::ParkEntrance }, { "wall", ViewportInteractionItem::Wall }, { "large_scenery", ViewportInteractionItem::LargeScenery }, diff --git a/src/openrct2-ui/scripting/CustomWindow.cpp b/src/openrct2-ui/scripting/CustomWindow.cpp index 92220060da..64c5d0a7ab 100644 --- a/src/openrct2-ui/scripting/CustomWindow.cpp +++ b/src/openrct2-ui/scripting/CustomWindow.cpp @@ -48,10 +48,8 @@ namespace OpenRCT2::Ui::Windows }; static Widget CustomDefaultWidgets[] = { - { WindowWidgetType::Frame, 0, 0, 0, 0, 0, 0xFFFFFFFF, STR_NONE }, // panel / background - { WindowWidgetType::Caption, 0, 1, 0, 1, 14, STR_STRING, STR_WINDOW_TITLE_TIP }, // title bar - { WindowWidgetType::CloseBox, 0, 0, 0, 2, 13, STR_CLOSE_X, STR_CLOSE_WINDOW_TIP }, // close x button - { WindowWidgetType::Resize, 1, 0, 0, 14, 0, 0xFFFFFFFF, STR_NONE }, // content panel + WINDOW_SHIM(STR_STRING, 50, 50), + MakeWidget({ 0, 14 }, { 50, 36 }, WindowWidgetType::Resize, WindowColour::Secondary), // content panel }; struct CustomWidgetDesc @@ -377,7 +375,8 @@ namespace OpenRCT2::Ui::Windows } }; - static CustomWindowInfo& GetInfo(WindowBase* w); + class CustomWindow; + static CustomWindowInfo& GetInfo(CustomWindow* w); static void InvokeEventHandler(const std::shared_ptr& owner, const DukValue& dukHandler); static void InvokeEventHandler( const std::shared_ptr& owner, const DukValue& dukHandler, const std::vector& args); @@ -386,12 +385,13 @@ namespace OpenRCT2::Ui::Windows { private: static rct_windownumber _nextWindowNumber; + CustomWindowInfo _info; public: - void Initialise(std::shared_ptr owner, const CustomWindowDesc& desc) + CustomWindow(std::shared_ptr owner, const CustomWindowDesc& desc) + : _info(owner, desc) { number = GetNewWindowNumber(); - custom_info = new CustomWindowInfo(owner, desc); // Set window tab page = desc.TabIndex.value_or(0); @@ -418,13 +418,7 @@ namespace OpenRCT2::Ui::Windows void OnClose() override { - auto info = static_cast(custom_info); - if (info != nullptr) - { - InvokeEventHandler(info->Owner, info->Desc.OnClose); - delete info; - custom_info = nullptr; - } + InvokeEventHandler(_info.Owner, _info.Desc.OnClose); } void OnResize() override @@ -444,10 +438,9 @@ namespace OpenRCT2::Ui::Windows void OnUpdate() override { - const auto& info = GetInfo(this); - if (info.Desc.Tabs.size() > static_cast(page)) + if (_info.Desc.Tabs.size() > static_cast(page)) { - const auto& tab = info.Desc.Tabs[page]; + const auto& tab = _info.Desc.Tabs[page]; if (tab.imageFrameCount != 0) { frame_no++; @@ -459,7 +452,7 @@ namespace OpenRCT2::Ui::Windows } } - InvokeEventHandler(info.Owner, info.Desc.OnUpdate); + InvokeEventHandler(_info.Owner, _info.Desc.OnUpdate); // Since the plugin may alter widget positions and sizes during an update event, // we need to force an update for all list view scrollbars @@ -476,20 +469,15 @@ namespace OpenRCT2::Ui::Windows void OnPrepareDraw() override { - widgets[WIDX_BACKGROUND].right = width - 1; - widgets[WIDX_BACKGROUND].bottom = height - 1; - widgets[WIDX_TITLE].right = width - 2; - widgets[WIDX_CLOSE].left = width - 13; - widgets[WIDX_CLOSE].right = width - 3; - widgets[WIDX_CONTENT_PANEL].right = width - 1; - widgets[WIDX_CONTENT_PANEL].bottom = height - 1; + // This has to be called to ensure the window frame is correctly initialised - not doing this will + // cause an assertion to be hit. + ResizeFrameWithPage(); widgets[WIDX_CLOSE].text = (colours[0] & COLOUR_FLAG_TRANSLUCENT) ? STR_CLOSE_X_WHITE : STR_CLOSE_X; // Having the content panel visible for transparent windows makes the borders darker than they should be // For now just hide it if there are no tabs and the window is not resizable - auto& info = GetInfo(this); auto canResize = (flags & WF_RESIZABLE) != 0 && (min_width != max_width || min_height != max_height); - auto numTabs = info.Desc.Tabs.size(); + auto numTabs = _info.Desc.Tabs.size(); if (canResize || numTabs != 0) { widgets[WIDX_CONTENT_PANEL].flags &= ~WIDGET_FLAGS::IS_HIDDEN; @@ -501,7 +489,7 @@ namespace OpenRCT2::Ui::Windows SetPressedTab(); - const auto& desc = info.Desc; + const auto& desc = _info.Desc; auto ft = Formatter::Common(); ft.Add(desc.Title.c_str()); @@ -510,7 +498,7 @@ namespace OpenRCT2::Ui::Windows { if (widget->type == WindowWidgetType::Scroll) { - auto& listView = info.ListViews[scrollIndex]; + auto& listView = _info.ListViews[scrollIndex]; auto wwidth = widget->width() + 1 - 2; auto wheight = widget->height() + 1 - 2; if (listView.GetScrollbars() == ScrollbarType::Horizontal @@ -545,8 +533,7 @@ namespace OpenRCT2::Ui::Windows void OnDrawWidget(WidgetIndex widgetIndex, DrawPixelInfo& dpi) override { const auto& widget = widgets[widgetIndex]; - const auto& info = GetInfo(this); - const auto widgetDesc = info.GetCustomWidgetDesc(this, widgetIndex); + const auto widgetDesc = _info.GetCustomWidgetDesc(this, widgetIndex); if (widgetDesc != nullptr && widgetDesc->Type == "custom") { auto& onDraw = widgetDesc->OnDraw; @@ -561,7 +548,7 @@ namespace OpenRCT2::Ui::Windows auto dukWidget = ScWidget::ToDukValue(ctx, this, widgetIndex); auto dukG = GetObjectAsDukValue(ctx, std::make_shared(ctx, widgetDpi)); auto& scriptEngine = GetContext()->GetScriptEngine(); - scriptEngine.ExecutePluginCall(info.Owner, widgetDesc->OnDraw, dukWidget, { dukG }, false); + scriptEngine.ExecutePluginCall(_info.Owner, widgetDesc->OnDraw, dukWidget, { dukG }, false); } } } @@ -580,19 +567,19 @@ namespace OpenRCT2::Ui::Windows break; default: { - const auto& info = GetInfo(this); - if (widgetIndex >= WIDX_TAB_0 && widgetIndex < static_cast(WIDX_TAB_0 + info.Desc.Tabs.size())) + if (widgetIndex >= WIDX_TAB_0 + && widgetIndex < static_cast(WIDX_TAB_0 + _info.Desc.Tabs.size())) { ChangeTab(widgetIndex - WIDX_TAB_0); break; } - const auto widgetDesc = info.GetCustomWidgetDesc(this, widgetIndex); + const auto widgetDesc = _info.GetCustomWidgetDesc(this, widgetIndex); if (widgetDesc != nullptr) { if (widgetDesc->Type == "button") { - InvokeEventHandler(info.Owner, widgetDesc->OnClick); + InvokeEventHandler(_info.Owner, widgetDesc->OnClick); } else if (widgetDesc->Type == "checkbox") { @@ -606,14 +593,14 @@ namespace OpenRCT2::Ui::Windows auto ctx = widgetDesc->OnChange.context(); duk_push_boolean(ctx, isChecked); args.push_back(DukValue::take_from_stack(ctx)); - InvokeEventHandler(info.Owner, widgetDesc->OnChange, args); + InvokeEventHandler(_info.Owner, widgetDesc->OnChange, args); } else if (widgetDesc->Type == "spinner") { auto& widget = widgets[widgetIndex]; if (widget.text != STR_NUMERIC_DOWN && widget.text != STR_NUMERIC_UP) { - InvokeEventHandler(info.Owner, widgetDesc->OnClick); + InvokeEventHandler(_info.Owner, widgetDesc->OnClick); } } } @@ -625,8 +612,7 @@ namespace OpenRCT2::Ui::Windows void OnMouseDown(WidgetIndex widgetIndex) override { auto* widget = &widgets[widgetIndex]; - const auto& info = GetInfo(this); - const auto widgetDesc = info.GetCustomWidgetDesc(this, widgetIndex); + const auto widgetDesc = _info.GetCustomWidgetDesc(this, widgetIndex); if (widgetDesc != nullptr) { if (widgetDesc->Type == "colourpicker") @@ -654,11 +640,11 @@ namespace OpenRCT2::Ui::Windows { if (widget->text == STR_NUMERIC_DOWN) { - InvokeEventHandler(info.Owner, widgetDesc->OnDecrement); + InvokeEventHandler(_info.Owner, widgetDesc->OnDecrement); } else if (widget->text == STR_NUMERIC_UP) { - InvokeEventHandler(info.Owner, widgetDesc->OnIncrement); + InvokeEventHandler(_info.Owner, widgetDesc->OnIncrement); } } else if (widgetDesc->Type == "textbox") @@ -674,8 +660,7 @@ namespace OpenRCT2::Ui::Windows if (dropdownIndex == -1) return; - auto& info = GetInfo(this); - auto widgetDesc = info.GetCustomWidgetDesc(this, widgetIndex); + auto widgetDesc = _info.GetCustomWidgetDesc(this, widgetIndex); if (widgetDesc != nullptr) { if (widgetDesc->Type == "colourpicker") @@ -691,8 +676,7 @@ namespace OpenRCT2::Ui::Windows void OnTextInput(WidgetIndex widgetIndex, std::string_view text) override { - auto& info = GetInfo(this); - auto widgetDesc = info.GetCustomWidgetDesc(this, widgetIndex); + auto widgetDesc = _info.GetCustomWidgetDesc(this, widgetIndex); if (widgetDesc != nullptr) { if (widgetDesc->Type == "textbox") @@ -703,17 +687,16 @@ namespace OpenRCT2::Ui::Windows auto ctx = widgetDesc->OnChange.context(); duk_push_lstring(ctx, text.data(), text.size()); args.push_back(DukValue::take_from_stack(ctx)); - InvokeEventHandler(info.Owner, widgetDesc->OnChange, args); + InvokeEventHandler(_info.Owner, widgetDesc->OnChange, args); } } } ScreenSize OnScrollGetSize(int32_t scrollIndex) override { - auto& info = GetInfo(this); - if (scrollIndex < static_cast(info.ListViews.size())) + if (scrollIndex < static_cast(_info.ListViews.size())) { - auto size = info.ListViews[scrollIndex].GetSize(); + auto size = _info.ListViews[scrollIndex].GetSize(); return { size.width, size.height }; } return {}; @@ -721,55 +704,58 @@ namespace OpenRCT2::Ui::Windows void OnScrollMouseDown(int32_t scrollIndex, const ScreenCoordsXY& screenCoords) override { - auto& info = GetInfo(this); - if (scrollIndex < static_cast(info.ListViews.size())) + if (scrollIndex < static_cast(_info.ListViews.size())) { - info.ListViews[scrollIndex].MouseDown(screenCoords); + _info.ListViews[scrollIndex].MouseDown(screenCoords); } } void OnScrollMouseDrag(int32_t scrollIndex, const ScreenCoordsXY& screenCoords) override { - auto& info = GetInfo(this); - if (scrollIndex < static_cast(info.ListViews.size())) + if (scrollIndex < static_cast(_info.ListViews.size())) { - info.ListViews[scrollIndex].MouseOver(screenCoords, true); + _info.ListViews[scrollIndex].MouseOver(screenCoords, true); } } void OnScrollMouseOver(int32_t scrollIndex, const ScreenCoordsXY& screenCoords) override { - auto& info = GetInfo(this); - if (scrollIndex < static_cast(info.ListViews.size())) + if (scrollIndex < static_cast(_info.ListViews.size())) { - info.ListViews[scrollIndex].MouseOver(screenCoords, false); + _info.ListViews[scrollIndex].MouseOver(screenCoords, false); } } void OnScrollDraw(int32_t scrollIndex, DrawPixelInfo& dpi) override { - const auto& info = GetInfo(this); - if (scrollIndex < static_cast(info.ListViews.size())) + if (scrollIndex < static_cast(_info.ListViews.size())) { - info.ListViews[scrollIndex].Paint(this, dpi, &scrolls[scrollIndex]); + _info.ListViews[scrollIndex].Paint(this, dpi, &scrolls[scrollIndex]); } } void ChangeTab(size_t tabIndex) { - const auto& info = GetInfo(this); - page = static_cast(tabIndex); frame_no = 0; RefreshWidgets(); Invalidate(); WindowEventResizeCall(this); - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); WindowInitScrollWidgets(*this); Invalidate(); - InvokeEventHandler(info.Owner, info.Desc.OnTabChange); + InvokeEventHandler(_info.Owner, _info.Desc.OnTabChange); + } + + const CustomWindowInfo& GetInfo() const + { + return _info; + } + CustomWindowInfo& GetInfo() + { + return _info; } private: @@ -793,8 +779,7 @@ namespace OpenRCT2::Ui::Windows if (viewportWidgetIndex) { auto viewportWidget = &widgets[*viewportWidgetIndex]; - auto& customInfo = GetInfo(this); - auto widgetInfo = customInfo.GetCustomWidgetDesc(this, *viewportWidgetIndex); + auto widgetInfo = _info.GetCustomWidgetDesc(this, *viewportWidgetIndex); if (widgetInfo != nullptr) { auto left = windowPos.x + viewportWidget->left + 1; @@ -835,8 +820,7 @@ namespace OpenRCT2::Ui::Windows void SetPressedTab() { - const auto& info = GetInfo(this); - auto numTabs = info.Desc.Tabs.size(); + auto numTabs = _info.Desc.Tabs.size(); if (numTabs != 0) { for (size_t i = 0; i < numTabs; i++) @@ -849,8 +833,7 @@ namespace OpenRCT2::Ui::Windows void DrawTabImages(DrawPixelInfo& dpi) { - const auto& customInfo = GetInfo(this); - const auto& tabs = customInfo.Desc.Tabs; + const auto& tabs = _info.Desc.Tabs; size_t tabIndex = 0; for (const auto& tab : tabs) { @@ -874,26 +857,25 @@ namespace OpenRCT2::Ui::Windows void RefreshWidgets() { - auto& info = GetInfo(this); - auto& widgetList = info.Widgets; + auto& widgetList = _info.Widgets; widgetList.clear(); - info.WidgetIndexMap.clear(); - info.ListViews.clear(); + _info.WidgetIndexMap.clear(); + _info.ListViews.clear(); // Add default widgets (window shim) widgetList.insert(widgetList.begin(), std::begin(CustomDefaultWidgets), std::end(CustomDefaultWidgets)); for (size_t i = 0; i < widgetList.size(); i++) { - info.WidgetIndexMap.push_back(std::numeric_limits::max()); + _info.WidgetIndexMap.push_back(std::numeric_limits::max()); } // Add window tabs - if (info.Desc.Tabs.size() != 0) + if (_info.Desc.Tabs.size() != 0) { widgetList[WIDX_CONTENT_PANEL].top = 43; } - for (size_t tabDescIndex = 0; tabDescIndex < info.Desc.Tabs.size(); tabDescIndex++) + for (size_t tabDescIndex = 0; tabDescIndex < _info.Desc.Tabs.size(); tabDescIndex++) { Widget widget{}; widget.type = WindowWidgetType::Tab; @@ -905,33 +887,33 @@ namespace OpenRCT2::Ui::Windows widget.image = ImageId(SPR_TAB, FilterPaletteID::PaletteNull); widget.tooltip = STR_NONE; widgetList.push_back(widget); - info.WidgetIndexMap.push_back(std::numeric_limits::max()); + _info.WidgetIndexMap.push_back(std::numeric_limits::max()); } // Add custom widgets - auto totalWidgets = info.Desc.Widgets.size(); + auto totalWidgets = _info.Desc.Widgets.size(); auto tabWidgetsOffset = totalWidgets; - if (info.Desc.Tabs.size() != 0) + if (_info.Desc.Tabs.size() != 0) { - totalWidgets += info.Desc.Tabs[page].Widgets.size(); + totalWidgets += _info.Desc.Tabs[page].Widgets.size(); } for (size_t widgetDescIndex = 0; widgetDescIndex < totalWidgets; widgetDescIndex++) { - const auto& widgetDesc = widgetDescIndex < info.Desc.Widgets.size() - ? info.Desc.Widgets[widgetDescIndex] - : info.Desc.Tabs[page].Widgets[widgetDescIndex - tabWidgetsOffset]; + const auto& widgetDesc = widgetDescIndex < _info.Desc.Widgets.size() + ? _info.Desc.Widgets[widgetDescIndex] + : _info.Desc.Tabs[page].Widgets[widgetDescIndex - tabWidgetsOffset]; auto preWidgetSize = widgetList.size(); CreateWidget(widgetList, widgetDesc); auto numWidetsAdded = widgetList.size() - preWidgetSize; for (size_t i = 0; i < numWidetsAdded; i++) { - info.WidgetIndexMap.push_back(widgetDescIndex); + _info.WidgetIndexMap.push_back(widgetDescIndex); } if (widgetDesc.Type == "listview") { - CustomListView listView(this, info.ListViews.size()); - listView.Owner = info.Owner; + CustomListView listView(this, _info.ListViews.size()); + listView.Owner = _info.Owner; listView.SetScrollbars(widgetDesc.Scrollbars, true); listView.SetColumns(widgetDesc.ListViewColumns, true); listView.SetItems(widgetDesc.ListViewItems, true); @@ -941,7 +923,7 @@ namespace OpenRCT2::Ui::Windows listView.OnClick = widgetDesc.OnClick; listView.OnHighlight = widgetDesc.OnHighlight; listView.CanSelect = widgetDesc.CanSelect; - info.ListViews.push_back(std::move(listView)); + _info.ListViews.push_back(std::move(listView)); } } @@ -1132,22 +1114,18 @@ namespace OpenRCT2::Ui::Windows if (desc.X && desc.Y) { window = WindowCreate( - WindowClass::Custom, { *desc.X, *desc.Y }, desc.Width, desc.Height, windowFlags); + WindowClass::Custom, { *desc.X, *desc.Y }, desc.Width, desc.Height, windowFlags, owner, desc); } else { - window = WindowCreate(WindowClass::Custom, desc.Width, desc.Height, windowFlags); - } - if (window != nullptr) - { - window->Initialise(owner, desc); + window = WindowCreate(WindowClass::Custom, desc.Width, desc.Height, windowFlags, owner, desc); } return window; } - static CustomWindowInfo& GetInfo(WindowBase* w) + static CustomWindowInfo& GetInfo(CustomWindow* w) { - return *(static_cast(w->custom_info)); + return w->GetInfo(); } static void InvokeEventHandler(const std::shared_ptr& owner, const DukValue& dukHandler) @@ -1165,9 +1143,9 @@ namespace OpenRCT2::Ui::Windows std::string GetWindowTitle(WindowBase* w) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); return customInfo.Desc.Title; } return {}; @@ -1175,18 +1153,18 @@ namespace OpenRCT2::Ui::Windows void UpdateWindowTitle(WindowBase* w, std::string_view value) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); customInfo.Desc.Title = value; } } void UpdateWindowTab(WindowBase* w, int32_t tabIndex) { - if (w->classification == WindowClass::Custom && w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); if (tabIndex >= 0 && tabIndex < static_cast(customInfo.Desc.Tabs.size())) { static_cast(w)->ChangeTab(tabIndex); @@ -1196,9 +1174,9 @@ namespace OpenRCT2::Ui::Windows void UpdateWidgetText(WindowBase* w, WidgetIndex widgetIndex, std::string_view value) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1211,9 +1189,9 @@ namespace OpenRCT2::Ui::Windows void UpdateWidgetItems(WindowBase* w, WidgetIndex widgetIndex, const std::vector& items) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1225,9 +1203,9 @@ namespace OpenRCT2::Ui::Windows void UpdateWidgetColour(WindowBase* w, WidgetIndex widgetIndex, colour_t colour) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1252,9 +1230,9 @@ namespace OpenRCT2::Ui::Windows void UpdateWidgetSelectedIndex(WindowBase* w, WidgetIndex widgetIndex, int32_t selectedIndex) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1299,9 +1277,9 @@ namespace OpenRCT2::Ui::Windows std::vector GetWidgetItems(WindowBase* w, WidgetIndex widgetIndex) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1313,9 +1291,9 @@ namespace OpenRCT2::Ui::Windows colour_t GetWidgetColour(WindowBase* w, WidgetIndex widgetIndex) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1327,9 +1305,9 @@ namespace OpenRCT2::Ui::Windows int32_t GetWidgetSelectedIndex(WindowBase* w, WidgetIndex widgetIndex) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1345,7 +1323,7 @@ namespace OpenRCT2::Ui::Windows { if (w->classification == WindowClass::Custom) { - const auto& customInfo = GetInfo(w.get()); + const auto& customInfo = GetInfo(static_cast(w.get())); if (customInfo.Desc.Classification == classification) { return w.get(); @@ -1357,9 +1335,9 @@ namespace OpenRCT2::Ui::Windows std::optional FindWidgetIndexByName(WindowBase* w, std::string_view name) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); for (size_t i = 0; i < customInfo.Widgets.size(); i++) { auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, i); @@ -1377,9 +1355,9 @@ namespace OpenRCT2::Ui::Windows std::string GetWidgetName(WindowBase* w, WidgetIndex widgetIndex) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - const auto& customInfo = GetInfo(w); + const auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1391,9 +1369,9 @@ namespace OpenRCT2::Ui::Windows void SetWidgetName(WindowBase* w, WidgetIndex widgetIndex, std::string_view name) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1404,9 +1382,9 @@ namespace OpenRCT2::Ui::Windows std::string GetWidgetTooltip(WindowBase* w, WidgetIndex widgetIndex) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - const auto& customInfo = GetInfo(w); + const auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1418,9 +1396,9 @@ namespace OpenRCT2::Ui::Windows void SetWidgetTooltip(WindowBase* w, WidgetIndex widgetIndex, std::string_view tooltip) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1431,9 +1409,9 @@ namespace OpenRCT2::Ui::Windows CustomListView* GetCustomListView(WindowBase* w, WidgetIndex widgetIndex) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& info = GetInfo(w); + auto& info = GetInfo(static_cast(w)); auto scrollIndex = WindowGetScrollDataIndex(*w, widgetIndex); if (scrollIndex < static_cast(info.ListViews.size())) { @@ -1445,9 +1423,9 @@ namespace OpenRCT2::Ui::Windows int32_t GetWidgetMaxLength(WindowBase* w, WidgetIndex widgetIndex) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1459,9 +1437,9 @@ namespace OpenRCT2::Ui::Windows void SetWidgetMaxLength(WindowBase* w, WidgetIndex widgetIndex, int32_t value) { - if (w->custom_info != nullptr) + if (w->classification == WindowClass::Custom) { - auto& customInfo = GetInfo(w); + auto& customInfo = GetInfo(static_cast(w)); auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); if (customWidgetInfo != nullptr) { @@ -1479,8 +1457,8 @@ namespace OpenRCT2::Ui::Windows if (window->classification == WindowClass::Custom) { auto customWindow = reinterpret_cast(window.get()); - auto customInfo = reinterpret_cast(customWindow->custom_info); - if (customInfo != nullptr && customInfo->Owner == plugin) + auto& customInfo = GetInfo(customWindow); + if (customInfo.Owner == plugin) { customWindows.push_back(window); } diff --git a/src/openrct2-ui/scripting/ScUi.hpp b/src/openrct2-ui/scripting/ScUi.hpp index ec0386d134..a56c5796e5 100644 --- a/src/openrct2-ui/scripting/ScUi.hpp +++ b/src/openrct2-ui/scripting/ScUi.hpp @@ -304,12 +304,10 @@ namespace OpenRCT2::Scripting auto plugin = _scriptEngine.GetExecInfo().GetCurrentPlugin(); auto callback = desc["callback"]; - WindowScenarioselectOpen( - [this, plugin, callback](std::string_view path) { - auto dukValue = GetScenarioFile(path); - _scriptEngine.ExecutePluginCall(plugin, callback, { dukValue }, false); - }, - false); + WindowScenarioselectOpen([this, plugin, callback](std::string_view path) { + auto dukValue = GetScenarioFile(path); + _scriptEngine.ExecutePluginCall(plugin, callback, { dukValue }, false); + }); } void activateTool(const DukValue& desc) diff --git a/src/openrct2-ui/title/TitleSequencePlayer.cpp b/src/openrct2-ui/title/TitleSequencePlayer.cpp index a927c853c7..9b830f59b0 100644 --- a/src/openrct2-ui/title/TitleSequencePlayer.cpp +++ b/src/openrct2-ui/title/TitleSequencePlayer.cpp @@ -305,6 +305,7 @@ namespace OpenRCT2::Title objectManager.LoadObjects(result.RequiredObjects); parkImporter->Import(); + MapAnimationAutoCreate(); } PrepareParkForPlayback(); success = true; diff --git a/src/openrct2-ui/windows/About.cpp b/src/openrct2-ui/windows/About.cpp index 188abd94cf..d25a59ef5a 100644 --- a/src/openrct2-ui/windows/About.cpp +++ b/src/openrct2-ui/windows/About.cpp @@ -21,10 +21,10 @@ using namespace OpenRCT2; -static constexpr const int32_t WW = 400; -static constexpr const int32_t WH = 400; -static constexpr const StringId WINDOW_TITLE = STR_ABOUT; -static constexpr const int32_t TABHEIGHT = 50; +static constexpr int32_t WW = 400; +static constexpr int32_t WH = 400; +static constexpr StringId WINDOW_TITLE = STR_ABOUT; +static constexpr int32_t TABHEIGHT = 50; // clang-format off enum @@ -74,10 +74,12 @@ static Widget _windowAboutOpenRCT2Widgets[] = { MakeWidget({168, 115 + 40}, {200, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_CHANGELOG_ELLIPSIS), // changelog button MakeWidget({168, 115 + 60}, {200, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_JOIN_DISCORD ), // "join discord" button MakeWidget({10, 250}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_OPENRCT2_DESCRIPTION_2), // More info - MakeWidget({10, 300}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_OPENRCT2_DESCRIPTION_3), // Copyright - MakeWidget({10, 350}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_SPECIAL_THANKS_1), // Special Thanks + MakeWidget({10, 280}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_OPENRCT2_DESCRIPTION_3), // Copyright + MakeWidget({10, 360}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_SPECIAL_THANKS_1), // Special Thanks MakeWidget({10, 375}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_SPECIAL_THANKS_2), // Company names MakeWidget({168, 115 + 80}, {200, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_CONTRIBUTORS_WINDOW_BUTTON), // "contributors" button + MakeWidget({10, 310}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_OPENRCT2_TITLE), // Title Theme + MakeWidget({10, 338}, {WW - 20, 50}, WindowWidgetType::LabelCentred, WindowColour::Secondary, STR_ABOUT_FAIRGROUND_ORGAN), // Fairground organ WIDGETS_END, }; @@ -259,6 +261,11 @@ private: // Licence } + + void OnResize() override + { + ResizeFrameWithPage(); + } }; /** diff --git a/src/openrct2-ui/windows/AssetPacks.cpp b/src/openrct2-ui/windows/AssetPacks.cpp index 39c1e2de65..16642a1da8 100644 --- a/src/openrct2-ui/windows/AssetPacks.cpp +++ b/src/openrct2-ui/windows/AssetPacks.cpp @@ -20,9 +20,9 @@ using namespace OpenRCT2; -static constexpr const StringId WINDOW_TITLE = STR_ASSET_PACKS; -static constexpr const int32_t WW = 400; -static constexpr const int32_t WH = 200; +static constexpr StringId WINDOW_TITLE = STR_ASSET_PACKS; +static constexpr int32_t WW = 400; +static constexpr int32_t WH = 200; // clang-format off enum WindowAssetPacksWidgetIdx { diff --git a/src/openrct2-ui/windows/Banner.cpp b/src/openrct2-ui/windows/Banner.cpp index f61ef7e7c6..2b661472e4 100644 --- a/src/openrct2-ui/windows/Banner.cpp +++ b/src/openrct2-ui/windows/Banner.cpp @@ -23,9 +23,9 @@ #include #include -static constexpr const int32_t WW = 113; -static constexpr const int32_t WH = 96; -static constexpr const StringId WINDOW_TITLE = STR_BANNER_WINDOW_TITLE; +static constexpr int32_t WW = 113; +static constexpr int32_t WH = 96; +static constexpr StringId WINDOW_TITLE = STR_BANNER_WINDOW_TITLE; // clang-format off enum WindowBannerWidgetIdx { @@ -41,7 +41,7 @@ enum WindowBannerWidgetIdx { WIDX_TEXT_COLOUR_DROPDOWN_BUTTON }; -static constexpr const StringId BannerColouredTextFormats[] = { +static constexpr StringId BannerColouredTextFormats[] = { STR_TEXT_COLOUR_BLACK, STR_TEXT_COLOUR_GREY, STR_TEXT_COLOUR_WHITE, @@ -295,6 +295,11 @@ public: Widget* dropDownWidget = &window_banner_widgets[WIDX_TEXT_COLOUR_DROPDOWN]; dropDownWidget->text = BannerColouredTextFormats[banner->text_colour]; } + + void OnResize() override + { + ResizeFrame(); + } }; /** diff --git a/src/openrct2-ui/windows/Changelog.cpp b/src/openrct2-ui/windows/Changelog.cpp index 5e018d2849..e58ea7fb7a 100644 --- a/src/openrct2-ui/windows/Changelog.cpp +++ b/src/openrct2-ui/windows/Changelog.cpp @@ -37,9 +37,9 @@ enum { WIDX_OPEN_URL, }; -static constexpr const int32_t WW = 500; -static constexpr const int32_t WH = 400; -static constexpr const StringId WINDOW_TITLE = STR_CHANGELOG_TITLE; +static constexpr int32_t WW = 500; +static constexpr int32_t WH = 400; +static constexpr StringId WINDOW_TITLE = STR_CHANGELOG_TITLE; constexpr int32_t MIN_WW = 300; constexpr int32_t MIN_WH = 250; diff --git a/src/openrct2-ui/windows/Cheats.cpp b/src/openrct2-ui/windows/Cheats.cpp index 83cbbdca7a..14a31f2cf2 100644 --- a/src/openrct2-ui/windows/Cheats.cpp +++ b/src/openrct2-ui/windows/Cheats.cpp @@ -50,7 +50,7 @@ static StringId _staffSpeedNames[] = STR_FAST, }; -static constexpr const StringId WeatherTypes[] = +static constexpr StringId WeatherTypes[] = { STR_SUNNY, STR_PARTIALLY_CLOUDY, @@ -180,17 +180,17 @@ enum WindowCheatsWidgetIdx #pragma region MEASUREMENTS -static constexpr const StringId WINDOW_TITLE = STR_CHEAT_TITLE; -static constexpr const int32_t WW = 249; -static constexpr const int32_t WH = 300; +static constexpr StringId WINDOW_TITLE = STR_CHEAT_TITLE; +static constexpr int32_t WW = 249; +static constexpr int32_t WH = 300; static constexpr ScreenSize CHEAT_BUTTON = {110, 17}; static constexpr ScreenSize CHEAT_CHECK = {221, 12}; static constexpr ScreenSize CHEAT_SPINNER = {117, 14}; static constexpr ScreenSize MINMAX_BUTTON = {55, 17}; -static constexpr const int32_t TAB_WIDTH = 31; -static constexpr const int32_t TAB_START = 3; +static constexpr int32_t TAB_WIDTH = 31; +static constexpr int32_t TAB_START = 3; #pragma endregion @@ -641,7 +641,7 @@ private: void UpdateTabPositions() { - constexpr const uint16_t tabs[] = { + constexpr uint16_t tabs[] = { WIDX_TAB_1, WIDX_TAB_2, WIDX_TAB_3, @@ -792,7 +792,7 @@ private: CheatsSet(CheatType::SetMoney, _moneySpinnerValue); break; case WIDX_CLEAR_LOAN: - CheatsSet(CheatType::ClearLoan, CHEATS_MONEY_DEFAULT); + CheatsSet(CheatType::ClearLoan); break; } } @@ -1121,6 +1121,11 @@ private: break; } } + + void OnResize() override + { + ResizeFrameWithPage(); + } }; WindowBase* WindowCheatsOpen() diff --git a/src/openrct2-ui/windows/ClearScenery.cpp b/src/openrct2-ui/windows/ClearScenery.cpp index 6685b3c356..45b3a98098 100644 --- a/src/openrct2-ui/windows/ClearScenery.cpp +++ b/src/openrct2-ui/windows/ClearScenery.cpp @@ -30,9 +30,9 @@ enum WindowClearSceneryWidgetIdx WIDX_FOOTPATH }; // clang-format on -static constexpr const StringId WINDOW_TITLE = STR_CLEAR_SCENERY; -static constexpr const int32_t WW = 98; -static constexpr const int32_t WH = 94; +static constexpr StringId WINDOW_TITLE = STR_CLEAR_SCENERY; +static constexpr int32_t WW = 98; +static constexpr int32_t WH = 94; static constexpr ScreenSize CLEAR_SCENERY_BUTTON = { 24, 24 }; @@ -195,6 +195,11 @@ public: DrawTextBasic(dpi, screenCoords, STR_COST_AMOUNT, ft, { TextAlignment::CENTRE }); } } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowClearSceneryOpen() diff --git a/src/openrct2-ui/windows/CustomCurrency.cpp b/src/openrct2-ui/windows/CustomCurrency.cpp index c6c79d6317..628bce07b5 100644 --- a/src/openrct2-ui/windows/CustomCurrency.cpp +++ b/src/openrct2-ui/windows/CustomCurrency.cpp @@ -18,9 +18,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_CUSTOM_CURRENCY_WINDOW_TITLE; -static constexpr const int32_t WH = 100; -static constexpr const int32_t WW = 400; +static constexpr StringId WINDOW_TITLE = STR_CUSTOM_CURRENCY_WINDOW_TITLE; +static constexpr int32_t WH = 100; +static constexpr int32_t WW = 400; // clang-format off enum WindowCustomCurrencyWidgetIdx { @@ -218,6 +218,11 @@ public: : STR_SUFFIX; DrawTextBasic(dpi, drawPos, stringId, {}, { colours[1] }); } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* CustomCurrencyWindowOpen() diff --git a/src/openrct2-ui/windows/DemolishRidePrompt.cpp b/src/openrct2-ui/windows/DemolishRidePrompt.cpp index 63f25b2a98..22f3c7ba6e 100644 --- a/src/openrct2-ui/windows/DemolishRidePrompt.cpp +++ b/src/openrct2-ui/windows/DemolishRidePrompt.cpp @@ -18,8 +18,8 @@ #include #include -static constexpr const int32_t WW = 200; -static constexpr const int32_t WH = 100; +static constexpr int32_t WW = 200; +static constexpr int32_t WH = 100; // clang-format off enum WindowRideDemolishWidgetIdx @@ -90,6 +90,11 @@ public: DrawTextWrapped(dpi, stringCoords, WW - 4, stringId, ft, { TextAlignment::CENTRE }); } } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowRideDemolishPromptOpen(const Ride& ride) diff --git a/src/openrct2-ui/windows/Dropdown.cpp b/src/openrct2-ui/windows/Dropdown.cpp index 52a49aacdf..0018102098 100644 --- a/src/openrct2-ui/windows/Dropdown.cpp +++ b/src/openrct2-ui/windows/Dropdown.cpp @@ -28,7 +28,7 @@ constexpr int32_t DROPDOWN_TEXT_MAX_ROWS = 32; constexpr int32_t DROPDOWN_ITEM_HEIGHT = 12; -static constexpr const std::array _appropriateImageDropdownItemsPerRow = { +static constexpr std::array _appropriateImageDropdownItemsPerRow = { 1, 1, 1, 1, 2, 2, 3, 3, 4, 3, // 10 5, 4, 4, 5, 5, 5, 4, 5, 6, 5, // 20 5, 7, 4, 5, 6, 5, 6, 6, 6, 6, // 30 diff --git a/src/openrct2-ui/windows/EditorBottomToolbar.cpp b/src/openrct2-ui/windows/EditorBottomToolbar.cpp index bff69d2967..d4dd963454 100644 --- a/src/openrct2-ui/windows/EditorBottomToolbar.cpp +++ b/src/openrct2-ui/windows/EditorBottomToolbar.cpp @@ -49,7 +49,7 @@ class EditorBottomToolbarWindow final : public Window private: using FuncPtr = void (EditorBottomToolbarWindow::*)() const; - static constexpr const StringId _editorStepNames[] = { + static constexpr StringId _editorStepNames[] = { STR_EDITOR_STEP_OBJECT_SELECTION, STR_EDITOR_STEP_LANDSCAPE_EDITOR, STR_EDITOR_STEP_INVENTIONS_LIST_SET_UP, STR_EDITOR_STEP_OPTIONS_SELECTION, STR_EDITOR_STEP_OBJECTIVE_SELECTION, STR_EDITOR_STEP_SAVE_SCENARIO, STR_EDITOR_STEP_ROLLERCOASTER_DESIGNER, STR_EDITOR_STEP_TRACK_DESIGNS_MANAGER, @@ -374,7 +374,7 @@ private: nullptr, }; - static constexpr const FuncPtr _nextButtonMouseUp[] = { + static constexpr FuncPtr _nextButtonMouseUp[] = { &EditorBottomToolbarWindow::JumpForwardFromObjectSelection, &EditorBottomToolbarWindow::JumpForwardToInventionListSetUp, &EditorBottomToolbarWindow::JumpForwardToOptionsSelection, diff --git a/src/openrct2-ui/windows/EditorInventionsList.cpp b/src/openrct2-ui/windows/EditorInventionsList.cpp index 9b0810ba4b..c92d6ec836 100644 --- a/src/openrct2-ui/windows/EditorInventionsList.cpp +++ b/src/openrct2-ui/windows/EditorInventionsList.cpp @@ -27,9 +27,9 @@ #pragma region Widgets -static constexpr const int32_t WW = 600; -static constexpr const int32_t WH = 400; -static constexpr const StringId WINDOW_TITLE = STR_INVENTION_LIST; +static constexpr int32_t WW = 600; +static constexpr int32_t WH = 400; +static constexpr StringId WINDOW_TITLE = STR_INVENTION_LIST; // clang-format off enum { diff --git a/src/openrct2-ui/windows/EditorObjectSelection.cpp b/src/openrct2-ui/windows/EditorObjectSelection.cpp index 8e26c47626..60a93f9bc0 100644 --- a/src/openrct2-ui/windows/EditorObjectSelection.cpp +++ b/src/openrct2-ui/windows/EditorObjectSelection.cpp @@ -115,9 +115,9 @@ static char _filter_string[MAX_PATH]; #define _FILTER_SELECTED (_filter_flags & FILTER_SELECTED) #define _FILTER_NONSELECTED (_filter_flags & FILTER_NONSELECTED) -static constexpr const StringId WINDOW_TITLE = STR_OBJECT_SELECTION; -static constexpr const int32_t WH = 400; -static constexpr const int32_t WW = 755; +static constexpr StringId WINDOW_TITLE = STR_OBJECT_SELECTION; +static constexpr int32_t WH = 400; +static constexpr int32_t WW = 755; struct ObjectPageDesc { @@ -128,7 +128,7 @@ struct ObjectPageDesc // clang-format off // Order of which the object tabs are displayed. -static constexpr const ObjectPageDesc ObjectSelectionPages[] = { +static constexpr ObjectPageDesc ObjectSelectionPages[] = { { STR_OBJECT_SELECTION_RIDE_VEHICLES_ATTRACTIONS, SPR_TAB_RIDE_16, false }, { STR_OBJECT_SELECTION_STATIONS, SPR_G2_RIDE_STATION_TAB, true }, { STR_OBJECT_SELECTION_MUSIC, SPR_TAB_MUSIC_0, true }, @@ -153,7 +153,7 @@ ObjectType static TabOrder[] = { ObjectType::Ride, ObjectType::Station, ObjectType::Music, ObjectType::SceneryGroup, ObjectType::SmallScenery, ObjectType::LargeScenery, ObjectType::Walls, ObjectType::FootpathSurface, ObjectType::FootpathRailings, - ObjectType::Paths, ObjectType::PathBits, ObjectType::Banners, + ObjectType::Paths, ObjectType::PathAdditions, ObjectType::Banners, ObjectType::ParkEntrance, ObjectType::TerrainSurface, ObjectType::TerrainEdge, ObjectType::Water, }; @@ -221,7 +221,7 @@ static std::vector _window_editor_object_selection_widgets = { #pragma endregion -static constexpr const int32_t window_editor_object_selection_animation_loops[] = { +static constexpr int32_t window_editor_object_selection_animation_loops[] = { 20, // All 32, // Transport 10, // Gentle @@ -230,7 +230,7 @@ static constexpr const int32_t window_editor_object_selection_animation_loops[] 28, // Water 16, // Stall }; -static constexpr const int32_t window_editor_object_selection_animation_divisor[] = { +static constexpr int32_t window_editor_object_selection_animation_divisor[] = { 4, // All 8, // Transport 2, // Gentle diff --git a/src/openrct2-ui/windows/EditorObjectiveOptions.cpp b/src/openrct2-ui/windows/EditorObjectiveOptions.cpp index 42e993dc44..afe764cc6d 100644 --- a/src/openrct2-ui/windows/EditorObjectiveOptions.cpp +++ b/src/openrct2-ui/windows/EditorObjectiveOptions.cpp @@ -29,12 +29,12 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_OBJECTIVE_SELECTION; -static constexpr const int32_t WH = 229; -static constexpr const int32_t WW = 450; +static constexpr StringId WINDOW_TITLE = STR_OBJECTIVE_SELECTION; +static constexpr int32_t WH = 229; +static constexpr int32_t WW = 450; // The number has to leave a bit of room for other entities like vehicles, litter and balloons. -static constexpr const uint16_t MaxObjectiveGuests = 50000; +static constexpr uint16_t MaxObjectiveGuests = 50000; #pragma region Widgets @@ -45,7 +45,7 @@ enum { WINDOW_EDITOR_OBJECTIVE_OPTIONS_PAGE_COUNT }; -static constexpr const StringId ObjectiveDropdownOptionNames[] = { +static constexpr StringId ObjectiveDropdownOptionNames[] = { STR_OBJECTIVE_DROPDOWN_NONE, STR_OBJECTIVE_DROPDOWN_NUMBER_OF_GUESTS_AT_A_GIVEN_DATE, STR_OBJECTIVE_DROPDOWN_PARK_VALUE_AT_A_GIVEN_DATE, @@ -134,6 +134,10 @@ static uint64_t window_editor_objective_options_page_hold_down_widgets[] = { class EditorObjectiveOptionsWindow final : public Window { +private: + // Not shops or facilities + std::vector _rideableRides; + public: void OnOpen() override { @@ -142,7 +146,6 @@ public: hold_down_widgets = window_editor_objective_options_page_hold_down_widgets[WINDOW_EDITOR_OBJECTIVE_OPTIONS_PAGE_MAIN]; InitScrollWidgets(); selected_tab = WINDOW_EDITOR_OBJECTIVE_OPTIONS_PAGE_MAIN; - no_list_items = 0; selected_list_item = -1; UpdateDisabledWidgets(); } @@ -288,8 +291,7 @@ private: page = newPage; frame_no = 0; - var_492 = 0; - no_list_items = 0; + _rideableRides.clear(); selected_list_item = -1; hold_down_widgets = window_editor_objective_options_page_hold_down_widgets[newPage]; widgets = window_editor_objective_options_widgets[newPage]; @@ -1001,19 +1003,18 @@ private: OnResize(); InvalidateWidget(WIDX_TAB_2); - auto numItems = 0; + const auto oldSize = _rideableRides.size(); + _rideableRides.clear(); for (auto& currentRide : GetRideManager()) { if (currentRide.IsRide()) { - list_item_positions[numItems] = currentRide.id.ToUnderlying(); - numItems++; + _rideableRides.push_back(currentRide.id); } } - if (no_list_items != numItems) + if (oldSize != _rideableRides.size()) { - no_list_items = numItems; Invalidate(); } } @@ -1025,7 +1026,7 @@ private: ScreenSize OnScrollGetSizeRides(int32_t scrollIndex) { ScreenSize newSize; - newSize.height = no_list_items * 12; + newSize.height = static_cast(_rideableRides.size()) * 10; return newSize; } @@ -1037,11 +1038,10 @@ private: void OnScrollMouseDownRides(int32_t scrollIndex, const ScreenCoordsXY& screenCoords) { auto i = screenCoords.y / 12; - if (i < 0 || i >= no_list_items) + if (i < 0 || i >= static_cast(_rideableRides.size())) return; - const auto currentRideId = RideId::FromUnderlying(list_item_positions[i]); - auto currentRide = GetRide(currentRideId); + auto* currentRide = GetRide(_rideableRides[i]); if (currentRide != nullptr) { currentRide->lifecycle_flags ^= RIDE_LIFECYCLE_INDESTRUCTIBLE; @@ -1058,7 +1058,7 @@ private: int32_t i; i = screenCoords.y / 12; - if (i < 0 || i >= no_list_items) + if (i < 0 || i >= static_cast(_rideableRides.size())) return; if (selected_list_item != i) @@ -1112,7 +1112,7 @@ private: int32_t colour = ColourMapA[colours[1]].mid_light; GfxFillRect(dpi, { { dpi.x, dpi.y }, { dpi.x + dpi.width - 1, dpi.y + dpi.height - 1 } }, colour); - for (int32_t i = 0; i < no_list_items; i++) + for (int32_t i = 0; i < static_cast(_rideableRides.size()); i++) { int32_t y = i * 12; @@ -1131,8 +1131,7 @@ private: } // Checkbox mark - const auto currentRideId = RideId::FromUnderlying(list_item_positions[i]); - auto currentRide = GetRide(currentRideId); + auto* currentRide = GetRide(_rideableRides[i]); if (currentRide != nullptr) { if (currentRide->lifecycle_flags & RIDE_LIFECYCLE_INDESTRUCTIBLE) diff --git a/src/openrct2-ui/windows/EditorScenarioOptions.cpp b/src/openrct2-ui/windows/EditorScenarioOptions.cpp index fce940a6a4..1eb15ed4b8 100644 --- a/src/openrct2-ui/windows/EditorScenarioOptions.cpp +++ b/src/openrct2-ui/windows/EditorScenarioOptions.cpp @@ -29,14 +29,14 @@ #include #include -static constexpr const int32_t WW_FINANCIAL = 280; -static constexpr const int32_t WH_FINANCIAL = 149; +static constexpr int32_t WW_FINANCIAL = 280; +static constexpr int32_t WH_FINANCIAL = 149; -static constexpr const int32_t WW_GUESTS = 380; -static constexpr const int32_t WH_GUESTS = 149; +static constexpr int32_t WW_GUESTS = 380; +static constexpr int32_t WH_GUESTS = 149; -static constexpr const int32_t WW_PARK = 400; -static constexpr const int32_t WH_PARK = 200; +static constexpr int32_t WW_PARK = 400; +static constexpr int32_t WH_PARK = 200; #pragma region Widgets @@ -48,7 +48,7 @@ enum { WINDOW_EDITOR_SCENARIO_OPTIONS_PAGE_COUNT }; -static constexpr const StringId ClimateNames[] = { +static constexpr StringId ClimateNames[] = { STR_CLIMATE_COOL_AND_WET, STR_CLIMATE_WARM, STR_CLIMATE_HOT_AND_DRY, @@ -356,7 +356,6 @@ private: page = newPage; frame_no = 0; - var_492 = 0; hold_down_widgets = window_editor_scenario_options_page_hold_down_widgets[page]; widgets = window_editor_scenario_options_widgets[page]; Invalidate(); diff --git a/src/openrct2-ui/windows/Error.cpp b/src/openrct2-ui/windows/Error.cpp index d50c7ecc25..b4104dfa44 100644 --- a/src/openrct2-ui/windows/Error.cpp +++ b/src/openrct2-ui/windows/Error.cpp @@ -34,6 +34,7 @@ class ErrorWindow final : public Window private: std::string _text; uint16_t _numLines; + uint8_t _staleCount; public: ErrorWindow(std::string text, uint16_t numLines) @@ -48,7 +49,7 @@ public: window_error_widgets[WIDX_BACKGROUND].bottom = height; widgets = window_error_widgets; - error.var_480 = 0; + _staleCount = 0; if (!gDisableErrorWindowSound) { OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::Error, 0, windowPos.x + (width / 2)); @@ -97,10 +98,11 @@ public: dpi, { leftTop + ScreenCoordsXY{ (width + 1) / 2 - 1, 1 } }, _numLines, _text.data(), FontStyle::Medium); } - void OnUnknown5() override + void OnPeriodicUpdate() override { - error.var_480++; - if (error.var_480 >= 8) + // Close the window after 8 seconds of showing + _staleCount++; + if (_staleCount >= 8) { Close(); } diff --git a/src/openrct2-ui/windows/Finances.cpp b/src/openrct2-ui/windows/Finances.cpp index 0c548da76b..9cb073e930 100644 --- a/src/openrct2-ui/windows/Finances.cpp +++ b/src/openrct2-ui/windows/Finances.cpp @@ -83,16 +83,16 @@ enum #pragma region Measurements -static constexpr const int32_t WH_SUMMARY = 309; -static constexpr const int32_t WH_RESEARCH = 207; -static constexpr const int32_t WH_OTHER_TABS = 257; -static constexpr const int32_t WW_RESEARCH = 320; -static constexpr const int32_t WW_OTHER_TABS = 530; -static constexpr const int32_t RSH_SUMMARY = 266; -static constexpr const int32_t RSH_RESEARCH = 164; -static constexpr const int32_t RSH_OTHER_TABS = 214; -static constexpr const int32_t RSW_RESEARCH = WW_RESEARCH; -static constexpr const int32_t RSW_OTHER_TABS = WW_OTHER_TABS; +static constexpr int32_t WH_SUMMARY = 309; +static constexpr int32_t WH_RESEARCH = 207; +static constexpr int32_t WH_OTHER_TABS = 257; +static constexpr int32_t WW_RESEARCH = 320; +static constexpr int32_t WW_OTHER_TABS = 530; +static constexpr int32_t RSH_SUMMARY = 266; +static constexpr int32_t RSH_RESEARCH = 164; +static constexpr int32_t RSH_OTHER_TABS = 214; +static constexpr int32_t RSW_RESEARCH = WW_RESEARCH; +static constexpr int32_t RSW_OTHER_TABS = WW_OTHER_TABS; #pragma endregion @@ -179,7 +179,7 @@ static_assert(std::size(_windowFinancesPageWidgets) == WINDOW_FINANCES_PAGE_COUN #pragma endregion -static constexpr const StringId _windowFinancesSummaryRowLabels[static_cast(ExpenditureType::Count)] = { +static constexpr StringId _windowFinancesSummaryRowLabels[static_cast(ExpenditureType::Count)] = { STR_FINANCES_SUMMARY_RIDE_CONSTRUCTION, STR_FINANCES_SUMMARY_RIDE_RUNNING_COSTS, STR_FINANCES_SUMMARY_LAND_PURCHASE, @@ -196,7 +196,7 @@ static constexpr const StringId _windowFinancesSummaryRowLabels[static_cast #include -static constexpr const StringId WINDOW_TITLE = STR_STRINGID; -static constexpr const int32_t WH = 157; -static constexpr const int32_t WW = 192; +static constexpr StringId WINDOW_TITLE = STR_STRINGID; +static constexpr int32_t WH = 157; +static constexpr int32_t WW = 192; enum WindowGuestPage { @@ -150,7 +150,7 @@ static constexpr std::array _guestWindowPageWidgets = { static_assert(_guestWindowPageWidgets.size() == WINDOW_GUEST_PAGE_COUNT); // clang-format on -static constexpr const std::array _guestWindowPageSizes = { +static constexpr std::array _guestWindowPageSizes = { std::array{ ScreenSize{ 192, 159 }, ScreenSize{ 500, 450 } }, // WINDOW_GUEST_OVERVIEW std::array{ ScreenSize{ 192, 180 }, ScreenSize{ 192, 180 } }, // WINDOW_GUEST_STATS std::array{ ScreenSize{ 192, 180 }, ScreenSize{ 500, 400 } }, // WINDOW_GUEST_RIDES @@ -168,6 +168,7 @@ private: uint16_t _beingWatchedTimer = 0; uint16_t _guestAnimationFrame = 0; int16_t _pickedPeepX = LOCATION_NULL; // entity->x gets set to 0x8000 on pickup, this is the old value + std::vector _riddenRides; public: void OnOpen() override @@ -181,7 +182,6 @@ public: min_height = 157; max_width = 500; max_height = 450; - no_list_items = 0; selected_list_item = -1; } @@ -493,7 +493,7 @@ private: page = newPage; frame_no = 0; - no_list_items = 0; + _riddenRides.clear(); selected_list_item = -1; RemoveViewport(); @@ -755,7 +755,7 @@ private: WindowDrawViewport(dpi, *this); if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) { - GfxDrawSprite(dpi, ImageId(SPR_HEARING_VIEWPORT), windowPos + ScreenCoordsXY{ 2, 2 }); + GfxDrawSprite(dpi, ImageId(SPR_HEARING_VIEWPORT), WindowGetViewportSoundIconPos(*this)); } } @@ -850,10 +850,12 @@ private: void OnUpdateOverview() { - int32_t newAnimationFrame = _guestAnimationFrame; - newAnimationFrame++; - newAnimationFrame %= 24; - _guestAnimationFrame = newAnimationFrame; + _guestAnimationFrame++; + _guestAnimationFrame %= 24; + + // Update pickup animation, can only happen in this tab. + picked_peep_frame++; + picked_peep_frame %= 48; WidgetInvalidate(*this, WIDX_TAB_1); WidgetInvalidate(*this, WIDX_TAB_2); @@ -930,11 +932,6 @@ private: gPickupPeepX = screenCoords.x - 1; gPickupPeepY = screenCoords.y + 16; - picked_peep_frame++; - if (picked_peep_frame >= 48) - { - picked_peep_frame = 0; - } const auto peep = GetGuest(); if (peep == nullptr) @@ -1187,7 +1184,7 @@ private: // Nausea tolerance { - static constexpr const StringId _nauseaTolerances[] = { + static constexpr StringId _nauseaTolerances[] = { STR_PEEP_STAT_NAUSEA_TOLERANCE_NONE, STR_PEEP_STAT_NAUSEA_TOLERANCE_LOW, STR_PEEP_STAT_NAUSEA_TOLERANCE_AVERAGE, @@ -1240,20 +1237,19 @@ private: if (!(numTicks & 0x7FF)) Invalidate(); - uint8_t currListPosition = 0; + const auto oldSize = _riddenRides.size(); + _riddenRides.clear(); for (const auto& r : GetRideManager()) { if (r.IsRide() && guest->HasRidden(r)) { - list_item_positions[currListPosition] = r.id.ToUnderlying(); - currListPosition++; + _riddenRides.push_back(r.id); } } // If there are new items - if (no_list_items != currListPosition) + if (oldSize != _riddenRides.size()) { - no_list_items = currListPosition; Invalidate(); } } @@ -1261,7 +1257,7 @@ private: ScreenSize OnScrollGetSizeRides(int32_t scrollIndex) { ScreenSize newSize; - newSize.height = no_list_items * 10; + newSize.height = static_cast(_riddenRides.size()) * 10; if (selected_list_item != -1) { @@ -1285,18 +1281,18 @@ private: void OnScrollMouseDownRides(int32_t scrollIndex, const ScreenCoordsXY& screenCoords) { auto index = screenCoords.y / 10; - if (index >= no_list_items) + if (index >= static_cast(_riddenRides.size())) return; auto intent = Intent(WindowClass::Ride); - intent.PutExtra(INTENT_EXTRA_RIDE_ID, list_item_positions[index]); + intent.PutExtra(INTENT_EXTRA_RIDE_ID, _riddenRides[index]); ContextOpenIntent(&intent); } void OnScrollMouseOverRides(int32_t scrollIndex, const ScreenCoordsXY& screenCoords) { auto index = screenCoords.y / 10; - if (index >= no_list_items) + if (index >= static_cast(_riddenRides.size())) return; if (index == selected_list_item) @@ -1356,9 +1352,9 @@ private: auto colour = ColourMapA[colours[1]].mid_light; GfxFillRect(dpi, { { dpi.x, dpi.y }, { dpi.x + dpi.width - 1, dpi.y + dpi.height - 1 } }, colour); - for (int32_t listIndex = 0; listIndex < no_list_items; listIndex++) + for (int32_t listIndex = 0; listIndex < static_cast(_riddenRides.size()); listIndex++) { - auto y = listIndex * 10; + int32_t y = listIndex * 10; StringId stringId = STR_BLACK_STRING; if (listIndex == selected_list_item) { @@ -1366,8 +1362,7 @@ private: stringId = STR_WINDOW_COLOUR_2_STRINGID; } - const auto rId = RideId::FromUnderlying(list_item_positions[listIndex]); - auto* r = GetRide(rId); + auto* r = GetRide(_riddenRides[listIndex]); if (r != nullptr) { auto ft = Formatter(); diff --git a/src/openrct2-ui/windows/GuestList.cpp b/src/openrct2-ui/windows/GuestList.cpp index f1f24e9ab9..c9207a8488 100644 --- a/src/openrct2-ui/windows/GuestList.cpp +++ b/src/openrct2-ui/windows/GuestList.cpp @@ -28,9 +28,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_GUESTS; -static constexpr const int32_t WH = 330; -static constexpr const int32_t WW = 350; +static constexpr StringId WINDOW_TITLE = STR_GUESTS; +static constexpr int32_t WH = 330; +static constexpr int32_t WW = 350; enum WindowGuestListWidgetIdx { @@ -126,8 +126,8 @@ private: char Name[256]; }; - static constexpr const uint8_t SUMMARISED_GUEST_ROW_HEIGHT = SCROLLABLE_ROW_HEIGHT + 11; - static constexpr const auto GUESTS_PER_PAGE = 2000; + static constexpr uint8_t SUMMARISED_GUEST_ROW_HEIGHT = SCROLLABLE_ROW_HEIGHT + 11; + static constexpr auto GUESTS_PER_PAGE = 2000; static constexpr const auto GUEST_PAGE_HEIGHT = GUESTS_PER_PAGE * SCROLLABLE_ROW_HEIGHT; static constexpr size_t MaxGroups = 240; @@ -381,6 +381,10 @@ public: void OnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) override { + if (dropdownIndex == -1) + { + return; + } switch (widgetIndex) { case WIDX_PAGE_DROPDOWN_BUTTON: diff --git a/src/openrct2-ui/windows/InstallTrack.cpp b/src/openrct2-ui/windows/InstallTrack.cpp index 6aca68efae..d0911a144a 100644 --- a/src/openrct2-ui/windows/InstallTrack.cpp +++ b/src/openrct2-ui/windows/InstallTrack.cpp @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -41,9 +40,9 @@ enum { WIDX_CANCEL }; -static constexpr const StringId WINDOW_TITLE = STR_TRACK_DESIGN_INSTALL_WINDOW_TITLE; -static constexpr const int32_t WW = 380; -static constexpr const int32_t WH = 460; +static constexpr StringId WINDOW_TITLE = STR_TRACK_DESIGN_INSTALL_WINDOW_TITLE; +static constexpr int32_t WW = 380; +static constexpr int32_t WH = 460; constexpr int32_t PREVIEW_BUTTONS_LEFT = WW - 25; constexpr int32_t ACTION_BUTTONS_LEFT = WW - 100; @@ -82,7 +81,6 @@ public: void OnOpen() override { widgets = window_install_track_widgets; - track_list.track_list_being_updated = false; WindowInitScrollWidgets(*this); WindowPushOthersRight(*this); @@ -360,6 +358,11 @@ public: } } + void OnResize() override + { + ResizeFrame(); + } + private: void UpdatePreview() { @@ -370,7 +373,7 @@ private: { auto env = OpenRCT2::GetContext()->GetPlatformEnvironment(); auto destPath = env->GetDirectoryPath(OpenRCT2::DIRBASE::USER, OpenRCT2::DIRID::TRACK); - if (!Platform::EnsureDirectoryExists(destPath.c_str())) + if (!Path::CreateDirectory(destPath)) { LOG_ERROR("Unable to create directory '%s'", destPath.c_str()); ContextShowError(STR_CANT_SAVE_TRACK_DESIGN, STR_NONE, {}); diff --git a/src/openrct2-ui/windows/Land.cpp b/src/openrct2-ui/windows/Land.cpp index ae9984e9ff..d84c4d3c40 100644 --- a/src/openrct2-ui/windows/Land.cpp +++ b/src/openrct2-ui/windows/Land.cpp @@ -21,9 +21,9 @@ using namespace OpenRCT2; -static constexpr const StringId WINDOW_TITLE = STR_LAND; -static constexpr const int32_t WH = 160; -static constexpr const int32_t WW = 98; +static constexpr StringId WINDOW_TITLE = STR_LAND; +static constexpr int32_t WH = 160; +static constexpr int32_t WW = 98; // clang-format off enum WindowLandWidgetIdx { @@ -307,6 +307,11 @@ public: } } + void OnResize() override + { + ResizeFrame(); + } + private: void DrawDropdownButtons(DrawPixelInfo& dpi) { diff --git a/src/openrct2-ui/windows/LandRights.cpp b/src/openrct2-ui/windows/LandRights.cpp index 708f3d13ed..43e384acb6 100644 --- a/src/openrct2-ui/windows/LandRights.cpp +++ b/src/openrct2-ui/windows/LandRights.cpp @@ -22,9 +22,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_LAND_RIGHTS; -static constexpr const int32_t WH = 94; -static constexpr const int32_t WW = 98; +static constexpr StringId WINDOW_TITLE = STR_LAND_RIGHTS; +static constexpr int32_t WH = 94; +static constexpr int32_t WW = 98; // clang-format off enum WindowLandRightsWidgetIdx { @@ -377,6 +377,11 @@ public: } } + void OnResize() override + { + ResizeFrame(); + } + private: uint8_t _landRightsMode; money64 _landRightsCost; diff --git a/src/openrct2-ui/windows/LoadSave.cpp b/src/openrct2-ui/windows/LoadSave.cpp index b50bcef1f6..ac49ba3b02 100644 --- a/src/openrct2-ui/windows/LoadSave.cpp +++ b/src/openrct2-ui/windows/LoadSave.cpp @@ -41,9 +41,9 @@ #pragma region Widgets -static constexpr const StringId WINDOW_TITLE = STR_NONE; -static constexpr const int32_t WW = 350; -static constexpr const int32_t WH = 400; +static constexpr StringId WINDOW_TITLE = STR_NONE; +static constexpr int32_t WW = 350; +static constexpr int32_t WH = 400; static constexpr uint16_t DATE_TIME_GAP = 2; @@ -82,7 +82,7 @@ static Widget window_loadsave_widgets[] = #pragma endregion -static WindowBase* WindowOverwritePromptOpen(const char* name, const char* path); +static WindowBase* WindowOverwritePromptOpen(const std::string_view name, const std::string_view path); enum { @@ -221,7 +221,7 @@ static const char* GetFilterPatternByType(const int32_t type, const bool isSave) return "*.bmp;*.png"; default: - openrct2_assert(true, "Unsupported load/save directory type."); + Guard::Fail("Unsupported load/save directory type."); } return ""; @@ -882,7 +882,7 @@ public: case WIDX_NEW_FOLDER: { const u8string path = Path::Combine(_directory, text); - if (!Platform::EnsureDirectoryExists(path)) + if (!Path::CreateDirectory(path)) { ContextShowError(STR_UNABLE_TO_CREATE_FOLDER, STR_NONE, {}); return; @@ -905,7 +905,7 @@ public: Path::Combine(_directory, text), RemovePatternWildcard(_extensionPattern)); if (File::Exists(path)) - WindowOverwritePromptOpen(std::string(text).c_str(), path.c_str()); + WindowOverwritePromptOpen(text, path); else Select(path.c_str()); break; @@ -961,7 +961,7 @@ public: // TYPE_FILE // Load or overwrite if ((_type & 0x01) == LOADSAVETYPE_SAVE) - WindowOverwritePromptOpen(_listItems[selectedItem].name.c_str(), _listItems[selectedItem].path.c_str()); + WindowOverwritePromptOpen(_listItems[selectedItem].name, _listItems[selectedItem].path); else Select(_listItems[selectedItem].path.c_str()); } @@ -1077,12 +1077,12 @@ WindowBase* WindowLoadsaveOpen( break; case LOADSAVETYPE_HEIGHTMAP: - openrct2_assert(!isSave, "Cannot save images through loadsave window"); + Guard::Assert(!isSave, "Cannot save images through loadsave window"); w->widgets[WIDX_TITLE].text = STR_FILE_DIALOG_TITLE_LOAD_HEIGHTMAP; break; default: - openrct2_assert(true, "Unsupported load/save type: %d", type & 0x0F); + Guard::Fail("Unsupported load/save type: %d", type & 0x0F); break; } @@ -1111,69 +1111,61 @@ static Widget window_overwrite_prompt_widgets[] = { WIDGETS_END, }; -static void WindowOverwritePromptMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowOverwritePromptPaint(WindowBase* w, DrawPixelInfo& dpi); - -static WindowEventList window_overwrite_prompt_events([](auto& events) { - events.mouse_up = &WindowOverwritePromptMouseup; - events.paint = &WindowOverwritePromptPaint; -}); - -static char _window_overwrite_prompt_name[256]; -static char _window_overwrite_prompt_path[MAX_PATH]; - -static WindowBase* WindowOverwritePromptOpen(const char* name, const char* path) +class OverwritePromptWindow final : public Window { - WindowBase* w; + std::string _name; + std::string _path; +public: + OverwritePromptWindow(const std::string_view name, const std::string_view path) + : _name(name) + , _path(path) + { + widgets = window_overwrite_prompt_widgets; + colours[0] = TRANSLUCENT(COLOUR_BORDEAUX_RED); + } + + void OnMouseUp(WidgetIndex widgetIndex) override + { + switch (widgetIndex) + { + case WIDX_OVERWRITE_OVERWRITE: + { + Select(_path.c_str()); + + // As the LoadSaveWindow::Select function can change the order of the + // windows we can't use WindowClose(w). + WindowCloseByClass(WindowClass::LoadsaveOverwritePrompt); + break; + } + + case WIDX_OVERWRITE_CANCEL: + case WIDX_OVERWRITE_CLOSE: + Close(); + break; + } + } + + void OnDraw(DrawPixelInfo& dpi) override + { + DrawWidgets(dpi); + + auto ft = Formatter(); + ft.Add(STR_STRING); + ft.Add(_name.c_str()); + + ScreenCoordsXY stringCoords(windowPos.x + width / 2, windowPos.y + (height / 2) - 3); + DrawTextWrapped(dpi, stringCoords, width - 4, STR_FILEBROWSER_OVERWRITE_PROMPT, ft, { TextAlignment::CENTRE }); + } +}; + +static WindowBase* WindowOverwritePromptOpen(const std::string_view name, const std::string_view path) +{ WindowCloseByClass(WindowClass::LoadsaveOverwritePrompt); - w = WindowCreateCentred( - OVERWRITE_WW, OVERWRITE_WH, &window_overwrite_prompt_events, WindowClass::LoadsaveOverwritePrompt, WF_STICK_TO_FRONT); - w->widgets = window_overwrite_prompt_widgets; - - WindowInitScrollWidgets(*w); - - w->flags |= WF_TRANSPARENT; - w->colours[0] = TRANSLUCENT(COLOUR_BORDEAUX_RED); - - SafeStrCpy(_window_overwrite_prompt_name, name, sizeof(_window_overwrite_prompt_name)); - SafeStrCpy(_window_overwrite_prompt_path, path, sizeof(_window_overwrite_prompt_path)); - - return w; -} - -static void WindowOverwritePromptMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_OVERWRITE_OVERWRITE: - { - Select(_window_overwrite_prompt_path); - - // As the LoadSaveWindow::Select function can change the order of the - // windows we can't use WindowClose(w). - WindowCloseByClass(WindowClass::LoadsaveOverwritePrompt); - break; - } - - case WIDX_OVERWRITE_CANCEL: - case WIDX_OVERWRITE_CLOSE: - WindowClose(*w); - break; - } -} - -static void WindowOverwritePromptPaint(WindowBase* w, DrawPixelInfo& dpi) -{ - WindowDrawWidgets(*w, dpi); - - auto ft = Formatter(); - ft.Add(STR_STRING); - ft.Add(_window_overwrite_prompt_name); - - ScreenCoordsXY stringCoords(w->windowPos.x + w->width / 2, w->windowPos.y + (w->height / 2) - 3); - DrawTextWrapped(dpi, stringCoords, w->width - 4, STR_FILEBROWSER_OVERWRITE_PROMPT, ft, { TextAlignment::CENTRE }); + return WindowCreate( + WindowClass::LoadsaveOverwritePrompt, OVERWRITE_WW, OVERWRITE_WH, WF_TRANSPARENT | WF_STICK_TO_FRONT | WF_CENTRE_SCREEN, + name, path); } #pragma endregion diff --git a/src/openrct2-ui/windows/Map.cpp b/src/openrct2-ui/windows/Map.cpp index 5c83e34289..15caa4aa41 100644 --- a/src/openrct2-ui/windows/Map.cpp +++ b/src/openrct2-ui/windows/Map.cpp @@ -53,9 +53,9 @@ static constexpr uint16_t MapColourUnowned(uint16_t colour) constexpr int32_t MAP_WINDOW_MAP_SIZE = MAXIMUM_MAP_SIZE_TECHNICAL * 2; -static constexpr const StringId WINDOW_TITLE = STR_MAP_LABEL; -static constexpr const int32_t WH = 259; -static constexpr const int32_t WW = 245; +static constexpr StringId WINDOW_TITLE = STR_MAP_LABEL; +static constexpr int32_t WH = 259; +static constexpr int32_t WW = 245; // Some functions manipulate coordinates on the map. These are the coordinates of the pixels in the // minimap. In order to distinguish those from actual coordinates, we use a separate name. @@ -126,7 +126,7 @@ static Widget window_map_widgets[] = { // used in transforming viewport view coordinates to minimap coordinates // rct2: 0x00981BBC -static constexpr const ScreenCoordsXY MiniMapOffsets[] = { +static constexpr ScreenCoordsXY MiniMapOffsets[] = { { MAXIMUM_MAP_SIZE_TECHNICAL - 8, 0 }, { 2 * MAXIMUM_MAP_SIZE_TECHNICAL - 8, MAXIMUM_MAP_SIZE_TECHNICAL }, { MAXIMUM_MAP_SIZE_TECHNICAL - 8, 2 * MAXIMUM_MAP_SIZE_TECHNICAL }, @@ -1405,7 +1405,7 @@ private: Y, } _resizeDirection{ ResizeDirection::Both }; - static constexpr const uint16_t RideKeyColours[] = { + static constexpr uint16_t RideKeyColours[] = { MapColour(PALETTE_INDEX_61), // COLOUR_KEY_RIDE MapColour(PALETTE_INDEX_42), // COLOUR_KEY_FOOD MapColour(PALETTE_INDEX_20), // COLOUR_KEY_DRINK @@ -1416,15 +1416,15 @@ private: MapColour(PALETTE_INDEX_161), // COLOUR_KEY_TOILETS }; - static constexpr const uint8_t DefaultPeepMapColour = PALETTE_INDEX_20; - static constexpr const uint8_t GuestMapColour = PALETTE_INDEX_172; - static constexpr const uint8_t GuestMapColourAlternate = PALETTE_INDEX_21; - static constexpr const uint8_t StaffMapColour = PALETTE_INDEX_138; - static constexpr const uint8_t StaffMapColourAlternate = PALETTE_INDEX_10; + static constexpr uint8_t DefaultPeepMapColour = PALETTE_INDEX_20; + static constexpr uint8_t GuestMapColour = PALETTE_INDEX_172; + static constexpr uint8_t GuestMapColourAlternate = PALETTE_INDEX_21; + static constexpr uint8_t StaffMapColour = PALETTE_INDEX_138; + static constexpr uint8_t StaffMapColourAlternate = PALETTE_INDEX_10; - static constexpr const uint16_t WaterColour = MapColour(PALETTE_INDEX_195); + static constexpr uint16_t WaterColour = MapColour(PALETTE_INDEX_195); - static constexpr const uint16_t ElementTypeMaskColour[] = { + static constexpr uint16_t ElementTypeMaskColour[] = { 0xFFFF, // TILE_ELEMENT_TYPE_SURFACE 0x0000, // TILE_ELEMENT_TYPE_PATH 0x00FF, // TILE_ELEMENT_TYPE_TRACK @@ -1435,7 +1435,7 @@ private: 0xFFFF, // TILE_ELEMENT_TYPE_BANNER }; - static constexpr const uint16_t ElementTypeAddColour[] = { + static constexpr uint16_t ElementTypeAddColour[] = { MapColour(PALETTE_INDEX_0), // TILE_ELEMENT_TYPE_SURFACE MapColour(PALETTE_INDEX_17), // TILE_ELEMENT_TYPE_PATH MapColour2(PALETTE_INDEX_183, PALETTE_INDEX_0), // TILE_ELEMENT_TYPE_TRACK diff --git a/src/openrct2-ui/windows/MapGen.cpp b/src/openrct2-ui/windows/MapGen.cpp index 52be1db3d9..a96ecc3aea 100644 --- a/src/openrct2-ui/windows/MapGen.cpp +++ b/src/openrct2-ui/windows/MapGen.cpp @@ -119,9 +119,9 @@ enum #pragma region Widgets -static constexpr const StringId WINDOW_TITLE = STR_MAPGEN_WINDOW_TITLE; -static constexpr const int32_t WW = 250; -static constexpr const int32_t WH = 273; +static constexpr StringId WINDOW_TITLE = STR_MAPGEN_WINDOW_TITLE; +static constexpr int32_t WW = 250; +static constexpr int32_t WH = 273; // clang-format off #define SHARED_WIDGETS \ @@ -269,19 +269,19 @@ static uint64_t PressedWidgets[WINDOW_MAPGEN_PAGE_COUNT] = { #pragma endregion -static constexpr const int32_t TabAnimationDivisor[WINDOW_MAPGEN_PAGE_COUNT] = { +static constexpr int32_t TabAnimationDivisor[WINDOW_MAPGEN_PAGE_COUNT] = { 1, 1, 1, 1, }; -static constexpr const int32_t TabAnimationFrames[WINDOW_MAPGEN_PAGE_COUNT] = { +static constexpr int32_t TabAnimationFrames[WINDOW_MAPGEN_PAGE_COUNT] = { 1, 1, 1, 1, }; -static constexpr const int32_t TabAnimationLoops[WINDOW_MAPGEN_PAGE_COUNT] = { +static constexpr int32_t TabAnimationLoops[WINDOW_MAPGEN_PAGE_COUNT] = { 16, 16, 16, @@ -1371,6 +1371,11 @@ public: HeightmapGenerateMap(); } } + + void OnResize() override + { + ResizeFrameWithPage(); + } }; WindowBase* WindowMapgenOpen() diff --git a/src/openrct2-ui/windows/MazeConstruction.cpp b/src/openrct2-ui/windows/MazeConstruction.cpp index 62a60810b6..c1041f8297 100644 --- a/src/openrct2-ui/windows/MazeConstruction.cpp +++ b/src/openrct2-ui/windows/MazeConstruction.cpp @@ -28,9 +28,9 @@ #pragma region Widgets -static constexpr const StringId WINDOW_TITLE = STR_RIDE_CONSTRUCTION_WINDOW_TITLE; -static constexpr const int32_t WH = 200; -static constexpr const int32_t WW = 166; +static constexpr StringId WINDOW_TITLE = STR_RIDE_CONSTRUCTION_WINDOW_TITLE; +static constexpr int32_t WH = 200; +static constexpr int32_t WW = 166; // clang-format off enum { @@ -107,7 +107,7 @@ public: void OnClose() override { RideConstructionInvalidateCurrentTrack(); - ViewportSetVisibility(0); + ViewportSetVisibility(ViewportVisibility::Default); MapInvalidateMapSelectionTiles(); gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_CONSTRUCT; @@ -124,12 +124,9 @@ public: { if (currentRide->overall_view.IsNull()) { - int32_t savedPausedState = gGamePaused; - gGamePaused = 0; auto gameAction = RideDemolishAction(currentRide->id, RIDE_MODIFY_DEMOLISH); gameAction.SetFlags(GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED); GameActions::Execute(&gameAction); - gGamePaused = savedPausedState; } else { @@ -162,6 +159,7 @@ public: void OnResize() override { + ResizeFrameWithPage(); uint64_t disabledWidgets = 0; if (_rideConstructionState == RideConstructionState::Place) { @@ -366,7 +364,7 @@ private: if (currentRide != nullptr && RideAreAllPossibleEntrancesAndExitsBuilt(*currentRide).Successful) { ToolCancel(); - if (currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (!currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) WindowCloseByClass(WindowClass::RideConstruction); } else diff --git a/src/openrct2-ui/windows/Multiplayer.cpp b/src/openrct2-ui/windows/Multiplayer.cpp index b13670afab..d7012d934f 100644 --- a/src/openrct2-ui/windows/Multiplayer.cpp +++ b/src/openrct2-ui/windows/Multiplayer.cpp @@ -120,13 +120,13 @@ static constexpr StringId WindowMultiplayerPageTitles[] = { // clang-format on -static constexpr const int32_t window_multiplayer_animation_divisor[] = { +static constexpr int32_t window_multiplayer_animation_divisor[] = { 4, 4, 2, 2, }; -static constexpr const int32_t window_multiplayer_animation_frames[] = { +static constexpr int32_t window_multiplayer_animation_frames[] = { 8, 8, 7, @@ -213,7 +213,7 @@ void MultiplayerWindow::SetPage(int32_t page_number) widgets[WIDX_TITLE].text = WindowMultiplayerPageTitles[page]; WindowEventResizeCall(this); - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); InitScrollWidgets(); Invalidate(); } @@ -347,7 +347,6 @@ void MultiplayerWindow::OnResize() WindowSetResize(*this, 420, 124, 500, 450); no_list_items = (IsServerPlayerInvisible() ? NetworkGetNumVisiblePlayers() : NetworkGetNumPlayers()); - list_item_positions[0] = 0; widgets[WIDX_HEADER_PING].right = width - 5; @@ -360,7 +359,6 @@ void MultiplayerWindow::OnResize() WindowSetResize(*this, 320, 200, 320, 500); no_list_items = NetworkGetNumActions(); - list_item_positions[0] = 0; selected_list_item = -1; Invalidate(); diff --git a/src/openrct2-ui/windows/NetworkStatus.cpp b/src/openrct2-ui/windows/NetworkStatus.cpp index 8c7c4a55fb..5331d538ef 100644 --- a/src/openrct2-ui/windows/NetworkStatus.cpp +++ b/src/openrct2-ui/windows/NetworkStatus.cpp @@ -38,8 +38,6 @@ public: widgets = window_network_status_widgets; WindowInitScrollWidgets(*this); - no_list_items = 0; - selected_list_item = -1; frame_no = 0; min_width = 320; min_height = 90; diff --git a/src/openrct2-ui/windows/NewCampaign.cpp b/src/openrct2-ui/windows/NewCampaign.cpp index a5295b8558..f92a16f454 100644 --- a/src/openrct2-ui/windows/NewCampaign.cpp +++ b/src/openrct2-ui/windows/NewCampaign.cpp @@ -23,9 +23,9 @@ using namespace OpenRCT2; -static constexpr const StringId WINDOW_TITLE = STR_NONE; -static constexpr const int32_t WH = 109; -static constexpr const int32_t WW = 350; +static constexpr StringId WINDOW_TITLE = STR_NONE; +static constexpr int32_t WH = 109; +static constexpr int32_t WW = 350; constexpr uint16_t SELECTED_ITEM_UNDEFINED = 0xFFFF; @@ -61,6 +61,16 @@ class NewCampaignWindow final : public Window private: std::vector RideList; std::vector ShopItems; + struct CampaignVariables + { + int16_t campaign_type; + int16_t no_weeks; // 0x482 + union + { + ::RideId RideId; + ObjectEntryIndex ShopItemId; + }; + } Campaign; static bool RideValueCompare(const RideId& a, const RideId& b) { @@ -164,13 +174,13 @@ public: widgets[WIDX_TITLE].text = MarketingCampaignNames[campaignType][0]; // Campaign type - campaign.campaign_type = campaignType; + Campaign.campaign_type = campaignType; // Number of weeks - campaign.no_weeks = 2; + Campaign.no_weeks = 2; // Currently selected ride - campaign.RideId = RideId::GetNull(); + Campaign.RideId = RideId::GetNull(); RefreshRides(); } @@ -185,7 +195,7 @@ public: case WIDX_RIDE_DROPDOWN_BUTTON: dropdownWidget = widget - 1; - if (campaign.campaign_type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) + if (Campaign.campaign_type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) { GetShopItems(); if (!ShopItems.empty()) @@ -236,11 +246,11 @@ public: break; // In RCT2, the maximum was 6 weeks case WIDX_WEEKS_INCREASE_BUTTON: - campaign.no_weeks = std::min(campaign.no_weeks + 1, 12); + Campaign.no_weeks = std::min(Campaign.no_weeks + 1, 12); Invalidate(); break; case WIDX_WEEKS_DECREASE_BUTTON: - campaign.no_weeks = std::max(campaign.no_weeks - 1, 2); + Campaign.no_weeks = std::max(Campaign.no_weeks - 1, 2); Invalidate(); break; } @@ -256,7 +266,7 @@ public: case WIDX_START_BUTTON: { auto gameAction = ParkMarketingAction( - campaign.campaign_type, campaign.RideId.ToUnderlying(), campaign.no_weeks); + Campaign.campaign_type, Campaign.RideId.ToUnderlying(), Campaign.no_weeks); gameAction.SetCallback([](const GameAction* ga, const GameActions::Result* result) { if (result->Error == GameActions::Status::Ok) { @@ -277,19 +287,19 @@ public: if (dropdownIndex < 0) return; - if (campaign.campaign_type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) + if (Campaign.campaign_type == ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE) { if (static_cast(dropdownIndex) >= ShopItems.size()) return; - campaign.ShopItemId = EnumValue(ShopItems[dropdownIndex]); + Campaign.ShopItemId = EnumValue(ShopItems[dropdownIndex]); } else { if (static_cast(dropdownIndex) >= RideList.size()) return; - campaign.RideId = RideList[dropdownIndex]; + Campaign.RideId = RideList[dropdownIndex]; } Invalidate(); @@ -301,7 +311,7 @@ public: widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::Empty; widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Empty; widgets[WIDX_RIDE_DROPDOWN].text = STR_MARKETING_NOT_SELECTED; - switch (campaign.campaign_type) + switch (Campaign.campaign_type) { case ADVERTISING_CAMPAIGN_RIDE_FREE: case ADVERTISING_CAMPAIGN_RIDE: @@ -309,9 +319,9 @@ public: widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::DropdownMenu; widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Button; widgets[WIDX_RIDE_LABEL].text = STR_MARKETING_RIDE; - if (campaign.RideId != RideId::GetNull()) + if (Campaign.RideId != RideId::GetNull()) { - auto curRide = GetRide(campaign.RideId); + auto curRide = GetRide(Campaign.RideId); if (curRide != nullptr) { widgets[WIDX_RIDE_DROPDOWN].text = STR_STRINGID; @@ -326,9 +336,9 @@ public: widgets[WIDX_RIDE_DROPDOWN].type = WindowWidgetType::DropdownMenu; widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WindowWidgetType::Button; widgets[WIDX_RIDE_LABEL].text = STR_MARKETING_ITEM; - if (campaign.ShopItemId != SELECTED_ITEM_UNDEFINED) + if (Campaign.ShopItemId != SELECTED_ITEM_UNDEFINED) { - widgets[WIDX_RIDE_DROPDOWN].text = GetShopItemDescriptor(ShopItem(campaign.ShopItemId)).Naming.Plural; + widgets[WIDX_RIDE_DROPDOWN].text = GetShopItemDescriptor(ShopItem(Campaign.ShopItemId)).Naming.Plural; } break; } @@ -338,7 +348,7 @@ public: // Enable / disable start button based on ride dropdown WidgetSetDisabled(*this, WIDX_START_BUTTON, false); - if (widgets[WIDX_RIDE_DROPDOWN].type == WindowWidgetType::DropdownMenu && campaign.RideId == RideId::GetNull()) + if (widgets[WIDX_RIDE_DROPDOWN].type == WindowWidgetType::DropdownMenu && Campaign.RideId == RideId::GetNull()) WidgetSetDisabled(*this, WIDX_START_BUTTON, true); } @@ -351,24 +361,34 @@ public: // Number of weeks Widget* spinnerWidget = &widgets[WIDX_WEEKS_SPINNER]; auto ft = Formatter(); - ft.Add(campaign.no_weeks); + ft.Add(Campaign.no_weeks); DrawTextBasic( dpi, windowPos + ScreenCoordsXY{ spinnerWidget->left + 1, spinnerWidget->top }, - campaign.no_weeks == 1 ? STR_MARKETING_1_WEEK : STR_X_WEEKS, ft, { colours[0] }); + Campaign.no_weeks == 1 ? STR_MARKETING_1_WEEK : STR_X_WEEKS, ft, { colours[0] }); screenCoords = windowPos + ScreenCoordsXY{ 14, 60 }; // Price per week ft = Formatter(); - ft.Add(AdvertisingCampaignPricePerWeek[campaign.campaign_type]); + ft.Add(AdvertisingCampaignPricePerWeek[Campaign.campaign_type]); DrawTextBasic(dpi, screenCoords, STR_MARKETING_COST_PER_WEEK, ft); screenCoords.y += 13; // Total price ft = Formatter(); - ft.Add(AdvertisingCampaignPricePerWeek[campaign.campaign_type] * campaign.no_weeks); + ft.Add(AdvertisingCampaignPricePerWeek[Campaign.campaign_type] * Campaign.no_weeks); DrawTextBasic(dpi, screenCoords, STR_MARKETING_TOTAL_COST, ft); } + + void OnResize() override + { + ResizeFrame(); + } + + int16_t GetCampaignType() const + { + return Campaign.campaign_type; + } }; WindowBase* WindowNewCampaignOpen(int16_t campaignType) @@ -376,7 +396,7 @@ WindowBase* WindowNewCampaignOpen(int16_t campaignType) auto w = static_cast(WindowBringToFrontByClass(WindowClass::NewCampaign)); if (w != nullptr) { - if (w->campaign.campaign_type == campaignType) + if (w->GetCampaignType() == campaignType) return w; WindowClose(*w); diff --git a/src/openrct2-ui/windows/NewRide.cpp b/src/openrct2-ui/windows/NewRide.cpp index ab252e608a..5a21a3cdb8 100644 --- a/src/openrct2-ui/windows/NewRide.cpp +++ b/src/openrct2-ui/windows/NewRide.cpp @@ -40,12 +40,12 @@ using namespace OpenRCT2::TrackMetaData; -static constexpr const StringId WindowTitle = STR_NONE; -static constexpr const int32_t WindowHeight = 382; -static constexpr const int32_t WindowWidth = 601; -static constexpr const int32_t RideListItemsMax = 384; -static constexpr const int32_t RideTabCount = 6; -static constexpr const int32_t GroupByTrackTypeWidth = 172; +static constexpr StringId WindowTitle = STR_NONE; +static constexpr int32_t WindowHeight = 382; +static constexpr int32_t WindowWidth = 601; +static constexpr int32_t RideListItemsMax = 384; +static constexpr int32_t RideTabCount = 6; +static constexpr int32_t GroupByTrackTypeWidth = 172; #pragma region Ride type view order @@ -53,7 +53,7 @@ static constexpr const int32_t GroupByTrackTypeWidth = 172; * The order of ride types shown in the new ride window so that the order stays consistent across games and rides of the same * type are kept together. */ -static constexpr const ride_type_t RideTypeViewOrder[] = { +static constexpr ride_type_t RideTypeViewOrder[] = { // Transport rides RIDE_TYPE_MINIATURE_RAILWAY, RIDE_TYPE_MONORAIL, @@ -199,8 +199,8 @@ enum WIDX_GROUP_BY_TRACK_TYPE, }; -static constexpr const ScreenCoordsXY GroupByTrackTypeOrigin{ WindowWidth - 8 - GroupByTrackTypeWidth, 47 }; -static constexpr const ScreenSize GroupTrackTypeSize{ GroupByTrackTypeWidth, 14 }; +static constexpr ScreenCoordsXY GroupByTrackTypeOrigin{ WindowWidth - 8 - GroupByTrackTypeWidth, 47 }; +static constexpr ScreenSize GroupTrackTypeSize{ GroupByTrackTypeWidth, 14 }; // clang-format off static Widget window_new_ride_widgets[] = { @@ -227,7 +227,7 @@ static Widget window_new_ride_widgets[] = { #pragma endregion -static constexpr const StringId RideTitles[] = { +static constexpr StringId RideTitles[] = { STR_NEW_TRANSPORT_RIDES, // TRANSPORT_TAB STR_NEW_GENTLE_RIDES, // GENTLE_TAB STR_NEW_ROLLER_COASTERS, // ROLLER_COASTER_TAB @@ -238,7 +238,7 @@ static constexpr const StringId RideTitles[] = { }; static_assert(std::size(RideTitles) == TAB_COUNT); -static constexpr const int32_t TabAnimationLoops[] = { +static constexpr int32_t TabAnimationLoops[] = { 20, // TRANSPORT_TAB 32, // GENTLE_TAB 10, // ROLLER_COASTER_TAB @@ -249,7 +249,7 @@ static constexpr const int32_t TabAnimationLoops[] = { }; static_assert(std::size(TabAnimationLoops) == TAB_COUNT); -static constexpr const int32_t TabAnimationDivisor[] = { +static constexpr int32_t TabAnimationDivisor[] = { 4, // TRANSPORT_TAB 8, // GENTLE_TAB 2, // ROLLER_COASTER_TAB @@ -260,7 +260,7 @@ static constexpr const int32_t TabAnimationDivisor[] = { }; static_assert(std::size(TabAnimationDivisor) == TAB_COUNT); -static constexpr const int32_t ThrillRidesTabAnimationSequence[] = { +static constexpr int32_t ThrillRidesTabAnimationSequence[] = { 5, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 0, 0, 0, }; @@ -274,6 +274,12 @@ private: RideSelection _lastTrackDesignCountRideType{}; int32_t _lastTrackDesignCount{}; RideSelection _windowNewRideListItems[RideListItemsMax]{}; + struct NewRideVariables + { + RideSelection SelectedRide; + RideSelection HighlightedRide; + uint16_t SelectedRideCountdown; + } _newRideVars{}; public: static void SetOpeningPage(NewRideTabId tab) @@ -294,7 +300,7 @@ public: _filter.clear(); frame_no = 0; - new_ride.SelectedRide = { RIDE_TYPE_NULL, OBJECT_ENTRY_INDEX_NULL }; + _newRideVars.SelectedRide = { RIDE_TYPE_NULL, OBJECT_ENTRY_INDEX_NULL }; _lastTrackDesignCountRideType.Type = RIDE_TYPE_NULL; _lastTrackDesignCountRideType.EntryIndex = OBJECT_ENTRY_INDEX_NULL; @@ -322,7 +328,7 @@ public: WidgetInvalidate(*this, WIDX_FILTER_TEXT_BOX); } - if (new_ride.SelectedRide.Type != RIDE_TYPE_NULL && new_ride.selected_ride_countdown-- == 0) + if (_newRideVars.SelectedRide.Type != RIDE_TYPE_NULL && _newRideVars.SelectedRideCountdown-- == 0) { RideSelect(); } @@ -336,7 +342,7 @@ public: // Remove highlight when mouse leaves rides list if (!WidgetIsHighlighted(*this, WIDX_RIDE_LIST)) { - new_ride.HighlightedRide = { RIDE_TYPE_NULL, OBJECT_ENTRY_INDEX_NULL }; + _newRideVars.HighlightedRide = { RIDE_TYPE_NULL, OBJECT_ENTRY_INDEX_NULL }; WidgetInvalidate(*this, WIDX_RIDE_LIST); } } @@ -414,7 +420,7 @@ public: if (_currentTab != RESEARCH_TAB) { - RideSelection item = new_ride.HighlightedRide; + RideSelection item = _newRideVars.HighlightedRide; if (item.Type != RIDE_TYPE_NULL || item.EntryIndex != OBJECT_ENTRY_INDEX_NULL) DrawRideInformation(dpi, item, windowPos + ScreenCoordsXY{ 3, height - 64 }, width - 6); } @@ -440,12 +446,12 @@ public: void OnScrollMouseOver(int32_t scrollIndex, const ScreenCoordsXY& screenCoords) override { RideSelection item = ScrollGetRideListItemAt(screenCoords); - if (new_ride.HighlightedRide == item) + if (_newRideVars.HighlightedRide == item) { return; } - new_ride.HighlightedRide = item; + _newRideVars.HighlightedRide = item; Invalidate(); } @@ -457,10 +463,10 @@ public: return; } - new_ride.SelectedRide = item; + _newRideVars.SelectedRide = item; OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::Click1, 0, windowPos.x + (width / 2)); - new_ride.selected_ride_countdown = 8; + _newRideVars.SelectedRideCountdown = 8; Invalidate(); } @@ -479,9 +485,9 @@ public: { // Draw flat button rectangle int32_t buttonFlags = 0; - if (new_ride.SelectedRide == *listItem) + if (_newRideVars.SelectedRide == *listItem) buttonFlags |= INSET_RECT_FLAG_BORDER_INSET; - if (new_ride.HighlightedRide == *listItem || buttonFlags != 0) + if (_newRideVars.HighlightedRide == *listItem || buttonFlags != 0) GfxFillRectInset( dpi, { coords, coords + ScreenCoordsXY{ 115, 115 } }, colours[1], INSET_RECT_FLAG_FILL_MID_LIGHT | buttonFlags); @@ -530,8 +536,8 @@ public: { _currentTab = tab; frame_no = 0; - new_ride.HighlightedRide = { RIDE_TYPE_NULL, OBJECT_ENTRY_INDEX_NULL }; - new_ride.selected_ride_countdown = std::numeric_limits::max(); + _newRideVars.HighlightedRide = { RIDE_TYPE_NULL, OBJECT_ENTRY_INDEX_NULL }; + _newRideVars.SelectedRideCountdown = std::numeric_limits::max(); PopulateRideList(); RefreshWidgetSizing(); Invalidate(); @@ -545,7 +551,7 @@ public: private: void RideSelect() { - RideSelection item = new_ride.SelectedRide; + RideSelection item = _newRideVars.SelectedRide; if (item.Type == RIDE_TYPE_NULL) { return; @@ -957,7 +963,7 @@ private: // StringId stringId = STR_NEW_RIDE_COST; - if (!GetRideTypeDescriptor(item.Type).HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (GetRideTypeDescriptor(item.Type).HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) stringId = STR_NEW_RIDE_COST_FROM; ft = Formatter(); diff --git a/src/openrct2-ui/windows/News.cpp b/src/openrct2-ui/windows/News.cpp index 99bc5b691b..a6e6869b3b 100644 --- a/src/openrct2-ui/windows/News.cpp +++ b/src/openrct2-ui/windows/News.cpp @@ -21,9 +21,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_RECENT_MESSAGES; -static constexpr const int32_t WH = 300; -static constexpr const int32_t WW = 400; +static constexpr StringId WINDOW_TITLE = STR_RECENT_MESSAGES; +static constexpr int32_t WH = 300; +static constexpr int32_t WW = 400; // clang-format off enum WindowNewsWidgetIdx { @@ -306,6 +306,11 @@ public: i++; } } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowNewsOpen() diff --git a/src/openrct2-ui/windows/NewsOptions.cpp b/src/openrct2-ui/windows/NewsOptions.cpp index 10913b5c17..d88ff332c0 100644 --- a/src/openrct2-ui/windows/NewsOptions.cpp +++ b/src/openrct2-ui/windows/NewsOptions.cpp @@ -14,9 +14,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_NOTIFICATION_SETTINGS; -static constexpr const int32_t WH = 300; -static constexpr const int32_t WW = 400; +static constexpr StringId WINDOW_TITLE = STR_NOTIFICATION_SETTINGS; +static constexpr int32_t WH = 300; +static constexpr int32_t WW = 400; // clang-format off enum @@ -34,7 +34,7 @@ struct NotificationDef size_t config_offset; }; -static constexpr const NotificationDef NewsItemOptionDefinitions[] = { +static constexpr NotificationDef NewsItemOptionDefinitions[] = { { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_AWARD, offsetof(NotificationConfiguration, ParkAward) }, { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_MARKETING_CAMPAIGN_FINISHED, offsetof(NotificationConfiguration, ParkMarketingCampaignFinished) }, { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_WARNINGS, offsetof(NotificationConfiguration, ParkWarnings) }, @@ -259,6 +259,11 @@ private: return configValue; } + void OnResize() override + { + ResizeFrameWithPage(); + } + static constexpr int32_t TabAnimationDivisor[3] = { 1, // Park 4, // Ride diff --git a/src/openrct2-ui/windows/ObjectLoadError.cpp b/src/openrct2-ui/windows/ObjectLoadError.cpp index d3867ec937..cfa4f61825 100644 --- a/src/openrct2-ui/windows/ObjectLoadError.cpp +++ b/src/openrct2-ui/windows/ObjectLoadError.cpp @@ -266,10 +266,10 @@ enum WindowObjectLoadErrorWidgetIdx { WIDX_DOWNLOAD_ALL }; -static constexpr const StringId WINDOW_TITLE = STR_OBJECT_LOAD_ERROR_TITLE; -static constexpr const int32_t WW = 450; -static constexpr const int32_t WH = 400; -static constexpr const int32_t WW_LESS_PADDING = WW - 5; +static constexpr StringId WINDOW_TITLE = STR_OBJECT_LOAD_ERROR_TITLE; +static constexpr int32_t WW = 450; +static constexpr int32_t WH = 400; +static constexpr int32_t WW_LESS_PADDING = WW - 5; constexpr int32_t NAME_COL_LEFT = 4; constexpr int32_t SOURCE_COL_LEFT = (WW_LESS_PADDING / 4) + 1; constexpr int32_t TYPE_COL_LEFT = 5 * WW_LESS_PADDING / 8 + 1; @@ -311,7 +311,7 @@ static constexpr StringId GetStringFromObjectType(const ObjectType type) return STR_OBJECT_SELECTION_PATH_SIGNS; case ObjectType::Paths: return STR_OBJECT_SELECTION_FOOTPATHS; - case ObjectType::PathBits: + case ObjectType::PathAdditions: return STR_OBJECT_SELECTION_PATH_EXTRAS; case ObjectType::SceneryGroup: return STR_OBJECT_SELECTION_SCENERY_GROUPS; @@ -551,6 +551,11 @@ public: } } + void OnResize() override + { + ResizeFrame(); + } + void Initialise(utf8* path, const size_t numMissingObjects, const ObjectEntryDescriptor* missingObjects) { _invalidEntries = std::vector(missingObjects, missingObjects + numMissingObjects); diff --git a/src/openrct2-ui/windows/Options.cpp b/src/openrct2-ui/windows/Options.cpp index a45c659922..3f3019bb10 100644 --- a/src/openrct2-ui/windows/Options.cpp +++ b/src/openrct2-ui/windows/Options.cpp @@ -159,6 +159,7 @@ enum WindowOptionsWidgetIdx { WIDX_TRAP_CURSOR, WIDX_INVERT_DRAG, WIDX_ZOOM_TO_CURSOR, + WIDX_WINDOW_BUTTONS_ON_THE_LEFT, WIDX_HOTKEY_DROPDOWN, WIDX_THEMES_GROUP, WIDX_THEMES_LABEL, @@ -212,9 +213,9 @@ enum WindowOptionsWidgetIdx { WIDX_ASSET_PACKS, }; -static constexpr const StringId WINDOW_TITLE = STR_OPTIONS_TITLE; -static constexpr const int32_t WW = 310; -static constexpr const int32_t WH = 332; +static constexpr StringId WINDOW_TITLE = STR_OPTIONS_TITLE; +static constexpr int32_t WW = 310; +static constexpr int32_t WH = 332; #define MAIN_OPTIONS_WIDGETS \ WINDOW_SHIM(WINDOW_TITLE, WW, WH), \ @@ -318,21 +319,22 @@ static Widget window_options_audio_widgets[] = { static Widget window_options_controls_and_interface_widgets[] = { MAIN_OPTIONS_WIDGETS, #define CONTROLS_GROUP_START 53 - MakeWidget({ 5, CONTROLS_GROUP_START + 0}, {300, 92}, WindowWidgetType::Groupbox, WindowColour::Secondary, STR_CONTROLS_GROUP ), // Controls group - MakeWidget({ 10, CONTROLS_GROUP_START + 13}, {290, 14}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_SCREEN_EDGE_SCROLLING, STR_SCREEN_EDGE_SCROLLING_TIP ), // Edge scrolling - MakeWidget({ 10, CONTROLS_GROUP_START + 30}, {290, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_TRAP_MOUSE, STR_TRAP_MOUSE_TIP ), // Trap mouse - MakeWidget({ 10, CONTROLS_GROUP_START + 45}, {290, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_INVERT_RIGHT_MOUSE_DRAG, STR_INVERT_RIGHT_MOUSE_DRAG_TIP), // Invert right mouse dragging - MakeWidget({ 10, CONTROLS_GROUP_START + 60}, {290, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_ZOOM_TO_CURSOR, STR_ZOOM_TO_CURSOR_TIP ), // Zoom to cursor - MakeWidget({155, CONTROLS_GROUP_START + 75}, {145, 13}, WindowWidgetType::Button, WindowColour::Secondary, STR_HOTKEY, STR_HOTKEY_TIP ), // Set hotkeys buttons + MakeWidget({ 5, CONTROLS_GROUP_START + 0}, {300,107}, WindowWidgetType::Groupbox, WindowColour::Secondary, STR_CONTROLS_GROUP ), // Controls group + MakeWidget({ 10, CONTROLS_GROUP_START + 13}, {290, 14}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_SCREEN_EDGE_SCROLLING, STR_SCREEN_EDGE_SCROLLING_TIP ), // Edge scrolling + MakeWidget({ 10, CONTROLS_GROUP_START + 30}, {290, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_TRAP_MOUSE, STR_TRAP_MOUSE_TIP ), // Trap mouse + MakeWidget({ 10, CONTROLS_GROUP_START + 45}, {290, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_INVERT_RIGHT_MOUSE_DRAG, STR_INVERT_RIGHT_MOUSE_DRAG_TIP ), // Invert right mouse dragging + MakeWidget({ 10, CONTROLS_GROUP_START + 60}, {290, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_ZOOM_TO_CURSOR, STR_ZOOM_TO_CURSOR_TIP ), // Zoom to cursor + MakeWidget({ 10, CONTROLS_GROUP_START + 75}, {290, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary, STR_WINDOW_BUTTONS_ON_THE_LEFT, STR_WINDOW_BUTTONS_ON_THE_LEFT_TIP), // Window buttons on the left + MakeWidget({155, CONTROLS_GROUP_START + 90}, {145, 13}, WindowWidgetType::Button, WindowColour::Secondary, STR_HOTKEY, STR_HOTKEY_TIP ), // Set hotkeys buttons #undef CONTROLS_GROUP_START -#define THEMES_GROUP_START 148 +#define THEMES_GROUP_START 163 MakeWidget({ 5, THEMES_GROUP_START + 0}, {300, 48}, WindowWidgetType::Groupbox, WindowColour::Secondary, STR_THEMES_GROUP ), // Themes group MakeWidget({ 10, THEMES_GROUP_START + 14}, {145, 12}, WindowWidgetType::Label, WindowColour::Secondary, STR_THEMES_LABEL_CURRENT_THEME, STR_CURRENT_THEME_TIP ), // Themes MakeWidget({155, THEMES_GROUP_START + 14}, {145, 12}, WindowWidgetType::DropdownMenu, WindowColour::Secondary, STR_STRING ), MakeWidget({288, THEMES_GROUP_START + 15}, { 11, 10}, WindowWidgetType::Button, WindowColour::Secondary, STR_DROPDOWN_GLYPH, STR_CURRENT_THEME_TIP ), MakeWidget({155, THEMES_GROUP_START + 30}, {145, 13}, WindowWidgetType::Button, WindowColour::Secondary, STR_EDIT_THEMES_BUTTON, STR_EDIT_THEMES_BUTTON_TIP), // Themes button #undef THEMES_GROUP_START -#define TOOLBAR_GROUP_START 200 +#define TOOLBAR_GROUP_START 215 MakeWidget({ 5, TOOLBAR_GROUP_START + 0}, {300, 92}, WindowWidgetType::Groupbox, WindowColour::Secondary, STR_TOOLBAR_BUTTONS_GROUP ), // Toolbar buttons group MakeWidget({ 10, TOOLBAR_GROUP_START + 14}, {280, 12}, WindowWidgetType::Label, WindowColour::Secondary, STR_SHOW_TOOLBAR_BUTTONS_FOR ), MakeWidget({ 24, TOOLBAR_GROUP_START + 31}, {122, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary , STR_FINANCES_BUTTON_ON_TOOLBAR, STR_FINANCES_BUTTON_ON_TOOLBAR_TIP ), // Finances @@ -663,8 +665,12 @@ private: y = std::max(y, widget->bottom); } height = y + 6; - widgets[WIDX_BACKGROUND].bottom = height - 1; - widgets[WIDX_PAGE_BACKGROUND].bottom = height - 1; + ResizeFrameWithPage(); + } + + void OnResize() override + { + ResizeFrameWithPage(); } void CommonUpdate() @@ -1349,32 +1355,22 @@ private: break; case WIDX_TITLE_MUSIC_DROPDOWN: { - if (!IsRCT1TitleMusicAvailable()) + const bool rct1MusicThemeIsAvailable = IsRCT1TitleMusicAvailable(); + int32_t numItems{}; + int32_t checkedIndex{}; + for (auto theme : TitleThemeOptions) { - // Only show None and RCT2 - int32_t numItems{}; + if (theme.Kind == TitleMusicKind::RCT1 && !rct1MusicThemeIsAvailable) + continue; + + if (gConfigSound.TitleMusic == theme.Kind) + checkedIndex = numItems; + gDropdownItems[numItems].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[numItems++].Args = TitleMusicNames[0]; - gDropdownItems[numItems].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[numItems++].Args = TitleMusicNames[2]; - ShowDropdown(widget, numItems); - if (gConfigSound.TitleMusic == TitleMusicKind::None) - Dropdown::SetChecked(0, true); - else if (gConfigSound.TitleMusic == TitleMusicKind::RCT2) - Dropdown::SetChecked(1, true); - } - else - { - // Show None, RCT1, RCT2 and random - int32_t numItems{}; - for (auto musicName : TitleMusicNames) - { - gDropdownItems[numItems].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[numItems++].Args = musicName; - } - ShowDropdown(widget, numItems); - Dropdown::SetChecked(EnumValue(gConfigSound.TitleMusic), true); + gDropdownItems[numItems++].Args = theme.Name; } + ShowDropdown(widget, numItems); + Dropdown::SetChecked(checkedIndex, true); break; } } @@ -1407,18 +1403,20 @@ private: break; case WIDX_TITLE_MUSIC_DROPDOWN: { - auto titleMusic = static_cast(dropdownIndex); - if (!IsRCT1TitleMusicAvailable() && dropdownIndex != 0) + // HACK: When RCT1 is not available, it's not in the dropdown, so indices higher than it should be incremented + const bool rct1MusicThemeIsAvailable = IsRCT1TitleMusicAvailable(); + for (size_t i = 0; i < std::size(TitleThemeOptions) && static_cast(i) <= dropdownIndex; i++) { - titleMusic = TitleMusicKind::RCT2; + if (TitleThemeOptions[i].Kind == TitleMusicKind::RCT1 && !rct1MusicThemeIsAvailable) + dropdownIndex++; } - gConfigSound.TitleMusic = titleMusic; + gConfigSound.TitleMusic = TitleThemeOptions[dropdownIndex].Kind; ConfigSaveDefault(); Invalidate(); OpenRCT2::Audio::StopTitleMusic(); - if (titleMusic != TitleMusicKind::None) + if (gConfigSound.TitleMusic != TitleMusicKind::None) { OpenRCT2::Audio::PlayTitleMusic(); } @@ -1465,14 +1463,14 @@ private: return { 500, 0 }; } - StringId GetTitleMusicName() + StringId GetTitleMusicName() const { - auto index = EnumValue(gConfigSound.TitleMusic); - if (index < 0 || static_cast(index) >= std::size(TitleMusicNames)) - { - index = EnumValue(TitleMusicKind::None); - } - return TitleMusicNames[index]; + auto theme = std::find_if(std::begin(TitleThemeOptions), std::end(TitleThemeOptions), [](auto&& option) { + return gConfigSound.TitleMusic == option.Kind; + }); + if (theme != std::end(TitleThemeOptions)) + return theme->Name; + return STR_OPENRCT2_DROPDOWN; } void AudioPrepareDraw() @@ -1590,6 +1588,12 @@ private: Invalidate(); WindowInvalidateByClass(WindowClass::TopToolbar); break; + case WIDX_WINDOW_BUTTONS_ON_THE_LEFT: + gConfigInterface.WindowButtonsOnTheLeft ^= 1; + ConfigSaveDefault(); + Invalidate(); + WindowInvalidateAll(); + break; case WIDX_INVERT_DRAG: gConfigGeneral.InvertViewportDrag ^= 1; ConfigSaveDefault(); @@ -1654,6 +1658,7 @@ private: SetCheckboxValue(WIDX_TOOLBAR_SHOW_MUTE, gConfigInterface.ToolbarShowMute); SetCheckboxValue(WIDX_TOOLBAR_SHOW_CHAT, gConfigInterface.ToolbarShowChat); SetCheckboxValue(WIDX_TOOLBAR_SHOW_ZOOM, gConfigInterface.ToolbarShowZoom); + SetCheckboxValue(WIDX_WINDOW_BUTTONS_ON_THE_LEFT, gConfigInterface.WindowButtonsOnTheLeft); size_t activeAvailableThemeIndex = ThemeManagerGetAvailableThemeIndex(); const utf8* activeThemeName = ThemeManagerGetAvailableThemeName(activeAvailableThemeIndex); @@ -2048,7 +2053,7 @@ private: Invalidate(); WindowEventResizeCall(this); - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); InitScrollWidgets(); Invalidate(); } @@ -2146,11 +2151,16 @@ private: STR_SAVE_EVERY_30MINUTES, STR_SAVE_EVERY_HOUR, STR_SAVE_NEVER, }; - static constexpr StringId TitleMusicNames[] = { - STR_OPTIONS_MUSIC_VALUE_NONE, - STR_ROLLERCOASTER_TYCOON_1_DROPDOWN, - STR_ROLLERCOASTER_TYCOON_2_DROPDOWN, - STR_OPTIONS_MUSIC_VALUE_RANDOM, + static constexpr struct + { + TitleMusicKind Kind; + StringId Name; + } TitleThemeOptions[] = { + { TitleMusicKind::None, STR_OPTIONS_MUSIC_VALUE_NONE }, + { TitleMusicKind::OpenRCT2, STR_OPENRCT2_DROPDOWN }, + { TitleMusicKind::RCT1, STR_ROLLERCOASTER_TYCOON_1_DROPDOWN }, + { TitleMusicKind::RCT2, STR_ROLLERCOASTER_TYCOON_2_DROPDOWN }, + { TitleMusicKind::Random, STR_OPTIONS_MUSIC_VALUE_RANDOM }, }; static constexpr StringId FullscreenModeNames[] = { diff --git a/src/openrct2-ui/windows/Park.cpp b/src/openrct2-ui/windows/Park.cpp index e020545f4f..9f739019ca 100644 --- a/src/openrct2-ui/windows/Park.cpp +++ b/src/openrct2-ui/windows/Park.cpp @@ -35,8 +35,8 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_STRINGID; -static constexpr const int32_t WH = 224; +static constexpr StringId WINDOW_TITLE = STR_STRINGID; +static constexpr int32_t WH = 224; // clang-format off enum WindowParkPage { @@ -167,7 +167,7 @@ struct WindowParkAward { uint32_t sprite; }; -static constexpr const WindowParkAward _parkAwards[] = { +static constexpr WindowParkAward _parkAwards[] = { { STR_AWARD_MOST_UNTIDY, SPR_AWARD_MOST_UNTIDY }, { STR_AWARD_MOST_TIDY, SPR_AWARD_MOST_TIDY }, { STR_AWARD_BEST_ROLLERCOASTERS, SPR_AWARD_BEST_ROLLERCOASTERS }, @@ -595,7 +595,7 @@ private: { WindowDrawViewport(dpi, *this); if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) - GfxDrawSprite(dpi, ImageId(SPR_HEARING_VIEWPORT), windowPos + ScreenCoordsXY{ 2, 2 }); + GfxDrawSprite(dpi, ImageId(SPR_HEARING_VIEWPORT), WindowGetViewportSoundIconPos(*this)); } // Draw park closed / open label @@ -632,7 +632,7 @@ private: } // Call invalidate event - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); focus = newFocus; @@ -1193,7 +1193,7 @@ private: Invalidate(); WindowEventResizeCall(this); - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); WindowEventUpdateCall(this); if (listen && viewport != nullptr) viewport->flags |= VIEWPORT_FLAG_SOUND_ON; diff --git a/src/openrct2-ui/windows/PatrolArea.cpp b/src/openrct2-ui/windows/PatrolArea.cpp index 5c5a775a38..d436af8832 100644 --- a/src/openrct2-ui/windows/PatrolArea.cpp +++ b/src/openrct2-ui/windows/PatrolArea.cpp @@ -25,9 +25,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_SET_PATROL_AREA; -static constexpr const int32_t WH = 54; -static constexpr const int32_t WW = 104; +static constexpr StringId WINDOW_TITLE = STR_SET_PATROL_AREA; +static constexpr int32_t WH = 54; +static constexpr int32_t WW = 104; enum WindowPatrolAreaWidgetIdx { @@ -283,6 +283,11 @@ private: auto coords = FootpathGetCoordinatesFromPos(pos, nullptr, nullptr); return coords.IsNull() ? std::nullopt : std::make_optional(coords); } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowPatrolAreaOpen(EntityId staffId) diff --git a/src/openrct2-ui/windows/Player.cpp b/src/openrct2-ui/windows/Player.cpp index 1910a28720..524f42105d 100644 --- a/src/openrct2-ui/windows/Player.cpp +++ b/src/openrct2-ui/windows/Player.cpp @@ -78,6 +78,9 @@ static Widget *window_player_page_widgets[] = { class PlayerWindow final : public Window { + int16_t _previousRotation = -1; + bool _drawViewport = true; + public: void Init(const uint8_t id) { @@ -93,13 +96,10 @@ public: page = 0; frame_no = 0; list_information_type = 0; - picked_peep_frame = 0; min_width = 210; min_height = 134; max_width = 500; max_height = 450; - no_list_items = 0; - selected_list_item = -1; Invalidate(); @@ -108,16 +108,6 @@ public: pressed_widgets = 0; } - void OnClose() override - { - switch (page) - { - case WINDOW_PLAYER_PAGE_STATISTICS: - OnCloseStatistics(); - break; - } - } - void OnResize() override { switch (page) @@ -224,8 +214,6 @@ private: page = newPage; frame_no = 0; - no_list_items = 0; - selected_list_item = -1; hold_down_widgets = 0; pressed_widgets = 0; @@ -305,7 +293,7 @@ private: return; } // Don't scroll if the view was originally undefined - if (var_492 == -1) + if (!_drawViewport) { scroll = false; } @@ -322,12 +310,12 @@ private: } // Draw the viewport - var_492 = 0; + _drawViewport = true; } else { // Don't draw the viewport - var_492 = -1; + _drawViewport = false; } } } @@ -368,9 +356,9 @@ private: bool scroll = true; // Use this spare window field for rotation check - if (var_4AE != GetCurrentRotation()) + if (_previousRotation != GetCurrentRotation()) { - var_4AE = GetCurrentRotation(); + _previousRotation = GetCurrentRotation(); scroll = false; } UpdateViewport(scroll); @@ -483,7 +471,7 @@ private: } DrawTextEllipsised(dpi, screenCoords, updatedWidth, STR_LAST_ACTION_RAN, ft, { TextAlignment::CENTRE }); - if (viewport != nullptr && var_492 != -1) + if (viewport != nullptr && _drawViewport) { WindowDrawViewport(dpi, *this); } @@ -586,14 +574,6 @@ private: #pragma region Statistics - void OnCloseStatistics() - { - if (error.var_480) - { - error.var_480 = 0; - } - } - void OnResizeStatistics() { WindowSetResize(*this, 210, 80, 210, 80); diff --git a/src/openrct2-ui/windows/RefurbishRidePrompt.cpp b/src/openrct2-ui/windows/RefurbishRidePrompt.cpp index b830e2fe12..a963ae0ddb 100644 --- a/src/openrct2-ui/windows/RefurbishRidePrompt.cpp +++ b/src/openrct2-ui/windows/RefurbishRidePrompt.cpp @@ -17,8 +17,8 @@ #include #include -static constexpr const int32_t WW = 200; -static constexpr const int32_t WH = 100; +static constexpr int32_t WW = 200; +static constexpr int32_t WH = 100; // clang-format off enum WindowRideRefurbishWidgetIdx @@ -89,6 +89,11 @@ public: DrawTextWrapped(dpi, stringCoords, WW - 4, stringId, ft, { TextAlignment::CENTRE }); } } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowRideRefurbishPromptOpen(const Ride& ride) diff --git a/src/openrct2-ui/windows/Research.cpp b/src/openrct2-ui/windows/Research.cpp index dbed33e9aa..ea490fc18d 100644 --- a/src/openrct2-ui/windows/Research.cpp +++ b/src/openrct2-ui/windows/Research.cpp @@ -23,10 +23,10 @@ #include #include -static constexpr const int32_t WH_DEVELOPMENT = 196; -static constexpr const int32_t WW_DEVELOPMENT = 300; -static constexpr const int32_t WH_FUNDING = 207; -static constexpr const int32_t WW_FUNDING = 320; +static constexpr int32_t WH_DEVELOPMENT = 196; +static constexpr int32_t WW_DEVELOPMENT = 300; +static constexpr int32_t WH_FUNDING = 207; +static constexpr int32_t WW_FUNDING = 320; // clang-format off enum { @@ -106,7 +106,7 @@ const int32_t window_research_tab_animation_loops[] = { 16, }; -static constexpr const StringId ResearchStageNames[] = { +static constexpr StringId ResearchStageNames[] = { STR_RESEARCH_STAGE_INITIAL_RESEARCH, STR_RESEARCH_STAGE_DESIGNING, STR_RESEARCH_STAGE_COMPLETING_DESIGN, @@ -280,6 +280,11 @@ private: } } + void OnResize() override + { + ResizeFrameWithPage(); + } + void DrawTabImage(DrawPixelInfo& dpi, int32_t tabPage, int32_t spriteIndex) { WidgetIndex widgetIndex = WIDX_TAB_1 + tabPage; diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index 9ab4efa397..6f9f484891 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -68,11 +68,9 @@ using namespace OpenRCT2; using namespace OpenRCT2::TrackMetaData; -static constexpr const StringId WINDOW_TITLE = STR_RIDE_WINDOW_TITLE; -static constexpr const int32_t WH = 207; -static constexpr const int32_t WW = 316; - -static void PopulateVehicleTypeDropdown(const Ride& ride, bool forceRefresh = false); +static constexpr StringId WINDOW_TITLE = STR_RIDE_WINDOW_TITLE; +static constexpr int32_t WH = 207; +static constexpr int32_t WW = 316; enum { @@ -240,7 +238,7 @@ constexpr int32_t RCT1_LIGHT_OFFSET = 4; MakeTab ({282, 17}, STR_CUSTOMER_INFORMATION_TIP ) // 0x009ADC34 -static Widget window_ride_main_widgets[] = { +static Widget _mainWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget({ 3, 60}, {288, 107}, WindowWidgetType::Viewport, WindowColour::Secondary, STR_VIEWPORT ), MakeWidget({ 35, 46}, {222, 12}, WindowWidgetType::DropdownMenu, WindowColour::Secondary, 0xFFFFFFFF, STR_VIEW_SELECTION ), @@ -261,7 +259,7 @@ static Widget window_ride_main_widgets[] = { }; // 0x009ADDA8 -static Widget window_ride_vehicle_widgets[] = { +static Widget _vehicleWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget ({ 7, 50}, {302, 12}, WindowWidgetType::DropdownMenu, WindowColour::Secondary ), MakeWidget ({297, 51}, { 11, 10}, WindowWidgetType::Button, WindowColour::Secondary, STR_DROPDOWN_GLYPH ), @@ -273,7 +271,7 @@ static Widget window_ride_vehicle_widgets[] = { }; // 0x009ADEFC -static Widget window_ride_operating_widgets[] = { +static Widget _operatingWidgets[] = { MAIN_RIDE_WIDGETS, MakeSpinnerWidgets({157, 61}, {152, 12}, WindowWidgetType::Spinner, WindowColour::Secondary, STR_ARG_18_STRINGID ), // NB: 3 widgets MakeSpinnerWidgets({157, 75}, {152, 12}, WindowWidgetType::Spinner, WindowColour::Secondary, STR_LIFT_HILL_CHAIN_SPEED_VALUE ), // NB: 3 widgets @@ -296,7 +294,7 @@ static Widget window_ride_operating_widgets[] = { }; // 0x009AE190 -static Widget window_ride_maintenance_widgets[] = { +static Widget _maintenanceWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget({107, 71}, {202, 12}, WindowWidgetType::DropdownMenu, WindowColour::Secondary, STR_EMPTY, STR_SELECT_HOW_OFTEN_A_MECHANIC_SHOULD_CHECK_THIS_RIDE), MakeWidget({297, 72}, { 11, 10}, WindowWidgetType::Button, WindowColour::Secondary, STR_DROPDOWN_GLYPH, STR_SELECT_HOW_OFTEN_A_MECHANIC_SHOULD_CHECK_THIS_RIDE), @@ -307,7 +305,7 @@ static Widget window_ride_maintenance_widgets[] = { }; // 0x009AE2A4 -static Widget window_ride_colour_widgets[] = { +static Widget _colourWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget({ 3, 47}, { 68, 47}, WindowWidgetType::Spinner, WindowColour::Secondary ), MakeWidget({ 74, 49}, {239, 12}, WindowWidgetType::DropdownMenu, WindowColour::Secondary, STR_ARG_14_STRINGID ), @@ -334,7 +332,7 @@ static Widget window_ride_colour_widgets[] = { }; // 0x009AE4C8 -static Widget window_ride_music_widgets[] = { +static Widget _musicWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget({ 7, 47}, {302, 12}, WindowWidgetType::Checkbox, WindowColour::Secondary, STR_PLAY_MUSIC, STR_SELECT_MUSIC_TIP ), MakeWidget({ 7, 62}, {302, 12}, WindowWidgetType::DropdownMenu, WindowColour::Secondary, STR_EMPTY ), @@ -343,7 +341,7 @@ static Widget window_ride_music_widgets[] = { }; // 0x009AE5DC -static Widget window_ride_measurements_widgets[] = { +static Widget _measurementWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget({288, 194}, { 24, 24}, WindowWidgetType::FlatBtn, WindowColour::Secondary, ImageId(SPR_FLOPPY), STR_SAVE_TRACK_DESIGN), MakeWidget({ 4, 127}, {154, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_SELECT_NEARBY_SCENERY ), @@ -354,7 +352,7 @@ static Widget window_ride_measurements_widgets[] = { }; // 0x009AE710 -static Widget window_ride_graphs_widgets[] = { +static Widget _graphsWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget({ 3, 46}, {306, 112}, WindowWidgetType::Scroll, WindowColour::Secondary, SCROLL_HORIZONTAL, STR_LOGGING_DATA_FROM_TIP ), MakeWidget({ 3, 163}, { 73, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_RIDE_STATS_VELOCITY, STR_SHOW_GRAPH_OF_VELOCITY_AGAINST_TIME_TIP ), @@ -365,7 +363,7 @@ static Widget window_ride_graphs_widgets[] = { }; // 0x009AE844 -static Widget window_ride_income_widgets[] = { +static Widget _incomeWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget ({ 19, 50}, {126, 14}, WindowWidgetType::Label, WindowColour::Secondary ), MakeSpinnerWidgets({147, 50}, {162, 14}, WindowWidgetType::Spinner, WindowColour::Secondary, STR_ARG_6_CURRENCY2DP ), // NB: 3 widgets @@ -377,7 +375,7 @@ static Widget window_ride_income_widgets[] = { }; // 0x009AE9C8 -static Widget window_ride_customer_widgets[] = { +static Widget _customerWidgets[] = { MAIN_RIDE_WIDGETS, MakeWidget({289, 54}, {24, 24}, WindowWidgetType::FlatBtn, WindowColour::Secondary, ImageId(SPR_SHOW_GUESTS_THOUGHTS_ABOUT_THIS_RIDE_ATTRACTION), STR_SHOW_GUESTS_THOUGHTS_ABOUT_THIS_RIDE_ATTRACTION_TIP), MakeWidget({289, 78}, {24, 24}, WindowWidgetType::FlatBtn, WindowColour::Secondary, ImageId(SPR_SHOW_GUESTS_ON_THIS_RIDE_ATTRACTION), STR_SHOW_GUESTS_ON_THIS_RIDE_ATTRACTION_TIP ), @@ -385,21 +383,22 @@ static Widget window_ride_customer_widgets[] = { WIDGETS_END, }; -static Widget *window_ride_page_widgets[] = { - window_ride_main_widgets, - window_ride_vehicle_widgets, - window_ride_operating_widgets, - window_ride_maintenance_widgets, - window_ride_colour_widgets, - window_ride_music_widgets, - window_ride_measurements_widgets, - window_ride_graphs_widgets, - window_ride_income_widgets, - window_ride_customer_widgets, +static const std::array PageWidgets = { + _mainWidgets, + _vehicleWidgets, + _operatingWidgets, + _maintenanceWidgets, + _colourWidgets, + _musicWidgets, + _measurementWidgets, + _graphsWidgets, + _incomeWidgets, + _customerWidgets, }; +static_assert(std::size(PageWidgets) == WINDOW_RIDE_PAGE_COUNT); -static constexpr const uint64_t window_ride_page_hold_down_widgets[] = { - 0, +static constexpr std::array PageHoldDownWidgets = { + 0uLL, (1uLL << WIDX_VEHICLE_TRAINS_INCREASE) | (1uLL << WIDX_VEHICLE_TRAINS_DECREASE) | (1uLL << WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE) | @@ -414,265 +413,23 @@ static constexpr const uint64_t window_ride_page_hold_down_widgets[] = { (1uLL << WIDX_MAXIMUM_LENGTH_DECREASE) | (1uLL << WIDX_OPERATE_NUMBER_OF_CIRCUITS_INCREASE) | (1uLL << WIDX_OPERATE_NUMBER_OF_CIRCUITS_DECREASE), - 0, - 0, - 0, - 0, - 0, + 0uLL, + 0uLL, + 0uLL, + 0uLL, + 0uLL, (1uLL << WIDX_PRIMARY_PRICE_INCREASE) | (1uLL << WIDX_PRIMARY_PRICE_DECREASE) | (1uLL << WIDX_SECONDARY_PRICE_INCREASE) | (1uLL << WIDX_SECONDARY_PRICE_DECREASE), - 0, + 0uLL, }; +static_assert(std::size(PageHoldDownWidgets) == WINDOW_RIDE_PAGE_COUNT); // clang-format on #pragma endregion -#pragma region Events - -static void WindowRideInitViewport(WindowBase* w); - -static void WindowRideMainMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideMainResize(WindowBase* w); -static void WindowRideMainMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideMainDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex); -static void WindowRideMainUpdate(WindowBase* w); -static void WindowRideMainTextinput(WindowBase* w, WidgetIndex widgetIndex, const char* text); -static void WindowRideMainViewportRotate(WindowBase* w); -static void WindowRideMainInvalidate(WindowBase* w); -static void WindowRideMainPaint(WindowBase* w, DrawPixelInfo& dpi); -static void WindowRideMainFollowRide(WindowBase* w); - -static void WindowRideVehicleMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideVehicleResize(WindowBase* w); -static void WindowRideVehicleMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideVehicleDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex); -static void WindowRideVehicleUpdate(WindowBase* w); -static OpenRCT2String WindowRideVehicleTooltip(WindowBase* const w, const WidgetIndex widgetIndex, StringId fallback); -static void WindowRideVehicleInvalidate(WindowBase* w); -static void WindowRideVehiclePaint(WindowBase* w, DrawPixelInfo& dpi); -static void WindowRideVehicleScrollpaint(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex); - -static void WindowRideOperatingMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideOperatingResize(WindowBase* w); -static void WindowRideOperatingMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideOperatingLengthWindow(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideOperatingTweakTextInput(WindowBase* w, const Ride& ride); -static void WindowRideOperatingDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex); -static void WindowRideOperatingUpdate(WindowBase* w); -static void WindowRideOperatingTextinput(WindowBase* w, WidgetIndex widgetIndex, const char* text); -static void WindowRideOperatingInvalidate(WindowBase* w); -static void WindowRideOperatingPaint(WindowBase* w, DrawPixelInfo& dpi); - -static void WindowRideMaintenanceMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideMaintenanceResize(WindowBase* w); -static void WindowRideMaintenanceMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideMaintenanceDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex); -static void WindowRideMaintenanceUpdate(WindowBase* w); -static void WindowRideMaintenanceInvalidate(WindowBase* w); -static void WindowRideMaintenancePaint(WindowBase* w, DrawPixelInfo& dpi); - -static void WindowRideColourClose(WindowBase* w); -static void WindowRideColourMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideColourResize(WindowBase* w); -static void WindowRideColourMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideColourDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex); -static void WindowRideColourUpdate(WindowBase* w); -static void WindowRideColourTooldown(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords); -static void WindowRideColourTooldrag(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords); -static void WindowRideColourInvalidate(WindowBase* w); -static void WindowRideColourPaint(WindowBase* w, DrawPixelInfo& dpi); -static void WindowRideColourScrollpaint(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex); - -static void WindowRideMusicMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideMusicResize(WindowBase* w); -static void WindowRideMusicMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideMusicDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex); -static void WindowRideMusicUpdate(WindowBase* w); -static void WindowRideMusicInvalidate(WindowBase* w); -static void WindowRideMusicPaint(WindowBase* w, DrawPixelInfo& dpi); - -static void WindowRideMeasurementsClose(WindowBase* w); -static void WindowRideMeasurementsMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideMeasurementsResize(WindowBase* w); -static void WindowRideMeasurementsMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideMeasurementsDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex); -static void WindowRideMeasurementsUpdate(WindowBase* w); -static void WindowRideMeasurementsTooldown(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords); -static void WindowRideMeasurementsTooldrag(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords); -static void WindowRideMeasurementsToolabort(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideMeasurementsInvalidate(WindowBase* w); -static void WindowRideMeasurementsPaint(WindowBase* w, DrawPixelInfo& dpi); - -static void WindowRideGraphsMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideGraphsResize(WindowBase* w); -static void WindowRideGraphsMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideGraphsUpdate(WindowBase* w); -static void WindowRideGraphsScrollgetheight(WindowBase* w, int32_t scrollIndex, int32_t* width, int32_t* height); -static void WindowRideGraphs15(WindowBase* w, int32_t scrollIndex, int32_t scrollAreaType); -static OpenRCT2String WindowRideGraphsTooltip(WindowBase* w, const WidgetIndex widgetIndex, const StringId fallback); -static void WindowRideGraphsInvalidate(WindowBase* w); -static void WindowRideGraphsPaint(WindowBase* w, DrawPixelInfo& dpi); -static void WindowRideGraphsScrollpaint(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex); - -static void WindowRideIncomeMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideIncomeResize(WindowBase* w); -static void WindowRideIncomeMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget); -static void WindowRideIncomeUpdate(WindowBase* w); -static void WindowRideIncomeTextinput(WindowBase* w, WidgetIndex widgetIndex, const char* text); -static void WindowRideIncomeInvalidate(WindowBase* w); -static void WindowRideIncomePaint(WindowBase* w, DrawPixelInfo& dpi); -static bool WindowRideIncomeCanModifyPrimaryPrice(WindowBase* w); - -static void WindowRideCustomerMouseup(WindowBase* w, WidgetIndex widgetIndex); -static void WindowRideCustomerResize(WindowBase* w); -static void WindowRideCustomerUpdate(WindowBase* w); -static void WindowRideCustomerInvalidate(WindowBase* w); -static void WindowRideCustomerPaint(WindowBase* w, DrawPixelInfo& dpi); - -static void WindowRideSetPage(WindowBase* w, int32_t page); - -// 0x0098DFD4 -static WindowEventList window_ride_main_events([](auto& events) { - events.mouse_up = &WindowRideMainMouseup; - events.resize = &WindowRideMainResize; - events.mouse_down = &WindowRideMainMousedown; - events.dropdown = &WindowRideMainDropdown; - events.update = &WindowRideMainUpdate; - events.text_input = &WindowRideMainTextinput; - events.viewport_rotate = &WindowRideMainViewportRotate; - events.invalidate = &WindowRideMainInvalidate; - events.paint = &WindowRideMainPaint; -}); - -// 0x0098E204 -static WindowEventList window_ride_vehicle_events([](auto& events) { - events.mouse_up = &WindowRideVehicleMouseup; - events.resize = &WindowRideVehicleResize; - events.mouse_down = &WindowRideVehicleMousedown; - events.dropdown = &WindowRideVehicleDropdown; - events.update = &WindowRideVehicleUpdate; - events.tooltip = &WindowRideVehicleTooltip; - events.invalidate = &WindowRideVehicleInvalidate; - events.paint = &WindowRideVehiclePaint; - events.scroll_paint = &WindowRideVehicleScrollpaint; -}); - -// 0x0098E0B4 -static WindowEventList window_ride_operating_events([](auto& events) { - events.mouse_up = &WindowRideOperatingMouseup; - events.resize = &WindowRideOperatingResize; - events.mouse_down = &WindowRideOperatingMousedown; - events.dropdown = &WindowRideOperatingDropdown; - events.update = &WindowRideOperatingUpdate; - events.text_input = &WindowRideOperatingTextinput; - events.invalidate = &WindowRideOperatingInvalidate; - events.paint = &WindowRideOperatingPaint; -}); - -// 0x0098E124 -static WindowEventList window_ride_maintenance_events([](auto& events) { - events.mouse_up = &WindowRideMaintenanceMouseup; - events.resize = &WindowRideMaintenanceResize; - events.mouse_down = &WindowRideMaintenanceMousedown; - events.dropdown = &WindowRideMaintenanceDropdown; - events.update = &WindowRideMaintenanceUpdate; - events.invalidate = &WindowRideMaintenanceInvalidate; - events.paint = &WindowRideMaintenancePaint; -}); - -// 0x0098E044 -static WindowEventList window_ride_colour_events([](auto& events) { - events.close = &WindowRideColourClose; - events.mouse_up = &WindowRideColourMouseup; - events.resize = &WindowRideColourResize; - events.mouse_down = &WindowRideColourMousedown; - events.dropdown = &WindowRideColourDropdown; - events.update = &WindowRideColourUpdate; - events.tool_down = &WindowRideColourTooldown; - events.tool_drag = &WindowRideColourTooldrag; - events.invalidate = &WindowRideColourInvalidate; - events.paint = &WindowRideColourPaint; - events.scroll_paint = &WindowRideColourScrollpaint; -}); - -// 0x0098E194 -static WindowEventList window_ride_music_events([](auto& events) { - events.mouse_up = &WindowRideMusicMouseup; - events.resize = &WindowRideMusicResize; - events.mouse_down = &WindowRideMusicMousedown; - events.dropdown = &WindowRideMusicDropdown; - events.update = &WindowRideMusicUpdate; - events.invalidate = &WindowRideMusicInvalidate; - events.paint = &WindowRideMusicPaint; -}); - -// 0x0098DE14 -static WindowEventList window_ride_measurements_events([](auto& events) { - events.close = &WindowRideMeasurementsClose; - events.mouse_up = &WindowRideMeasurementsMouseup; - events.resize = &WindowRideMeasurementsResize; - events.mouse_down = &WindowRideMeasurementsMousedown; - events.dropdown = &WindowRideMeasurementsDropdown; - events.update = &WindowRideMeasurementsUpdate; - events.tool_down = &WindowRideMeasurementsTooldown; - events.tool_drag = &WindowRideMeasurementsTooldrag; - events.tool_abort = &WindowRideMeasurementsToolabort; - events.invalidate = &WindowRideMeasurementsInvalidate; - events.paint = &WindowRideMeasurementsPaint; -}); - -// 0x0098DF64 -static WindowEventList window_ride_graphs_events([](auto& events) { - events.mouse_up = &WindowRideGraphsMouseup; - events.resize = &WindowRideGraphsResize; - events.mouse_down = &WindowRideGraphsMousedown; - events.update = &WindowRideGraphsUpdate; - events.get_scroll_size = &WindowRideGraphsScrollgetheight; - events.scroll_select = &WindowRideGraphs15; - events.tooltip = &WindowRideGraphsTooltip; - events.invalidate = &WindowRideGraphsInvalidate; - events.paint = &WindowRideGraphsPaint; - events.scroll_paint = &WindowRideGraphsScrollpaint; -}); - -// 0x0098DEF4 -static WindowEventList window_ride_income_events([](auto& events) { - events.mouse_up = &WindowRideIncomeMouseup; - events.resize = &WindowRideIncomeResize; - events.mouse_down = &WindowRideIncomeMousedown; - events.update = &WindowRideIncomeUpdate; - events.text_input = &WindowRideIncomeTextinput; - events.invalidate = &WindowRideIncomeInvalidate; - events.paint = &WindowRideIncomePaint; -}); - -// 0x0098DE84 -static WindowEventList window_ride_customer_events([](auto& events) { - events.mouse_up = &WindowRideCustomerMouseup; - events.resize = &WindowRideCustomerResize; - events.update = &WindowRideCustomerUpdate; - events.invalidate = &WindowRideCustomerInvalidate; - events.paint = &WindowRideCustomerPaint; -}); - -// clang-format off -static WindowEventList *window_ride_page_events[] = { - &window_ride_main_events, - &window_ride_vehicle_events, - &window_ride_operating_events, - &window_ride_maintenance_events, - &window_ride_colour_events, - &window_ride_music_events, - &window_ride_measurements_events, - &window_ride_graphs_events, - &window_ride_income_events, - &window_ride_customer_events, -}; -// clang-format on - -#pragma endregion +static void CancelScenerySelection(); static bool _collectTrackDesignScenery = false; static int32_t _lastSceneryX = 0; @@ -687,9 +444,9 @@ struct RideOverallView ZoomLevel zoom; }; -static std::vector ride_overall_views = {}; +static std::vector _rideOverallViewsCache = {}; -static constexpr const int32_t window_ride_tab_animation_divisor[] = { +static constexpr std::array PageTabAnimationDivisor = { 0, // WINDOW_RIDE_PAGE_MAIN 0, // WINDOW_RIDE_PAGE_VEHICLE 2, // WINDOW_RIDE_PAGE_OPERATING @@ -701,9 +458,9 @@ static constexpr const int32_t window_ride_tab_animation_divisor[] = { 2, // WINDOW_RIDE_PAGE_INCOME 0, // WINDOW_RIDE_PAGE_CUSTOMER }; -static_assert(std::size(window_ride_tab_animation_divisor) == WINDOW_RIDE_PAGE_COUNT); +static_assert(std::size(PageTabAnimationDivisor) == WINDOW_RIDE_PAGE_COUNT); -static constexpr const int32_t window_ride_tab_animation_frames[] = { +static constexpr std::array PageTabAnimationNumFrames = { 0, // WINDOW_RIDE_PAGE_MAIN 0, // WINDOW_RIDE_PAGE_VEHICLE 4, // WINDOW_RIDE_PAGE_OPERATING @@ -715,32 +472,34 @@ static constexpr const int32_t window_ride_tab_animation_frames[] = { 8, // WINDOW_RIDE_PAGE_INCOME 0, // WINDOW_RIDE_PAGE_CUSTOMER }; -static_assert(std::size(window_ride_tab_animation_frames) == WINDOW_RIDE_PAGE_COUNT); +static_assert(std::size(PageTabAnimationNumFrames) == WINDOW_RIDE_PAGE_COUNT); // clang-format off -static constexpr const StringId RatingNames[] = { - STR_RATING_LOW, - STR_RATING_MEDIUM, - STR_RATING_HIGH, - STR_RATING_VERY_HIGH, - STR_RATING_EXTREME, - STR_RATING_ULTRA_EXTREME, +static constexpr std::array RatingNames = { + static_cast(STR_RATING_LOW), + static_cast(STR_RATING_MEDIUM), + static_cast(STR_RATING_HIGH), + static_cast(STR_RATING_VERY_HIGH), + static_cast(STR_RATING_EXTREME), + static_cast(STR_RATING_ULTRA_EXTREME), }; +static_assert(std::size(RatingNames) == 6); // clang-format on -static constexpr const StringId RideBreakdownReasonNames[] = { - STR_RIDE_BREAKDOWN_SAFETY_CUT_OUT, // BREAKDOWN_SAFETY_CUT_OUT - STR_RIDE_BREAKDOWN_RESTRAINTS_STUCK_CLOSED, // BREAKDOWN_RESTRAINTS_STUCK_CLOSED - STR_RIDE_BREAKDOWN_RESTRAINTS_STUCK_OPEN, // BREAKDOWN_RESTRAINTS_STUCK_OPEN - STR_RIDE_BREAKDOWN_DOORS_STUCK_CLOSED, // BREAKDOWN_DOORS_STUCK_CLOSED - STR_RIDE_BREAKDOWN_DOORS_STUCK_OPEN, // BREAKDOWN_DOORS_STUCK_OPEN - STR_RIDE_BREAKDOWN_VEHICLE_MALFUNCTION, // BREAKDOWN_VEHICLE_MALFUNCTION - STR_RIDE_BREAKDOWN_BRAKES_FAILURE, // BREAKDOWN_BRAKES_FAILURE - STR_RIDE_BREAKDOWN_CONTROL_FAILURE, // BREAKDOWN_CONTROL_FAILURE +static constexpr std::array RideBreakdownReasonNames = { + static_cast(STR_RIDE_BREAKDOWN_SAFETY_CUT_OUT), // BREAKDOWN_SAFETY_CUT_OUT + static_cast(STR_RIDE_BREAKDOWN_RESTRAINTS_STUCK_CLOSED), // BREAKDOWN_RESTRAINTS_STUCK_CLOSED + static_cast(STR_RIDE_BREAKDOWN_RESTRAINTS_STUCK_OPEN), // BREAKDOWN_RESTRAINTS_STUCK_OPEN + static_cast(STR_RIDE_BREAKDOWN_DOORS_STUCK_CLOSED), // BREAKDOWN_DOORS_STUCK_CLOSED + static_cast(STR_RIDE_BREAKDOWN_DOORS_STUCK_OPEN), // BREAKDOWN_DOORS_STUCK_OPEN + static_cast(STR_RIDE_BREAKDOWN_VEHICLE_MALFUNCTION), // BREAKDOWN_VEHICLE_MALFUNCTION + static_cast(STR_RIDE_BREAKDOWN_BRAKES_FAILURE), // BREAKDOWN_BRAKES_FAILURE + static_cast(STR_RIDE_BREAKDOWN_CONTROL_FAILURE), // BREAKDOWN_CONTROL_FAILURE }; static_assert(std::size(RideBreakdownReasonNames) == BREAKDOWN_COUNT); -const StringId ColourSchemeNames[] = { +// Used in other places as well +const StringId ColourSchemeNames[4] = { STR_MAIN_COLOUR_SCHEME, // RIDE_COLOUR_SCHEME_MAIN STR_ALTERNATIVE_COLOUR_SCHEME_1, // RIDE_COLOUR_SCHEME_ADDITIONAL_1 STR_ALTERNATIVE_COLOUR_SCHEME_2, // RIDE_COLOUR_SCHEME_ADDITIONAL_2 @@ -748,65 +507,67 @@ const StringId ColourSchemeNames[] = { }; static_assert(std::size(ColourSchemeNames) == RIDE_COLOUR_SCHEME_COUNT); -static constexpr const StringId VehicleLoadNames[] = { - STR_QUARTER_LOAD, // WAIT_FOR_LOAD_QUARTER - STR_HALF_LOAD, // WAIT_FOR_LOAD_HALF - STR_THREE_QUARTER_LOAD, // WAIT_FOR_LOAD_THREE_QUARTER - STR_FULL_LOAD, // WAIT_FOR_LOAD_FULL - STR_ANY_LOAD, // WAIT_FOR_LOAD_ANY +static constexpr std::array VehicleLoadNames = { + static_cast(STR_QUARTER_LOAD), // WAIT_FOR_LOAD_QUARTER + static_cast(STR_HALF_LOAD), // WAIT_FOR_LOAD_HALF + static_cast(STR_THREE_QUARTER_LOAD), // WAIT_FOR_LOAD_THREE_QUARTER + static_cast(STR_FULL_LOAD), // WAIT_FOR_LOAD_FULL + static_cast(STR_ANY_LOAD), // WAIT_FOR_LOAD_ANY }; static_assert(std::size(VehicleLoadNames) == WAIT_FOR_LOAD_COUNT); -static constexpr const StringId VehicleColourSchemeNames[] = { - STR_ALL_VEHICLES_IN_SAME_COLOURS, // RIDE_COLOUR_SCHEME_MODE_ALL_SAME, - STR_DIFFERENT_COLOURS_PER, // RIDE_COLOUR_SCHEME_MODE_DIFFERENT_PER_TRAIN, - STR_DIFFERENT_COLOURS_PER_VEHICLE, // RIDE_COLOUR_SCHEME_MODE_DIFFERENT_PER_CAR, +static constexpr std::array VehicleColourSchemeNames = { + static_cast(STR_ALL_VEHICLES_IN_SAME_COLOURS), // RIDE_COLOUR_SCHEME_MODE_ALL_SAME, + static_cast(STR_DIFFERENT_COLOURS_PER), // RIDE_COLOUR_SCHEME_MODE_DIFFERENT_PER_TRAIN, + static_cast(STR_DIFFERENT_COLOURS_PER_VEHICLE), // RIDE_COLOUR_SCHEME_MODE_DIFFERENT_PER_CAR, }; static_assert(std::size(VehicleColourSchemeNames) == RIDE_COLOUR_SCHEME_MODE_COUNT); -static constexpr const StringId VehicleStatusNames[] = { - STR_MOVING_TO_END_OF, // Vehicle::Status::MovingToEndOfStation - STR_WAITING_FOR_PASSENGERS_AT, // Vehicle::Status::WaitingForPassengers - STR_WAITING_TO_DEPART, // Vehicle::Status::WaitingToDepart - STR_DEPARTING, // Vehicle::Status::Departing - STR_TRAVELLING_AT_0, // Vehicle::Status::Travelling - STR_ARRIVING_AT, // Vehicle::Status::Arriving - STR_UNLOADING_PASSENGERS_AT, // Vehicle::Status::UnloadingPassengers - STR_TRAVELLING_AT_1, // Vehicle::Status::TravellingBoat - STR_CRASHING, // Vehicle::Status::Crashing - STR_CRASHED_0, // Vehicle::Status::Crashed - STR_TRAVELLING_AT_2, // Vehicle::Status::TravellingDodgems - STR_SWINGING, // Vehicle::Status::Swinging - STR_ROTATING_0, // Vehicle::Status::Rotating - STR_ROTATING_1, // Vehicle::Status::FerrisWheelRotating - STR_OPERATING_0, // Vehicle::Status::SimulatorOperating - STR_SHOWING_FILM, // Vehicle::Status::ShowingFilm - STR_ROTATING_2, // Vehicle::Status::SpaceRingsOperating - STR_OPERATING_1, // Vehicle::Status::TopSpinOperating - STR_OPERATING_2, // Vehicle::Status::HauntedHouseOperating - STR_DOING_CIRCUS_SHOW, // Vehicle::Status::DoingCircusShow - STR_OPERATING_3, // Vehicle::Status::CrookedHouseOperating - STR_WAITING_FOR_CABLE_LIFT, // Vehicle::Status::WaitingForCableLift - STR_TRAVELLING_AT_3, // Vehicle::Status::TravellingCableLift - STR_STOPPING_0, // Vehicle::Status::Stopping - STR_WAITING_FOR_PASSENGERS, // Vehicle::Status::WaitingForPassengers17 - STR_WAITING_TO_START, // Vehicle::Status::WaitingToStart - STR_STARTING, // Vehicle::Status::Starting - STR_OPERATING, // Vehicle::Status::Operating1A - STR_STOPPING_1, // Vehicle::Status::Stopping1B - STR_UNLOADING_PASSENGERS, // Vehicle::Status::UnloadingPassengers1C - STR_STOPPED_BY_BLOCK_BRAKES, // Vehicle::Status::StoppedByBlockBrakes +static constexpr std::array VehicleStatusNames = { + static_cast(STR_MOVING_TO_END_OF), // Vehicle::Status::MovingToEndOfStation + static_cast(STR_WAITING_FOR_PASSENGERS_AT), // Vehicle::Status::WaitingForPassengers + static_cast(STR_WAITING_TO_DEPART), // Vehicle::Status::WaitingToDepart + static_cast(STR_DEPARTING), // Vehicle::Status::Departing + static_cast(STR_TRAVELLING_AT_0), // Vehicle::Status::Travelling + static_cast(STR_ARRIVING_AT), // Vehicle::Status::Arriving + static_cast(STR_UNLOADING_PASSENGERS_AT), // Vehicle::Status::UnloadingPassengers + static_cast(STR_TRAVELLING_AT_1), // Vehicle::Status::TravellingBoat + static_cast(STR_CRASHING), // Vehicle::Status::Crashing + static_cast(STR_CRASHED_0), // Vehicle::Status::Crashed + static_cast(STR_TRAVELLING_AT_2), // Vehicle::Status::TravellingDodgems + static_cast(STR_SWINGING), // Vehicle::Status::Swinging + static_cast(STR_ROTATING_0), // Vehicle::Status::Rotating + static_cast(STR_ROTATING_1), // Vehicle::Status::FerrisWheelRotating + static_cast(STR_OPERATING_0), // Vehicle::Status::SimulatorOperating + static_cast(STR_SHOWING_FILM), // Vehicle::Status::ShowingFilm + static_cast(STR_ROTATING_2), // Vehicle::Status::SpaceRingsOperating + static_cast(STR_OPERATING_1), // Vehicle::Status::TopSpinOperating + static_cast(STR_OPERATING_2), // Vehicle::Status::HauntedHouseOperating + static_cast(STR_DOING_CIRCUS_SHOW), // Vehicle::Status::DoingCircusShow + static_cast(STR_OPERATING_3), // Vehicle::Status::CrookedHouseOperating + static_cast(STR_WAITING_FOR_CABLE_LIFT), // Vehicle::Status::WaitingForCableLift + static_cast(STR_TRAVELLING_AT_3), // Vehicle::Status::TravellingCableLift + static_cast(STR_STOPPING_0), // Vehicle::Status::Stopping + static_cast(STR_WAITING_FOR_PASSENGERS), // Vehicle::Status::WaitingForPassengers17 + static_cast(STR_WAITING_TO_START), // Vehicle::Status::WaitingToStart + static_cast(STR_STARTING), // Vehicle::Status::Starting + static_cast(STR_OPERATING), // Vehicle::Status::Operating1A + static_cast(STR_STOPPING_1), // Vehicle::Status::Stopping1B + static_cast(STR_UNLOADING_PASSENGERS), // Vehicle::Status::UnloadingPassengers1C + static_cast(STR_STOPPED_BY_BLOCK_BRAKES), // Vehicle::Status::StoppedByBlockBrakes }; +static_assert(std::size(VehicleStatusNames) == 31); -static constexpr const StringId SingleSessionVehicleStatusNames[] = { - STR_STOPPING_0, // Vehicle::Status::MovingToEndOfStation - STR_WAITING_FOR_PASSENGERS, // Vehicle::Status::WaitingForPassengers - STR_WAITING_TO_START, // Vehicle::Status::WaitingToDepart - STR_STARTING, // Vehicle::Status::Departing - STR_OPERATING, // Vehicle::Status::Travelling - STR_STOPPING_1, // Vehicle::Status::Arriving - STR_UNLOADING_PASSENGERS, // Vehicle::Status::UnloadingPassengers +static constexpr std::array SingleSessionVehicleStatusNames = { + static_cast(STR_STOPPING_0), // Vehicle::Status::MovingToEndOfStation + static_cast(STR_WAITING_FOR_PASSENGERS), // Vehicle::Status::WaitingForPassengers + static_cast(STR_WAITING_TO_START), // Vehicle::Status::WaitingToDepart + static_cast(STR_STARTING), // Vehicle::Status::Departing + static_cast(STR_OPERATING), // Vehicle::Status::Travelling + static_cast(STR_STOPPING_1), // Vehicle::Status::Arriving + static_cast(STR_UNLOADING_PASSENGERS), // Vehicle::Status::UnloadingPassengers }; +static_assert(std::size(SingleSessionVehicleStatusNames) == 7); struct WindowRideMazeDesignOption { @@ -814,12 +575,13 @@ struct WindowRideMazeDesignOption uint32_t sprite; }; -static constexpr const WindowRideMazeDesignOption MazeOptions[] = { - { STR_RIDE_DESIGN_MAZE_BRICK_WALLS, SPR_RIDE_DESIGN_PREVIEW_MAZE_BRICK_WALLS }, - { STR_RIDE_DESIGN_MAZE_HEDGES, SPR_RIDE_DESIGN_PREVIEW_MAZE_HEDGES }, - { STR_RIDE_DESIGN_MAZE_ICE_BLOCKS, SPR_RIDE_DESIGN_PREVIEW_MAZE_ICE_BLOCKS }, - { STR_RIDE_DESIGN_MAZE_WOODEN_FENCES, SPR_RIDE_DESIGN_PREVIEW_MAZE_WOODEN_FENCES }, +static constexpr std::array MazeOptions = { + WindowRideMazeDesignOption{ STR_RIDE_DESIGN_MAZE_BRICK_WALLS, SPR_RIDE_DESIGN_PREVIEW_MAZE_BRICK_WALLS }, + WindowRideMazeDesignOption{ STR_RIDE_DESIGN_MAZE_HEDGES, SPR_RIDE_DESIGN_PREVIEW_MAZE_HEDGES }, + WindowRideMazeDesignOption{ STR_RIDE_DESIGN_MAZE_ICE_BLOCKS, SPR_RIDE_DESIGN_PREVIEW_MAZE_ICE_BLOCKS }, + WindowRideMazeDesignOption{ STR_RIDE_DESIGN_MAZE_WOODEN_FENCES, SPR_RIDE_DESIGN_PREVIEW_MAZE_WOODEN_FENCES }, }; +static_assert(std::size(MazeOptions) == 4); struct GraphsYAxis { @@ -829,13 +591,13 @@ struct GraphsYAxis StringId label; }; -/** rct2: 0x0098DD98 */ -static constexpr const GraphsYAxis window_graphs_y_axi[] = { - { 11, 0, 10, STR_RIDE_STATS_VELOCITY_FORMAT }, // GRAPH_VELOCITY - { 10, 0, 15, STR_RIDE_STATS_ALTITUDE_FORMAT }, // GRAPH_ALTITUDE - { 13, -3, 1, STR_RIDE_STATS_G_FORCE_FORMAT }, // GRAPH_VERTICAL - { 13, -4, 1, STR_RIDE_STATS_G_FORCE_FORMAT }, // GRAPH_LATERAL +static constexpr const std::array GraphsYAxisDetails = { + GraphsYAxis{ 11, 0, 10, STR_RIDE_STATS_VELOCITY_FORMAT }, // GRAPH_VELOCITY + GraphsYAxis{ 10, 0, 15, STR_RIDE_STATS_ALTITUDE_FORMAT }, // GRAPH_ALTITUDE + GraphsYAxis{ 13, -3, 1, STR_RIDE_STATS_G_FORCE_FORMAT }, // GRAPH_VERTICAL + GraphsYAxis{ 13, -4, 1, STR_RIDE_STATS_G_FORCE_FORMAT }, // GRAPH_LATERAL }; +static_assert(std::size(GraphsYAxisDetails) == 4); static constexpr auto RIDE_G_FORCES_RED_NEG_VERTICAL = -FIXED_2DP(2, 50); static constexpr auto RIDE_G_FORCES_RED_LATERAL = FIXED_2DP(2, 80); @@ -843,110 +605,2108 @@ static constexpr auto RIDE_G_FORCES_RED_LATERAL = FIXED_2DP(2, 80); // Used for sorting the ride type cheat dropdown. struct RideTypeLabel { - ride_type_t ride_type_id; - StringId label_id; + ride_type_t RideTypeId; + StringId LabelId; const char* label_string; }; -static int32_t RideDropdownDataLanguage = LANGUAGE_UNDEFINED; -static std::vector RideDropdownData; - // Used for sorting the vehicle type dropdown. struct VehicleTypeLabel { - ObjectEntryIndex subtype_id; - StringId label_id; + ObjectEntryIndex SubTypeId; + StringId LabelId; const char* label_string; }; -static int32_t VehicleDropdownDataLanguage = LANGUAGE_UNDEFINED; -static const RideObjectEntry* VehicleDropdownRideType = nullptr; -static bool VehicleDropdownExpanded = false; -static std::vector VehicleDropdownData; - -static void WindowRideDrawTabImage(DrawPixelInfo& dpi, WindowBase* w, int32_t page, int32_t spriteIndex) +class RideWindow final : public Window { - WidgetIndex widgetIndex = WIDX_TAB_1 + page; + int16_t _viewIndex; + std::vector _rideDropdownData; + int32_t _rideDropdownDataLanguage = LANGUAGE_UNDEFINED; + int32_t _vehicleDropdownDataLanguage = LANGUAGE_UNDEFINED; + const RideObjectEntry* _vehicleDropdownRideType = nullptr; + bool _vehicleDropdownExpanded = false; + std::vector _vehicleDropdownData; + int16_t _vehicleIndex = 0; + uint16_t _rideColour = 0; + bool _autoScrollGraph = true; - if (!WidgetIsDisabled(*w, widgetIndex)) +public: + RideWindow(const Ride& ride) { - if (w->page == page) + rideId = ride.id; + widgets = PageWidgets[WINDOW_RIDE_PAGE_MAIN]; + hold_down_widgets = PageHoldDownWidgets[WINDOW_RIDE_PAGE_MAIN]; + + page = WINDOW_RIDE_PAGE_MAIN; + frame_no = 0; + list_information_type = 0; + picked_peep_frame = 0; + DisableTabs(); + min_width = 316; + min_height = 180; + max_width = 500; + max_height = 450; + + UpdateOverallView(ride); + + PopulateVehicleTypeDropdown(ride, true); + } + + virtual void OnClose() override + { + switch (page) { - int32_t frame = w->frame_no / window_ride_tab_animation_divisor[w->page]; - spriteIndex += (frame % window_ride_tab_animation_frames[w->page]); + case WINDOW_RIDE_PAGE_COLOUR: + ColourClose(); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsClose(); + break; + } + } + virtual void OnResize() override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainResize(); + break; + case WINDOW_RIDE_PAGE_VEHICLE: + VehicleResize(); + break; + case WINDOW_RIDE_PAGE_OPERATING: + OperatingResize(); + break; + case WINDOW_RIDE_PAGE_MAINTENANCE: + MaintenanceResize(); + break; + case WINDOW_RIDE_PAGE_COLOUR: + ColourResize(); + break; + case WINDOW_RIDE_PAGE_MUSIC: + MusicResize(); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsResize(); + break; + case WINDOW_RIDE_PAGE_GRAPHS: + GraphsResize(); + break; + case WINDOW_RIDE_PAGE_INCOME: + IncomeResize(); + break; + case WINDOW_RIDE_PAGE_CUSTOMER: + CustomerResize(); + break; + } + } + virtual void OnUpdate() override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainUpdate(); + break; + case WINDOW_RIDE_PAGE_VEHICLE: + VehicleUpdate(); + break; + case WINDOW_RIDE_PAGE_OPERATING: + OperatingUpdate(); + break; + case WINDOW_RIDE_PAGE_MAINTENANCE: + MaintenanceUpdate(); + break; + case WINDOW_RIDE_PAGE_COLOUR: + ColourUpdate(); + break; + case WINDOW_RIDE_PAGE_MUSIC: + MusicUpdate(); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsUpdate(); + break; + case WINDOW_RIDE_PAGE_GRAPHS: + GraphsUpdate(); + break; + case WINDOW_RIDE_PAGE_INCOME: + IncomeUpdate(); + break; + case WINDOW_RIDE_PAGE_CUSTOMER: + CustomerUpdate(); + break; + } + } + + virtual void OnPrepareDraw() override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_VEHICLE: + VehicleOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_OPERATING: + OperatingOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_MAINTENANCE: + MaintenanceOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_COLOUR: + ColourOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_MUSIC: + MusicOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_GRAPHS: + GraphsOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_INCOME: + IncomeOnPrepareDraw(); + break; + case WINDOW_RIDE_PAGE_CUSTOMER: + CustomerOnPrepareDraw(); + break; + } + } + virtual void OnDraw(DrawPixelInfo& dpi) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_VEHICLE: + VehicleOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_OPERATING: + OperatingOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_MAINTENANCE: + MaintenanceOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_COLOUR: + ColourOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_MUSIC: + MusicOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_GRAPHS: + GraphsOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_INCOME: + IncomeOnDraw(dpi); + break; + case WINDOW_RIDE_PAGE_CUSTOMER: + CustomerOnDraw(dpi); + break; + } + } + + virtual OpenRCT2String OnTooltip(WidgetIndex widgetIndex, StringId fallback) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_VEHICLE: + return VehicleTooltip(widgetIndex, fallback); + case WINDOW_RIDE_PAGE_GRAPHS: + return GraphsTooltip(widgetIndex, fallback); + } + return { fallback, {} }; + } + virtual void OnMouseDown(WidgetIndex widgetIndex) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainOnMouseDown(widgetIndex); + break; + case WINDOW_RIDE_PAGE_VEHICLE: + VehicleOnMouseDown(widgetIndex); + break; + case WINDOW_RIDE_PAGE_OPERATING: + OperatingOnMouseDown(widgetIndex); + break; + case WINDOW_RIDE_PAGE_MAINTENANCE: + MaintenanceOnMouseDown(widgetIndex); + break; + case WINDOW_RIDE_PAGE_COLOUR: + ColourOnMouseDown(widgetIndex); + break; + case WINDOW_RIDE_PAGE_MUSIC: + MusicOnMouseDown(widgetIndex); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsOnMouseDown(widgetIndex); + break; + case WINDOW_RIDE_PAGE_GRAPHS: + GraphsOnMouseDown(widgetIndex); + break; + case WINDOW_RIDE_PAGE_INCOME: + IncomeOnMouseDown(widgetIndex); + break; + } + } + virtual void OnMouseUp(WidgetIndex widgetIndex) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_VEHICLE: + VehicleOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_OPERATING: + OperatingOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_MAINTENANCE: + MaintenanceOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_COLOUR: + ColourOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_MUSIC: + MusicOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_GRAPHS: + GraphsOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_INCOME: + IncomeOnMouseUp(widgetIndex); + break; + case WINDOW_RIDE_PAGE_CUSTOMER: + CustomerOnMouseUp(widgetIndex); + break; + } + } + virtual void OnDropdown(WidgetIndex widgetIndex, int32_t selectedIndex) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainOnDropdown(widgetIndex, selectedIndex); + break; + case WINDOW_RIDE_PAGE_VEHICLE: + VehicleOnDropdown(widgetIndex, selectedIndex); + break; + case WINDOW_RIDE_PAGE_OPERATING: + OperatingOnDropdown(widgetIndex, selectedIndex); + break; + case WINDOW_RIDE_PAGE_MAINTENANCE: + MaintenanceOnDropdown(widgetIndex, selectedIndex); + break; + case WINDOW_RIDE_PAGE_COLOUR: + ColourOnDropdown(widgetIndex, selectedIndex); + break; + case WINDOW_RIDE_PAGE_MUSIC: + MusicOnDropdown(widgetIndex, selectedIndex); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsOnDropdown(widgetIndex, selectedIndex); + break; + } + } + virtual void OnTextInput(WidgetIndex widgetIndex, std::string_view text) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainOnTextInput(widgetIndex, text); + break; + case WINDOW_RIDE_PAGE_OPERATING: + OperatingOnTextInput(widgetIndex, text); + break; + case WINDOW_RIDE_PAGE_INCOME: + IncomeOnTextInput(widgetIndex, text); + break; + } + } + virtual ScreenSize OnScrollGetSize(int32_t scrollIndex) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_GRAPHS: + return GraphsScrollGetSize(scrollIndex); + } + return {}; + } + virtual void OnScrollSelect(int32_t scrollIndex, int32_t scrollAreaType) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_GRAPHS: + GraphsOnScrollSelect(scrollIndex, scrollAreaType); + break; + } + } + virtual void OnScrollDraw(int32_t scrollIndex, DrawPixelInfo& dpi) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_VEHICLE: + VehicleOnScrollDraw(dpi, scrollIndex); + break; + case WINDOW_RIDE_PAGE_COLOUR: + ColourOnScrollDraw(dpi, scrollIndex); + break; + case WINDOW_RIDE_PAGE_GRAPHS: + GraphsOnScrollDraw(dpi, scrollIndex); + break; + } + } + virtual void OnToolDown(WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_COLOUR: + ColourOnToolDown(widgetIndex, screenCoords); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsOnToolDown(widgetIndex, screenCoords); + break; + } + } + virtual void OnToolDrag(WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_COLOUR: + ColourOnToolDrag(widgetIndex, screenCoords); + break; + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsOnToolDrag(widgetIndex, screenCoords); + break; + } + } + virtual void OnToolAbort(WidgetIndex widgetIndex) override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MEASUREMENTS: + MeasurementsOnToolAbort(widgetIndex); + break; + } + } + virtual void OnViewportRotate() override + { + switch (page) + { + case WINDOW_RIDE_PAGE_MAIN: + MainViewportRotate(); + break; + } + } + + void SetPage(int32_t newPage) + { + if (InputTestFlag(INPUT_FLAG_TOOL_ACTIVE)) + if (classification == gCurrentToolWidget.window_classification && number == gCurrentToolWidget.window_number) + ToolCancel(); + + if (newPage == WINDOW_RIDE_PAGE_VEHICLE) + { + auto constructionWindow = WindowFindByClass(WindowClass::RideConstruction); + if (constructionWindow != nullptr && constructionWindow->number == number) + { + WindowCloseByClass(WindowClass::RideConstruction); + // Closing the construction window sets the tab to the first page, which we don't want here, + // as user just clicked the Vehicle page + SetPage(WINDOW_RIDE_PAGE_VEHICLE); + } } - const auto& widget = w->widgets[widgetIndex]; - GfxDrawSprite(dpi, ImageId(spriteIndex), w->windowPos + ScreenCoordsXY{ widget.left, widget.top }); - } -} + // Set listen only to viewport + bool listen = false; + if (newPage == WINDOW_RIDE_PAGE_MAIN && page == WINDOW_RIDE_PAGE_MAIN && viewport != nullptr + && !(viewport->flags & VIEWPORT_FLAG_SOUND_ON)) + listen = true; -/** - * - * rct2: 0x006B2E88 - */ -static void WindowRideDrawTabMain(DrawPixelInfo& dpi, WindowBase* w) -{ - WidgetIndex widgetIndex = WIDX_TAB_1 + static_cast(WINDOW_RIDE_PAGE_MAIN); - if (!WidgetIsDisabled(*w, widgetIndex)) + page = newPage; + frame_no = 0; + picked_peep_frame = 0; + + // There doesn't seem to be any need for this call, and it can sometimes modify the reported number of cars per train, + // so I've removed it if (newPage == WINDOW_RIDE_PAGE_VEHICLE) { ride_update_max_vehicles(ride); + //} + + RemoveViewport(); + + hold_down_widgets = PageHoldDownWidgets[page]; + pressed_widgets = 0; + widgets = PageWidgets[page]; + DisableTabs(); + Invalidate(); + + OnResize(); + OnPrepareDraw(); + InitScrollWidgets(); + Invalidate(); + + if (listen && viewport != nullptr) + viewport->flags |= VIEWPORT_FLAG_SOUND_ON; + } + + void SetViewIndex(int16_t newIndex) { - auto ride = GetRide(w->rideId); - if (ride != nullptr) + _viewIndex = newIndex; + OnViewportRotate(); + } + int16_t GetViewIndex() const + { + return _viewIndex; + } + + void ResetVehicleIndex() + { + _vehicleIndex = 0; + } + +private: + void DrawTabImage(DrawPixelInfo& dpi, int32_t tab, int32_t spriteIndex) + { + WidgetIndex widgetIndex = WIDX_TAB_1 + tab; + + if (!WidgetIsDisabled(*this, widgetIndex)) { - int32_t spriteIndex = 0; - switch (ride->GetClassification()) + if (page == tab) { - case RideClassification::Ride: - spriteIndex = SPR_TAB_RIDE_0; - if (w->page == WINDOW_RIDE_PAGE_MAIN) - spriteIndex += (w->frame_no / 4) % 16; - break; - case RideClassification::ShopOrStall: - spriteIndex = SPR_TAB_SHOPS_AND_STALLS_0; - if (w->page == WINDOW_RIDE_PAGE_MAIN) - spriteIndex += (w->frame_no / 4) % 16; - break; - case RideClassification::KioskOrFacility: - spriteIndex = SPR_TAB_KIOSKS_AND_FACILITIES_0; - if (w->page == WINDOW_RIDE_PAGE_MAIN) - spriteIndex += (w->frame_no / 4) % 8; - break; + int32_t frame = frame_no / PageTabAnimationDivisor[page]; + spriteIndex += (frame % PageTabAnimationNumFrames[page]); } - const auto& widget = w->widgets[widgetIndex]; - GfxDrawSprite(dpi, ImageId(spriteIndex), w->windowPos + ScreenCoordsXY{ widget.left, widget.top }); + const auto& widget = widgets[widgetIndex]; + GfxDrawSprite(dpi, ImageId(spriteIndex), windowPos + ScreenCoordsXY{ widget.left, widget.top }); } } -} -/** - * - * rct2: 0x006B2B68 - */ -static void WindowRideDrawTabVehicle(DrawPixelInfo& dpi, WindowBase* w) -{ - WidgetIndex widgetIndex = WIDX_TAB_1 + static_cast(WINDOW_RIDE_PAGE_VEHICLE); - const auto& widget = w->widgets[widgetIndex]; - - if (!WidgetIsDisabled(*w, widgetIndex)) + void DrawTabMain(DrawPixelInfo& dpi) { - auto screenCoords = ScreenCoordsXY{ widget.left + 1, widget.top + 1 }; - int32_t width = widget.right - screenCoords.x; - int32_t height = widget.bottom - 3 - screenCoords.y; - if (w->page == WINDOW_RIDE_PAGE_VEHICLE) - height += 4; - - screenCoords += w->windowPos; - - DrawPixelInfo clipDPI; - if (!ClipDrawPixelInfo(clipDPI, dpi, screenCoords, width, height)) + WidgetIndex widgetIndex = WIDX_TAB_1 + static_cast(WINDOW_RIDE_PAGE_MAIN); + if (!WidgetIsDisabled(*this, widgetIndex)) { + auto ride = GetRide(rideId); + if (ride != nullptr) + { + int32_t spriteIndex = 0; + switch (ride->GetClassification()) + { + case RideClassification::Ride: + spriteIndex = SPR_TAB_RIDE_0; + if (page == WINDOW_RIDE_PAGE_MAIN) + spriteIndex += (frame_no / 4) % 16; + break; + case RideClassification::ShopOrStall: + spriteIndex = SPR_TAB_SHOPS_AND_STALLS_0; + if (page == WINDOW_RIDE_PAGE_MAIN) + spriteIndex += (frame_no / 4) % 16; + break; + case RideClassification::KioskOrFacility: + spriteIndex = SPR_TAB_KIOSKS_AND_FACILITIES_0; + if (page == WINDOW_RIDE_PAGE_MAIN) + spriteIndex += (frame_no / 4) % 8; + break; + } + + const auto& widget = widgets[widgetIndex]; + GfxDrawSprite(dpi, ImageId(spriteIndex), windowPos + ScreenCoordsXY{ widget.left, widget.top }); + } + } + } + + void DrawTabVehicle(DrawPixelInfo& dpi) + { + WidgetIndex widgetIndex = WIDX_TAB_1 + static_cast(WINDOW_RIDE_PAGE_VEHICLE); + const auto& widget = widgets[widgetIndex]; + + if (!WidgetIsDisabled(*this, widgetIndex)) + { + auto screenCoords = ScreenCoordsXY{ widget.left + 1, widget.top + 1 }; + int32_t clipWidth = widget.right - screenCoords.x; + int32_t clipHeight = widget.bottom - 3 - screenCoords.y; + if (page == WINDOW_RIDE_PAGE_VEHICLE) + clipHeight += 4; + + screenCoords += windowPos; + + DrawPixelInfo clipDPI; + if (!ClipDrawPixelInfo(clipDPI, dpi, screenCoords, clipWidth, clipHeight)) + { + return; + } + + screenCoords = ScreenCoordsXY{ widget.width() / 2, widget.height() - 12 }; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return; + + if (rideEntry->flags & RIDE_ENTRY_FLAG_VEHICLE_TAB_SCALE_HALF) + { + clipDPI.zoom_level = ZoomLevel{ 1 }; + clipDPI.width *= 2; + clipDPI.height *= 2; + screenCoords.x *= 2; + screenCoords.y *= 2; + clipDPI.x *= 2; + clipDPI.y *= 2; + } + + // For any suspended rides, move image higher in the vehicle tab on the rides window + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SUSPENDED)) + { + screenCoords.y /= 4; + } + + const auto vehicle = RideEntryGetVehicleAtPosition(ride->subtype, ride->num_cars_per_train, rideEntry->TabCar); + const auto& carEntry = rideEntry->Cars[vehicle]; + + auto vehicleId = ((ride->colour_scheme_type & 3) == VEHICLE_COLOUR_SCHEME_PER_VEHICLE) ? rideEntry->TabCar : 0; + VehicleColour vehicleColour = RideGetVehicleColour(*ride, vehicleId); + + // imageIndex represents a precision of 64 + auto imageIndex = OpenRCT2::Entity::Yaw::YawFrom4(2) * 2; + if (page == WINDOW_RIDE_PAGE_VEHICLE) + imageIndex += frame_no; + imageIndex = carEntry.SpriteByYaw(imageIndex / 2, SpriteGroupType::SlopeFlat); + imageIndex &= carEntry.TabRotationMask; + imageIndex *= carEntry.base_num_frames; + imageIndex += carEntry.base_image_id; + auto imageId = ImageId(imageIndex, vehicleColour.Body, vehicleColour.Trim, vehicleColour.Tertiary); + GfxDrawSprite(clipDPI, imageId, screenCoords); + } + } + + void DrawTabCustomer(DrawPixelInfo& dpi) + { + WidgetIndex widgetIndex = WIDX_TAB_1 + static_cast(WINDOW_RIDE_PAGE_CUSTOMER); + + if (!WidgetIsDisabled(*this, widgetIndex)) + { + const auto& widget = widgets[widgetIndex]; + int32_t spriteIndex = 0; + if (page == WINDOW_RIDE_PAGE_CUSTOMER) + spriteIndex = picked_peep_frame & ~3; + + spriteIndex += GetPeepAnimation(PeepSpriteType::Normal).base_image + 1; + + GfxDrawSprite( + dpi, ImageId(spriteIndex, COLOUR_BRIGHT_RED, COLOUR_TEAL), + windowPos + ScreenCoordsXY{ widget.midX(), widget.bottom - 6 }); + } + } + + void DrawTabImages(DrawPixelInfo& dpi) + { + DrawTabVehicle(dpi); + DrawTabImage(dpi, WINDOW_RIDE_PAGE_OPERATING, SPR_TAB_GEARS_0); + DrawTabImage(dpi, WINDOW_RIDE_PAGE_MAINTENANCE, SPR_TAB_WRENCH_0); + DrawTabImage(dpi, WINDOW_RIDE_PAGE_INCOME, SPR_TAB_ADMISSION_0); + DrawTabMain(dpi); + DrawTabImage(dpi, WINDOW_RIDE_PAGE_MEASUREMENTS, SPR_TAB_TIMER_0); + DrawTabImage(dpi, WINDOW_RIDE_PAGE_COLOUR, SPR_TAB_PAINT_0); + DrawTabImage(dpi, WINDOW_RIDE_PAGE_GRAPHS, SPR_TAB_GRAPH_A_0); + DrawTabCustomer(dpi); + DrawTabImage(dpi, WINDOW_RIDE_PAGE_MUSIC, SPR_TAB_MUSIC_0); + } + + void DisableTabs() + { + uint32_t disabledTabs = 0; + auto ride = GetRide(rideId); + if (ride == nullptr) return; + + const auto& rtd = ride->GetRideTypeDescriptor(); + + if (!rtd.HasFlag(RIDE_TYPE_FLAG_HAS_DATA_LOGGING)) + disabledTabs |= (1uLL << WIDX_TAB_8); // 0x800 + + if (ride->type == RIDE_TYPE_MINI_GOLF) + disabledTabs |= (1uLL << WIDX_TAB_2 | 1uLL << WIDX_TAB_3 | 1uLL << WIDX_TAB_4); // 0xE0 + + if (rtd.HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) + disabledTabs |= (1uLL << WIDX_TAB_2); // 0x20 + + if (!rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN) && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL) + && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS) && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS) + && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT)) + { + disabledTabs |= (1uLL << WIDX_TAB_5); // 0x100 } - screenCoords = ScreenCoordsXY{ widget.width() / 2, widget.height() - 12 }; + if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY)) + disabledTabs |= (1uLL << WIDX_TAB_3 | 1uLL << WIDX_TAB_4 | 1uLL << WIDX_TAB_7); // 0x4C0 - auto ride = GetRide(w->rideId); + if (!rtd.HasFlag(RIDE_TYPE_FLAG_ALLOW_MUSIC)) + { + disabledTabs |= (1uLL << WIDX_TAB_6); // 0x200 + } + + if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_CASH_MACHINE) || rtd.HasFlag(RIDE_TYPE_FLAG_IS_FIRST_AID) + || (gParkFlags & PARK_FLAGS_NO_MONEY) != 0) + disabledTabs |= (1uLL << WIDX_TAB_9); // 0x1000 + + if ((gScreenFlags & SCREEN_FLAGS_TRACK_DESIGNER) != 0) + disabledTabs |= (1uLL << WIDX_TAB_4 | 1uLL << WIDX_TAB_6 | 1uLL << WIDX_TAB_9 | 1uLL << WIDX_TAB_10); // 0x3280 + + const auto* rideEntry = GetRideEntryByIndex(ride->subtype); + + if (rideEntry == nullptr) + { + disabledTabs |= 1uLL << WIDX_TAB_2 | 1uLL << WIDX_TAB_3 | 1uLL << WIDX_TAB_4 | 1uLL << WIDX_TAB_5 + | 1uLL << WIDX_TAB_6 | 1uLL << WIDX_TAB_7 | 1uLL << WIDX_TAB_8 | 1uLL << WIDX_TAB_9 | 1uLL << WIDX_TAB_10; + } + else if ((rideEntry->flags & RIDE_ENTRY_FLAG_DISABLE_COLOUR_TAB) != 0) + { + disabledTabs |= (1uLL << WIDX_TAB_5); + } + + disabled_widgets = disabledTabs; + } + + void UpdateOverallView(const Ride& ride) const + { + // Calculate x, y, z bounds of the entire ride using its track elements + TileElementIterator it; + + TileElementIteratorBegin(&it); + + CoordsXYZ min = { std::numeric_limits::max(), std::numeric_limits::max(), + std::numeric_limits::max() }; + CoordsXYZ max = { std::numeric_limits::min(), std::numeric_limits::min(), + std::numeric_limits::min() }; + + while (TileElementIteratorNext(&it)) + { + if (it.element->GetType() != TileElementType::Track) + continue; + + if (it.element->AsTrack()->GetRideIndex() != ride.id) + continue; + + auto location = TileCoordsXY(it.x, it.y).ToCoordsXY(); + int32_t baseZ = it.element->GetBaseZ(); + int32_t clearZ = it.element->GetClearanceZ(); + + min.x = std::min(min.x, location.x); + min.y = std::min(min.y, location.y); + min.z = std::min(min.z, baseZ); + + max.x = std::max(max.x, location.x); + max.y = std::max(max.y, location.y); + max.z = std::max(max.z, clearZ); + } + + const auto rideIndex = ride.id.ToUnderlying(); + if (rideIndex >= _rideOverallViewsCache.size()) + { + _rideOverallViewsCache.resize(rideIndex + 1); + } + + auto& view = _rideOverallViewsCache[rideIndex]; + view.loc = CoordsXYZ{ (min.x + max.x) / 2, (min.y + max.y) / 2, (min.z + max.z) / 2 } + CoordsXYZ{ 16, 16, -8 }; + + // Calculate size to determine from how far away to view the ride + const auto diff = max - min; + + const int32_t size = static_cast(std::sqrt(diff.x * diff.x + diff.y * diff.y + diff.z * diff.z)); + + if (size >= 80) + { + // Each farther zoom level shows twice as many tiles (log) + // Appropriate zoom is lowered by one to fill the entire view with the ride + const auto zoomValue = static_cast(std::ceil(std::log(size / 80)) - 1); + view.zoom = std::clamp(ZoomLevel{ zoomValue }, ZoomLevel{ 0 }, ZoomLevel::max()); + } + else + { + // Small rides or stalls are zoomed in all the way. + view.zoom = ZoomLevel{ 0 }; + } + } + + void SetPressedTab() + { + int32_t i; + for (i = 0; i < WINDOW_RIDE_PAGE_COUNT; i++) + pressed_widgets &= ~(1 << (WIDX_TAB_1 + i)); + pressed_widgets |= 1LL << (WIDX_TAB_1 + page); + } + + void AnchorBorderWidgets() + { + ResizeFrameWithPage(); + } + +#pragma region Main + + std::optional GetStationIndexFromViewSelection() const + { + const auto* ride = GetRide(RideId::FromUnderlying(number)); + if (ride == nullptr) + return std::nullopt; + + int32_t viewSelectionIndex = _viewIndex - 1 - ride->NumTrains; + if (viewSelectionIndex < 0) + { + return std::nullopt; + } + + for (const auto& station : ride->GetStations()) + { + if (!station.Start.IsNull() && viewSelectionIndex-- == 0) + { + const auto stationIndex = ride->GetStationIndex(&station); + return std::make_optional(stationIndex); + } + } + return std::nullopt; + } + + void InitViewport() + { + if (page != WINDOW_RIDE_PAGE_MAIN) + return; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + int32_t viewSelectionIndex = _viewIndex - 1; + + std::optional newFocus; + + if (viewSelectionIndex >= 0 && viewSelectionIndex < ride->NumTrains && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK) + { + auto vehId = ride->vehicles[viewSelectionIndex]; + const auto* rideEntry = ride->GetRideEntry(); + if (rideEntry != nullptr && rideEntry->TabCar != 0) + { + Vehicle* vehicle = GetEntity(vehId); + if (vehicle == nullptr) + { + vehId = EntityId::GetNull(); + } + else if (!vehicle->next_vehicle_on_train.IsNull()) + { + vehId = vehicle->next_vehicle_on_train; + } + } + if (!vehId.IsNull()) + { + newFocus = Focus(vehId); + } + } + else if (viewSelectionIndex >= ride->NumTrains && viewSelectionIndex < (ride->NumTrains + ride->num_stations)) + { + auto stationIndex = GetStationIndexFromViewSelection(); + if (stationIndex) + { + const auto location = ride->GetStation(*stationIndex).GetStart(); + newFocus = Focus(location); + } + } + else + { + if (viewSelectionIndex > 0) + { + _viewIndex = 0; + } + if (number < _rideOverallViewsCache.size()) + { + const auto& view = _rideOverallViewsCache[number]; + newFocus = Focus(view.loc, view.zoom); + } + } + + uint16_t newViewportFlags = 0; + if (viewport != nullptr) + { + if (focus == newFocus) + { + return; + } + newViewportFlags = viewport->flags; + RemoveViewport(); + } + else if (gConfigGeneral.AlwaysShowGridlines) + { + newViewportFlags |= VIEWPORT_FLAG_GRIDLINES; + } + + OnPrepareDraw(); + + focus = newFocus; + + // rct2: 0x006aec9c only used here so brought it into the function + if (viewport == nullptr && !ride->overall_view.IsNull() && focus.has_value()) + { + const auto& viewWidget = widgets[WIDX_VIEWPORT]; + + auto screenPos = windowPos + ScreenCoordsXY{ viewWidget.left + 1, viewWidget.top + 1 }; + int32_t viewWidth = viewWidget.width() - 1; + int32_t viewHeight = viewWidget.height() - 1; + + ViewportCreate(this, screenPos, viewWidth, viewHeight, focus.value()); + + flags |= WF_NO_SCROLLING; + Invalidate(); + } + if (viewport != nullptr) + { + viewport->flags = newViewportFlags; + Invalidate(); + } + } + + void Rename() + { + auto ride = GetRide(rideId); + if (ride != nullptr) + { + auto rideName = ride->GetName(); + WindowTextInputRawOpen( + this, WIDX_RENAME, STR_RIDE_ATTRACTION_NAME, STR_ENTER_NEW_NAME_FOR_THIS_RIDE_ATTRACTION, {}, rideName.c_str(), + 32); + } + } + + void MainOnMouseUp(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + case WIDX_CONSTRUCTION: + { + auto ride = GetRide(rideId); + if (ride != nullptr) + { + RideConstructionStart(*ride); + if (WindowFindByNumber(WindowClass::RideConstruction, ride->id.ToUnderlying()) != nullptr) + { + Close(); + return; + } + } + break; + } + case WIDX_RENAME: + Rename(); + break; + case WIDX_DEMOLISH: + ContextOpenDetailWindow(WD_DEMOLISH_RIDE, number); + break; + case WIDX_CLOSE_LIGHT: + case WIDX_SIMULATE_LIGHT: + case WIDX_TEST_LIGHT: + case WIDX_OPEN_LIGHT: + { + auto ride = GetRide(rideId); + if (ride != nullptr) + { + RideStatus status; + switch (widgetIndex) + { + default: + case WIDX_CLOSE_LIGHT: + status = RideStatus::Closed; + break; + case WIDX_SIMULATE_LIGHT: + status = RideStatus::Simulating; + break; + case WIDX_TEST_LIGHT: + status = RideStatus::Testing; + break; + case WIDX_OPEN_LIGHT: + status = RideStatus::Open; + break; + } + auto gameAction = RideSetStatusAction(ride->id, status); + GameActions::Execute(&gameAction); + } + break; + } + } + } + + void MainResize() + { + int32_t minHeight = 180; + if (ThemeGetFlags() & UITHEME_FLAG_USE_LIGHTS_RIDE) + { + minHeight += 20 + RCT1_LIGHT_OFFSET; + + auto ride = GetRide(rideId); + if (ride != nullptr) + { +#ifdef __SIMULATE_IN_RIDE_WINDOW__ + if (ride->SupportsStatus(RideStatus::Simulating)) + { + minHeight += 14; + } +#endif + if (ride->SupportsStatus(RideStatus::Testing)) + { + minHeight += 14; + } + } + } + if (gCheatsAllowArbitraryRideTypeChanges) + { + minHeight += 15; + } + + flags |= WF_RESIZABLE; + WindowSetResize(*this, 316, minHeight, 500, 450); + // Unlike with other windows, the focus needs to be recentred so it’s best to just reset it. + focus = std::nullopt; + InitViewport(); + } + + size_t GetNumPeepsInTrain(const Ride& ride, int32_t trainIndex) const + { + auto numPeepsInTrain = 0; + const auto* vehicle = TryGetVehicle(ride.vehicles[trainIndex]); + while (vehicle != nullptr) + { + numPeepsInTrain += vehicle->num_peeps; + vehicle = TryGetVehicle(vehicle->next_vehicle_on_train); + } + return numPeepsInTrain; + } + + bool TrainMustBeHidden(const Ride& ride, int32_t trainIndex) const + { + if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK)) + return true; + + const auto* rideEntry = ride.GetRideEntry(); + if (rideEntry == nullptr) + return false; + + if (!(rideEntry->flags & RIDE_ENTRY_FLAG_HIDE_EMPTY_TRAINS)) + return false; + + return GetNumPeepsInTrain(ride, trainIndex) == 0; + } + + void ShowViewDropdown(Widget* widget) + { + Widget* dropdownWidget = widget - 1; + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + const auto& rtd = ride->GetRideTypeDescriptor(); + + int32_t numItems = 1; + if (!rtd.HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) + { + numItems += ride->num_stations; + numItems += ride->NumTrains; + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, colours[1], + 0, 0, numItems, widget->right - dropdownWidget->left); + + // First item + gDropdownItems[0].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[0].Args = STR_OVERALL_VIEW; + int32_t currentItem = 1; + + // Vehicles + int32_t name = GetRideComponentName(rtd.NameConvention.vehicle).number; + for (int32_t i = 0; i < ride->NumTrains; i++) + { + gDropdownItems[currentItem].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[currentItem].Args = name | (currentItem << 16); + if (TrainMustBeHidden(*ride, i)) + { + Dropdown::SetDisabled(currentItem, true); + } + currentItem++; + } + + // Stations + name = GetRideComponentName(rtd.NameConvention.station).number; + for (int32_t i = 1; i <= ride->num_stations; i++) + { + gDropdownItems[currentItem].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[currentItem].Args = name | (i << 16); + currentItem++; + } + + // Set checked item + Dropdown::SetChecked(_viewIndex, true); + } + + RideStatus GetNextDefaultStatus(const Ride& ride) const + { + switch (ride.status) + { + default: + case RideStatus::Closed: + if ((ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED) + || (ride.lifecycle_flags & RIDE_LIFECYCLE_HAS_STALLED_VEHICLE)) + { + return RideStatus::Closed; + } + if (ride.SupportsStatus(RideStatus::Testing) && !(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) + { + return RideStatus::Testing; + } + return RideStatus::Open; + case RideStatus::Simulating: + return RideStatus::Testing; + case RideStatus::Testing: + return (ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED) ? RideStatus::Open : RideStatus::Closed; + case RideStatus::Open: + return RideStatus::Closed; + } + } + + struct RideStatusDropdownInfo + { + struct Ride* Ride{}; + RideStatus CurrentStatus{}; + RideStatus DefaultStatus{}; + + int32_t NumItems{}; + int32_t CheckedIndex = -1; + int32_t DefaultIndex = -1; + }; + + void SetDropdown(RideStatusDropdownInfo& info, RideStatus status, StringId text) const + { + if (info.Ride->SupportsStatus(status)) + { + auto index = info.NumItems; + gDropdownItems[index].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[index].Args = text; + if (info.CurrentStatus == status) + { + info.CheckedIndex = index; + } + if (info.DefaultStatus == status) + { + info.DefaultIndex = index; + } + info.NumItems++; + } + } + + void ShowOpenDropdown(Widget* widget) + { + RideStatusDropdownInfo info; + info.Ride = GetRide(rideId); + if (info.Ride == nullptr) + return; + + info.CurrentStatus = info.Ride->status; + info.DefaultStatus = GetNextDefaultStatus(*info.Ride); + SetDropdown(info, RideStatus::Closed, STR_CLOSE_RIDE); +#ifdef __SIMULATE_IN_RIDE_WINDOW__ + SetDropdown(info, RideStatus::Simulating, STR_SIMULATE_RIDE); +#endif + SetDropdown(info, RideStatus::Testing, STR_TEST_RIDE); + SetDropdown(info, RideStatus::Open, STR_OPEN_RIDE); + WindowDropdownShowText( + { windowPos.x + widget->left, windowPos.y + widget->top }, widget->height() + 1, colours[1], 0, info.NumItems); + Dropdown::SetChecked(info.CheckedIndex, true); + gDropdownDefaultIndex = info.DefaultIndex; + } + + static constexpr StringId GetRideTypeNameForDropdown(ride_type_t rideType) + { + switch (rideType) + { + case RIDE_TYPE_1D: + return STR_RIDE_NAME_1D; + case RIDE_TYPE_1F: + return STR_RIDE_NAME_1F; + case RIDE_TYPE_22: + return STR_RIDE_NAME_22; + case RIDE_TYPE_50: + return STR_RIDE_NAME_50; + case RIDE_TYPE_52: + return STR_RIDE_NAME_52; + case RIDE_TYPE_53: + return STR_RIDE_NAME_53; + case RIDE_TYPE_54: + return STR_RIDE_NAME_54; + case RIDE_TYPE_55: + return STR_RIDE_NAME_55; + case RIDE_TYPE_59: + return STR_RIDE_NAME_59; + default: + return GetRideTypeDescriptor(rideType).Naming.Name; + } + } + + void PopulateRideTypeDropdown() + { + auto& ls = OpenRCT2::GetContext()->GetLocalisationService(); + if (_rideDropdownDataLanguage == ls.GetCurrentLanguage()) + return; + + _rideDropdownData.clear(); + + for (uint8_t i = 0; i < RIDE_TYPE_COUNT; i++) + { + auto name = GetRideTypeNameForDropdown(i); + _rideDropdownData.push_back({ i, name, ls.GetString(name) }); + } + + std::sort(_rideDropdownData.begin(), _rideDropdownData.end(), [](auto& a, auto& b) { + return String::Compare(a.label_string, b.label_string, true) < 0; + }); + + _rideDropdownDataLanguage = ls.GetCurrentLanguage(); + } + + void ShowRideTypeDropdown(Widget* widget) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + PopulateRideTypeDropdown(); + + for (size_t i = 0; i < _rideDropdownData.size(); i++) + { + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = _rideDropdownData[i].LabelId; + } + + Widget* dropdownWidget = widget - 1; + WindowDropdownShowText( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, colours[1], + Dropdown::Flag::StayOpen, RIDE_TYPE_COUNT); + + // Find the current ride type in the ordered list. + int32_t pos = 0; + for (int32_t i = 0; i < RIDE_TYPE_COUNT; i++) + { + if (_rideDropdownData[i].RideTypeId == ride->type) + { + pos = i; + break; + } + } + + gDropdownHighlightedIndex = pos; + gDropdownDefaultIndex = pos; + Dropdown::SetChecked(pos, true); + } + + void ShowLocateDropdown(Widget* widget) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + gDropdownItems[0].Format = STR_LOCATE_SUBJECT_TIP; + gDropdownItems[1].Format = STR_FOLLOW_SUBJECT_TIP; + + WindowDropdownShowText( + { windowPos.x + widget->left, windowPos.y + widget->top }, widget->height() + 1, colours[1], 0, 2); + gDropdownDefaultIndex = 0; + if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK) || _viewIndex == 0 || _viewIndex > ride->NumTrains) + { + // Disable if we're a flat ride, 'overall view' is selected or a station is selected + Dropdown::SetDisabled(1, true); + } + } + + void MainFollowRide() + { + auto* ride = GetRide(rideId); + if (ride != nullptr) + { + if (!(ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_MAIN)) + { + if (_viewIndex > 0) + { + if (_viewIndex <= ride->NumTrains) + { + Vehicle* vehicle = GetEntity(ride->vehicles[_viewIndex - 1]); + if (vehicle != nullptr) + { + auto headVehicleSpriteIndex = vehicle->Id; + WindowBase* w_main = WindowGetMain(); + WindowFollowSprite(*w_main, headVehicleSpriteIndex); + } + } + } + } + } + } + + void PopulateVehicleTypeDropdown(const Ride& ride, bool forceRefresh = false) + { + auto& objManager = GetContext()->GetObjectManager(); + const auto* rideEntry = ride.GetRideEntry(); + + bool selectionShouldBeExpanded; + int32_t rideTypeIterator, rideTypeIteratorMax; + + const auto& rtd = ride.GetRideTypeDescriptor(); + if (gCheatsShowVehiclesFromOtherTrackTypes + && !( + rtd.HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE) || rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE) + || ride.type == RIDE_TYPE_MINI_GOLF)) + { + selectionShouldBeExpanded = true; + rideTypeIterator = 0; + rideTypeIteratorMax = RIDE_TYPE_COUNT - 1; + } + else + { + selectionShouldBeExpanded = false; + rideTypeIterator = ride.type; + rideTypeIteratorMax = ride.type; + } + + // Don't repopulate the list if we just did. + auto& ls = OpenRCT2::GetContext()->GetLocalisationService(); + if (!forceRefresh && _vehicleDropdownExpanded == selectionShouldBeExpanded && _vehicleDropdownRideType == rideEntry + && _vehicleDropdownDataLanguage == ls.GetCurrentLanguage()) + return; + + _vehicleDropdownData.clear(); + + for (; rideTypeIterator <= rideTypeIteratorMax; rideTypeIterator++) + { + const auto& rtdIterator = GetRideTypeDescriptor(rideTypeIterator); + if (selectionShouldBeExpanded && rtdIterator.HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE)) + continue; + if (selectionShouldBeExpanded + && (rtdIterator.HasFlag(RIDE_TYPE_FLAG_IS_MAZE) || rideTypeIterator == RIDE_TYPE_MINI_GOLF)) + continue; + + auto& rideEntries = objManager.GetAllRideEntries(rideTypeIterator); + for (auto rideEntryIndex : rideEntries) + { + const auto* currentRideEntry = GetRideEntryByIndex(rideEntryIndex); + if (currentRideEntry == nullptr) + continue; + + // Skip if vehicle type has not been invented yet + if (!RideEntryIsInvented(rideEntryIndex) && !gCheatsIgnoreResearchStatus) + continue; + + _vehicleDropdownData.push_back( + { rideEntryIndex, currentRideEntry->naming.Name, ls.GetString(currentRideEntry->naming.Name) }); + } + } + + std::sort(_vehicleDropdownData.begin(), _vehicleDropdownData.end(), [](auto& a, auto& b) { + return String::Compare(a.label_string, b.label_string, true) < 0; + }); + + _vehicleDropdownExpanded = selectionShouldBeExpanded; + _vehicleDropdownRideType = rideEntry; + _vehicleDropdownDataLanguage = ls.GetCurrentLanguage(); + } + + void ShowVehicleTypeDropdown(Widget* widget) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + PopulateVehicleTypeDropdown(*ride); + + size_t numItems = std::min(_vehicleDropdownData.size(), Dropdown::ItemsMaxSize); + + for (size_t i = 0; i < numItems; i++) + { + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = _vehicleDropdownData[i].LabelId; + } + + Widget* dropdownWidget = widget - 1; + auto ddWidth = WindowDropDownHasMultipleColumns(numItems) ? dropdownWidget->width() - 24 : dropdownWidget->width(); + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, colours[1], + 0, Dropdown::Flag::StayOpen, numItems, ddWidth); + + // Find the current vehicle type in the ordered list. + int32_t pos = 0; + for (int32_t i = 0; i < static_cast(_vehicleDropdownData.size()); i++) + { + if (_vehicleDropdownData[i].SubTypeId == ride->subtype) + { + pos = i; + break; + } + } + + gDropdownHighlightedIndex = pos; + gDropdownDefaultIndex = pos; + Dropdown::SetChecked(pos, true); + } + + void MainOnMouseDown(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_VIEW_DROPDOWN: + ShowViewDropdown(&widgets[widgetIndex]); + break; + case WIDX_OPEN: + ShowOpenDropdown(&widgets[widgetIndex]); + break; + case WIDX_RIDE_TYPE_DROPDOWN: + ShowRideTypeDropdown(&widgets[widgetIndex]); + break; + case WIDX_LOCATE: + ShowLocateDropdown(&widgets[widgetIndex]); + break; + } + } + + void MainOnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) + { + switch (widgetIndex) + { + case WIDX_VIEW_DROPDOWN: + if (dropdownIndex == -1) + { + dropdownIndex = _viewIndex + 1; + auto ride = GetRide(rideId); + if (ride != nullptr) + { + if (dropdownIndex != 0 && dropdownIndex <= ride->NumTrains + && !(ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK)) + { + dropdownIndex = ride->NumTrains + 1; + } + if (dropdownIndex >= gDropdownNumItems) + { + dropdownIndex = 0; + } + } + } + + _viewIndex = dropdownIndex; + InitViewport(); + Invalidate(); + break; + case WIDX_OPEN: + { + auto ride = GetRide(rideId); + if (ride != nullptr) + { + auto status = RideStatus::Closed; + if (dropdownIndex < 0) + { + dropdownIndex = gDropdownHighlightedIndex; + } + if (dropdownIndex < static_cast(std::size(gDropdownItems))) + { + switch (gDropdownItems[dropdownIndex].Args) + { + case STR_CLOSE_RIDE: + status = RideStatus::Closed; + break; + case STR_SIMULATE_RIDE: + status = RideStatus::Simulating; + break; + case STR_TEST_RIDE: + status = RideStatus::Testing; + break; + case STR_OPEN_RIDE: + status = RideStatus::Open; + break; + } + } + auto gameAction = RideSetStatusAction(ride->id, status); + GameActions::Execute(&gameAction); + } + break; + } + case WIDX_RIDE_TYPE_DROPDOWN: + if (dropdownIndex != -1 && dropdownIndex < RIDE_TYPE_COUNT) + { + auto rideLabelId = std::clamp(dropdownIndex, 0, RIDE_TYPE_COUNT - 1); + auto rideType = _rideDropdownData[rideLabelId].RideTypeId; + if (rideType < RIDE_TYPE_COUNT) + { + auto rideSetSetting = RideSetSettingAction(rideId, RideSetSetting::RideType, rideType); + rideSetSetting.SetCallback([](const GameAction* ga, const GameActions::Result* result) { + // Reset ghost track if ride construction window is open, prevents a crash + // Will get set to the correct Alternative variable during set_default_next_piece. + // TODO: Rework construction window to prevent the need for this. + _currentTrackAlternative = RIDE_TYPE_NO_ALTERNATIVES; + RideConstructionSetDefaultNextPiece(); + }); + GameActions::Execute(&rideSetSetting); + } + } + break; + case WIDX_LOCATE: + { + if (dropdownIndex == 0) + { + ScrollToViewport(); + } + else if (dropdownIndex == 1) + { + MainFollowRide(); + } + break; + } + } + } + + void MainUpdate() + { + // Update tab animation + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_1); + + // Update status + auto ride = GetRide(rideId); + if (ride != nullptr) + { + if (!(ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_MAIN)) + { + if (_viewIndex == 0) + return; + + if (_viewIndex <= ride->NumTrains) + { + Vehicle* vehicle = GetEntity(ride->vehicles[_viewIndex - 1]); + if (vehicle == nullptr + || (vehicle->status != Vehicle::Status::Travelling + && vehicle->status != Vehicle::Status::TravellingCableLift + && vehicle->status != Vehicle::Status::TravellingDodgems + && vehicle->status != Vehicle::Status::TravellingBoat)) + { + return; + } + } + } + ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_MAIN; + } + WidgetInvalidate(*this, WIDX_STATUS); + } + + void MainOnTextInput(WidgetIndex widgetIndex, std::string_view text) + { + if (widgetIndex != WIDX_RENAME || text.empty()) + return; + + auto ride = GetRide(rideId); + if (ride != nullptr) + { + auto strText = std::string(text); + auto gameAction = RideSetNameAction(ride->id, strText); + GameActions::Execute(&gameAction); + } + } + + void MainViewportRotate() + { + InitViewport(); + } + + void MainOnPrepareDraw() + { + int32_t i, widgetHeight; + + auto* newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + disabled_widgets &= ~((1uLL << WIDX_DEMOLISH) | (1uLL << WIDX_CONSTRUCTION)); + if (ride->lifecycle_flags & (RIDE_LIFECYCLE_INDESTRUCTIBLE | RIDE_LIFECYCLE_INDESTRUCTIBLE_TRACK) + && !gCheatsMakeAllDestructible) + disabled_widgets |= (1uLL << WIDX_DEMOLISH); + + auto ft = Formatter::Common(); + ride->FormatNameTo(ft); + + uint32_t spriteIds[] = { + SPR_CLOSED, + SPR_OPEN, + SPR_TESTING, + SPR_G2_SIMULATE, + }; + widgets[WIDX_OPEN].image = ImageId(spriteIds[EnumValue(ride->status)]); + +#ifdef __SIMULATE_IN_RIDE_WINDOW__ + widgets[WIDX_CLOSE_LIGHT].image = SPR_G2_RCT1_CLOSE_BUTTON_0 + (ride->status == RideStatus::Closed) * 2 + + WidgetIsPressed(*this, WIDX_CLOSE_LIGHT); + widgets[WIDX_SIMULATE_LIGHT].image = SPR_G2_RCT1_SIMULATE_BUTTON_0 + (ride->status == RideStatus::Simulating) * 2 + + WidgetIsPressed(*w, WIDX_SIMULATE_LIGHT); + widgets[WIDX_TEST_LIGHT].image = SPR_G2_RCT1_TEST_BUTTON_0 + (ride->status == RideStatus::Testing) * 2 + + WidgetIsPressed(*this, WIDX_TEST_LIGHT); +#else + const auto closeLightImage = SPR_G2_RCT1_CLOSE_BUTTON_0 + (ride->status == RideStatus::Closed) * 2 + + WidgetIsPressed(*this, WIDX_CLOSE_LIGHT); + widgets[WIDX_CLOSE_LIGHT].image = ImageId(closeLightImage); + + auto baseSprite = ride->status == RideStatus::Simulating ? SPR_G2_RCT1_SIMULATE_BUTTON_0 : SPR_G2_RCT1_TEST_BUTTON_0; + const auto testLightImage = baseSprite + + (ride->status == RideStatus::Testing || ride->status == RideStatus::Simulating) * 2 + + WidgetIsPressed(*this, WIDX_TEST_LIGHT); + widgets[WIDX_TEST_LIGHT].image = ImageId(testLightImage); +#endif + const auto openLightImage = SPR_G2_RCT1_OPEN_BUTTON_0 + (ride->status == RideStatus::Open) * 2 + + WidgetIsPressed(*this, WIDX_OPEN_LIGHT); + widgets[WIDX_OPEN_LIGHT].image = ImageId(openLightImage); + + AnchorBorderWidgets(); + + const int32_t offset = gCheatsAllowArbitraryRideTypeChanges ? 15 : 0; + // Anchor main page specific widgets + widgets[WIDX_VIEWPORT].right = width - 26; + widgets[WIDX_VIEWPORT].bottom = height - (14 + offset); + widgets[WIDX_STATUS].right = width - 26; + widgets[WIDX_STATUS].top = height - (13 + offset); + widgets[WIDX_STATUS].bottom = height - (3 + offset); + widgets[WIDX_VIEW].right = width - 60; + widgets[WIDX_VIEW_DROPDOWN].right = width - 61; + widgets[WIDX_VIEW_DROPDOWN].left = width - 71; + widgets[WIDX_RIDE_TYPE].right = width - 26; + widgets[WIDX_RIDE_TYPE].top = height - 17; + widgets[WIDX_RIDE_TYPE].bottom = height - 4; + widgets[WIDX_RIDE_TYPE_DROPDOWN].left = width - 37; + widgets[WIDX_RIDE_TYPE_DROPDOWN].right = width - 27; + widgets[WIDX_RIDE_TYPE_DROPDOWN].top = height - 16; + widgets[WIDX_RIDE_TYPE_DROPDOWN].bottom = height - 5; + + if (!gCheatsAllowArbitraryRideTypeChanges) + { + widgets[WIDX_RIDE_TYPE].type = WindowWidgetType::Empty; + widgets[WIDX_RIDE_TYPE_DROPDOWN].type = WindowWidgetType::Empty; + } + else + { + widgets[WIDX_RIDE_TYPE].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_RIDE_TYPE].text = ride->GetRideTypeDescriptor().Naming.Name; + widgets[WIDX_RIDE_TYPE_DROPDOWN].type = WindowWidgetType::Button; + } + + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + + if (ThemeGetFlags() & UITHEME_FLAG_USE_LIGHTS_RIDE) + { + widgets[WIDX_OPEN].type = WindowWidgetType::Empty; + widgets[WIDX_CLOSE_LIGHT].type = WindowWidgetType::ImgBtn; + widgets[WIDX_SIMULATE_LIGHT].type = WindowWidgetType::Empty; +#ifdef __SIMULATE_IN_RIDE_WINDOW__ + if (ride->SupportsStatus(RideStatus::Simulating)) + widgets[WIDX_SIMULATE_LIGHT].type = WindowWidgetType::ImgBtn; +#endif + widgets[WIDX_TEST_LIGHT].type = ride->SupportsStatus(RideStatus::Testing) ? WindowWidgetType::ImgBtn + : WindowWidgetType::Empty; + widgets[WIDX_OPEN_LIGHT].type = WindowWidgetType::ImgBtn; + + widgetHeight = 62; + if (widgets[WIDX_SIMULATE_LIGHT].type != WindowWidgetType::Empty) + { + widgets[WIDX_SIMULATE_LIGHT].top = widgetHeight; + widgets[WIDX_SIMULATE_LIGHT].bottom = widgetHeight + 13; + widgetHeight += 14; + } + if (widgets[WIDX_TEST_LIGHT].type != WindowWidgetType::Empty) + { + widgets[WIDX_TEST_LIGHT].top = widgetHeight; + widgets[WIDX_TEST_LIGHT].bottom = widgetHeight + 13; + widgetHeight += 14; + } + widgets[WIDX_OPEN_LIGHT].top = widgetHeight; + widgets[WIDX_OPEN_LIGHT].bottom = widgetHeight + 13; + widgetHeight += 14 - 24 + RCT1_LIGHT_OFFSET; + } + else + { + widgets[WIDX_OPEN].type = WindowWidgetType::FlatBtn; + widgets[WIDX_CLOSE_LIGHT].type = WindowWidgetType::Empty; + widgets[WIDX_SIMULATE_LIGHT].type = WindowWidgetType::Empty; + widgets[WIDX_TEST_LIGHT].type = WindowWidgetType::Empty; + widgets[WIDX_OPEN_LIGHT].type = WindowWidgetType::Empty; + widgetHeight = 46; + } + for (i = WIDX_CLOSE_LIGHT; i <= WIDX_OPEN_LIGHT; i++) + { + widgets[i].left = width - 20; + widgets[i].right = width - 7; + } + for (i = WIDX_OPEN; i <= WIDX_DEMOLISH; i++, widgetHeight += 24) + { + widgets[i].left = width - 25; + widgets[i].right = width - 2; + widgets[i].top = widgetHeight; + widgets[i].bottom = widgetHeight + 23; + } + } + + StringId GetStatusOverallView(Formatter& ft) const + { + auto stringId = STR_NONE; + auto ride = GetRide(rideId); + if (ride != nullptr) + { + ride->FormatStatusTo(ft); + stringId = STR_BLACK_STRING; + if ((ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) || (ride->lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) + { + stringId = STR_RED_OUTLINED_STRING; + } + } + return stringId; + } + + StringId GetStatusVehicle(Formatter& ft) const + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return STR_EMPTY; + + auto vehicle = GetEntity(ride->vehicles[_viewIndex - 1]); + if (vehicle == nullptr) + return STR_EMPTY; + + if (vehicle->status != Vehicle::Status::Crashing && vehicle->status != Vehicle::Status::Crashed) + { + auto trackType = vehicle->GetTrackType(); + if (trackType == TrackElemType::BlockBrakes || trackType == TrackElemType::CableLiftHill + || trackType == TrackElemType::Up25ToFlat || trackType == TrackElemType::Up60ToFlat + || trackType == TrackElemType::DiagUp25ToFlat || trackType == TrackElemType::DiagUp60ToFlat) + { + if (ride->GetRideTypeDescriptor().SupportsTrackPiece(TRACK_BLOCK_BRAKES) && vehicle->velocity == 0) + { + ft.Add(STR_STOPPED_BY_BLOCK_BRAKES); + return STR_BLACK_STRING; + } + } + } + + if (ride->type == RIDE_TYPE_MINI_GOLF) + return STR_EMPTY; + + auto stringId = VehicleStatusNames[static_cast(vehicle->status)]; + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_SINGLE_SESSION) + && vehicle->status <= Vehicle::Status::UnloadingPassengers) + { + stringId = SingleSessionVehicleStatusNames[static_cast(vehicle->status)]; + } + + ft.Add(stringId); + uint16_t speedInMph = (abs(vehicle->velocity) * 9) >> 18; + ft.Add(speedInMph); + const RideComponentName stationName = GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.station); + ft.Add(ride->num_stations > 1 ? stationName.number : stationName.singular); + ft.Add(vehicle->current_station.ToUnderlying() + 1); + return stringId != STR_CRASHING && stringId != STR_CRASHED_0 ? STR_BLACK_STRING : STR_RED_OUTLINED_STRING; + } + + StringId GetStatusStation(Formatter& ft) const + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return STR_NONE; + + const auto stationIndex = GetStationIndexFromViewSelection(); + if (!stationIndex) + { + return STR_NONE; + } + + const auto& station = ride->GetStation(*stationIndex); + StringId stringId = STR_EMPTY; + // Entrance / exit + if (ride->status == RideStatus::Closed) + { + if (station.Entrance.IsNull()) + stringId = STR_NO_ENTRANCE; + else if (station.Exit.IsNull()) + stringId = STR_NO_EXIT; + } + else + { + if (station.Entrance.IsNull()) + stringId = STR_EXIT_ONLY; + } + // Queue length + if (stringId == STR_EMPTY) + { + stringId = STR_QUEUE_EMPTY; + uint16_t queueLength = ride->GetStation(*stationIndex).QueueLength; + if (queueLength == 1) + stringId = STR_QUEUE_ONE_PERSON; + else if (queueLength > 1) + stringId = STR_QUEUE_PEOPLE; + + ft.Add(stringId); + ft.Add(queueLength); + } + else + { + ft.Add(stringId); + } + + return STR_BLACK_STRING; + } + + StringId GetStatus(Formatter& ft) const + { + auto ride = GetRide(rideId); + if (_viewIndex == 0) + return GetStatusOverallView(ft); + if (ride != nullptr && _viewIndex <= ride->NumTrains) + return GetStatusVehicle(ft); + if (ride != nullptr && ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) + return GetStatusOverallView(ft); + return GetStatusStation(ft); + } + + void MainOnDraw(DrawPixelInfo& dpi) + { + WindowDrawWidgets(*this, dpi); + DrawTabImages(dpi); + + // Viewport and ear icon + if (viewport != nullptr) + { + WindowDrawViewport(dpi, *this); + if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) + GfxDrawSprite(dpi, ImageId(SPR_HEARING_VIEWPORT), WindowGetViewportSoundIconPos(*this)); + } + + // View dropdown + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto ft = Formatter(); + if (_viewIndex != 0) + { + if (_viewIndex > ride->NumTrains) + { + ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.station).number); + ft.Add(_viewIndex - ride->NumTrains); + } + else + { + ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).number); + ft.Add(_viewIndex); + } + } + else + { + ft.Add(STR_OVERALL_VIEW); + } + + auto* widget = &widgets[WIDX_VIEW]; + DrawTextBasic( + dpi, { windowPos.x + (widget->left + widget->right - 11) / 2, windowPos.y + widget->top }, + STR_WINDOW_COLOUR_2_STRINGID, ft, { TextAlignment::CENTRE }); + + // Status + ft = Formatter(); + widget = &widgets[WIDX_STATUS]; + StringId rideStatus = GetStatus(ft); + DrawTextEllipsised( + dpi, windowPos + ScreenCoordsXY{ (widget->left + widget->right) / 2, widget->top }, widget->width(), rideStatus, ft, + { TextAlignment::CENTRE }); + } + +#pragma endregion + +#pragma region Vehicle + + void VehicleOnMouseUp(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + } + } + + void VehicleResize() + { + WindowSetResize(*this, 316, 221, 316, 221); + } + + void VehicleOnMouseDown(WidgetIndex widgetIndex) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + switch (widgetIndex) + { + case WIDX_VEHICLE_TYPE_DROPDOWN: + ShowVehicleTypeDropdown(&widgets[widgetIndex]); + break; + case WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX: + ride->SetReversedTrains(!ride->HasLifecycleFlag(RIDE_LIFECYCLE_REVERSED_TRAINS)); + break; + case WIDX_VEHICLE_TRAINS_INCREASE: + if (ride->NumTrains < OpenRCT2::Limits::MaxTrainsPerRide) + ride->SetNumTrains(ride->NumTrains + 1); + break; + case WIDX_VEHICLE_TRAINS_DECREASE: + if (ride->NumTrains > 1) + ride->SetNumTrains(ride->NumTrains - 1); + break; + case WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE: + if (ride->num_cars_per_train < OpenRCT2::Limits::MaxCarsPerTrain) + ride->SetNumCarsPerVehicle(ride->num_cars_per_train + 1); + break; + case WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE: + if (ride->num_cars_per_train > 1) + ride->SetNumCarsPerVehicle(ride->num_cars_per_train - 1); + break; + } + } + + void VehicleOnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) + { + if (dropdownIndex == -1) + return; + + switch (widgetIndex) + { + case WIDX_VEHICLE_TYPE_DROPDOWN: + if (dropdownIndex >= 0 && static_cast(dropdownIndex) < _vehicleDropdownData.size()) + { + auto ride = GetRide(rideId); + if (ride != nullptr) + { + auto newRideType = _vehicleDropdownData[dropdownIndex].SubTypeId; + ride->SetRideEntry(newRideType); + } + } + break; + } + } + + void VehicleUpdate() + { + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_2); + } + + OpenRCT2String VehicleTooltip(const WidgetIndex widgetIndex, StringId fallback) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return { STR_NONE, {} }; + + switch (widgetIndex) + { + case WIDX_VEHICLE_TRAINS: + case WIDX_VEHICLE_TRAINS_DECREASE: + case WIDX_VEHICLE_TRAINS_INCREASE: + { + auto ft = Formatter(); + ft.Increment(12); + + RideComponentType vehicleType = ride->GetRideTypeDescriptor().NameConvention.vehicle; + StringId stringId = GetRideComponentName(vehicleType).count; + if (ride->max_trains > 1) + { + stringId = GetRideComponentName(vehicleType).count_plural; + } + ft.Add(stringId); + ft.Add(ride->max_trains); + return { fallback, ft }; + } + case WIDX_VEHICLE_CARS_PER_TRAIN: + case WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE: + case WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE: + { + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return { STR_NONE, {} }; + + auto ft = Formatter(); + ft.Increment(16); + ft.Add(std::max(uint8_t(1), ride->MaxCarsPerTrain) - rideEntry->zero_cars); + + StringId stringId = GetRideComponentName(RideComponentType::Car).singular; + if (ride->MaxCarsPerTrain - rideEntry->zero_cars > 1) + { + stringId = GetRideComponentName(RideComponentType::Car).plural; + } + ft.Add(stringId); + return { fallback, ft }; + } + } + return { fallback, {} }; + } + + void VehicleOnPrepareDraw() + { + StringId stringId; + int32_t carsPerTrain; + + auto* newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + const auto* rideEntry = ride->GetRideEntry(); + + widgets[WIDX_TITLE].text = STR_ARG_20_STRINGID; + + // Widget setup + carsPerTrain = ride->num_cars_per_train - rideEntry->zero_cars; + + // Vehicle type + widgets[WIDX_VEHICLE_TYPE].text = rideEntry->naming.Name; + + // Trains + if (rideEntry->cars_per_flat_ride > 1 || gCheatsDisableTrainLengthLimit) + { + widgets[WIDX_VEHICLE_TRAINS].type = WindowWidgetType::Spinner; + widgets[WIDX_VEHICLE_TRAINS_INCREASE].type = WindowWidgetType::Button; + widgets[WIDX_VEHICLE_TRAINS_DECREASE].type = WindowWidgetType::Button; + } + else + { + widgets[WIDX_VEHICLE_TRAINS].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_TRAINS_INCREASE].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_TRAINS_DECREASE].type = WindowWidgetType::Empty; + } + + // Cars per train + if (rideEntry->zero_cars + 1 < rideEntry->max_cars_in_train || gCheatsDisableTrainLengthLimit) + { + widgets[WIDX_VEHICLE_CARS_PER_TRAIN].type = WindowWidgetType::Spinner; + widgets[WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE].type = WindowWidgetType::Button; + widgets[WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE].type = WindowWidgetType::Button; + } + else + { + widgets[WIDX_VEHICLE_CARS_PER_TRAIN].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE].type = WindowWidgetType::Empty; + } + + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_ALLOW_REVERSED_TRAINS) + || (gCheatsDisableTrainLengthLimit && !ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE))) + { + widgets[WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX].type = WindowWidgetType::Checkbox; + if (ride->HasLifecycleFlag(RIDE_LIFECYCLE_REVERSED_TRAINS)) + { + pressed_widgets |= (1uLL << WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX); + } + else + { + pressed_widgets &= ~(1uLL << WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX); + } + } + else + { + widgets[WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX].type = WindowWidgetType::Empty; + } + + auto ft = Formatter::Common(); + ft.Increment(6); + ft.Add(carsPerTrain); + RideComponentType vehicleType = ride->GetRideTypeDescriptor().NameConvention.vehicle; + stringId = GetRideComponentName(vehicleType).count; + if (ride->NumTrains > 1) + { + stringId = GetRideComponentName(vehicleType).count_plural; + } + ft.Add(stringId); + ft.Add(ride->NumTrains); + + ft.Increment(8); + + ride->FormatNameTo(ft); + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + + if (abs(ride->num_cars_per_train - rideEntry->zero_cars) == 1) + { + widgets[WIDX_VEHICLE_CARS_PER_TRAIN].text = STR_1_CAR_PER_TRAIN; + } + else + { + widgets[WIDX_VEHICLE_CARS_PER_TRAIN].text = STR_X_CARS_PER_TRAIN; + } + } + + void VehicleOnDraw(DrawPixelInfo& dpi) + { + WindowDrawWidgets(*this, dpi); + DrawTabImages(dpi); + + auto ride = GetRide(rideId); if (ride == nullptr) return; @@ -954,233 +2714,3885 @@ static void WindowRideDrawTabVehicle(DrawPixelInfo& dpi, WindowBase* w) if (rideEntry == nullptr) return; - if (rideEntry->flags & RIDE_ENTRY_FLAG_VEHICLE_TAB_SCALE_HALF) + auto screenCoords = windowPos + ScreenCoordsXY{ 8, 64 }; + + // Description + auto ft = Formatter(); + ft.Add(rideEntry->naming.Description); + screenCoords.y += DrawTextWrapped(dpi, screenCoords, 300, STR_BLACK_STRING, ft, { TextAlignment::LEFT }); + screenCoords.y += 2; + + // Capacity + ft = Formatter(); + ft.Add(rideEntry->capacity); + DrawTextBasic(dpi, screenCoords, STR_CAPACITY, ft); + + // Excitement Factor + if (rideEntry->excitement_multiplier != 0) { - clipDPI.zoom_level = ZoomLevel{ 1 }; - clipDPI.width *= 2; - clipDPI.height *= 2; - screenCoords.x *= 2; - screenCoords.y *= 2; - clipDPI.x *= 2; - clipDPI.y *= 2; + screenCoords.y += LIST_ROW_HEIGHT; + + ft = Formatter(); + ft.Add(abs(rideEntry->excitement_multiplier)); + StringId stringId = rideEntry->excitement_multiplier > 0 ? STR_EXCITEMENT_FACTOR : STR_EXCITEMENT_FACTOR_NEGATIVE; + DrawTextBasic(dpi, screenCoords, stringId, ft); } - // For any suspended rides, move image higher in the vehicle tab on the rides window - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SUSPENDED)) + // Intensity Factor + if (rideEntry->intensity_multiplier != 0) { - screenCoords.y /= 4; + int32_t lineHeight = FontGetLineHeight(FontStyle::Medium); + if (lineHeight != 10) + screenCoords.x += 150; + else + screenCoords.y += LIST_ROW_HEIGHT; + + ft = Formatter(); + ft.Add(abs(rideEntry->intensity_multiplier)); + StringId stringId = rideEntry->intensity_multiplier > 0 ? STR_INTENSITY_FACTOR : STR_INTENSITY_FACTOR_NEGATIVE; + DrawTextBasic(dpi, screenCoords, stringId, ft); + + if (lineHeight != 10) + screenCoords.x -= 150; } - const auto vehicle = RideEntryGetVehicleAtPosition(ride->subtype, ride->num_cars_per_train, rideEntry->TabCar); - const auto& carEntry = rideEntry->Cars[vehicle]; + // Nausea Factor + if (rideEntry->nausea_multiplier != 0) + { + screenCoords.y += LIST_ROW_HEIGHT; - auto vehicleId = ((ride->colour_scheme_type & 3) == VEHICLE_COLOUR_SCHEME_PER_VEHICLE) ? rideEntry->TabCar : 0; - VehicleColour vehicleColour = RideGetVehicleColour(*ride, vehicleId); + ft = Formatter(); + ft.Add(abs(rideEntry->nausea_multiplier)); + StringId stringId = rideEntry->nausea_multiplier > 0 ? STR_NAUSEA_FACTOR : STR_NAUSEA_FACTOR_NEGATIVE; + DrawTextBasic(dpi, screenCoords, stringId, ft); + } + } - // imageIndex represents a precision of 64 - auto imageIndex = OpenRCT2::Entity::Yaw::YawFrom4(2) * 2; - if (w->page == WINDOW_RIDE_PAGE_VEHICLE) - imageIndex += w->frame_no; - imageIndex = carEntry.SpriteByYaw(imageIndex / 2, SpriteGroupType::SlopeFlat); + struct VehicleDrawInfo + { + int16_t x; + int16_t y; + ImageId imageId; + }; + + void VehicleOnScrollDraw(DrawPixelInfo& dpi, int32_t scrollIndex) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + const auto* rideEntry = ride->GetRideEntry(); + + // Background + GfxFillRect(dpi, { { dpi.x, dpi.y }, { dpi.x + dpi.width, dpi.y + dpi.height } }, PALETTE_INDEX_12); + + Widget* widget = &widgets[WIDX_VEHICLE_TRAINS_PREVIEW]; + int32_t startX = std::max(2, (widget->width() - ((ride->NumTrains - 1) * 36)) / 2 - 25); + int32_t startY = widget->height() - 4; + + bool isReversed = ride->HasLifecycleFlag(RIDE_LIFECYCLE_REVERSED_TRAINS); + int32_t carIndex = (isReversed) ? ride->num_cars_per_train - 1 : 0; + + const auto& firstCarEntry = rideEntry->Cars[RideEntryGetVehicleAtPosition( + ride->subtype, ride->num_cars_per_train, carIndex)]; + startY += firstCarEntry.tab_height; + + // For each train + for (int32_t i = 0; i < ride->NumTrains; i++) + { + VehicleDrawInfo trainCarImages[OpenRCT2::Limits::MaxCarsPerTrain]; + VehicleDrawInfo* nextSpriteToDraw = trainCarImages; + int32_t x = startX; + int32_t y = startY; + + // For each car in train + static_assert(std::numeric_limitsnum_cars_per_train)>::max() <= std::size(trainCarImages)); + for (int32_t j = 0; j < ride->num_cars_per_train; j++) + { + carIndex = (isReversed) ? (ride->num_cars_per_train - 1) - j : j; + + const auto& carEntry = rideEntry->Cars[RideEntryGetVehicleAtPosition( + ride->subtype, ride->num_cars_per_train, carIndex)]; + x += carEntry.spacing / 17432; + y -= (carEntry.spacing / 2) / 17432; + + // Get colour of vehicle + int32_t vehicleColourIndex = 0; + switch (ride->colour_scheme_type & 3) + { + case VEHICLE_COLOUR_SCHEME_SAME: + vehicleColourIndex = 0; + break; + case VEHICLE_COLOUR_SCHEME_PER_TRAIN: + vehicleColourIndex = i; + break; + case VEHICLE_COLOUR_SCHEME_PER_VEHICLE: + vehicleColourIndex = carIndex; + break; + } + VehicleColour vehicleColour = RideGetVehicleColour(*ride, vehicleColourIndex); + + ImageIndex imageIndex = carEntry.SpriteByYaw( + OpenRCT2::Entity::Yaw::BaseRotation / 2, SpriteGroupType::SlopeFlat); + if (isReversed) + { + auto baseRotation = carEntry.NumRotationSprites(SpriteGroupType::SlopeFlat); + imageIndex = carEntry.SpriteByYaw( + (imageIndex + (baseRotation / 2)) & (baseRotation - 1), SpriteGroupType::SlopeFlat); + } + + imageIndex &= carEntry.TabRotationMask; + imageIndex *= carEntry.base_num_frames; + imageIndex += carEntry.base_image_id; + + auto imageId = ImageId(imageIndex, vehicleColour.Body, vehicleColour.Trim, vehicleColour.Tertiary); + + nextSpriteToDraw->x = x; + nextSpriteToDraw->y = y; + nextSpriteToDraw->imageId = imageId; + nextSpriteToDraw++; + + x += carEntry.spacing / 17432; + y -= (carEntry.spacing / 2) / 17432; + } + + if (ride->type == RIDE_TYPE_REVERSER_ROLLER_COASTER) + { + VehicleDrawInfo tmp = *(nextSpriteToDraw - 1); + *(nextSpriteToDraw - 1) = *(nextSpriteToDraw - 2); + *(nextSpriteToDraw - 2) = tmp; + } + + VehicleDrawInfo* current = nextSpriteToDraw; + while (--current >= trainCarImages) + GfxDrawSprite(dpi, current->imageId, { current->x, current->y }); + + startX += 36; + } + } + +#pragma endregion + +#pragma region Operating + + void ModeTweakIncrease() + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; + uint8_t maxValue = operatingSettings.MaxValue; + uint8_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; + + if (gCheatsUnlockOperatingLimits) + { + maxValue = OpenRCT2::Limits::CheatsMaxOperatingLimit; + } + + uint8_t increment = ride->mode == RideMode::Dodgems ? 10 : 1; + + SetOperatingSetting( + rideId, RideSetSetting::Operation, std::clamp(ride->operation_option + increment, minValue, maxValue)); + } + + void ModeTweakDecrease() + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; + uint8_t maxValue = operatingSettings.MaxValue; + uint8_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; + if (gCheatsUnlockOperatingLimits) + { + maxValue = OpenRCT2::Limits::CheatsMaxOperatingLimit; + } + + uint8_t decrement = ride->mode == RideMode::Dodgems ? 10 : 1; + + SetOperatingSetting( + rideId, RideSetSetting::Operation, std::clamp(ride->operation_option - decrement, minValue, maxValue)); + } + + void ModeDropdown(Widget* widget) + { + Widget* dropdownWidget; + + dropdownWidget = widget - 1; + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto availableModes = ride->GetAvailableModes(); + + // Create dropdown list + auto numAvailableModes = 0; + auto checkedIndex = -1; + for (auto i = 0; i < static_cast(RideMode::Count); i++) + { + if (availableModes & (1uLL << i)) + { + gDropdownItems[numAvailableModes].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[numAvailableModes].Args = RideModeNames[i]; + + if (ride->mode == static_cast(i)) + checkedIndex = numAvailableModes; + + numAvailableModes++; + } + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, colours[1], + 0, Dropdown::Flag::StayOpen, numAvailableModes, widget->right - dropdownWidget->left); + + if (checkedIndex != -1) + { + Dropdown::SetChecked(checkedIndex, true); + } + } + + void LoadDropdown(Widget* widget) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto dropdownWidget = widget - 1; + for (auto i = 0; i < 5; i++) + { + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = VehicleLoadNames[i]; + } + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, colours[1], + 0, Dropdown::Flag::StayOpen, 5, widget->right - dropdownWidget->left); + + Dropdown::SetChecked(ride->depart_flags & RIDE_DEPART_WAIT_FOR_LOAD_MASK, true); + } + + void OperatingOnMouseUp(WidgetIndex widgetIndex) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + case WIDX_LOAD_CHECKBOX: + SetOperatingSetting(rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_WAIT_FOR_LOAD); + break; + case WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX: + SetOperatingSetting( + rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_LEAVE_WHEN_ANOTHER_ARRIVES); + break; + case WIDX_MINIMUM_LENGTH_CHECKBOX: + SetOperatingSetting( + rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_WAIT_FOR_MINIMUM_LENGTH); + break; + case WIDX_MAXIMUM_LENGTH_CHECKBOX: + SetOperatingSetting( + rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_WAIT_FOR_MAXIMUM_LENGTH); + break; + case WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX: + SetOperatingSetting( + rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_SYNCHRONISE_WITH_ADJACENT_STATIONS); + break; + } + } + + void OperatingResize() + { + WindowSetResize(*this, 316, 186, 316, 186); + } + + void OperatingOnMouseDown(WidgetIndex widgetIndex) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + uint8_t upperBound, lowerBound; + switch (widgetIndex) + { + case WIDX_MODE_TWEAK: + OperatingTweakTextInput(*ride); + break; + case WIDX_MODE_TWEAK_INCREASE: + ModeTweakIncrease(); + break; + case WIDX_MODE_TWEAK_DECREASE: + ModeTweakDecrease(); + break; + case WIDX_LIFT_HILL_SPEED_INCREASE: + upperBound = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit + : ride->GetRideTypeDescriptor().LiftData.maximum_speed; + lowerBound = gCheatsUnlockOperatingLimits ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; + SetOperatingSetting( + rideId, RideSetSetting::LiftHillSpeed, + std::clamp(ride->lift_hill_speed + 1, lowerBound, upperBound)); + break; + case WIDX_LIFT_HILL_SPEED_DECREASE: + upperBound = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit + : ride->GetRideTypeDescriptor().LiftData.maximum_speed; + lowerBound = gCheatsUnlockOperatingLimits ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; + SetOperatingSetting( + rideId, RideSetSetting::LiftHillSpeed, + std::clamp(ride->lift_hill_speed - 1, lowerBound, upperBound)); + break; + case WIDX_MINIMUM_LENGTH: + OperatingLengthWindow(WIDX_MINIMUM_LENGTH); + break; + case WIDX_MAXIMUM_LENGTH: + OperatingLengthWindow(WIDX_MAXIMUM_LENGTH); + break; + case WIDX_MINIMUM_LENGTH_INCREASE: + upperBound = OpenRCT2::Limits::MaxWaitingTime; + lowerBound = 0; + SetOperatingSetting( + rideId, RideSetSetting::MinWaitingTime, + std::clamp(ride->min_waiting_time + 1, lowerBound, upperBound)); + break; + case WIDX_MINIMUM_LENGTH_DECREASE: + upperBound = OpenRCT2::Limits::MaxWaitingTime; + lowerBound = 0; + SetOperatingSetting( + rideId, RideSetSetting::MinWaitingTime, + std::clamp(ride->min_waiting_time - 1, lowerBound, upperBound)); + break; + case WIDX_MAXIMUM_LENGTH_INCREASE: + upperBound = OpenRCT2::Limits::MaxWaitingTime; + lowerBound = 0; + SetOperatingSetting( + rideId, RideSetSetting::MaxWaitingTime, + std::clamp(ride->max_waiting_time + 1, lowerBound, upperBound)); + break; + case WIDX_MAXIMUM_LENGTH_DECREASE: + upperBound = OpenRCT2::Limits::MaxWaitingTime; + lowerBound = 0; + SetOperatingSetting( + rideId, RideSetSetting::MaxWaitingTime, + std::clamp(ride->max_waiting_time - 1, lowerBound, upperBound)); + break; + case WIDX_MODE_DROPDOWN: + ModeDropdown(&widgets[widgetIndex]); + break; + case WIDX_LOAD_DROPDOWN: + LoadDropdown(&widgets[widgetIndex]); + break; + case WIDX_OPERATE_NUMBER_OF_CIRCUITS_INCREASE: + upperBound = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit + : OpenRCT2::Limits::MaxCircuitsPerRide; + lowerBound = 1; + SetOperatingSetting( + rideId, RideSetSetting::NumCircuits, std::clamp(ride->num_circuits + 1, lowerBound, upperBound)); + break; + case WIDX_OPERATE_NUMBER_OF_CIRCUITS_DECREASE: + upperBound = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit + : OpenRCT2::Limits::MaxCircuitsPerRide; + lowerBound = 1; + SetOperatingSetting( + rideId, RideSetSetting::NumCircuits, std::clamp(ride->num_circuits - 1, lowerBound, upperBound)); + break; + } + } + + void OperatingLengthWindow(WidgetIndex widgetIndex) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + uint8_t upperBound = OpenRCT2::Limits::MaxWaitingTime; + uint8_t lowerBound = 0; + Formatter ft; + ft.Add(lowerBound); + ft.Add(upperBound); + auto title = (widgetIndex == WIDX_MINIMUM_LENGTH) ? STR_MINIMUM_WAITING_TIME : STR_MAXIMUM_WAITING_TIME; + auto currentValue = (widgetIndex == WIDX_MINIMUM_LENGTH) ? ride->min_waiting_time : ride->max_waiting_time; + char buffer[5]{}; + snprintf(buffer, std::size(buffer), "%u", currentValue); + WindowTextInputRawOpen(this, widgetIndex, title, STR_ENTER_VALUE, ft, buffer, 4); + } + + void OperatingTweakTextInput(const Ride& ride) + { + switch (ride.mode) + { + case RideMode::PoweredLaunchPasstrough: + case RideMode::PoweredLaunch: + case RideMode::UpwardLaunch: + case RideMode::PoweredLaunchBlockSectioned: + case RideMode::StationToStation: + case RideMode::Dodgems: + return; + default: + break; + } + + const auto& operatingSettings = ride.GetRideTypeDescriptor().OperatingSettings; + int16_t maxValue = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit + : operatingSettings.MaxValue; + int16_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; + + const auto& title = widgets[WIDX_MODE_TWEAK_LABEL].text; + Formatter ft; + ft.Add(minValue * operatingSettings.OperatingSettingMultiplier); + ft.Add(maxValue * operatingSettings.OperatingSettingMultiplier); + + uint16_t currentValue = static_cast(ride.operation_option) * operatingSettings.OperatingSettingMultiplier; + char buffer[6]{}; + snprintf(buffer, std::size(buffer), "%u", currentValue); + + WindowTextInputRawOpen(this, WIDX_MODE_TWEAK, title, STR_ENTER_VALUE, ft, buffer, 4); + } + + void OperatingOnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) + { + if (dropdownIndex == -1) + return; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + switch (widgetIndex) + { + case WIDX_MODE_DROPDOWN: + { + RideMode rideMode = RideMode::NullMode; + auto availableModes = ride->GetAvailableModes(); + auto modeInDropdownIndex = -1; + for (RideMode rideModeIndex = RideMode::Normal; rideModeIndex < RideMode::Count; rideModeIndex++) + { + if (availableModes & EnumToFlag(rideModeIndex)) + { + modeInDropdownIndex++; + if (modeInDropdownIndex == dropdownIndex) + { + rideMode = rideModeIndex; + break; + } + } + } + if (rideMode != RideMode::NullMode) + SetOperatingSetting(rideId, RideSetSetting::Mode, static_cast(rideMode)); + break; + } + case WIDX_LOAD_DROPDOWN: + SetOperatingSetting( + rideId, RideSetSetting::Departure, (ride->depart_flags & ~RIDE_DEPART_WAIT_FOR_LOAD_MASK) | dropdownIndex); + break; + } + } + + void OperatingUpdate() + { + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_3); + + auto ride = GetRide(rideId); + if (ride != nullptr && ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_OPERATING) + { + ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_OPERATING; + Invalidate(); + } + } + + void OperatingOnTextInput(WidgetIndex widgetIndex, std::string_view text) + { + if (text.empty()) + return; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + if (widgetIndex == WIDX_MODE_TWEAK) + { + const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; + uint32_t maxValue = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit + : operatingSettings.MaxValue; + uint32_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; + auto multiplier = ride->GetRideTypeDescriptor().OperatingSettings.OperatingSettingMultiplier; + + try + { + uint32_t origSize = std::stol(std::string(text)) / multiplier; + uint8_t size = static_cast(std::clamp(origSize, minValue, maxValue)); + SetOperatingSetting(ride->id, RideSetSetting::Operation, size); + } + catch (const std::logic_error&) + { + // std::stol can throw std::out_of_range or std::invalid_argument + } + } + else if (widgetIndex == WIDX_MINIMUM_LENGTH || widgetIndex == WIDX_MAXIMUM_LENGTH) + { + try + { + auto rideSetSetting = widgetIndex == WIDX_MINIMUM_LENGTH ? RideSetSetting::MinWaitingTime + : RideSetSetting::MaxWaitingTime; + + uint16_t upperBound = OpenRCT2::Limits::MaxWaitingTime; + uint16_t lowerBound = 0; + uint16_t size = std::stol(std::string(text)); + size = std::clamp(size, lowerBound, upperBound); + SetOperatingSetting(ride->id, rideSetSetting, size); + } + catch (const std::logic_error&) + { + // std::stol can throw std::out_of_range or std::invalid_argument + } + } + } + + void OperatingOnPrepareDraw() + { + StringId format, caption, tooltip; + + auto* newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto ft = Formatter::Common(); + ride->FormatNameTo(ft); + + // Widget setup + pressed_widgets &= ~( + (1uLL << WIDX_LOAD_CHECKBOX) | (1uLL << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX) + | (1uLL << WIDX_MINIMUM_LENGTH_CHECKBOX) | (1uLL << WIDX_MAXIMUM_LENGTH_CHECKBOX) + | (1uLL << WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX)); + + // Sometimes, only one of the alternatives support lift hill pieces. Make sure to check both. + bool hasAlternativeType = ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE); + if (ride->GetRideTypeDescriptor().SupportsTrackPiece(TRACK_LIFT_HILL) + || (hasAlternativeType + && GetRideTypeDescriptor(ride->GetRideTypeDescriptor().AlternateType).SupportsTrackPiece(TRACK_LIFT_HILL))) + { + widgets[WIDX_LIFT_HILL_SPEED_LABEL].type = WindowWidgetType::Label; + widgets[WIDX_LIFT_HILL_SPEED].type = WindowWidgetType::Spinner; + widgets[WIDX_LIFT_HILL_SPEED_INCREASE].type = WindowWidgetType::Button; + widgets[WIDX_LIFT_HILL_SPEED_DECREASE].type = WindowWidgetType::Button; + ft.Rewind(); + ft.Increment(20); + ft.Add(ride->lift_hill_speed); + } + else + { + widgets[WIDX_LIFT_HILL_SPEED_LABEL].type = WindowWidgetType::Empty; + widgets[WIDX_LIFT_HILL_SPEED].type = WindowWidgetType::Empty; + widgets[WIDX_LIFT_HILL_SPEED_INCREASE].type = WindowWidgetType::Empty; + widgets[WIDX_LIFT_HILL_SPEED_DECREASE].type = WindowWidgetType::Empty; + } + + // Number of circuits + if (ride->CanHaveMultipleCircuits()) + { + widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_LABEL].type = WindowWidgetType::Label; + widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS].type = WindowWidgetType::Spinner; + widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_INCREASE].type = WindowWidgetType::Button; + widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_DECREASE].type = WindowWidgetType::Button; + ft.Rewind(); + ft.Increment(22); + ft.Add(ride->num_circuits); + } + else + { + widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_LABEL].type = WindowWidgetType::Empty; + widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS].type = WindowWidgetType::Empty; + widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_INCREASE].type = WindowWidgetType::Empty; + widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_DECREASE].type = WindowWidgetType::Empty; + } + + // Leave if another vehicle arrives at station + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION) + && ride->NumTrains > 1 && !ride->IsBlockSectioned()) + { + widgets[WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX].type = WindowWidgetType::Checkbox; + widgets[WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX].tooltip = STR_LEAVE_IF_ANOTHER_VEHICLE_ARRIVES_TIP; + widgets[WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX].text = ride->GetRideTypeDescriptor().NameConvention.vehicle + == RideComponentType::Boat + ? STR_LEAVE_IF_ANOTHER_BOAT_ARRIVES + : STR_LEAVE_IF_ANOTHER_TRAIN_ARRIVES; + } + else + { + widgets[WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX].type = WindowWidgetType::Empty; + } + + // Synchronise with adjacent stations + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS)) + { + widgets[WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX].type = WindowWidgetType::Checkbox; + widgets[WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX].text = STR_SYNCHRONISE_WITH_ADJACENT_STATIONS; + widgets[WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX].tooltip = STR_SYNCHRONISE_WITH_ADJACENT_STATIONS_TIP; + } + else + { + widgets[WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX].type = WindowWidgetType::Empty; + } + + // Mode + widgets[WIDX_MODE].text = RideModeNames[static_cast(ride->mode)]; + + // Waiting + widgets[WIDX_LOAD].text = VehicleLoadNames[(ride->depart_flags & RIDE_DEPART_WAIT_FOR_LOAD_MASK)]; + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS)) + { + widgets[WIDX_LOAD_CHECKBOX].type = WindowWidgetType::Checkbox; + widgets[WIDX_LOAD].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_LOAD_DROPDOWN].type = WindowWidgetType::Button; + + widgets[WIDX_MINIMUM_LENGTH_CHECKBOX].type = WindowWidgetType::Checkbox; + widgets[WIDX_MINIMUM_LENGTH].type = WindowWidgetType::Spinner; + widgets[WIDX_MINIMUM_LENGTH_INCREASE].type = WindowWidgetType::Button; + widgets[WIDX_MINIMUM_LENGTH_DECREASE].type = WindowWidgetType::Button; + + widgets[WIDX_MAXIMUM_LENGTH_CHECKBOX].type = WindowWidgetType::Checkbox; + widgets[WIDX_MAXIMUM_LENGTH].type = WindowWidgetType::Spinner; + widgets[WIDX_MAXIMUM_LENGTH_INCREASE].type = WindowWidgetType::Button; + widgets[WIDX_MAXIMUM_LENGTH_DECREASE].type = WindowWidgetType::Button; + + ft.Rewind(); + ft.Increment(10); + ft.Add(STR_FORMAT_SECONDS); + ft.Add(ride->min_waiting_time); + ft.Add(STR_FORMAT_SECONDS); + ft.Add(ride->max_waiting_time); + + if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_LOAD) + pressed_widgets |= (1uLL << WIDX_LOAD_CHECKBOX); + } + else + { + widgets[WIDX_LOAD_CHECKBOX].type = WindowWidgetType::Empty; + widgets[WIDX_LOAD].type = WindowWidgetType::Empty; + widgets[WIDX_LOAD_DROPDOWN].type = WindowWidgetType::Empty; + + widgets[WIDX_MINIMUM_LENGTH_CHECKBOX].type = WindowWidgetType::Empty; + widgets[WIDX_MINIMUM_LENGTH].type = WindowWidgetType::Empty; + widgets[WIDX_MINIMUM_LENGTH_INCREASE].type = WindowWidgetType::Empty; + widgets[WIDX_MINIMUM_LENGTH_DECREASE].type = WindowWidgetType::Empty; + + widgets[WIDX_MAXIMUM_LENGTH_CHECKBOX].type = WindowWidgetType::Empty; + widgets[WIDX_MAXIMUM_LENGTH].type = WindowWidgetType::Empty; + widgets[WIDX_MAXIMUM_LENGTH_INCREASE].type = WindowWidgetType::Empty; + widgets[WIDX_MAXIMUM_LENGTH_DECREASE].type = WindowWidgetType::Empty; + } + + if (ride->depart_flags & RIDE_DEPART_LEAVE_WHEN_ANOTHER_ARRIVES) + pressed_widgets |= (1uLL << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX); + if (ride->depart_flags & RIDE_DEPART_SYNCHRONISE_WITH_ADJACENT_STATIONS) + pressed_widgets |= (1uLL << WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX); + if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_MINIMUM_LENGTH) + pressed_widgets |= (1uLL << WIDX_MINIMUM_LENGTH_CHECKBOX); + if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_MAXIMUM_LENGTH) + pressed_widgets |= (1uLL << WIDX_MAXIMUM_LENGTH_CHECKBOX); + + // Mode specific functionality + auto multiplier = ride->GetRideTypeDescriptor().OperatingSettings.OperatingSettingMultiplier; + ft.Rewind(); + ft.Increment(18); + ft.Add(static_cast(ride->operation_option) * multiplier); + switch (ride->mode) + { + case RideMode::PoweredLaunchPasstrough: + case RideMode::PoweredLaunch: + case RideMode::UpwardLaunch: + case RideMode::PoweredLaunchBlockSectioned: + ft.Rewind(); + ft.Increment(18); + ft.Add((ride->launch_speed * 9) / 4); + format = STR_RIDE_MODE_SPEED_VALUE; + caption = STR_LAUNCH_SPEED; + tooltip = STR_LAUNCH_SPEED_TIP; + break; + case RideMode::StationToStation: + ft.Rewind(); + ft.Increment(18); + ft.Add((ride->speed * 9) / 4); + format = STR_RIDE_MODE_SPEED_VALUE; + caption = STR_SPEED; + tooltip = STR_SPEED_TIP; + break; + case RideMode::Race: + ft.Rewind(); + ft.Increment(18); + ft.Add(ride->NumLaps); + format = STR_NUMBER_OF_LAPS_VALUE; + caption = STR_NUMBER_OF_LAPS; + tooltip = STR_NUMBER_OF_LAPS_TIP; + break; + case RideMode::Dodgems: + format = STR_RIDE_MODE_TIME_LIMIT_VALUE; + caption = STR_TIME_LIMIT; + tooltip = STR_TIME_LIMIT_TIP; + break; + case RideMode::Swing: + format = STR_RIDE_MODE_NUMBER_OF_SWINGS_VALUE; + caption = STR_NUMBER_OF_SWINGS; + tooltip = STR_NUMBER_OF_SWINGS_TIP; + break; + case RideMode::Rotation: + case RideMode::ForwardRotation: + case RideMode::BackwardRotation: + format = STR_NUMBER_OF_ROTATIONS_VALUE; + caption = STR_NUMBER_OF_ROTATIONS; + tooltip = STR_NUMBER_OF_ROTATIONS_TIP; + break; + default: + format = STR_MAX_PEOPLE_ON_RIDE_VALUE; + caption = STR_MAX_PEOPLE_ON_RIDE; + tooltip = STR_MAX_PEOPLE_ON_RIDE_TIP; + if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) + format = 0; + break; + } + + if (format != 0) + { + widgets[WIDX_MODE_TWEAK_LABEL].type = WindowWidgetType::Label; + widgets[WIDX_MODE_TWEAK_LABEL].text = caption; + widgets[WIDX_MODE_TWEAK_LABEL].tooltip = tooltip; + widgets[WIDX_MODE_TWEAK].type = WindowWidgetType::Spinner; + widgets[WIDX_MODE_TWEAK].text = format; + widgets[WIDX_MODE_TWEAK_INCREASE].type = WindowWidgetType::Button; + widgets[WIDX_MODE_TWEAK_DECREASE].type = WindowWidgetType::Button; + pressed_widgets &= ~(1uLL << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX); + } + else + { + widgets[WIDX_MODE_TWEAK_LABEL].type = WindowWidgetType::Empty; + widgets[WIDX_MODE_TWEAK].type = WindowWidgetType::Empty; + widgets[WIDX_MODE_TWEAK_INCREASE].type = WindowWidgetType::Empty; + widgets[WIDX_MODE_TWEAK_DECREASE].type = WindowWidgetType::Empty; + } + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + } + + void OperatingOnDraw(DrawPixelInfo& dpi) + { + DrawWidgets(dpi); + DrawTabImages(dpi); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + // Horizontal rule between mode settings and depart settings + GfxFillRectInset( + dpi, + { windowPos + ScreenCoordsXY{ widgets[WIDX_PAGE_BACKGROUND].left + 4, 103 }, + windowPos + ScreenCoordsXY{ widgets[WIDX_PAGE_BACKGROUND].right - 5, 104 } }, + colours[1], INSET_RECT_FLAG_BORDER_INSET); + + // Number of block sections + if (ride->IsBlockSectioned()) + { + auto ft = Formatter(); + ft.Add(ride->num_block_brakes + ride->num_stations); + DrawTextBasic( + dpi, windowPos + ScreenCoordsXY{ 21, ride->mode == RideMode::PoweredLaunchBlockSectioned ? 89 : 61 }, + STR_BLOCK_SECTIONS, ft, COLOUR_BLACK); + } + } + +#pragma endregion + +#pragma region Maintenance + + void LocateMechanic() + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + // First check if there is a mechanic assigned + Peep* mechanic = RideGetAssignedMechanic(*ride); + + // Otherwise find the closest mechanic + if (mechanic == nullptr) + mechanic = RideFindClosestMechanic(*ride, 1); + + if (mechanic == nullptr) + ContextShowError(STR_UNABLE_TO_LOCATE_MECHANIC, STR_NONE, {}); + else + { + auto intent = Intent(WindowClass::Peep); + intent.PutExtra(INTENT_EXTRA_PEEP, mechanic); + ContextOpenIntent(&intent); + } + } + + void MaintenanceDrawBar(DrawPixelInfo& dpi, const ScreenCoordsXY& coords, int32_t value, int32_t colour) const + { + GfxFillRectInset(dpi, { coords, coords + ScreenCoordsXY{ 149, 8 } }, colours[1], INSET_RECT_F_30); + if (colour & BAR_BLINK) + { + colour &= ~BAR_BLINK; + if (GameIsNotPaused() && (gCurrentRealTimeTicks & 8)) + return; + } + + value = ((186 * ((value * 2) & 0xFF)) >> 8) & 0xFF; + if (value > 2) + { + GfxFillRectInset(dpi, { coords + ScreenCoordsXY{ 2, 1 }, coords + ScreenCoordsXY{ value + 1, 7 } }, colour, 0); + } + } + + void MaintenanceOnMouseUp(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + case WIDX_LOCATE_MECHANIC: + LocateMechanic(); + break; + case WIDX_REFURBISH_RIDE: + ContextOpenDetailWindow(WD_REFURBISH_RIDE, number); + break; + } + } + + void MaintenanceResize() + { + WindowSetResize(*this, 316, 135, 316, 135); + } + + void MaintenanceOnMouseDown(WidgetIndex widgetIndex) + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return; + + Widget* dropdownWidget = &widgets[widgetIndex]; + int32_t j, numItems; + + switch (widgetIndex) + { + case WIDX_INSPECTION_INTERVAL_DROPDOWN: + dropdownWidget--; + for (int32_t i = 0; i < 7; i++) + { + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = RideInspectionIntervalNames[i]; + } + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, + colours[1], 0, Dropdown::Flag::StayOpen, 7, widgets[widgetIndex].right - dropdownWidget->left); + + Dropdown::SetChecked(ride->inspection_interval, true); + break; + + case WIDX_FORCE_BREAKDOWN: + numItems = 1; + for (j = 0; j < RCT2::ObjectLimits::MaxRideTypesPerRideEntry; j++) + { + if (rideEntry->ride_type[j] != RIDE_TYPE_NULL) + break; + } + gDropdownItems[0].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[0].Args = STR_DEBUG_FIX_RIDE; + for (int32_t i = 0; i < 8; i++) + { + assert(j < static_cast(std::size(rideEntry->ride_type))); + if (GetRideTypeDescriptor(rideEntry->ride_type[j]).AvailableBreakdowns & static_cast(1 << i)) + { + if (i == BREAKDOWN_BRAKES_FAILURE && ride->IsBlockSectioned()) + { + if (ride->NumTrains != 1) + continue; + } + gDropdownItems[numItems].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[numItems].Args = RideBreakdownReasonNames[i]; + numItems++; + } + } + if (numItems == 1) + { + ContextShowError(STR_DEBUG_NO_BREAKDOWNS_AVAILABLE, STR_NONE, {}); + } + else + { + WindowDropdownShowText( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, + colours[1], Dropdown::Flag::StayOpen, numItems); + + numItems = 1; + int32_t breakdownReason = ride->breakdown_reason_pending; + if (breakdownReason != BREAKDOWN_NONE && (ride->lifecycle_flags & RIDE_LIFECYCLE_BREAKDOWN_PENDING)) + { + for (int32_t i = 0; i < 8; i++) + { + if (GetRideTypeDescriptor(rideEntry->ride_type[j]).AvailableBreakdowns + & static_cast(1 << i)) + { + if (i == BREAKDOWN_BRAKES_FAILURE && ride->IsBlockSectioned()) + { + if (ride->NumTrains != 1) + continue; + } + if (i == breakdownReason) + { + Dropdown::SetChecked(numItems, true); + break; + } + gDropdownItems[numItems].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[numItems].Args = RideBreakdownReasonNames[i]; + numItems++; + } + } + } + + if ((ride->lifecycle_flags & RIDE_LIFECYCLE_BREAKDOWN_PENDING) == 0) + { + Dropdown::SetDisabled(0, true); + } + } + break; + } + } + + void MaintenanceOnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) + { + if (dropdownIndex == -1) + return; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return; + + switch (widgetIndex) + { + case WIDX_INSPECTION_INTERVAL_DROPDOWN: + SetOperatingSetting(rideId, RideSetSetting::InspectionInterval, dropdownIndex); + break; + + case WIDX_FORCE_BREAKDOWN: + if (dropdownIndex == 0) + { + Vehicle* vehicle; + switch (ride->breakdown_reason_pending) + { + case BREAKDOWN_SAFETY_CUT_OUT: + if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK)) + break; + for (int32_t i = 0; i < ride->NumTrains; ++i) + { + for (vehicle = GetEntity(ride->vehicles[i]); vehicle != nullptr; + vehicle = GetEntity(vehicle->next_vehicle_on_train)) + { + vehicle->ClearFlag( + VehicleFlags::CarIsBroken | VehicleFlags::StoppedOnLift | VehicleFlags::TrainIsBroken); + } + } + break; + case BREAKDOWN_RESTRAINTS_STUCK_CLOSED: + case BREAKDOWN_RESTRAINTS_STUCK_OPEN: + case BREAKDOWN_DOORS_STUCK_CLOSED: + case BREAKDOWN_DOORS_STUCK_OPEN: + vehicle = GetEntity(ride->vehicles[ride->broken_vehicle]); + if (vehicle != nullptr) + { + vehicle->ClearFlag(VehicleFlags::CarIsBroken); + } + break; + case BREAKDOWN_VEHICLE_MALFUNCTION: + vehicle = GetEntity(ride->vehicles[ride->broken_vehicle]); + if (vehicle != nullptr) + { + vehicle->ClearFlag(VehicleFlags::TrainIsBroken); + } + break; + } + ride->lifecycle_flags &= ~(RIDE_LIFECYCLE_BREAKDOWN_PENDING | RIDE_LIFECYCLE_BROKEN_DOWN); + WindowInvalidateByNumber(WindowClass::Ride, number); + break; + } + if (ride->lifecycle_flags + & (RIDE_LIFECYCLE_BREAKDOWN_PENDING | RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED)) + { + ContextShowError(STR_DEBUG_CANT_FORCE_BREAKDOWN, STR_DEBUG_RIDE_ALREADY_BROKEN, {}); + } + else if (ride->status == RideStatus::Closed) + { + ContextShowError(STR_DEBUG_CANT_FORCE_BREAKDOWN, STR_DEBUG_RIDE_IS_CLOSED, {}); + } + else + { + int32_t j; + for (j = 0; j < RCT2::ObjectLimits::MaxRideTypesPerRideEntry; j++) + { + if (rideEntry->ride_type[j] != RIDE_TYPE_NULL) + break; + } + int32_t i; + int32_t numItems = 1; + for (i = 0; i < BREAKDOWN_COUNT; i++) + { + assert(j < static_cast(std::size(rideEntry->ride_type))); + if (GetRideTypeDescriptor(rideEntry->ride_type[j]).AvailableBreakdowns & static_cast(1 << i)) + { + if (i == BREAKDOWN_BRAKES_FAILURE && ride->IsBlockSectioned()) + { + if (ride->NumTrains != 1) + continue; + } + if (numItems == dropdownIndex) + break; + numItems++; + } + } + RidePrepareBreakdown(*ride, i); + } + break; + } + } + + void MaintenanceUpdate() + { + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_4); + + auto ride = GetRide(rideId); + if (ride != nullptr && ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_MAINTENANCE) + { + ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_MAINTENANCE; + Invalidate(); + } + } + + void MaintenanceOnPrepareDraw() + { + auto newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto ft = Formatter::Common(); + ride->FormatNameTo(ft); + + widgets[WIDX_INSPECTION_INTERVAL].text = RideInspectionIntervalNames[ride->inspection_interval]; + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + + if (gConfigGeneral.DebuggingTools && NetworkGetMode() == NETWORK_MODE_NONE) + { + widgets[WIDX_FORCE_BREAKDOWN].type = WindowWidgetType::FlatBtn; + } + else + { + widgets[WIDX_FORCE_BREAKDOWN].type = WindowWidgetType::Empty; + } + + if (ride->GetRideTypeDescriptor().AvailableBreakdowns == 0 + || !(ride->lifecycle_flags & RIDE_LIFECYCLE_EVER_BEEN_OPENED)) + { + disabled_widgets |= (1uLL << WIDX_REFURBISH_RIDE); + widgets[WIDX_REFURBISH_RIDE].tooltip = STR_CANT_REFURBISH_NOT_NEEDED; + } + else + { + disabled_widgets &= ~(1uLL << WIDX_REFURBISH_RIDE); + widgets[WIDX_REFURBISH_RIDE].tooltip = STR_REFURBISH_RIDE_TIP; + } + } + + void MaintenanceOnDraw(DrawPixelInfo& dpi) + { + DrawWidgets(dpi); + DrawTabImages(dpi); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + // Locate mechanic button image + Widget* widget = &widgets[WIDX_LOCATE_MECHANIC]; + auto screenCoords = windowPos + ScreenCoordsXY{ widget->left, widget->top }; + auto image = ImageId(SPR_MECHANIC, COLOUR_BLACK, gStaffMechanicColour); + GfxDrawSprite(dpi, image, screenCoords); + + // Inspection label + widget = &widgets[WIDX_INSPECTION_INTERVAL]; + screenCoords = windowPos + ScreenCoordsXY{ 4, widget->top + 1 }; + DrawTextBasic(dpi, screenCoords, STR_INSPECTION); + + // Reliability + widget = &widgets[WIDX_PAGE_BACKGROUND]; + screenCoords = windowPos + ScreenCoordsXY{ widget->left + 4, widget->top + 4 }; + + uint16_t reliability = ride->reliability_percentage; + auto ft = Formatter(); + ft.Add(reliability); + DrawTextBasic(dpi, screenCoords, STR_RELIABILITY_LABEL_1757, ft); + MaintenanceDrawBar( + dpi, screenCoords + ScreenCoordsXY{ 103, 0 }, std::max(10, reliability), COLOUR_BRIGHT_GREEN); + screenCoords.y += 11; + + uint16_t downTime = ride->downtime; + ft = Formatter(); + ft.Add(downTime); + DrawTextBasic(dpi, screenCoords, STR_DOWN_TIME_LABEL_1889, ft); + MaintenanceDrawBar(dpi, screenCoords + ScreenCoordsXY{ 103, 0 }, downTime, COLOUR_BRIGHT_RED); + screenCoords.y += 26; + + // Last inspection + StringId stringId; + if (ride->last_inspection <= 1) + stringId = STR_TIME_SINCE_LAST_INSPECTION_MINUTE; + else if (ride->last_inspection <= 240) + stringId = STR_TIME_SINCE_LAST_INSPECTION_MINUTES; + else + stringId = STR_TIME_SINCE_LAST_INSPECTION_MORE_THAN_4_HOURS; + + ft = Formatter(); + ft.Add(ride->last_inspection); + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += 12; + + // Last / current breakdown + if (ride->breakdown_reason == BREAKDOWN_NONE) + return; + + stringId = (ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) ? STR_CURRENT_BREAKDOWN : STR_LAST_BREAKDOWN; + ft = Formatter(); + ft.Add(RideBreakdownReasonNames[ride->breakdown_reason]); + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += 12; + + // Mechanic status + if (ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) + { + switch (ride->mechanic_status) + { + case RIDE_MECHANIC_STATUS_CALLING: + { + stringId = STR_NO_MECHANICS_ARE_HIRED_MESSAGE; + + for (auto peep : EntityList()) + { + if (peep->IsMechanic()) + { + stringId = STR_CALLING_MECHANIC; + break; + } + } + break; + } + case RIDE_MECHANIC_STATUS_HEADING: + stringId = STR_MEHCANIC_IS_HEADING_FOR_THE_RIDE; + break; + case RIDE_MECHANIC_STATUS_FIXING: + case RIDE_MECHANIC_STATUS_HAS_FIXED_STATION_BRAKES: + stringId = STR_MEHCANIC_IS_FIXING_THE_RIDE; + break; + default: + stringId = STR_EMPTY; + break; + } + + if (stringId != STR_EMPTY) + { + if (stringId == STR_CALLING_MECHANIC || stringId == STR_NO_MECHANICS_ARE_HIRED_MESSAGE) + { + DrawTextWrapped(dpi, screenCoords, 280, stringId, {}, { TextAlignment::LEFT }); + } + else + { + auto staff = GetEntity(ride->mechanic); + if (staff != nullptr && staff->IsMechanic()) + { + ft = Formatter(); + staff->FormatNameTo(ft); + DrawTextWrapped(dpi, screenCoords, 280, stringId, ft, { TextAlignment::LEFT }); + } + } + } + } + } + +#pragma endregion + +#pragma region Colour + + int32_t HasTrackColour(const Ride& ride, int32_t trackColour) + { + // Get station flags (shops don't have them) + auto stationObjFlags = 0; + if (!ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY)) + { + auto stationObj = ride.GetStationObject(); + if (stationObj != nullptr) + { + stationObjFlags = stationObj->Flags; + } + } + + switch (trackColour) + { + case 0: + return (stationObjFlags & STATION_OBJECT_FLAGS::HAS_PRIMARY_COLOUR) + || ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN); + case 1: + return (stationObjFlags & STATION_OBJECT_FLAGS::HAS_SECONDARY_COLOUR) + || ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL); + case 2: + return ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS); + default: + return 0; + } + } + + void SetTrackColourScheme(const ScreenCoordsXY& screenPos) + { + auto newColourScheme = static_cast(_rideColour); + auto info = GetMapCoordinatesFromPos(screenPos, EnumsToFlags(ViewportInteractionItem::Ride)); + + if (info.SpriteType != ViewportInteractionItem::Ride) + return; + if (info.Element->GetType() != TileElementType::Track) + return; + if (info.Element->AsTrack()->GetRideIndex() != rideId) + return; + if (info.Element->AsTrack()->GetColourScheme() == newColourScheme) + return; + + auto z = info.Element->GetBaseZ(); + auto direction = info.Element->GetDirection(); + auto gameAction = RideSetColourSchemeAction( + CoordsXYZD{ info.Loc, z, static_cast(direction) }, info.Element->AsTrack()->GetTrackType(), + newColourScheme); + GameActions::Execute(&gameAction); + } + + void ColourClose() + { + if (!(InputTestFlag(INPUT_FLAG_TOOL_ACTIVE))) + return; + + if (gCurrentToolWidget.window_classification != classification) + return; + + if (gCurrentToolWidget.window_number != number) + return; + + ToolCancel(); + } + + void ColourOnMouseUp(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + case WIDX_PAINT_INDIVIDUAL_AREA: + ToolSet(*this, WIDX_PAINT_INDIVIDUAL_AREA, Tool::PaintDown); + break; + case WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX: + auto ride = GetRide(rideId); + if (ride != nullptr) + { + const bool currentlyEnabled = ride->HasLifecycleFlag(RIDE_LIFECYCLE_RANDOM_SHOP_COLOURS); + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::SellingItemColourIsRandom, currentlyEnabled ? 0 : 1, 0); + GameActions::Execute(&rideSetAppearanceAction); + } + break; + } + } + + void ColourResize() + { + WindowSetResize(*this, 316, 207, 316, 207); + } + + void ColourOnMouseDown(WidgetIndex widgetIndex) + { + VehicleColour vehicleColour; + int32_t i, numItems; + StringId stringId; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return; + + auto colourSchemeIndex = _rideColour; + auto dropdownWidget = &widgets[widgetIndex] - 1; + + switch (widgetIndex) + { + case WIDX_TRACK_COLOUR_SCHEME_DROPDOWN: + for (i = 0; i < OpenRCT2::Limits::NumColourSchemes; i++) + { + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = ColourSchemeNames[i]; + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, + colours[1], 0, Dropdown::Flag::StayOpen, 4, widgets[widgetIndex].right - dropdownWidget->left); + + Dropdown::SetChecked(colourSchemeIndex, true); + break; + case WIDX_TRACK_MAIN_COLOUR: + WindowDropdownShowColour(this, &widgets[widgetIndex], colours[1], ride->track_colour[colourSchemeIndex].main); + break; + case WIDX_TRACK_ADDITIONAL_COLOUR: + WindowDropdownShowColour( + this, &widgets[widgetIndex], colours[1], ride->track_colour[colourSchemeIndex].additional); + break; + case WIDX_TRACK_SUPPORT_COLOUR: + WindowDropdownShowColour( + this, &widgets[widgetIndex], colours[1], ride->track_colour[colourSchemeIndex].supports); + break; + case WIDX_MAZE_STYLE_DROPDOWN: + for (i = 0; i < 4; i++) + { + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = MazeOptions[i].text; + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, + colours[1], 0, Dropdown::Flag::StayOpen, 4, widgets[widgetIndex].right - dropdownWidget->left); + + Dropdown::SetChecked(ride->track_colour[colourSchemeIndex].supports, true); + break; + case WIDX_ENTRANCE_STYLE_DROPDOWN: + { + auto ddIndex = 0; + auto& objManager = GetContext()->GetObjectManager(); + for (i = 0; i < MAX_STATION_OBJECTS; i++) + { + auto stationObj = static_cast(objManager.GetLoadedObject(ObjectType::Station, i)); + if (stationObj != nullptr) + { + gDropdownItems[ddIndex].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[ddIndex].Args = stationObj->NameStringId; + if (ride->entrance_style == i) + { + gDropdownItems[ddIndex].Format = STR_DROPDOWN_MENU_LABEL_SELECTED; + } + ddIndex++; + } + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, + colours[1], 0, Dropdown::Flag::StayOpen, ddIndex, widgets[widgetIndex].right - dropdownWidget->left); + break; + } + case WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN: + for (i = 0; i < 3; i++) + { + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = (GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle) + .singular + << 16) + | VehicleColourSchemeNames[i]; + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, + colours[1], 0, Dropdown::Flag::StayOpen, rideEntry->max_cars_in_train > 1 ? 3 : 2, + widgets[widgetIndex].right - dropdownWidget->left); + + Dropdown::SetChecked(ride->colour_scheme_type & 3, true); + break; + case WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN: + numItems = ride->NumTrains; + if ((ride->colour_scheme_type & 3) != VEHICLE_COLOUR_SCHEME_PER_TRAIN) + numItems = ride->num_cars_per_train; + + stringId = (ride->colour_scheme_type & 3) == VEHICLE_COLOUR_SCHEME_PER_TRAIN ? STR_RIDE_COLOUR_TRAIN_OPTION + : STR_RIDE_COLOUR_VEHICLE_OPTION; + for (i = 0; i < std::min(numItems, Dropdown::ItemsMaxSize); i++) + { + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = (static_cast(i + 1) << 32) + | ((GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).capitalised) << 16) + | stringId; + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, + colours[1], 0, Dropdown::Flag::StayOpen, numItems, widgets[widgetIndex].right - dropdownWidget->left); + + Dropdown::SetChecked(_vehicleIndex, true); + break; + case WIDX_VEHICLE_BODY_COLOUR: + vehicleColour = RideGetVehicleColour(*ride, _vehicleIndex); + WindowDropdownShowColour(this, &widgets[widgetIndex], colours[1], vehicleColour.Body); + break; + case WIDX_VEHICLE_TRIM_COLOUR: + vehicleColour = RideGetVehicleColour(*ride, _vehicleIndex); + WindowDropdownShowColour(this, &widgets[widgetIndex], colours[1], vehicleColour.Trim); + break; + case WIDX_VEHICLE_TERNARY_COLOUR: + vehicleColour = RideGetVehicleColour(*ride, _vehicleIndex); + WindowDropdownShowColour(this, &widgets[widgetIndex], colours[1], vehicleColour.Tertiary); + break; + } + } + + void ColourOnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) + { + if (dropdownIndex == -1) + return; + + switch (widgetIndex) + { + case WIDX_TRACK_COLOUR_SCHEME_DROPDOWN: + _rideColour = static_cast(dropdownIndex); + Invalidate(); + break; + case WIDX_TRACK_MAIN_COLOUR: + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::TrackColourMain, ColourDropDownIndexToColour(dropdownIndex), _rideColour); + GameActions::Execute(&rideSetAppearanceAction); + } + break; + case WIDX_TRACK_ADDITIONAL_COLOUR: + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::TrackColourAdditional, ColourDropDownIndexToColour(dropdownIndex), + _rideColour); + GameActions::Execute(&rideSetAppearanceAction); + } + break; + case WIDX_TRACK_SUPPORT_COLOUR: + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::TrackColourSupports, ColourDropDownIndexToColour(dropdownIndex), + _rideColour); + GameActions::Execute(&rideSetAppearanceAction); + } + break; + case WIDX_MAZE_STYLE_DROPDOWN: + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::MazeStyle, dropdownIndex, _rideColour); + GameActions::Execute(&rideSetAppearanceAction); + } + break; + case WIDX_ENTRANCE_STYLE_DROPDOWN: + { + auto ddIndex = 0; + auto& objManager = GetContext()->GetObjectManager(); + for (auto i = 0; i < MAX_STATION_OBJECTS; i++) + { + auto stationObj = static_cast(objManager.GetLoadedObject(ObjectType::Station, i)); + if (stationObj != nullptr) + { + if (ddIndex == dropdownIndex) + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::EntranceStyle, ddIndex, 0); + rideSetAppearanceAction.SetCallback([ddIndex](const GameAction*, const GameActions::Result* res) { + if (res->Error != GameActions::Status::Ok) + return; + gLastEntranceStyle = ddIndex; + }); + GameActions::Execute(&rideSetAppearanceAction); + break; + } + ddIndex++; + } + } + break; + } + case WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN: + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::VehicleColourScheme, dropdownIndex, 0); + GameActions::Execute(&rideSetAppearanceAction); + _vehicleIndex = 0; + } + break; + case WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN: + _vehicleIndex = dropdownIndex; + Invalidate(); + break; + case WIDX_VEHICLE_BODY_COLOUR: + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::VehicleColourBody, ColourDropDownIndexToColour(dropdownIndex), + _vehicleIndex); + GameActions::Execute(&rideSetAppearanceAction); + } + break; + case WIDX_VEHICLE_TRIM_COLOUR: + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::VehicleColourTrim, ColourDropDownIndexToColour(dropdownIndex), + _vehicleIndex); + GameActions::Execute(&rideSetAppearanceAction); + } + break; + case WIDX_VEHICLE_TERNARY_COLOUR: + { + auto rideSetAppearanceAction = RideSetAppearanceAction( + rideId, RideSetAppearanceType::VehicleColourTernary, ColourDropDownIndexToColour(dropdownIndex), + _vehicleIndex); + GameActions::Execute(&rideSetAppearanceAction); + } + break; + } + } + + void ColourUpdate() + { + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_5); + WidgetInvalidate(*this, WIDX_VEHICLE_PREVIEW); + } + + void ColourOnToolDown(WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) + { + if (widgetIndex == WIDX_PAINT_INDIVIDUAL_AREA) + SetTrackColourScheme(screenCoords); + } + + void ColourOnToolDrag(WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) + { + if (widgetIndex == WIDX_PAINT_INDIVIDUAL_AREA) + SetTrackColourScheme(screenCoords); + } + + void ColourOnPrepareDraw() + { + TrackColour trackColour; + VehicleColour vehicleColour; + + auto newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return; + + widgets[WIDX_TITLE].text = STR_ARG_16_STRINGID; + auto ft = Formatter::Common(); + ft.Increment(16); + ride->FormatNameTo(ft); + + // Track colours + int32_t colourScheme = _rideColour; + trackColour = ride->track_colour[colourScheme]; + + // Maze style + const auto& rtd = ride->GetRideTypeDescriptor(); + if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE)) + { + widgets[WIDX_MAZE_STYLE].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_MAZE_STYLE_DROPDOWN].type = WindowWidgetType::Button; + widgets[WIDX_MAZE_STYLE].text = MazeOptions[trackColour.supports].text; + } + else + { + widgets[WIDX_MAZE_STYLE].type = WindowWidgetType::Empty; + widgets[WIDX_MAZE_STYLE_DROPDOWN].type = WindowWidgetType::Empty; + } + + // Track, multiple colour schemes + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR)) + { + widgets[WIDX_TRACK_COLOUR_SCHEME].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_TRACK_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Button; + widgets[WIDX_PAINT_INDIVIDUAL_AREA].type = WindowWidgetType::FlatBtn; + } + else + { + widgets[WIDX_TRACK_COLOUR_SCHEME].type = WindowWidgetType::Empty; + widgets[WIDX_TRACK_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Empty; + widgets[WIDX_PAINT_INDIVIDUAL_AREA].type = WindowWidgetType::Empty; + } + + // Track main colour + if (HasTrackColour(*ride, 0)) + { + widgets[WIDX_TRACK_MAIN_COLOUR].type = WindowWidgetType::ColourBtn; + widgets[WIDX_TRACK_MAIN_COLOUR].image = GetColourButtonImage(trackColour.main); + } + else + { + widgets[WIDX_TRACK_MAIN_COLOUR].type = WindowWidgetType::Empty; + } + + // Track additional colour + if (HasTrackColour(*ride, 1)) + { + widgets[WIDX_TRACK_ADDITIONAL_COLOUR].type = WindowWidgetType::ColourBtn; + widgets[WIDX_TRACK_ADDITIONAL_COLOUR].image = GetColourButtonImage(trackColour.additional); + } + else + { + widgets[WIDX_TRACK_ADDITIONAL_COLOUR].type = WindowWidgetType::Empty; + } + + // Selling item random colour checkbox + if (ride->HasRecolourableShopItems()) + { + widgets[WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX].type = WindowWidgetType::Checkbox; + if (ride->HasLifecycleFlag(RIDE_LIFECYCLE_RANDOM_SHOP_COLOURS)) + { + pressed_widgets |= (1uLL << WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX); + } + else + { + pressed_widgets &= ~(1uLL << WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX); + } + } + else + { + widgets[WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX].type = WindowWidgetType::Empty; + } + + // Track supports colour + if (HasTrackColour(*ride, 2) && !rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE)) + { + widgets[WIDX_TRACK_SUPPORT_COLOUR].type = WindowWidgetType::ColourBtn; + widgets[WIDX_TRACK_SUPPORT_COLOUR].image = GetColourButtonImage(trackColour.supports); + } + else + { + widgets[WIDX_TRACK_SUPPORT_COLOUR].type = WindowWidgetType::Empty; + } + + // Track preview + if (ride->GetRideTypeDescriptor().HasFlag( + RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL + | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS)) + widgets[WIDX_TRACK_PREVIEW].type = WindowWidgetType::Spinner; + else + widgets[WIDX_TRACK_PREVIEW].type = WindowWidgetType::Empty; + + // Entrance style + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT)) + { + widgets[WIDX_ENTRANCE_PREVIEW].type = WindowWidgetType::Spinner; + widgets[WIDX_ENTRANCE_STYLE].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_ENTRANCE_STYLE_DROPDOWN].type = WindowWidgetType::Button; + + auto stringId = STR_NONE; + auto stationObj = ride->GetStationObject(); + if (stationObj != nullptr) + { + stringId = stationObj->NameStringId; + } + widgets[WIDX_ENTRANCE_STYLE].text = stringId; + } + else + { + widgets[WIDX_ENTRANCE_PREVIEW].type = WindowWidgetType::Empty; + widgets[WIDX_ENTRANCE_STYLE].type = WindowWidgetType::Empty; + widgets[WIDX_ENTRANCE_STYLE_DROPDOWN].type = WindowWidgetType::Empty; + } + + // Vehicle colours + if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES) + && ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS)) + { + int32_t vehicleColourSchemeType = ride->colour_scheme_type & 3; + if (vehicleColourSchemeType == 0) + _vehicleIndex = 0; + + vehicleColour = RideGetVehicleColour(*ride, _vehicleIndex); + + widgets[WIDX_VEHICLE_PREVIEW].type = WindowWidgetType::Scroll; + widgets[WIDX_VEHICLE_BODY_COLOUR].type = WindowWidgetType::ColourBtn; + widgets[WIDX_VEHICLE_BODY_COLOUR].image = GetColourButtonImage(vehicleColour.Body); + + bool allowChangingTrimColour = false; + bool allowChangingTernaryColour = false; + + for (int32_t i = 0; i < ride->num_cars_per_train; i++) + { + uint8_t vehicleTypeIndex = RideEntryGetVehicleAtPosition(ride->subtype, ride->num_cars_per_train, i); + + if (rideEntry->Cars[vehicleTypeIndex].flags & CAR_ENTRY_FLAG_ENABLE_TRIM_COLOUR) + { + allowChangingTrimColour = true; + } + if (rideEntry->Cars[vehicleTypeIndex].flags & CAR_ENTRY_FLAG_ENABLE_TERNARY_COLOUR) + { + allowChangingTernaryColour = true; + } + } + + // Additional colours + if (allowChangingTrimColour) + { + widgets[WIDX_VEHICLE_TRIM_COLOUR].type = WindowWidgetType::ColourBtn; + widgets[WIDX_VEHICLE_TRIM_COLOUR].image = GetColourButtonImage(vehicleColour.Trim); + if (allowChangingTernaryColour) + { + widgets[WIDX_VEHICLE_TERNARY_COLOUR].type = WindowWidgetType::ColourBtn; + widgets[WIDX_VEHICLE_TERNARY_COLOUR].image = GetColourButtonImage(vehicleColour.Tertiary); + } + else + { + widgets[WIDX_VEHICLE_TERNARY_COLOUR].type = WindowWidgetType::Empty; + } + } + else + { + widgets[WIDX_VEHICLE_TRIM_COLOUR].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_TERNARY_COLOUR].type = WindowWidgetType::Empty; + } + + // Vehicle colour scheme type + if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL) + && (ride->num_cars_per_train | ride->NumTrains) > 1) + { + widgets[WIDX_VEHICLE_COLOUR_SCHEME].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Button; + } + else + { + widgets[WIDX_VEHICLE_COLOUR_SCHEME].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Empty; + } + ft.Rewind(); + ft.Increment(6); + ft.Add(VehicleColourSchemeNames[vehicleColourSchemeType]); + ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).singular); + ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).capitalised); + ft.Add(_vehicleIndex + 1); + + // Vehicle index + if (vehicleColourSchemeType != 0) + { + widgets[WIDX_VEHICLE_COLOUR_INDEX].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN].type = WindowWidgetType::Button; + widgets[WIDX_VEHICLE_COLOUR_INDEX].text = vehicleColourSchemeType == 1 ? STR_RIDE_COLOUR_TRAIN_VALUE + : STR_RIDE_COLOUR_VEHICLE_VALUE; + } + else + { + widgets[WIDX_VEHICLE_COLOUR_INDEX].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN].type = WindowWidgetType::Empty; + } + } + else + { + widgets[WIDX_VEHICLE_PREVIEW].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_COLOUR_SCHEME].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_COLOUR_INDEX].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_BODY_COLOUR].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_TRIM_COLOUR].type = WindowWidgetType::Empty; + widgets[WIDX_VEHICLE_TERNARY_COLOUR].type = WindowWidgetType::Empty; + } + + ft.Rewind(); + ft.Increment(14); + ft.Add(ColourSchemeNames[colourScheme]); + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + } + + void ColourOnDraw(DrawPixelInfo& dpi) + { + // TODO: This should use lists and identified sprites + DrawPixelInfo clippedDpi; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + DrawWidgets(dpi); + DrawTabImages(dpi); + + // Track / shop item preview + const auto& trackPreviewWidget = widgets[WIDX_TRACK_PREVIEW]; + if (trackPreviewWidget.type != WindowWidgetType::Empty) + GfxFillRect( + dpi, + { { windowPos + ScreenCoordsXY{ trackPreviewWidget.left + 1, trackPreviewWidget.top + 1 } }, + { windowPos + ScreenCoordsXY{ trackPreviewWidget.right - 1, trackPreviewWidget.bottom - 1 } } }, + PALETTE_INDEX_12); + + auto trackColour = ride->track_colour[_rideColour]; + + // + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr || rideEntry->shop_item[0] == ShopItem::None) + { + auto screenCoords = windowPos + ScreenCoordsXY{ trackPreviewWidget.left, trackPreviewWidget.top }; + + // Track + const auto& rtd = ride->GetRideTypeDescriptor(); + if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE)) + { + GfxDrawSprite(dpi, ImageId(MazeOptions[trackColour.supports].sprite), screenCoords); + } + else + { + auto typeDescriptor = ride->GetRideTypeDescriptor(); + int32_t spriteIndex = typeDescriptor.ColourPreview.Track; + if (spriteIndex != 0) + { + GfxDrawSprite(dpi, ImageId(spriteIndex, trackColour.main, trackColour.additional), screenCoords); + } + + // Supports + spriteIndex = typeDescriptor.ColourPreview.Supports; + if (spriteIndex != 0) + { + GfxDrawSprite(dpi, ImageId(spriteIndex, trackColour.supports), screenCoords); + } + } + } + else + { + auto screenCoords = windowPos + + ScreenCoordsXY{ (trackPreviewWidget.left + trackPreviewWidget.right) / 2 - 8, + (trackPreviewWidget.bottom + trackPreviewWidget.top) / 2 - 6 }; + + ShopItem shopItem = rideEntry->shop_item[1] == ShopItem::None ? rideEntry->shop_item[0] : rideEntry->shop_item[1]; + if (ride->HasLifecycleFlag(RIDE_LIFECYCLE_RANDOM_SHOP_COLOURS)) + { + colour_t spriteColour = COLOUR_BLACK; + // Limit update rate of preview to avoid making people dizzy. + if ((gCurrentTicks % 64) == 0) + { + spriteColour++; + if (spriteColour >= COLOUR_NUM_NORMAL) + { + spriteColour = COLOUR_BLACK; + } + } + + GfxDrawSprite(dpi, ImageId(GetShopItemDescriptor(shopItem).Image, spriteColour), screenCoords); + } + else + { + GfxDrawSprite(dpi, ImageId(GetShopItemDescriptor(shopItem).Image, ride->track_colour[0].main), screenCoords); + } + } + + // Entrance preview + trackColour = ride->track_colour[0]; + const auto& entrancePreviewWidget = widgets[WIDX_ENTRANCE_PREVIEW]; + if (entrancePreviewWidget.type != WindowWidgetType::Empty) + { + if (ClipDrawPixelInfo( + clippedDpi, dpi, + windowPos + ScreenCoordsXY{ entrancePreviewWidget.left + 1, entrancePreviewWidget.top + 1 }, + entrancePreviewWidget.width(), entrancePreviewWidget.height())) + { + GfxClear(&clippedDpi, PALETTE_INDEX_12); + + auto stationObj = ride->GetStationObject(); + if (stationObj != nullptr && stationObj->BaseImageId != ImageIndexUndefined) + { + auto imageId = ImageId(stationObj->BaseImageId, trackColour.main, trackColour.additional); + + // Back + GfxDrawSprite(clippedDpi, imageId, { 34, 20 }); + + // Front + GfxDrawSprite(clippedDpi, imageId.WithIndexOffset(4), { 34, 20 }); + + // Glass + if (stationObj->Flags & STATION_OBJECT_FLAGS::IS_TRANSPARENT) + { + auto glassImageId = ImageId(stationObj->BaseImageId + 20).WithTransparency(trackColour.main); + GfxDrawSprite(clippedDpi, glassImageId, { 34, 20 }); + } + } + } + + DrawTextEllipsised(dpi, { windowPos.x + 3, windowPos.y + 103 }, 97, STR_STATION_STYLE, {}); + } + } + + void ColourOnScrollDraw(DrawPixelInfo& dpi, int32_t scrollIndex) const + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return; + + auto vehiclePreviewWidget = &widgets[WIDX_VEHICLE_PREVIEW]; + auto vehicleColour = RideGetVehicleColour(*ride, _vehicleIndex); + + // Background colour + GfxFillRect(dpi, { { dpi.x, dpi.y }, { dpi.x + dpi.width - 1, dpi.y + dpi.height - 1 } }, PALETTE_INDEX_12); + + // ? + auto screenCoords = ScreenCoordsXY{ vehiclePreviewWidget->width() / 2, vehiclePreviewWidget->height() - 15 }; + + // ? + auto trainCarIndex = (ride->colour_scheme_type & 3) == RIDE_COLOUR_SCHEME_MODE_DIFFERENT_PER_CAR ? _vehicleIndex + : rideEntry->TabCar; + + const auto& carEntry = rideEntry->Cars[RideEntryGetVehicleAtPosition( + ride->subtype, ride->num_cars_per_train, trainCarIndex)]; + + screenCoords.y += carEntry.tab_height; + + // Draw the coloured spinning vehicle + // frame_no represents a SpritePrecision of 64 + ImageIndex imageIndex = carEntry.SpriteByYaw(frame_no / 2, SpriteGroupType::SlopeFlat); imageIndex &= carEntry.TabRotationMask; imageIndex *= carEntry.base_num_frames; imageIndex += carEntry.base_image_id; auto imageId = ImageId(imageIndex, vehicleColour.Body, vehicleColour.Trim, vehicleColour.Tertiary); - GfxDrawSprite(clipDPI, imageId, screenCoords); + GfxDrawSprite(dpi, imageId, screenCoords); } -} -/** - * - * rct2: 0x006B2F42 - */ -static void WindowRideDrawTabCustomer(DrawPixelInfo& dpi, WindowBase* w) -{ - WidgetIndex widgetIndex = WIDX_TAB_1 + static_cast(WINDOW_RIDE_PAGE_CUSTOMER); +#pragma endregion - if (!WidgetIsDisabled(*w, widgetIndex)) +#pragma region Music + std::vector window_ride_current_music_style_order; + + void ToggleMusic() { - const auto& widget = w->widgets[widgetIndex]; - int32_t spriteIndex = 0; - if (w->page == WINDOW_RIDE_PAGE_CUSTOMER) - spriteIndex = w->picked_peep_frame & ~3; - - spriteIndex += GetPeepAnimation(PeepSpriteType::Normal).base_image + 1; - - GfxDrawSprite( - dpi, ImageId(spriteIndex, COLOUR_BRIGHT_RED, COLOUR_TEAL), - w->windowPos + ScreenCoordsXY{ widget.midX(), widget.bottom - 6 }); + auto ride = GetRide(rideId); + if (ride != nullptr) + { + int32_t activateMusic = (ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC) ? 0 : 1; + SetOperatingSetting(rideId, RideSetSetting::Music, activateMusic); + } } -} -/** - * - * rct2: 0x006B2B35 - */ -static void WindowRideDrawTabImages(DrawPixelInfo& dpi, WindowBase* w) -{ - WindowRideDrawTabVehicle(dpi, w); - WindowRideDrawTabImage(dpi, w, WINDOW_RIDE_PAGE_OPERATING, SPR_TAB_GEARS_0); - WindowRideDrawTabImage(dpi, w, WINDOW_RIDE_PAGE_MAINTENANCE, SPR_TAB_WRENCH_0); - WindowRideDrawTabImage(dpi, w, WINDOW_RIDE_PAGE_INCOME, SPR_TAB_ADMISSION_0); - WindowRideDrawTabMain(dpi, w); - WindowRideDrawTabImage(dpi, w, WINDOW_RIDE_PAGE_MEASUREMENTS, SPR_TAB_TIMER_0); - WindowRideDrawTabImage(dpi, w, WINDOW_RIDE_PAGE_COLOUR, SPR_TAB_PAINT_0); - WindowRideDrawTabImage(dpi, w, WINDOW_RIDE_PAGE_GRAPHS, SPR_TAB_GRAPH_A_0); - WindowRideDrawTabCustomer(dpi, w); - WindowRideDrawTabImage(dpi, w, WINDOW_RIDE_PAGE_MUSIC, SPR_TAB_MUSIC_0); -} - -/** - * - * rct2: 0x006AEB9F - */ -static void WindowRideDisableTabs(WindowBase* w) -{ - uint32_t disabled_tabs = 0; - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - const auto& rtd = ride->GetRideTypeDescriptor(); - - if (!rtd.HasFlag(RIDE_TYPE_FLAG_HAS_DATA_LOGGING)) - disabled_tabs |= (1uLL << WIDX_TAB_8); // 0x800 - - if (ride->type == RIDE_TYPE_MINI_GOLF) - disabled_tabs |= (1uLL << WIDX_TAB_2 | 1uLL << WIDX_TAB_3 | 1uLL << WIDX_TAB_4); // 0xE0 - - if (rtd.HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) - disabled_tabs |= (1uLL << WIDX_TAB_2); // 0x20 - - if (!rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN) && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL) - && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS) && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS) - && !rtd.HasFlag(RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT)) + void MusicOnMouseUp(WidgetIndex widgetIndex) { - disabled_tabs |= (1uLL << WIDX_TAB_5); // 0x100 + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + case WIDX_PLAY_MUSIC: + ToggleMusic(); + break; + } } - if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY)) - disabled_tabs |= (1uLL << WIDX_TAB_3 | 1uLL << WIDX_TAB_4 | 1uLL << WIDX_TAB_7); // 0x4C0 - - if (!rtd.HasFlag(RIDE_TYPE_FLAG_ALLOW_MUSIC)) + void MusicResize() { - disabled_tabs |= (1uLL << WIDX_TAB_6); // 0x200 + flags |= WF_RESIZABLE; + WindowSetResize(*this, 316, 81, 316, 81); } - if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_CASH_MACHINE) || rtd.HasFlag(RIDE_TYPE_FLAG_IS_FIRST_AID) - || (gParkFlags & PARK_FLAGS_NO_MONEY) != 0) - disabled_tabs |= (1uLL << WIDX_TAB_9); // 0x1000 - - if ((gScreenFlags & SCREEN_FLAGS_TRACK_DESIGNER) != 0) - disabled_tabs |= (1uLL << WIDX_TAB_4 | 1uLL << WIDX_TAB_6 | 1uLL << WIDX_TAB_9 | 1uLL << WIDX_TAB_10); // 0x3280 - - const auto* rideEntry = GetRideEntryByIndex(ride->subtype); - - if (rideEntry == nullptr) + static std::string GetMusicString(ObjectEntryIndex musicObjectIndex) { - disabled_tabs |= 1uLL << WIDX_TAB_2 | 1uLL << WIDX_TAB_3 | 1uLL << WIDX_TAB_4 | 1uLL << WIDX_TAB_5 | 1uLL << WIDX_TAB_6 - | 1uLL << WIDX_TAB_7 | 1uLL << WIDX_TAB_8 | 1uLL << WIDX_TAB_9 | 1uLL << WIDX_TAB_10; + auto& objManager = GetContext()->GetObjectManager(); + auto musicObj = static_cast(objManager.GetLoadedObject(ObjectType::Music, musicObjectIndex)); + + auto name = musicObj->NameStringId; + return FormatStringID(name, {}); } - else if ((rideEntry->flags & RIDE_ENTRY_FLAG_DISABLE_COLOUR_TAB) != 0) + + /** + * + * rct2: 0x006B1EFC + */ + void MusicOnMouseDown(WidgetIndex widgetIndex) { - disabled_tabs |= (1uLL << WIDX_TAB_5); + if (widgetIndex != WIDX_MUSIC_DROPDOWN) + return; + + auto dropdownWidget = &widgets[widgetIndex] - 1; + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + // Construct list of available music + auto& musicOrder = window_ride_current_music_style_order; + musicOrder.clear(); + auto& objManager = GetContext()->GetObjectManager(); + for (ObjectEntryIndex i = 0; i < MAX_MUSIC_OBJECTS; i++) + { + auto musicObj = static_cast(objManager.GetLoadedObject(ObjectType::Music, i)); + if (musicObj != nullptr) + { + // Hide custom music if the WAV file does not exist + auto originalStyleId = musicObj->GetOriginalStyleId(); + if (originalStyleId.has_value() + && (originalStyleId == MUSIC_STYLE_CUSTOM_MUSIC_1 || originalStyleId == MUSIC_STYLE_CUSTOM_MUSIC_2)) + { + auto numTracks = musicObj->GetTrackCount(); + if (numTracks != 0) + { + auto track0 = musicObj->GetTrack(0); + if (!track0->Asset.IsAvailable()) + { + continue; + } + } + else + { + continue; + } + } + + if (gCheatsUnlockOperatingLimits || musicObj->SupportsRideType(ride->type)) + { + musicOrder.push_back(i); + } + } + } + + // Sort available music by the alphabetical order + std::stable_sort(musicOrder.begin(), musicOrder.end(), [](const ObjectEntryIndex& a, const ObjectEntryIndex& b) { + return String::Compare(GetMusicString(b), GetMusicString(a), false) > 0; + }); + + // Setup dropdown list + auto numItems = musicOrder.size(); + for (size_t i = 0; i < numItems; i++) + { + auto musicObj = static_cast(objManager.GetLoadedObject(ObjectType::Music, musicOrder[i])); + gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; + gDropdownItems[i].Args = musicObj->NameStringId; + } + + WindowDropdownShowTextCustomWidth( + { windowPos.x + dropdownWidget->left, windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, colours[1], + 0, Dropdown::Flag::StayOpen, numItems, widgets[widgetIndex].right - dropdownWidget->left); + + // Set currently checked item + for (size_t i = 0; i < numItems; i++) + { + if (musicOrder[i] == ride->music) + { + Dropdown::SetChecked(static_cast(i), true); + } + } } - w->disabled_widgets = disabled_tabs; -} - -static void WindowRideUpdateOverallView(const Ride& ride) -{ - // Calculate x, y, z bounds of the entire ride using its track elements - TileElementIterator it; - - TileElementIteratorBegin(&it); - - CoordsXYZ min = { std::numeric_limits::max(), std::numeric_limits::max(), - std::numeric_limits::max() }; - CoordsXYZ max = { std::numeric_limits::min(), std::numeric_limits::min(), - std::numeric_limits::min() }; - - while (TileElementIteratorNext(&it)) + void MusicOnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) { - if (it.element->GetType() != TileElementType::Track) - continue; - - if (it.element->AsTrack()->GetRideIndex() != ride.id) - continue; - - auto location = TileCoordsXY(it.x, it.y).ToCoordsXY(); - int32_t baseZ = it.element->GetBaseZ(); - int32_t clearZ = it.element->GetClearanceZ(); - - min.x = std::min(min.x, location.x); - min.y = std::min(min.y, location.y); - min.z = std::min(min.z, baseZ); - - max.x = std::max(max.x, location.x); - max.y = std::max(max.y, location.y); - max.z = std::max(max.z, clearZ); + if (widgetIndex == WIDX_MUSIC_DROPDOWN && dropdownIndex >= 0 + && static_cast(dropdownIndex) < window_ride_current_music_style_order.size()) + { + auto musicStyle = window_ride_current_music_style_order[dropdownIndex]; + SetOperatingSetting(rideId, RideSetSetting::MusicType, musicStyle); + } } - const auto rideIndex = ride.id.ToUnderlying(); - if (rideIndex >= ride_overall_views.size()) + void MusicUpdate() { - ride_overall_views.resize(rideIndex + 1); + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_6); } - auto& view = ride_overall_views[rideIndex]; - view.loc = CoordsXYZ{ (min.x + max.x) / 2, (min.y + max.y) / 2, (min.z + max.z) / 2 } + CoordsXYZ{ 16, 16, -8 }; - - // Calculate size to determine from how far away to view the ride - const auto diff = max - min; - - const int32_t size = static_cast(std::sqrt(diff.x * diff.x + diff.y * diff.y + diff.z * diff.z)); - - if (size >= 80) + void MusicOnPrepareDraw() { - // Each farther zoom level shows twice as many tiles (log) - // Appropriate zoom is lowered by one to fill the entire view with the ride - const auto zoomValue = static_cast(std::ceil(std::log(size / 80)) - 1); - view.zoom = std::clamp(ZoomLevel{ zoomValue }, ZoomLevel{ 0 }, ZoomLevel::max()); + auto newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto ft = Formatter::Common(); + ride->FormatNameTo(ft); + + // Set selected music + StringId musicName = STR_NONE; + auto& objManager = GetContext()->GetObjectManager(); + auto musicObj = static_cast(objManager.GetLoadedObject(ObjectType::Music, ride->music)); + if (musicObj != nullptr) + { + musicName = musicObj->NameStringId; + } + widgets[WIDX_MUSIC].text = musicName; + + // Set music activated + auto isMusicActivated = (ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC) != 0; + if (isMusicActivated) + { + pressed_widgets |= (1uLL << WIDX_PLAY_MUSIC); + disabled_widgets &= ~(1uLL << WIDX_MUSIC); + disabled_widgets &= ~(1uLL << WIDX_MUSIC_DROPDOWN); + } + else + { + pressed_widgets &= ~(1uLL << WIDX_PLAY_MUSIC); + disabled_widgets |= (1uLL << WIDX_MUSIC); + disabled_widgets |= (1uLL << WIDX_MUSIC_DROPDOWN); + } + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); } - else + + void MusicOnDraw(DrawPixelInfo& dpi) { - // Small rides or stalls are zoomed in all the way. - view.zoom = ZoomLevel{ 0 }; + DrawWidgets(dpi); + DrawTabImages(dpi); } -} + +#pragma endregion + +#pragma region Measurements + + static constexpr StringId GetRatingName(ride_rating rating) + { + int32_t index = std::clamp(rating >> 8, 0, static_cast(std::size(RatingNames)) - 1); + return RatingNames[index]; + } + + void SetupScenerySelection() + { + if (gTrackDesignSaveMode) + { + CancelScenerySelection(); + } + + while (ToolSet(*this, WIDX_BACKGROUND, Tool::Crosshair)) + ; + + gTrackDesignSaveRideIndex = rideId; + + TrackDesignSaveInit(); + gGamePaused |= GAME_PAUSED_SAVING_TRACK; + gTrackDesignSaveMode = true; + + OpenRCT2::Audio::StopAll(); + + WindowBase* w_main = WindowGetMain(); + if (w_main != nullptr) + { + w_main->viewport->flags |= (VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_BASE); + } + + GfxInvalidateScreen(); + } + + void MeasurementsDesignReset() + { + TrackDesignSaveResetScenery(); + } + + void MeasurementsDesignSelectNearbyScenery() + { + TrackDesignSaveSelectNearbyScenery(gTrackDesignSaveRideIndex); + } + + void MeasurementsDesignCancel() + { + if (gTrackDesignSaveMode) + { + CancelScenerySelection(); + } + } + + static void TrackDesignCallback(int32_t result, [[maybe_unused]] const utf8* path) + { + if (result == MODAL_RESULT_OK) + { + TrackRepositoryScan(); + } + GfxInvalidateScreen(); + }; + + void MeasurementsDesignSave() + { + TrackDesignState tds{}; + + Ride* ride = GetRide(rideId); + _trackDesign = ride->SaveToTrackDesign(tds); + if (!_trackDesign) + { + return; + } + + if (gTrackDesignSaveMode) + { + auto errMessage = _trackDesign->CreateTrackDesignScenery(tds); + if (!errMessage.Successful) + { + ContextShowError(STR_CANT_SAVE_TRACK_DESIGN, errMessage.Message, {}); + return; + } + if (errMessage.HasMessage()) + { + ContextShowError(errMessage.Message, STR_EMPTY, {}); + } + } + + auto trackName = ride->GetName(); + auto intent = Intent(WindowClass::Loadsave); + intent.PutExtra(INTENT_EXTRA_LOADSAVE_TYPE, LOADSAVETYPE_SAVE | LOADSAVETYPE_TRACK); + intent.PutExtra(INTENT_EXTRA_TRACK_DESIGN, _trackDesign.get()); + intent.PutExtra(INTENT_EXTRA_PATH, trackName); + intent.PutExtra(INTENT_EXTRA_CALLBACK, reinterpret_cast(&TrackDesignCallback)); + + ContextOpenIntent(&intent); + } + + void MeasurementsClose() + { + MeasurementsDesignCancel(); + } + + void MeasurementsOnMouseUp(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + case WIDX_SELECT_NEARBY_SCENERY: + MeasurementsDesignSelectNearbyScenery(); + break; + case WIDX_RESET_SELECTION: + MeasurementsDesignReset(); + break; + case WIDX_SAVE_DESIGN: + MeasurementsDesignSave(); + break; + case WIDX_CANCEL_DESIGN: + MeasurementsDesignCancel(); + break; + } + } + + void MeasurementsResize() + { + WindowSetResize(*this, 316, 234, 316, 234); + } + + void MeasurementsOnMouseDown(WidgetIndex widgetIndex) + { + if (widgetIndex != WIDX_SAVE_TRACK_DESIGN) + return; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + gDropdownItems[0].Format = STR_SAVE_TRACK_DESIGN_ITEM; + gDropdownItems[1].Format = STR_SAVE_TRACK_DESIGN_WITH_SCENERY_ITEM; + + WindowDropdownShowText( + { windowPos.x + widgets[widgetIndex].left, windowPos.y + widgets[widgetIndex].top }, + widgets[widgetIndex].height() + 1, colours[1], Dropdown::Flag::StayOpen, 2); + gDropdownDefaultIndex = 0; + if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) + { + // Disable saving without scenery if we're a flat ride + Dropdown::SetDisabled(0, true); + gDropdownDefaultIndex = 1; + } + } + + void MeasurementsOnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) + { + if (widgetIndex != WIDX_SAVE_TRACK_DESIGN) + return; + + if (dropdownIndex == -1) + dropdownIndex = gDropdownHighlightedIndex; + + if (dropdownIndex == 0) + { + MeasurementsDesignSave(); + } + else + SetupScenerySelection(); + } + + void MeasurementsUpdate() + { + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_7); + } + + void MeasurementsOnToolDown(WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) + { + _lastSceneryX = screenCoords.x; + _lastSceneryY = screenCoords.y; + _collectTrackDesignScenery = true; // Default to true in case user does not select anything valid + + constexpr auto interactionFlags = EnumsToFlags( + ViewportInteractionItem::Scenery, ViewportInteractionItem::Footpath, ViewportInteractionItem::Wall, + ViewportInteractionItem::LargeScenery); + auto info = GetMapCoordinatesFromPos(screenCoords, interactionFlags); + switch (info.SpriteType) + { + case ViewportInteractionItem::Scenery: + case ViewportInteractionItem::LargeScenery: + case ViewportInteractionItem::Wall: + case ViewportInteractionItem::Footpath: + _collectTrackDesignScenery = !TrackDesignSaveContainsTileElement(info.Element); + TrackDesignSaveSelectTileElement(info.SpriteType, info.Loc, info.Element, _collectTrackDesignScenery); + break; + default: + break; + } + } + + void MeasurementsOnToolDrag(WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) + { + if (screenCoords.x == _lastSceneryX && screenCoords.y == _lastSceneryY) + return; + _lastSceneryX = screenCoords.x; + _lastSceneryY = screenCoords.y; + + auto interactionFlags = EnumsToFlags( + ViewportInteractionItem::Scenery, ViewportInteractionItem::Footpath, ViewportInteractionItem::Wall, + ViewportInteractionItem::LargeScenery); + auto info = GetMapCoordinatesFromPos(screenCoords, interactionFlags); + switch (info.SpriteType) + { + case ViewportInteractionItem::Scenery: + case ViewportInteractionItem::LargeScenery: + case ViewportInteractionItem::Wall: + case ViewportInteractionItem::Footpath: + TrackDesignSaveSelectTileElement(info.SpriteType, info.Loc, info.Element, _collectTrackDesignScenery); + break; + default: + break; + } + } + + void MeasurementsOnToolAbort(WidgetIndex widgetIndex) + { + MeasurementsDesignCancel(); + } + + void MeasurementsOnPrepareDraw() + { + auto newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto ft = Formatter::Common(); + ride->FormatNameTo(ft); + + widgets[WIDX_SAVE_TRACK_DESIGN].tooltip = STR_SAVE_TRACK_DESIGN_NOT_POSSIBLE; + widgets[WIDX_SAVE_TRACK_DESIGN].type = WindowWidgetType::Empty; + if (gTrackDesignSaveMode && gTrackDesignSaveRideIndex == rideId) + { + widgets[WIDX_SELECT_NEARBY_SCENERY].type = WindowWidgetType::Button; + widgets[WIDX_RESET_SELECTION].type = WindowWidgetType::Button; + widgets[WIDX_SAVE_DESIGN].type = WindowWidgetType::Button; + widgets[WIDX_CANCEL_DESIGN].type = WindowWidgetType::Button; + } + else + { + widgets[WIDX_SELECT_NEARBY_SCENERY].type = WindowWidgetType::Empty; + widgets[WIDX_RESET_SELECTION].type = WindowWidgetType::Empty; + widgets[WIDX_SAVE_DESIGN].type = WindowWidgetType::Empty; + widgets[WIDX_CANCEL_DESIGN].type = WindowWidgetType::Empty; + + widgets[WIDX_SAVE_TRACK_DESIGN].type = WindowWidgetType::FlatBtn; + disabled_widgets |= (1uLL << WIDX_SAVE_TRACK_DESIGN); + if (ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED) + { + if (ride->excitement != RIDE_RATING_UNDEFINED) + { + disabled_widgets &= ~(1uLL << WIDX_SAVE_TRACK_DESIGN); + widgets[WIDX_SAVE_TRACK_DESIGN].tooltip = STR_SAVE_TRACK_DESIGN; + } + } + } + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + } + + void MeasurementsOnDraw(DrawPixelInfo& dpi) + { + DrawWidgets(dpi); + DrawTabImages(dpi); + + if (widgets[WIDX_SAVE_DESIGN].type == WindowWidgetType::Button) + { + Widget* widget = &widgets[WIDX_PAGE_BACKGROUND]; + + ScreenCoordsXY widgetCoords(windowPos.x + widget->width() / 2, windowPos.y + widget->top + 40); + DrawTextWrapped(dpi, widgetCoords, width - 8, STR_CLICK_ITEMS_OF_SCENERY_TO_SELECT, {}, { TextAlignment::CENTRE }); + + widgetCoords.x = windowPos.x + 4; + widgetCoords.y = windowPos.y + widgets[WIDX_SELECT_NEARBY_SCENERY].bottom + 17; + GfxFillRectInset( + dpi, { widgetCoords, { windowPos.x + 312, widgetCoords.y + 1 } }, colours[1], INSET_RECT_FLAG_BORDER_INSET); + } + else + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto screenCoords = windowPos + + ScreenCoordsXY{ widgets[WIDX_PAGE_BACKGROUND].left + 4, widgets[WIDX_PAGE_BACKGROUND].top + 4 }; + + if (ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED) + { + // Excitement + StringId ratingName = GetRatingName(ride->excitement); + auto ft = Formatter(); + ft.Add(ride->excitement); + ft.Add(ratingName); + StringId stringId = !RideHasRatings(*ride) ? STR_EXCITEMENT_RATING_NOT_YET_AVAILABLE : STR_EXCITEMENT_RATING; + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Intensity + ratingName = GetRatingName(ride->intensity); + ft = Formatter(); + ft.Add(ride->intensity); + ft.Add(ratingName); + + stringId = STR_INTENSITY_RATING; + if (!RideHasRatings(*ride)) + stringId = STR_INTENSITY_RATING_NOT_YET_AVAILABLE; + else if (ride->intensity >= RIDE_RATING(10, 00)) + stringId = STR_INTENSITY_RATING_RED; + + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Nausea + ratingName = GetRatingName(ride->nausea); + ft = Formatter(); + ft.Add(ride->nausea); + ft.Add(ratingName); + stringId = !RideHasRatings(*ride) ? STR_NAUSEA_RATING_NOT_YET_AVAILABLE : STR_NAUSEA_RATING; + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += 2 * LIST_ROW_HEIGHT; + + // Horizontal rule + GfxFillRectInset( + dpi, { screenCoords - ScreenCoordsXY{ 0, 6 }, screenCoords + ScreenCoordsXY{ 303, -5 } }, colours[1], + INSET_RECT_FLAG_BORDER_INSET); + + if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_NO_RAW_STATS)) + { + if (ride->type == RIDE_TYPE_MINI_GOLF) + { + // Holes + ft = Formatter(); + ft.Add(ride->holes); + DrawTextBasic(dpi, screenCoords, STR_HOLES, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + else + { + // Max speed + ft = Formatter(); + ft.Add((ride->max_speed * 9) >> 18); + DrawTextBasic(dpi, screenCoords, STR_MAX_SPEED, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Average speed + ft = Formatter(); + ft.Add((ride->average_speed * 9) >> 18); + DrawTextBasic(dpi, screenCoords, STR_AVERAGE_SPEED, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Ride time + ft = Formatter(); + int32_t numTimes = 0; + // TODO: STR_RIDE_TIME only takes up to 4 stations modify to take more + // also if modified may need to be split into multiple format strings + // as formatter cannot take more than 256 bytes + for (int32_t i = 0; i < std::min(ride->num_stations, 4); i++) + { + StationIndex stationIndex = StationIndex::FromUnderlying(numTimes); + auto time = ride->GetStation(stationIndex).SegmentTime; + if (time != 0) + { + ft.Add(STR_RIDE_TIME_ENTRY_WITH_SEPARATOR); + ft.Add(time); + numTimes++; + } + } + if (numTimes == 0) + { + ft.Add(STR_RIDE_TIME_ENTRY); + ft.Add(0); + numTimes++; + } + else + { + // sadly, STR_RIDE_TIME_ENTRY_WITH_SEPARATOR are defined with the separator AFTER an entry + // therefore we set the last entry to use the no-separator format now, post-format + ft.Rewind(); + ft.Increment((numTimes - 1) * 4); + ft.Add(STR_RIDE_TIME_ENTRY); + } + ft.Rewind(); + ft.Increment(numTimes * 4); + ft.Add(0); + ft.Add(0); + ft.Add(0); + ft.Add(0); + DrawTextEllipsised(dpi, screenCoords, 308, STR_RIDE_TIME, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + + // Ride length + ft = Formatter(); + int32_t numLengths = 0; + // TODO: see above STR_RIDE_LENGTH is also only able to display max 4 + for (int32_t i = 0; i < std::min(ride->num_stations, 4); i++) + { + StationIndex stationIndex = StationIndex::FromUnderlying(i); + auto length = ride->GetStation(stationIndex).SegmentLength; + if (length != 0) + { + length >>= 16; + ft.Add(STR_RIDE_LENGTH_ENTRY_WITH_SEPARATOR); + ft.Add(length & 0xFFFF); + numLengths++; + } + } + if (numLengths == 0) + { + ft.Add(STR_RIDE_LENGTH_ENTRY); + ft.Add(0); + numLengths++; + } + else + { + // sadly, STR_RIDE_LENGTH_ENTRY_WITH_SEPARATOR are defined with the separator AFTER an entry + // therefore we set the last entry to use the no-separator format now, post-format + ft.Rewind(); + ft.Increment((numLengths - 1) * 4); + ft.Add(STR_RIDE_LENGTH_ENTRY); + } + ft.Rewind(); + ft.Increment(numLengths * 4); + ft.Add(0); + ft.Add(0); + ft.Add(0); + ft.Add(0); + DrawTextEllipsised(dpi, screenCoords, 308, STR_RIDE_LENGTH, ft); + + screenCoords.y += LIST_ROW_HEIGHT; + + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_G_FORCES)) + { + // Max. positive vertical G's + stringId = STR_MAX_POSITIVE_VERTICAL_G; + + ft = Formatter(); + ft.Add(ride->max_positive_vertical_g); + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Max. negative vertical G's + stringId = ride->max_negative_vertical_g <= RIDE_G_FORCES_RED_NEG_VERTICAL + ? STR_MAX_NEGATIVE_VERTICAL_G_RED + : STR_MAX_NEGATIVE_VERTICAL_G; + ft = Formatter(); + ft.Add(ride->max_negative_vertical_g); + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Max lateral G's + stringId = ride->max_lateral_g > RIDE_G_FORCES_RED_LATERAL ? STR_MAX_LATERAL_G_RED : STR_MAX_LATERAL_G; + ft = Formatter(); + ft.Add(ride->max_lateral_g); + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Total 'air' time + ft = Formatter(); + ft.Add(ride->total_air_time * 3); + DrawTextBasic(dpi, screenCoords, STR_TOTAL_AIR_TIME, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_DROPS)) + { + // Drops + auto drops = ride->drops & 0x3F; + ft = Formatter(); + ft.Add(drops); + DrawTextBasic(dpi, screenCoords, STR_DROPS, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Highest drop height + auto highestDropHeight = (ride->highest_drop_height * 3) / 4; + ft = Formatter(); + ft.Add(highestDropHeight); + DrawTextBasic(dpi, screenCoords, STR_HIGHEST_DROP_HEIGHT, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + + if (ride->type != RIDE_TYPE_MINI_GOLF) + { + // Inversions + if (ride->inversions != 0) + { + ft = Formatter(); + ft.Add(ride->inversions); + DrawTextBasic(dpi, screenCoords, STR_INVERSIONS, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + } + } + } + else + { + DrawTextBasic(dpi, screenCoords, STR_NO_TEST_RESULTS_YET); + } + } + } + +#pragma endregion + +#pragma region Graphs + + enum + { + GRAPH_VELOCITY, + GRAPH_ALTITUDE, + GRAPH_VERTICAL, + GRAPH_LATERAL + }; + + void SetGraph(int32_t type) + { + if (list_information_type == type) + { + _autoScrollGraph = !_autoScrollGraph; + } + else + { + list_information_type = type; + } + Invalidate(); + } + + void GraphsOnMouseUp(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + } + } + + void GraphsResize() + { + WindowSetResize(*this, 316, 182, 500, 450); + } + + void GraphsOnMouseDown(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_GRAPH_VELOCITY: + SetGraph(GRAPH_VELOCITY); + break; + case WIDX_GRAPH_ALTITUDE: + SetGraph(GRAPH_ALTITUDE); + break; + case WIDX_GRAPH_VERTICAL: + SetGraph(GRAPH_VERTICAL); + break; + case WIDX_GRAPH_LATERAL: + SetGraph(GRAPH_LATERAL); + break; + } + } + + void GraphsUpdate() + { + Widget* widget; + int32_t x; + + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_8); + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_GRAPH); + + widget = &widgets[WIDX_GRAPH]; + x = scrolls[0].h_left; + if (_autoScrollGraph) + { + auto ride = GetRide(rideId); + if (ride != nullptr) + { + RideMeasurement* measurement{}; + std::tie(measurement, std::ignore) = ride->GetMeasurement(); + x = measurement == nullptr ? 0 : measurement->current_item - ((widget->width() / 4) * 3); + } + } + + scrolls[0].h_left = std::clamp(x, 0, scrolls[0].h_right - (widget->width() - 2)); + WidgetScrollUpdateThumbs(*this, WIDX_GRAPH); + } + + ScreenSize GraphsScrollGetSize(int32_t scrollIndex) + { + OnPrepareDraw(); + + ScreenSize size{}; + // Set minimum size + size.width = widgets[WIDX_GRAPH].width() - 2; + + // Get measurement size + auto ride = GetRide(rideId); + if (ride != nullptr) + { + RideMeasurement* measurement{}; + std::tie(measurement, std::ignore) = ride->GetMeasurement(); + if (measurement != nullptr) + { + size.width = std::max(size.width, measurement->num_items); + } + } + return size; + } + + void GraphsOnScrollSelect(int32_t scrollIndex, int32_t scrollAreaType) + { + _autoScrollGraph = false; + } + + OpenRCT2String GraphsTooltip(const WidgetIndex widgetIndex, const StringId fallback) + { + if (widgetIndex == WIDX_GRAPH) + { + auto ride = GetRide(rideId); + if (ride != nullptr) + { + auto [measurement, message] = ride->GetMeasurement(); + if (measurement != nullptr && (measurement->flags & RIDE_MEASUREMENT_FLAG_RUNNING)) + { + auto ft = Formatter(); + ft.Increment(2); + ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).number); + ft.Add(measurement->vehicle_index + 1); + return { fallback, ft }; + } + + return message; + } + } + else + { + return { STR_NONE, {} }; + } + return { fallback, {} }; + } + + void GraphsOnPrepareDraw() + { + auto newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto ft = Formatter::Common(); + ride->FormatNameTo(ft); + + // Set pressed graph button type + pressed_widgets &= ~(1uLL << WIDX_GRAPH_VELOCITY); + pressed_widgets &= ~(1uLL << WIDX_GRAPH_ALTITUDE); + pressed_widgets &= ~(1uLL << WIDX_GRAPH_VERTICAL); + pressed_widgets &= ~(1uLL << WIDX_GRAPH_LATERAL); + pressed_widgets |= (1LL << (WIDX_GRAPH_VELOCITY + list_information_type)); + + // Hide graph buttons that are not applicable + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_G_FORCES)) + { + widgets[WIDX_GRAPH_VERTICAL].type = WindowWidgetType::Button; + widgets[WIDX_GRAPH_LATERAL].type = WindowWidgetType::Button; + } + else + { + widgets[WIDX_GRAPH_VERTICAL].type = WindowWidgetType::Empty; + widgets[WIDX_GRAPH_LATERAL].type = WindowWidgetType::Empty; + } + + // Anchor graph widget + auto x = width - 4; + auto y = height - BUTTON_FACE_HEIGHT - 8; + + widgets[WIDX_GRAPH].right = x; + widgets[WIDX_GRAPH].bottom = y; + y += 3; + widgets[WIDX_GRAPH_VELOCITY].top = y; + widgets[WIDX_GRAPH_ALTITUDE].top = y; + widgets[WIDX_GRAPH_VERTICAL].top = y; + widgets[WIDX_GRAPH_LATERAL].top = y; + y += BUTTON_FACE_HEIGHT + 1; + widgets[WIDX_GRAPH_VELOCITY].bottom = y; + widgets[WIDX_GRAPH_ALTITUDE].bottom = y; + widgets[WIDX_GRAPH_VERTICAL].bottom = y; + widgets[WIDX_GRAPH_LATERAL].bottom = y; + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + } + + void GraphsOnDraw(DrawPixelInfo& dpi) + { + DrawWidgets(dpi); + DrawTabImages(dpi); + } + + void GraphsOnScrollDraw(DrawPixelInfo& dpi, int32_t scrollIndex) + { + GfxClear(&dpi, ColourMapA[COLOUR_SATURATED_GREEN].darker); + + auto widget = &widgets[WIDX_GRAPH]; + auto ride = GetRide(rideId); + if (ride == nullptr) + { + return; + } + + auto [measurement, message] = ride->GetMeasurement(); + + if (measurement == nullptr) + { + // No measurement message + ScreenCoordsXY stringCoords(widget->width() / 2, widget->height() / 2 - 5); + int32_t txtWidth = widget->width() - 2; + DrawTextWrapped(dpi, stringCoords, txtWidth, message.str, message.args, { TextAlignment::CENTRE }); + return; + } + + // Vertical grid lines + const uint8_t lightColour = ColourMapA[COLOUR_SATURATED_GREEN].mid_light; + const uint8_t darkColour = ColourMapA[COLOUR_SATURATED_GREEN].mid_dark; + + int32_t time = 0; + for (int32_t x = 0; x < dpi.x + dpi.width; x += 80) + { + if (x + 80 >= dpi.x) + { + auto coord1 = ScreenCoordsXY{ x, dpi.y }; + auto coord2 = ScreenCoordsXY{ x, dpi.y + dpi.height - 1 }; + GfxFillRect(dpi, { coord1, coord2 }, lightColour); + GfxFillRect(dpi, { coord1 + ScreenCoordsXY{ 16, 0 }, coord2 + ScreenCoordsXY{ 16, 0 } }, darkColour); + GfxFillRect(dpi, { coord1 + ScreenCoordsXY{ 32, 0 }, coord2 + ScreenCoordsXY{ 32, 0 } }, darkColour); + GfxFillRect(dpi, { coord1 + ScreenCoordsXY{ 48, 0 }, coord2 + ScreenCoordsXY{ 48, 0 } }, darkColour); + GfxFillRect(dpi, { coord1 + ScreenCoordsXY{ 64, 0 }, coord2 + ScreenCoordsXY{ 64, 0 } }, darkColour); + } + time += 5; + } + + // Horizontal grid lines + int32_t listType = list_information_type; + int16_t yUnit = GraphsYAxisDetails[listType].unit; + StringId stringID = GraphsYAxisDetails[listType].label; + int16_t yUnitInterval = GraphsYAxisDetails[listType].unit_interval; + int16_t yInterval = GraphsYAxisDetails[listType].interval; + + // Scale modifier + if (listType == GRAPH_ALTITUDE) + { + yUnit -= gMapBaseZ * 3; + } + + for (int32_t y = widget->height() - 13; y >= 8; y -= yInterval, yUnit += yUnitInterval) + { + // Minor / major line + int32_t colour = yUnit == 0 ? lightColour : darkColour; + GfxFillRect(dpi, { { dpi.x, y }, { dpi.x + dpi.width - 1, y } }, colour); + + int16_t scaled_yUnit = yUnit; + // Scale modifier + if (listType == GRAPH_ALTITUDE) + scaled_yUnit /= 2; + + auto ft = Formatter(); + ft.Add(scaled_yUnit); + + DrawTextBasic(dpi, { scrolls[0].h_left + 1, y - 4 }, stringID, ft, { FontStyle::Small }); + } + + // Time marks + time = 0; + for (int32_t x = 0; x < dpi.x + dpi.width; x += 80) + { + auto ft = Formatter(); + ft.Add(time); + if (x + 80 >= dpi.x) + DrawTextBasic(dpi, { x + 2, 1 }, STR_RIDE_STATS_TIME, ft, { FontStyle::Small }); + time += 5; + } + + // Plot + int32_t x = dpi.x; + int32_t firstPoint, secondPoint; + // Uses the force limits (used to draw extreme G's in red on measurement tab) to determine if line should be drawn red. + int32_t intensityThresholdPositive = 0; + int32_t intensityThresholdNegative = 0; + for (int32_t graphWidth = 0; graphWidth < dpi.width; graphWidth++, x++) + { + if (x < 0 || x >= measurement->num_items - 1) + continue; + + constexpr int32_t VerticalGraphHeightOffset = 39; + constexpr int32_t LateralGraphHeightOffset = 52; + + switch (listType) + { + case GRAPH_VELOCITY: + firstPoint = measurement->velocity[x] / 2; + secondPoint = measurement->velocity[x + 1] / 2; + break; + case GRAPH_ALTITUDE: + firstPoint = measurement->altitude[x]; + secondPoint = measurement->altitude[x + 1]; + break; + case GRAPH_VERTICAL: + firstPoint = measurement->vertical[x] + VerticalGraphHeightOffset; + secondPoint = measurement->vertical[x + 1] + VerticalGraphHeightOffset; + intensityThresholdNegative = (RIDE_G_FORCES_RED_NEG_VERTICAL / 8) + VerticalGraphHeightOffset; + break; + case GRAPH_LATERAL: + firstPoint = measurement->lateral[x] + LateralGraphHeightOffset; + secondPoint = measurement->lateral[x + 1] + LateralGraphHeightOffset; + intensityThresholdPositive = (RIDE_G_FORCES_RED_LATERAL / 8) + LateralGraphHeightOffset; + intensityThresholdNegative = -(RIDE_G_FORCES_RED_LATERAL / 8) + LateralGraphHeightOffset; + break; + default: + LOG_ERROR("Wrong graph type %d", listType); + firstPoint = secondPoint = 0; + break; + } + + // Adjust line to match graph widget position. + firstPoint = widget->height() - firstPoint - 13; + secondPoint = widget->height() - secondPoint - 13; + if (firstPoint > secondPoint) + { + std::swap(firstPoint, secondPoint); + } + + // Adjust threshold line position as well + if (listType == GRAPH_VERTICAL || listType == GRAPH_LATERAL) + { + intensityThresholdPositive = widget->height() - intensityThresholdPositive - 13; + intensityThresholdNegative = widget->height() - intensityThresholdNegative - 13; + } + + const bool previousMeasurement = x > measurement->current_item; + + // Draw the current line in grey. + GfxFillRect( + dpi, { { x, firstPoint }, { x, secondPoint } }, previousMeasurement ? PALETTE_INDEX_17 : PALETTE_INDEX_21); + + // Draw red over extreme values (if supported by graph type). + if (listType == GRAPH_VERTICAL || listType == GRAPH_LATERAL) + { + const auto redLineColour = previousMeasurement ? PALETTE_INDEX_171 : PALETTE_INDEX_173; + + // Line exceeds negative threshold (at bottom of graph). + if (secondPoint >= intensityThresholdNegative) + { + const auto redLineTop = ScreenCoordsXY{ x, std::max(firstPoint, intensityThresholdNegative) }; + const auto redLineBottom = ScreenCoordsXY{ x, std::max(secondPoint, intensityThresholdNegative) }; + GfxFillRect(dpi, { redLineTop, redLineBottom }, redLineColour); + } + + // Line exceeds positive threshold (at top of graph). + if (listType == GRAPH_LATERAL && firstPoint < intensityThresholdPositive) + { + const auto redLineTop = ScreenCoordsXY{ x, std::min(firstPoint, intensityThresholdPositive) }; + const auto redLineBottom = ScreenCoordsXY{ x, std::min(secondPoint, intensityThresholdPositive) }; + GfxFillRect(dpi, { redLineTop, redLineBottom }, redLineColour); + } + } + } + } + +#pragma endregion + +#pragma region Income + + static void UpdateSamePriceThroughoutFlags(ShopItem shop_item) + { + if (GetShopItemDescriptor(shop_item).IsPhoto()) + { + auto newFlags = gSamePriceThroughoutPark; + if (gSamePriceThroughoutPark & EnumToFlag(shop_item)) + newFlags &= ~EnumsToFlags(ShopItem::Photo, ShopItem::Photo2, ShopItem::Photo3, ShopItem::Photo4); + else + newFlags |= EnumsToFlags(ShopItem::Photo, ShopItem::Photo2, ShopItem::Photo3, ShopItem::Photo4); + auto parkSetParameter = ParkSetParameterAction(ParkParameter::SamePriceInPark, newFlags); + GameActions::Execute(&parkSetParameter); + } + else + { + auto newFlags = gSamePriceThroughoutPark; + newFlags ^= EnumToFlag(shop_item); + auto parkSetParameter = ParkSetParameterAction(ParkParameter::SamePriceInPark, newFlags); + GameActions::Execute(&parkSetParameter); + } + } + + void IncomeTogglePrimaryPrice() + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + ShopItem shopItem; + const auto& rtd = ride->GetRideTypeDescriptor(); + if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET)) + { + shopItem = ShopItem::Admission; + } + else + { + auto rideEntry = GetRideEntryByIndex(ride->subtype); + if (rideEntry != nullptr) + { + shopItem = rideEntry->shop_item[0]; + if (shopItem == ShopItem::None) + return; + } + else + { + return; + } + } + + UpdateSamePriceThroughoutFlags(shopItem); + + auto rideSetPriceAction = RideSetPriceAction(rideId, ride->price[0], true); + GameActions::Execute(&rideSetPriceAction); + } + + void IncomeToggleSecondaryPrice() + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto rideEntry = GetRideEntryByIndex(ride->subtype); + if (rideEntry == nullptr) + return; + + auto shop_item = rideEntry->shop_item[1]; + if (shop_item == ShopItem::None) + shop_item = ride->GetRideTypeDescriptor().PhotoItem; + + UpdateSamePriceThroughoutFlags(shop_item); + + auto rideSetPriceAction = RideSetPriceAction(rideId, ride->price[1], false); + GameActions::Execute(&rideSetPriceAction); + } + + void IncomeSetPrimaryPrice(money64 price) + { + auto rideSetPriceAction = RideSetPriceAction(rideId, price, true); + GameActions::Execute(&rideSetPriceAction); + } + + void IncomeIncreasePrimaryPrice() + { + if (!IncomeCanModifyPrimaryPrice()) + return; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto price = ride->price[0]; + if (price < 20.00_GBP) + price++; + + IncomeSetPrimaryPrice(price); + } + + void IncomeDecreasePrimaryPrice() + { + if (!IncomeCanModifyPrimaryPrice()) + return; + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto price = ride->price[0]; + if (price > 0.00_GBP) + price--; + + IncomeSetPrimaryPrice(price); + } + + money64 IncomeGetSecondaryPrice() + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return 0; + + return ride->price[1]; + } + + void IncomeSetSecondaryPrice(money64 price) + { + auto rideSetPriceAction = RideSetPriceAction(rideId, price, false); + GameActions::Execute(&rideSetPriceAction); + } + + bool IncomeCanModifyPrimaryPrice() + { + auto ride = GetRide(rideId); + if (ride == nullptr) + return false; + + auto rideEntry = ride->GetRideEntry(); + const auto& rtd = ride->GetRideTypeDescriptor(); + return ParkRidePricesUnlocked() || rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET) + || (rideEntry != nullptr && rideEntry->shop_item[0] != ShopItem::None); + } + + void IncomeIncreaseSecondaryPrice() + { + auto price = IncomeGetSecondaryPrice(); + + if (price < 20.00_GBP) + price++; + + IncomeSetSecondaryPrice(price); + } + + void IncomeDecreaseSecondaryPrice() + { + auto price = IncomeGetSecondaryPrice(); + + if (price > 0.00_GBP) + price--; + + IncomeSetSecondaryPrice(price); + } + + void IncomeOnMouseUp(WidgetIndex widgetIndex) + { + utf8 _moneyInputText[MONEY_STRING_MAXLENGTH] = {}; + + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + case WIDX_PRIMARY_PRICE: + { + if (!IncomeCanModifyPrimaryPrice()) + return; + + auto ride = GetRide(rideId); + if (ride != nullptr) + { + MoneyToString(ride->price[0], _moneyInputText, MONEY_STRING_MAXLENGTH, true); + WindowTextInputRawOpen( + this, WIDX_PRIMARY_PRICE, STR_ENTER_NEW_VALUE, STR_ENTER_NEW_VALUE, {}, _moneyInputText, + MONEY_STRING_MAXLENGTH); + } + break; + } + case WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK: + IncomeTogglePrimaryPrice(); + break; + case WIDX_SECONDARY_PRICE: + { + auto price64 = IncomeGetSecondaryPrice(); + + MoneyToString(price64, _moneyInputText, MONEY_STRING_MAXLENGTH, true); + WindowTextInputRawOpen( + this, WIDX_SECONDARY_PRICE, STR_ENTER_NEW_VALUE, STR_ENTER_NEW_VALUE, {}, _moneyInputText, + MONEY_STRING_MAXLENGTH); + } + break; + case WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK: + IncomeToggleSecondaryPrice(); + break; + } + } + + void IncomeResize() + { + WindowSetResize(*this, 316, 194, 316, 194); + } + + void IncomeOnMouseDown(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_PRIMARY_PRICE_INCREASE: + IncomeIncreasePrimaryPrice(); + break; + case WIDX_PRIMARY_PRICE_DECREASE: + IncomeDecreasePrimaryPrice(); + break; + case WIDX_SECONDARY_PRICE_INCREASE: + IncomeIncreaseSecondaryPrice(); + break; + case WIDX_SECONDARY_PRICE_DECREASE: + IncomeDecreaseSecondaryPrice(); + break; + } + } + + void IncomeUpdate() + { + frame_no++; + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_9); + + auto ride = GetRide(rideId); + if (ride != nullptr && ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_INCOME) + { + ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_INCOME; + Invalidate(); + } + } + + void IncomeOnTextInput(WidgetIndex widgetIndex, std::string_view text) + { + if ((widgetIndex != WIDX_PRIMARY_PRICE && widgetIndex != WIDX_SECONDARY_PRICE) || text.empty()) + return; + + std::string strText{ text }; + money64 price = StringToMoney(strText.c_str()); + if (price == MONEY64_UNDEFINED) + { + return; + } + + price = std::clamp(price, 0.00_GBP, 20.00_GBP); + + if (widgetIndex == WIDX_PRIMARY_PRICE) + { + IncomeSetPrimaryPrice(price); + } + else + { + IncomeSetSecondaryPrice(price); + } + } + + void IncomeOnPrepareDraw() + { + auto newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + widgets[WIDX_TITLE].text = STR_ARG_18_STRINGID; + + auto ft = Formatter::Common(); + ft.Increment(18); + ride->FormatNameTo(ft); + + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return; + + // Primary item + pressed_widgets &= ~(1uLL << WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK); + disabled_widgets &= ~(1uLL << WIDX_PRIMARY_PRICE); + + widgets[WIDX_PRIMARY_PRICE_LABEL].tooltip = STR_NONE; + widgets[WIDX_PRIMARY_PRICE].tooltip = STR_NONE; + + // If ride prices are locked, do not allow setting the price, unless we're dealing with a shop or toilet. + const auto& rtd = ride->GetRideTypeDescriptor(); + if (!ParkRidePricesUnlocked() && rideEntry->shop_item[0] == ShopItem::None && !rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET)) + { + disabled_widgets |= (1uLL << WIDX_PRIMARY_PRICE); + widgets[WIDX_PRIMARY_PRICE_LABEL].tooltip = STR_RIDE_INCOME_ADMISSION_PAY_FOR_ENTRY_TIP; + widgets[WIDX_PRIMARY_PRICE].tooltip = STR_RIDE_INCOME_ADMISSION_PAY_FOR_ENTRY_TIP; + } + + widgets[WIDX_PRIMARY_PRICE_LABEL].text = STR_RIDE_INCOME_ADMISSION_PRICE; + widgets[WIDX_SECONDARY_PRICE_LABEL].text = STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO; + widgets[WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Empty; + + widgets[WIDX_PRIMARY_PRICE].text = STR_BOTTOM_TOOLBAR_CASH; + auto ridePrimaryPrice = RideGetPrice(*ride); + ft.Rewind(); + ft.Add(ridePrimaryPrice); + if (ridePrimaryPrice == 0) + widgets[WIDX_PRIMARY_PRICE].text = STR_FREE; + + ShopItem primaryItem = ShopItem::Admission; + if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET) || ((primaryItem = rideEntry->shop_item[0]) != ShopItem::None)) + { + widgets[WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Checkbox; + + if (ShopItemHasCommonPrice(primaryItem)) + pressed_widgets |= (1uLL << WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK); + + widgets[WIDX_PRIMARY_PRICE_LABEL].text = GetShopItemDescriptor(primaryItem).Naming.PriceLabel; + } + + // Get secondary item + auto secondaryItem = ride->GetRideTypeDescriptor().PhotoItem; + if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_ON_RIDE_PHOTO)) + { + if ((secondaryItem = rideEntry->shop_item[1]) != ShopItem::None) + { + widgets[WIDX_SECONDARY_PRICE_LABEL].text = GetShopItemDescriptor(secondaryItem).Naming.PriceLabel; + } + } + + if (secondaryItem == ShopItem::None) + { + // Hide secondary item widgets + widgets[WIDX_SECONDARY_PRICE_LABEL].type = WindowWidgetType::Empty; + widgets[WIDX_SECONDARY_PRICE].type = WindowWidgetType::Empty; + widgets[WIDX_SECONDARY_PRICE_INCREASE].type = WindowWidgetType::Empty; + widgets[WIDX_SECONDARY_PRICE_DECREASE].type = WindowWidgetType::Empty; + widgets[WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Empty; + } + else + { + // Set same price throughout park checkbox + pressed_widgets &= ~(1uLL << WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK); + if (ShopItemHasCommonPrice(secondaryItem)) + pressed_widgets |= (1uLL << WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK); + + // Show widgets + widgets[WIDX_SECONDARY_PRICE_LABEL].type = WindowWidgetType::Label; + widgets[WIDX_SECONDARY_PRICE].type = WindowWidgetType::Spinner; + widgets[WIDX_SECONDARY_PRICE_INCREASE].type = WindowWidgetType::Button; + widgets[WIDX_SECONDARY_PRICE_DECREASE].type = WindowWidgetType::Button; + widgets[WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Checkbox; + + // Set secondary item price + widgets[WIDX_SECONDARY_PRICE].text = STR_RIDE_SECONDARY_PRICE_VALUE; + ft.Rewind(); + ft.Increment(10); + ft.Add(ride->price[1]); + if (ride->price[1] == 0) + widgets[WIDX_SECONDARY_PRICE].text = STR_FREE; + } + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + } + + void IncomeOnDraw(DrawPixelInfo& dpi) + { + StringId stringId; + money64 profit; + ShopItem primaryItem, secondaryItem; + + DrawWidgets(dpi); + DrawTabImages(dpi); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto rideEntry = ride->GetRideEntry(); + if (rideEntry == nullptr) + return; + + auto screenCoords = windowPos + + ScreenCoordsXY{ widgets[WIDX_PAGE_BACKGROUND].left + 4, widgets[WIDX_PAGE_BACKGROUND].top + 33 }; + + // Primary item profit / loss per item sold + primaryItem = rideEntry->shop_item[0]; + if (primaryItem != ShopItem::None) + { + profit = ride->price[0]; + + stringId = STR_PROFIT_PER_ITEM_SOLD; + profit -= GetShopItemDescriptor(primaryItem).Cost; + if (profit < 0) + { + profit *= -1; + stringId = STR_LOSS_PER_ITEM_SOLD; + } + + auto ft = Formatter(); + ft.Add(profit); + + DrawTextBasic(dpi, screenCoords, stringId, ft); + } + screenCoords.y += 44; + + // Secondary item profit / loss per item sold + secondaryItem = ride->GetRideTypeDescriptor().PhotoItem; + if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_ON_RIDE_PHOTO)) + secondaryItem = rideEntry->shop_item[1]; + + if (secondaryItem != ShopItem::None) + { + profit = ride->price[1]; + + stringId = STR_PROFIT_PER_ITEM_SOLD; + profit -= GetShopItemDescriptor(secondaryItem).Cost; + if (profit < 0) + { + profit *= -1; + stringId = STR_LOSS_PER_ITEM_SOLD; + } + + auto ft = Formatter(); + ft.Add(profit); + + DrawTextBasic(dpi, screenCoords, stringId, ft); + } + screenCoords.y += 18; + + // Income per hour + if (ride->income_per_hour != MONEY64_UNDEFINED) + { + auto ft = Formatter(); + ft.Add(ride->income_per_hour); + + DrawTextBasic(dpi, screenCoords, STR_INCOME_PER_HOUR, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + + // Running cost per hour + money64 costPerHour = ride->upkeep_cost * 16; + stringId = ride->upkeep_cost == MONEY64_UNDEFINED ? STR_RUNNING_COST_UNKNOWN : STR_RUNNING_COST_PER_HOUR; + auto ft = Formatter(); + ft.Add(costPerHour); + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Profit per hour + if (ride->profit != MONEY64_UNDEFINED) + { + ft = Formatter(); + ft.Add(ride->profit); + DrawTextBasic(dpi, screenCoords, STR_PROFIT_PER_HOUR, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + screenCoords.y += 5; + + // Total profit + ft = Formatter(); + ft.Add(ride->total_profit); + DrawTextBasic(dpi, screenCoords, STR_TOTAL_PROFIT, ft); + } + +#pragma endregion + +#pragma region Customer + + void CustomerOnMouseUp(WidgetIndex widgetIndex) + { + switch (widgetIndex) + { + case WIDX_CLOSE: + Close(); + return; + case WIDX_TAB_1: + case WIDX_TAB_2: + case WIDX_TAB_3: + case WIDX_TAB_4: + case WIDX_TAB_5: + case WIDX_TAB_6: + case WIDX_TAB_7: + case WIDX_TAB_8: + case WIDX_TAB_9: + case WIDX_TAB_10: + SetPage(widgetIndex - WIDX_TAB_1); + break; + case WIDX_SHOW_GUESTS_THOUGHTS: + { + auto intent = Intent(WindowClass::GuestList); + intent.PutExtra( + INTENT_EXTRA_GUEST_LIST_FILTER, static_cast(GuestListFilterType::GuestsThinkingAboutRide)); + intent.PutExtra(INTENT_EXTRA_RIDE_ID, number); + ContextOpenIntent(&intent); + break; + } + case WIDX_SHOW_GUESTS_ON_RIDE: + { + auto intent = Intent(WindowClass::GuestList); + intent.PutExtra(INTENT_EXTRA_GUEST_LIST_FILTER, static_cast(GuestListFilterType::GuestsOnRide)); + intent.PutExtra(INTENT_EXTRA_RIDE_ID, number); + ContextOpenIntent(&intent); + break; + } + case WIDX_SHOW_GUESTS_QUEUING: + { + auto intent = Intent(WindowClass::GuestList); + intent.PutExtra(INTENT_EXTRA_GUEST_LIST_FILTER, static_cast(GuestListFilterType::GuestsInQueue)); + intent.PutExtra(INTENT_EXTRA_RIDE_ID, number); + ContextOpenIntent(&intent); + break; + } + } + } + + void CustomerResize() + { + flags |= WF_RESIZABLE; + WindowSetResize(*this, 316, 163, 316, 163); + } + + void CustomerUpdate() + { + picked_peep_frame++; + if (picked_peep_frame >= 24) + picked_peep_frame = 0; + + OnPrepareDraw(); + WidgetInvalidate(*this, WIDX_TAB_10); + + auto ride = GetRide(rideId); + if (ride != nullptr && ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_CUSTOMER) + { + ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_CUSTOMER; + Invalidate(); + } + } + + void CustomerOnPrepareDraw() + { + auto newWidgets = PageWidgets[page]; + if (widgets != newWidgets) + { + widgets = newWidgets; + InitScrollWidgets(); + } + + SetPressedTab(); + + auto ride = GetRide(rideId); + if (ride != nullptr) + { + auto ft = Formatter::Common(); + ride->FormatNameTo(ft); + + widgets[WIDX_SHOW_GUESTS_THOUGHTS].type = WindowWidgetType::FlatBtn; + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY)) + { + widgets[WIDX_SHOW_GUESTS_ON_RIDE].type = WindowWidgetType::Empty; + widgets[WIDX_SHOW_GUESTS_QUEUING].type = WindowWidgetType::Empty; + } + else + { + widgets[WIDX_SHOW_GUESTS_ON_RIDE].type = WindowWidgetType::FlatBtn; + widgets[WIDX_SHOW_GUESTS_QUEUING].type = WindowWidgetType::FlatBtn; + } + + AnchorBorderWidgets(); + WindowAlignTabs(this, WIDX_TAB_1, WIDX_TAB_10); + } + } + + void CustomerOnDraw(DrawPixelInfo& dpi) + { + ShopItem shopItem; + int16_t popularity, satisfaction, queueTime; + StringId stringId; + + DrawWidgets(dpi); + DrawTabImages(dpi); + + auto ride = GetRide(rideId); + if (ride == nullptr) + return; + + auto screenCoords = windowPos + + ScreenCoordsXY{ widgets[WIDX_PAGE_BACKGROUND].left + 4, widgets[WIDX_PAGE_BACKGROUND].top + 4 }; + + // Customers currently on ride + if (ride->IsRide()) + { + auto ft = Formatter(); + ft.Add(ride->num_riders); + DrawTextBasic(dpi, screenCoords, STR_CUSTOMERS_ON_RIDE, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + + // Customers per hour + auto ft = Formatter(); + ft.Add(RideCustomersPerHour(*ride)); + DrawTextBasic(dpi, screenCoords, STR_CUSTOMERS_PER_HOUR, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Popularity + popularity = ride->popularity; + if (popularity == 255) + { + stringId = STR_POPULARITY_UNKNOWN; + } + else + { + stringId = STR_POPULARITY_PERCENT; + popularity *= 4; + } + ft = Formatter(); + ft.Add(popularity); + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Satisfaction + satisfaction = ride->satisfaction; + if (satisfaction == 255) + { + stringId = STR_SATISFACTION_UNKNOWN; + } + else + { + stringId = STR_SATISFACTION_PERCENT; + satisfaction *= 5; + } + ft = Formatter(); + ft.Add(satisfaction); + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Queue time + if (ride->IsRide()) + { + queueTime = ride->GetMaxQueueTime(); + stringId = queueTime == 1 ? STR_QUEUE_TIME_MINUTE : STR_QUEUE_TIME_MINUTES; + ft = Formatter(); + ft.Add(queueTime); + screenCoords.y += DrawTextWrapped(dpi, screenCoords, 308, stringId, ft, { TextAlignment::LEFT }); + screenCoords.y += 5; + } + + // Primary shop items sold + shopItem = ride->GetRideEntry()->shop_item[0]; + if (shopItem != ShopItem::None) + { + ft = Formatter(); + ft.Add(GetShopItemDescriptor(shopItem).Naming.Plural); + ft.Add(ride->no_primary_items_sold); + DrawTextBasic(dpi, screenCoords, STR_ITEMS_SOLD, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + + // Secondary shop items sold / on-ride photos sold + shopItem = (ride->lifecycle_flags & RIDE_LIFECYCLE_ON_RIDE_PHOTO) ? ride->GetRideTypeDescriptor().PhotoItem + : ride->GetRideEntry()->shop_item[1]; + if (shopItem != ShopItem::None) + { + ft = Formatter(); + ft.Add(GetShopItemDescriptor(shopItem).Naming.Plural); + ft.Add(ride->no_secondary_items_sold); + DrawTextBasic(dpi, screenCoords, STR_ITEMS_SOLD, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + + // Total customers + ft = Formatter(); + ft.Add(ride->total_customers); + DrawTextBasic(dpi, screenCoords, STR_TOTAL_CUSTOMERS, ft); + screenCoords.y += LIST_ROW_HEIGHT; + + // Guests favourite + if (ride->IsRide()) + { + ft = Formatter(); + ft.Add(ride->guests_favourite); + stringId = ride->guests_favourite == 1 ? STR_FAVOURITE_RIDE_OF_GUEST : STR_FAVOURITE_RIDE_OF_GUESTS; + DrawTextBasic(dpi, screenCoords, stringId, ft); + screenCoords.y += LIST_ROW_HEIGHT; + } + screenCoords.y += 2; + + // Age + // If the ride has a build date that is in the future, show it as built this year. + int16_t age = std::max(DateGetYear(ride->GetAge()), 0); + stringId = age == 0 ? STR_BUILT_THIS_YEAR : age == 1 ? STR_BUILT_LAST_YEAR : STR_BUILT_YEARS_AGO; + ft = Formatter(); + ft.Add(age); + DrawTextBasic(dpi, screenCoords, stringId, ft); + } + +#pragma endregion +}; /** * * rct2: 0x006AEAB4 */ -static WindowBase* WindowRideOpen(const Ride& ride) +static RideWindow* WindowRideOpen(const Ride& ride) { - WindowBase* w; - - w = WindowCreateAutoPos(316, 207, window_ride_page_events[0], WindowClass::Ride, WF_10 | WF_RESIZABLE); - w->widgets = window_ride_page_widgets[WINDOW_RIDE_PAGE_MAIN]; - w->hold_down_widgets = window_ride_page_hold_down_widgets[WINDOW_RIDE_PAGE_MAIN]; - w->rideId = ride.id; - - w->page = WINDOW_RIDE_PAGE_MAIN; - w->vehicleIndex = 0; - w->frame_no = 0; - w->list_information_type = 0; - w->picked_peep_frame = 0; - w->ride_colour = 0; - WindowRideDisableTabs(w); - w->min_width = 316; - w->min_height = 180; - w->max_width = 500; - w->max_height = 450; - - WindowRideUpdateOverallView(ride); - - PopulateVehicleTypeDropdown(ride, true); - - return w; + return WindowCreate(WindowClass::Ride, 316, 207, WF_10 | WF_RESIZABLE, ride); } /** @@ -1194,16 +6606,15 @@ WindowBase* WindowRideMainOpen(const Ride& ride) return nullptr; } - WindowBase* w = WindowBringToFrontByNumber(WindowClass::Ride, ride.id.ToUnderlying()); + RideWindow* w = static_cast(WindowBringToFrontByNumber(WindowClass::Ride, ride.id.ToUnderlying())); if (w == nullptr) { w = WindowRideOpen(ride); - w->ride.var_482 = -1; - w->ride.view = 0; + w->SetViewIndex(0); } - else if (w->ride.view >= (1 + ride.NumTrains + ride.num_stations)) + else if (w->GetViewIndex() >= (1 + ride.NumTrains + ride.num_stations)) { - w->ride.view = 0; + w->SetViewIndex(0); } if (InputTestFlag(INPUT_FLAG_TOOL_ACTIVE)) @@ -1216,10 +6627,10 @@ WindowBase* WindowRideMainOpen(const Ride& ride) if (w->page != WINDOW_RIDE_PAGE_MAIN) { - WindowRideSetPage(w, WINDOW_RIDE_PAGE_MAIN); + w->SetPage(WINDOW_RIDE_PAGE_MAIN); } - WindowRideInitViewport(w); + w->OnViewportRotate(); return w; } @@ -1235,11 +6646,10 @@ static WindowBase* WindowRideOpenStation(const Ride& ride, StationIndex stationI if (ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) return WindowRideMainOpen(ride); - auto w = WindowBringToFrontByNumber(WindowClass::Ride, ride.id.ToUnderlying()); + auto* w = static_cast(WindowBringToFrontByNumber(WindowClass::Ride, ride.id.ToUnderlying())); if (w == nullptr) { w = WindowRideOpen(ride); - w->ride.var_482 = -1; } if (InputTestFlag(INPUT_FLAG_TOOL_ACTIVE) && gCurrentToolWidget.window_classification == w->classification @@ -1248,18 +6658,6 @@ static WindowBase* WindowRideOpenStation(const Ride& ride, StationIndex stationI ToolCancel(); } - w->page = WINDOW_RIDE_PAGE_MAIN; - w->width = 316; - w->height = 180; - w->Invalidate(); - - w->widgets = window_ride_page_widgets[w->page]; - w->hold_down_widgets = window_ride_page_hold_down_widgets[w->page]; - w->event_handlers = window_ride_page_events[w->page]; - w->pressed_widgets = 0; - WindowRideDisableTabs(w); - WindowInitScrollWidgets(*w); - // View for (int32_t i = stationIndex.ToUnderlying(); i >= 0; i--) { @@ -1269,8 +6667,7 @@ static WindowBase* WindowRideOpenStation(const Ride& ride, StationIndex stationI } } - w->ride.view = 1 + ride.NumTrains + stationIndex.ToUnderlying(); - WindowRideInitViewport(w); + w->SetViewIndex(1 + ride.NumTrains + stationIndex.ToUnderlying()); return w; } @@ -1331,7 +6728,7 @@ WindowBase* WindowRideOpenVehicle(Vehicle* vehicle) return nullptr; // Get view index - int32_t view = 1; + int16_t view = 1; for (int32_t i = 0; i <= OpenRCT2::Limits::MaxTrainsPerRide; i++) { if (ride->vehicles[i] == headVehicleSpriteIndex) @@ -1340,7 +6737,7 @@ WindowBase* WindowRideOpenVehicle(Vehicle* vehicle) view++; } - WindowBase* w = WindowFindByNumber(WindowClass::Ride, ride->id.ToUnderlying()); + auto* w = static_cast(WindowFindByNumber(WindowClass::Ride, ride->id.ToUnderlying())); if (w != nullptr) { w->Invalidate(); @@ -1352,7 +6749,7 @@ WindowBase* WindowRideOpenVehicle(Vehicle* vehicle) } int32_t openedPeepWindow = 0; - if (w->ride.view == view) + if (w->GetViewIndex() == view) { int32_t numPeepsLeft = vehicle->num_peeps; for (int32_t i = 0; i < 32 && numPeepsLeft > 0; i++) @@ -1375,3949 +6772,52 @@ WindowBase* WindowRideOpenVehicle(Vehicle* vehicle) } } - w = openedPeepWindow ? WindowFindByNumber(WindowClass::Ride, ride->id.ToUnderlying()) - : WindowBringToFrontByNumber(WindowClass::Ride, ride->id.ToUnderlying()); + w = static_cast( + openedPeepWindow ? WindowFindByNumber(WindowClass::Ride, ride->id.ToUnderlying()) + : WindowBringToFrontByNumber(WindowClass::Ride, ride->id.ToUnderlying())); } if (w == nullptr) { w = WindowRideOpen(*ride); - w->ride.var_482 = -1; } - w->page = WINDOW_RIDE_PAGE_MAIN; - w->width = 316; - w->height = 180; - w->Invalidate(); - - w->widgets = window_ride_page_widgets[w->page]; - w->hold_down_widgets = window_ride_page_hold_down_widgets[w->page]; - w->event_handlers = window_ride_page_events[w->page]; - w->pressed_widgets = 0; - WindowRideDisableTabs(w); - WindowInitScrollWidgets(*w); - - w->ride.view = view; - WindowRideInitViewport(w); + w->SetViewIndex(view); w->Invalidate(); return w; } -/** - * - * rct2: 0x006AF1D2 - */ -static void WindowRideSetPage(WindowBase* w, int32_t page) +void WindowRideInvalidateVehicle(const Vehicle& vehicle) { - int32_t listen; + auto* w = static_cast(WindowFindByNumber(WindowClass::Ride, vehicle.ride.ToUnderlying())); + if (w == nullptr) + return; - if (InputTestFlag(INPUT_FLAG_TOOL_ACTIVE)) - if (w->classification == gCurrentToolWidget.window_classification && w->number == gCurrentToolWidget.window_number) - ToolCancel(); + auto ride = vehicle.GetRide(); + auto viewVehicleIndex = w->GetViewIndex() - 1; + if (ride == nullptr || viewVehicleIndex < 0 || viewVehicleIndex >= ride->NumTrains) + return; - if (page == WINDOW_RIDE_PAGE_VEHICLE) - { - auto constructionWindow = WindowFindByClass(WindowClass::RideConstruction); - if (constructionWindow != nullptr && constructionWindow->number == w->number) - { - WindowCloseByClass(WindowClass::RideConstruction); - // Closing the construction window sets the tab to the first page, which we don't want here, - // as user just clicked the Vehicle page - WindowRideSetPage(w, WINDOW_RIDE_PAGE_VEHICLE); - } - } + if (vehicle.Id != ride->vehicles[viewVehicleIndex]) + return; - // Set listen only to viewport - listen = 0; - if (page == WINDOW_RIDE_PAGE_MAIN && w->page == WINDOW_RIDE_PAGE_MAIN && w->viewport != nullptr - && !(w->viewport->flags & VIEWPORT_FLAG_SOUND_ON)) - listen++; - - w->page = page; - w->frame_no = 0; - w->picked_peep_frame = 0; - - // There doesn't seem to be any need for this call, and it can sometimes modify the reported number of cars per train, so - // I've removed it if (page == WINDOW_RIDE_PAGE_VEHICLE) { ride_update_max_vehicles(ride); - //} - - w->RemoveViewport(); - - w->hold_down_widgets = window_ride_page_hold_down_widgets[page]; - w->event_handlers = window_ride_page_events[page]; - w->pressed_widgets = 0; - w->widgets = window_ride_page_widgets[page]; - WindowRideDisableTabs(w); w->Invalidate(); - - WindowEventResizeCall(w); - WindowEventInvalidateCall(w); - WindowInitScrollWidgets(*w); - w->Invalidate(); - - if (listen != 0 && w->viewport != nullptr) - w->viewport->flags |= VIEWPORT_FLAG_SOUND_ON; } -static void WindowRideSetPressedTab(WindowBase* w) +void WindowRidePaintResetVehicle(RideId rideIndex) { - int32_t i; - for (i = 0; i < WINDOW_RIDE_PAGE_COUNT; i++) - w->pressed_widgets &= ~(1 << (WIDX_TAB_1 + i)); - w->pressed_widgets |= 1LL << (WIDX_TAB_1 + w->page); -} - -static void WindowRideAnchorBorderWidgets(WindowBase* w) -{ - w->ResizeFrameWithPage(); -} - -#pragma region Main - -static std::optional GetStationIndexFromViewSelection(const WindowBase& w) -{ - const auto* ride = GetRide(RideId::FromUnderlying(w.number)); - if (ride == nullptr) - return std::nullopt; - - int32_t viewSelectionIndex = w.ride.view - 1 - ride->NumTrains; - if (viewSelectionIndex < 0) + auto w = static_cast(WindowFindByNumber(WindowClass::Ride, rideIndex.ToUnderlying())); + if (w != nullptr) { - return std::nullopt; - } - - for (const auto& station : ride->GetStations()) - { - if (!station.Start.IsNull() && viewSelectionIndex-- == 0) + if (w->page == 4) // WINDOW_RIDE_PAGE_COLOUR { - const auto stationIndex = ride->GetStationIndex(&station); - return std::make_optional(stationIndex); + w->ResetVehicleIndex(); } - } - return std::nullopt; -} - -/** - * - * rct2: 0x006AF994 - */ -static void WindowRideInitViewport(WindowBase* w) -{ - if (w->page != WINDOW_RIDE_PAGE_MAIN) - return; - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - int32_t viewSelectionIndex = w->ride.view - 1; - - std::optional focus; - - if (viewSelectionIndex >= 0 && viewSelectionIndex < ride->NumTrains && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK) - { - auto vehId = ride->vehicles[viewSelectionIndex]; - const auto* rideEntry = ride->GetRideEntry(); - if (rideEntry != nullptr && rideEntry->TabCar != 0) - { - Vehicle* vehicle = GetEntity(vehId); - if (vehicle == nullptr) - { - vehId = EntityId::GetNull(); - } - else if (!vehicle->next_vehicle_on_train.IsNull()) - { - vehId = vehicle->next_vehicle_on_train; - } - } - if (!vehId.IsNull()) - { - focus = Focus(vehId); - } - } - else if (viewSelectionIndex >= ride->NumTrains && viewSelectionIndex < (ride->NumTrains + ride->num_stations)) - { - auto stationIndex = GetStationIndexFromViewSelection(*w); - if (stationIndex) - { - const auto location = ride->GetStation(*stationIndex).GetStart(); - focus = Focus(location); - } - } - else - { - if (viewSelectionIndex > 0) - { - w->ride.view = 0; - } - if (w->number < ride_overall_views.size()) - { - const auto& view = ride_overall_views[w->number]; - focus = Focus(view.loc, view.zoom); - } - } - - uint16_t viewport_flags = 0; - if (w->viewport != nullptr) - { - if (focus == w->focus) - { - return; - } - viewport_flags = w->viewport->flags; - w->RemoveViewport(); - } - else if (gConfigGeneral.AlwaysShowGridlines) - { - viewport_flags |= VIEWPORT_FLAG_GRIDLINES; - } - - WindowEventInvalidateCall(w); - - w->focus = focus; - - // rct2: 0x006aec9c only used here so brought it into the function - if (w->viewport == nullptr && !ride->overall_view.IsNull() && w->focus.has_value()) - { - const auto& view_widget = w->widgets[WIDX_VIEWPORT]; - - auto screenPos = w->windowPos + ScreenCoordsXY{ view_widget.left + 1, view_widget.top + 1 }; - int32_t width = view_widget.width() - 1; - int32_t height = view_widget.height() - 1; - - ViewportCreate(w, screenPos, width, height, w->focus.value()); - - w->flags |= WF_NO_SCROLLING; - w->Invalidate(); - } - if (w->viewport != nullptr) - { - w->viewport->flags = viewport_flags; w->Invalidate(); } } -/** - * - * rct2: 0x006AF315 - */ -static void WindowRideRename(WindowBase* w) -{ - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - auto rideName = ride->GetName(); - WindowTextInputRawOpen( - w, WIDX_RENAME, STR_RIDE_ATTRACTION_NAME, STR_ENTER_NEW_NAME_FOR_THIS_RIDE_ATTRACTION, {}, rideName.c_str(), 32); - } -} - -/** - * - * rct2: 0x006AF17E - */ -static void WindowRideMainMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - case WIDX_CONSTRUCTION: - { - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - RideConstructionStart(*ride); - if (WindowFindByNumber(WindowClass::RideConstruction, ride->id.ToUnderlying()) != nullptr) - { - WindowClose(*w); - } - } - break; - } - case WIDX_RENAME: - WindowRideRename(w); - break; - case WIDX_DEMOLISH: - ContextOpenDetailWindow(WD_DEMOLISH_RIDE, w->number); - break; - case WIDX_CLOSE_LIGHT: - case WIDX_SIMULATE_LIGHT: - case WIDX_TEST_LIGHT: - case WIDX_OPEN_LIGHT: - { - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - RideStatus status; - switch (widgetIndex) - { - default: - case WIDX_CLOSE_LIGHT: - status = RideStatus::Closed; - break; - case WIDX_SIMULATE_LIGHT: - status = RideStatus::Simulating; - break; - case WIDX_TEST_LIGHT: - status = RideStatus::Testing; - break; - case WIDX_OPEN_LIGHT: - status = RideStatus::Open; - break; - } - auto gameAction = RideSetStatusAction(ride->id, status); - GameActions::Execute(&gameAction); - } - break; - } - } -} - -/** - * - * rct2: 0x006AF4A2 - */ -static void WindowRideMainResize(WindowBase* w) -{ - int32_t minHeight = 180; - if (ThemeGetFlags() & UITHEME_FLAG_USE_LIGHTS_RIDE) - { - minHeight += 20 + RCT1_LIGHT_OFFSET; - - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { -#ifdef __SIMULATE_IN_RIDE_WINDOW__ - if (ride->SupportsStatus(RideStatus::Simulating)) - { - minHeight += 14; - } -#endif - if (ride->SupportsStatus(RideStatus::Testing)) - { - minHeight += 14; - } - } - } - if (gCheatsAllowArbitraryRideTypeChanges) - { - minHeight += 15; - } - - w->flags |= WF_RESIZABLE; - WindowSetResize(*w, 316, minHeight, 500, 450); - // Unlike with other windows, the focus needs to be recentred so it’s best to just reset it. - w->focus = std::nullopt; - WindowRideInitViewport(w); -} - -static size_t GetNumPeepsInTrain(const Ride& ride, int32_t trainIndex) -{ - auto numPeepsInTrain = 0; - const auto* vehicle = TryGetVehicle(ride.vehicles[trainIndex]); - while (vehicle != nullptr) - { - numPeepsInTrain += vehicle->num_peeps; - vehicle = TryGetVehicle(vehicle->next_vehicle_on_train); - } - return numPeepsInTrain; -} - -static bool TrainMustBeHidden(const Ride& ride, int32_t trainIndex) -{ - if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK)) - return true; - - const auto* rideEntry = ride.GetRideEntry(); - if (rideEntry == nullptr) - return false; - - if (!(rideEntry->flags & RIDE_ENTRY_FLAG_HIDE_EMPTY_TRAINS)) - return false; - - return GetNumPeepsInTrain(ride, trainIndex) == 0; -} - -/** - * - * rct2: 0x006AF825 - */ -static void WindowRideShowViewDropdown(WindowBase* w, Widget* widget) -{ - Widget* dropdownWidget = widget - 1; - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - const auto& rtd = ride->GetRideTypeDescriptor(); - - int32_t numItems = 1; - if (!rtd.HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) - { - numItems += ride->num_stations; - numItems += ride->NumTrains; - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, 0, numItems, widget->right - dropdownWidget->left); - - // First item - gDropdownItems[0].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[0].Args = STR_OVERALL_VIEW; - int32_t currentItem = 1; - - // Vehicles - int32_t name = GetRideComponentName(rtd.NameConvention.vehicle).number; - for (int32_t i = 0; i < ride->NumTrains; i++) - { - gDropdownItems[currentItem].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[currentItem].Args = name | (currentItem << 16); - if (TrainMustBeHidden(*ride, i)) - { - Dropdown::SetDisabled(currentItem, true); - } - currentItem++; - } - - // Stations - name = GetRideComponentName(rtd.NameConvention.station).number; - for (int32_t i = 1; i <= ride->num_stations; i++) - { - gDropdownItems[currentItem].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[currentItem].Args = name | (i << 16); - currentItem++; - } - - // Set checked item - Dropdown::SetChecked(w->ride.view, true); -} - -static RideStatus WindowRideGetNextDefaultStatus(const Ride& ride) -{ - switch (ride.status) - { - default: - case RideStatus::Closed: - if ((ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED) || (ride.lifecycle_flags & RIDE_LIFECYCLE_HAS_STALLED_VEHICLE)) - { - return RideStatus::Closed; - } - if (ride.SupportsStatus(RideStatus::Testing) && !(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) - { - return RideStatus::Testing; - } - return RideStatus::Open; - case RideStatus::Simulating: - return RideStatus::Testing; - case RideStatus::Testing: - return (ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED) ? RideStatus::Open : RideStatus::Closed; - case RideStatus::Open: - return RideStatus::Closed; - } -} - -struct RideStatusDropdownInfo -{ - struct Ride* Ride{}; - RideStatus CurrentStatus{}; - RideStatus DefaultStatus{}; - - int32_t NumItems{}; - int32_t CheckedIndex = -1; - int32_t DefaultIndex = -1; -}; - -static void WindowRideSetDropdown(RideStatusDropdownInfo& info, RideStatus status, StringId text) -{ - if (info.Ride->SupportsStatus(status)) - { - auto index = info.NumItems; - gDropdownItems[index].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[index].Args = text; - if (info.CurrentStatus == status) - { - info.CheckedIndex = index; - } - if (info.DefaultStatus == status) - { - info.DefaultIndex = index; - } - info.NumItems++; - } -} - -static void WindowRideShowOpenDropdown(WindowBase* w, Widget* widget) -{ - RideStatusDropdownInfo info; - info.Ride = GetRide(w->rideId); - if (info.Ride == nullptr) - return; - - info.CurrentStatus = info.Ride->status; - info.DefaultStatus = WindowRideGetNextDefaultStatus(*info.Ride); - WindowRideSetDropdown(info, RideStatus::Closed, STR_CLOSE_RIDE); -#ifdef __SIMULATE_IN_RIDE_WINDOW__ - window_ride_set_dropdown(info, RideStatus::Simulating, STR_SIMULATE_RIDE); -#endif - WindowRideSetDropdown(info, RideStatus::Testing, STR_TEST_RIDE); - WindowRideSetDropdown(info, RideStatus::Open, STR_OPEN_RIDE); - WindowDropdownShowText( - { w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, w->colours[1], 0, info.NumItems); - Dropdown::SetChecked(info.CheckedIndex, true); - gDropdownDefaultIndex = info.DefaultIndex; -} - -static StringId GetRideTypeNameForDropdown(ride_type_t rideType) -{ - switch (rideType) - { - case RIDE_TYPE_1D: - return STR_RIDE_NAME_1D; - case RIDE_TYPE_1F: - return STR_RIDE_NAME_1F; - case RIDE_TYPE_22: - return STR_RIDE_NAME_22; - case RIDE_TYPE_50: - return STR_RIDE_NAME_50; - case RIDE_TYPE_52: - return STR_RIDE_NAME_52; - case RIDE_TYPE_53: - return STR_RIDE_NAME_53; - case RIDE_TYPE_54: - return STR_RIDE_NAME_54; - case RIDE_TYPE_55: - return STR_RIDE_NAME_55; - case RIDE_TYPE_59: - return STR_RIDE_NAME_59; - default: - return GetRideTypeDescriptor(rideType).Naming.Name; - } -} - -static void PopulateRideTypeDropdown() -{ - auto& ls = OpenRCT2::GetContext()->GetLocalisationService(); - if (RideDropdownDataLanguage == ls.GetCurrentLanguage()) - return; - - RideDropdownData.clear(); - - for (uint8_t i = 0; i < RIDE_TYPE_COUNT; i++) - { - auto name = GetRideTypeNameForDropdown(i); - RideDropdownData.push_back({ i, name, ls.GetString(name) }); - } - - std::sort(RideDropdownData.begin(), RideDropdownData.end(), [](auto& a, auto& b) { - return String::Compare(a.label_string, b.label_string, true) < 0; - }); - - RideDropdownDataLanguage = ls.GetCurrentLanguage(); -} - -static void WindowRideShowRideTypeDropdown(WindowBase* w, Widget* widget) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - PopulateRideTypeDropdown(); - - for (size_t i = 0; i < RideDropdownData.size(); i++) - { - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = RideDropdownData[i].label_id; - } - - Widget* dropdownWidget = widget - 1; - WindowDropdownShowText( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], Dropdown::Flag::StayOpen, RIDE_TYPE_COUNT); - - // Find the current ride type in the ordered list. - int32_t pos = 0; - for (int32_t i = 0; i < RIDE_TYPE_COUNT; i++) - { - if (RideDropdownData[i].ride_type_id == ride->type) - { - pos = i; - break; - } - } - - gDropdownHighlightedIndex = pos; - gDropdownDefaultIndex = pos; - Dropdown::SetChecked(pos, true); -} - -static void WindowRideShowLocateDropdown(WindowBase* w, Widget* widget) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - gDropdownItems[0].Format = STR_LOCATE_SUBJECT_TIP; - gDropdownItems[1].Format = STR_FOLLOW_SUBJECT_TIP; - - WindowDropdownShowText( - { w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, w->colours[1], 0, 2); - gDropdownDefaultIndex = 0; - if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK) || w->ride.view == 0 || w->ride.view > ride->NumTrains) - { - // Disable if we're a flat ride, 'overall view' is selected or a station is selected - Dropdown::SetDisabled(1, true); - } -} - -static void WindowRideMainFollowRide(WindowBase* w) -{ - auto* ride = GetRide(w->rideId); - if (ride != nullptr) - { - if (!(ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_MAIN)) - { - if (w->ride.view > 0) - { - if (w->ride.view <= ride->NumTrains) - { - Vehicle* vehicle = GetEntity(ride->vehicles[w->ride.view - 1]); - if (vehicle != nullptr) - { - auto headVehicleSpriteIndex = vehicle->Id; - WindowBase* w_main = WindowGetMain(); - WindowFollowSprite(*w_main, headVehicleSpriteIndex); - } - } - } - } - } -} - -static void PopulateVehicleTypeDropdown(const Ride& ride, bool forceRefresh) -{ - auto& objManager = GetContext()->GetObjectManager(); - const auto* rideEntry = ride.GetRideEntry(); - - bool selectionShouldBeExpanded; - int32_t rideTypeIterator, rideTypeIteratorMax; - - const auto& rtd = ride.GetRideTypeDescriptor(); - if (gCheatsShowVehiclesFromOtherTrackTypes - && !(rtd.HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE) || rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE) || ride.type == RIDE_TYPE_MINI_GOLF)) - { - selectionShouldBeExpanded = true; - rideTypeIterator = 0; - rideTypeIteratorMax = RIDE_TYPE_COUNT - 1; - } - else - { - selectionShouldBeExpanded = false; - rideTypeIterator = ride.type; - rideTypeIteratorMax = ride.type; - } - - // Don't repopulate the list if we just did. - auto& ls = OpenRCT2::GetContext()->GetLocalisationService(); - if (!forceRefresh && VehicleDropdownExpanded == selectionShouldBeExpanded && VehicleDropdownRideType == rideEntry - && VehicleDropdownDataLanguage == ls.GetCurrentLanguage()) - return; - - VehicleDropdownData.clear(); - - for (; rideTypeIterator <= rideTypeIteratorMax; rideTypeIterator++) - { - const auto& rtdIterator = GetRideTypeDescriptor(rideTypeIterator); - if (selectionShouldBeExpanded && rtdIterator.HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE)) - continue; - if (selectionShouldBeExpanded - && (rtdIterator.HasFlag(RIDE_TYPE_FLAG_IS_MAZE) || rideTypeIterator == RIDE_TYPE_MINI_GOLF)) - continue; - - auto& rideEntries = objManager.GetAllRideEntries(rideTypeIterator); - for (auto rideEntryIndex : rideEntries) - { - const auto* currentRideEntry = GetRideEntryByIndex(rideEntryIndex); - if (currentRideEntry == nullptr) - continue; - - // Skip if vehicle type has not been invented yet - if (!RideEntryIsInvented(rideEntryIndex) && !gCheatsIgnoreResearchStatus) - continue; - - VehicleDropdownData.push_back( - { rideEntryIndex, currentRideEntry->naming.Name, ls.GetString(currentRideEntry->naming.Name) }); - } - } - - std::sort(VehicleDropdownData.begin(), VehicleDropdownData.end(), [](auto& a, auto& b) { - return String::Compare(a.label_string, b.label_string, true) < 0; - }); - - VehicleDropdownExpanded = selectionShouldBeExpanded; - VehicleDropdownRideType = rideEntry; - VehicleDropdownDataLanguage = ls.GetCurrentLanguage(); -} - -static void WindowRideShowVehicleTypeDropdown(WindowBase* w, Widget* widget) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - PopulateVehicleTypeDropdown(*ride); - - size_t numItems = std::min(VehicleDropdownData.size(), Dropdown::ItemsMaxSize); - - for (size_t i = 0; i < numItems; i++) - { - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = VehicleDropdownData[i].label_id; - } - - Widget* dropdownWidget = widget - 1; - auto width = WindowDropDownHasMultipleColumns(numItems) ? dropdownWidget->width() - 24 : dropdownWidget->width(); - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, numItems, width); - - // Find the current vehicle type in the ordered list. - int32_t pos = 0; - for (int32_t i = 0; i < static_cast(VehicleDropdownData.size()); i++) - { - if (VehicleDropdownData[i].subtype_id == ride->subtype) - { - pos = i; - break; - } - } - - gDropdownHighlightedIndex = pos; - gDropdownDefaultIndex = pos; - Dropdown::SetChecked(pos, true); -} - -/** - * - * rct2: 0x006AF1BD - */ -static void WindowRideMainMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - switch (widgetIndex) - { - case WIDX_VIEW_DROPDOWN: - WindowRideShowViewDropdown(w, widget); - break; - case WIDX_OPEN: - WindowRideShowOpenDropdown(w, widget); - break; - case WIDX_RIDE_TYPE_DROPDOWN: - WindowRideShowRideTypeDropdown(w, widget); - break; - case WIDX_LOCATE: - WindowRideShowLocateDropdown(w, widget); - break; - } -} - -/** - * - * rct2: 0x006AF300 - */ -static void WindowRideMainDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex) -{ - switch (widgetIndex) - { - case WIDX_VIEW_DROPDOWN: - if (dropdownIndex == -1) - { - dropdownIndex = w->ride.view + 1; - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - if (dropdownIndex != 0 && dropdownIndex <= ride->NumTrains - && !(ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK)) - { - dropdownIndex = ride->NumTrains + 1; - } - if (dropdownIndex >= gDropdownNumItems) - { - dropdownIndex = 0; - } - } - } - - w->ride.view = dropdownIndex; - WindowRideInitViewport(w); - w->Invalidate(); - break; - case WIDX_OPEN: - { - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - auto status = RideStatus::Closed; - if (dropdownIndex < 0) - { - dropdownIndex = gDropdownHighlightedIndex; - } - if (dropdownIndex < static_cast(std::size(gDropdownItems))) - { - switch (gDropdownItems[dropdownIndex].Args) - { - case STR_CLOSE_RIDE: - status = RideStatus::Closed; - break; - case STR_SIMULATE_RIDE: - status = RideStatus::Simulating; - break; - case STR_TEST_RIDE: - status = RideStatus::Testing; - break; - case STR_OPEN_RIDE: - status = RideStatus::Open; - break; - } - } - auto gameAction = RideSetStatusAction(ride->id, status); - GameActions::Execute(&gameAction); - } - break; - } - case WIDX_RIDE_TYPE_DROPDOWN: - if (dropdownIndex != -1 && dropdownIndex < RIDE_TYPE_COUNT) - { - auto rideLabelId = std::clamp(dropdownIndex, 0, RIDE_TYPE_COUNT - 1); - auto rideType = RideDropdownData[rideLabelId].ride_type_id; - if (rideType < RIDE_TYPE_COUNT) - { - auto rideSetSetting = RideSetSettingAction(w->rideId, RideSetSetting::RideType, rideType); - rideSetSetting.SetCallback([](const GameAction* ga, const GameActions::Result* result) { - // Reset ghost track if ride construction window is open, prevents a crash - // Will get set to the correct Alternative variable during set_default_next_piece. - // TODO: Rework construction window to prevent the need for this. - _currentTrackAlternative = RIDE_TYPE_NO_ALTERNATIVES; - RideConstructionSetDefaultNextPiece(); - }); - GameActions::Execute(&rideSetSetting); - } - } - break; - case WIDX_LOCATE: - { - if (dropdownIndex == 0) - { - w->ScrollToViewport(); - } - else if (dropdownIndex == 1) - { - WindowRideMainFollowRide(w); - } - break; - } - } -} - -/** - * - * rct2: 0x006AF40F - */ -static void WindowRideMainUpdate(WindowBase* w) -{ - // Update tab animation - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_1); - - // Update status - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - if (!(ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_MAIN)) - { - if (w->ride.view == 0) - return; - - if (w->ride.view <= ride->NumTrains) - { - Vehicle* vehicle = GetEntity(ride->vehicles[w->ride.view - 1]); - if (vehicle == nullptr - || (vehicle->status != Vehicle::Status::Travelling - && vehicle->status != Vehicle::Status::TravellingCableLift - && vehicle->status != Vehicle::Status::TravellingDodgems - && vehicle->status != Vehicle::Status::TravellingBoat)) - { - return; - } - } - } - ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_MAIN; - } - WidgetInvalidate(*w, WIDX_STATUS); -} - -/** - * - * rct2: 0x006AF2F9 - */ -static void WindowRideMainTextinput(WindowBase* w, WidgetIndex widgetIndex, const char* text) -{ - if (widgetIndex != WIDX_RENAME || text == nullptr) - return; - - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - auto gameAction = RideSetNameAction(ride->id, text); - GameActions::Execute(&gameAction); - } -} - -/** - * - * rct2: 0x006AF55A - */ -static void WindowRideMainViewportRotate(WindowBase* w) -{ - WindowRideInitViewport(w); -} - -/** - * - * rct2: 0x006AECF6 - */ -static void WindowRideMainInvalidate(WindowBase* w) -{ - Widget* widgets; - int32_t i, height; - - widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - w->disabled_widgets &= ~((1uLL << WIDX_DEMOLISH) | (1uLL << WIDX_CONSTRUCTION)); - if (ride->lifecycle_flags & (RIDE_LIFECYCLE_INDESTRUCTIBLE | RIDE_LIFECYCLE_INDESTRUCTIBLE_TRACK) - && !gCheatsMakeAllDestructible) - w->disabled_widgets |= (1uLL << WIDX_DEMOLISH); - - auto ft = Formatter::Common(); - ride->FormatNameTo(ft); - - uint32_t spriteIds[] = { - SPR_CLOSED, - SPR_OPEN, - SPR_TESTING, - SPR_G2_SIMULATE, - }; - window_ride_main_widgets[WIDX_OPEN].image = ImageId(spriteIds[EnumValue(ride->status)]); - -#ifdef __SIMULATE_IN_RIDE_WINDOW__ - window_ride_main_widgets[WIDX_CLOSE_LIGHT].image = SPR_G2_RCT1_CLOSE_BUTTON_0 + (ride->status == RideStatus::Closed) * 2 - + WidgetIsPressed(*w, WIDX_CLOSE_LIGHT); - window_ride_main_widgets[WIDX_SIMULATE_LIGHT].image = SPR_G2_RCT1_SIMULATE_BUTTON_0 - + (ride->status == RideStatus::Simulating) * 2 + WidgetIsPressed(*w, WIDX_SIMULATE_LIGHT); - window_ride_main_widgets[WIDX_TEST_LIGHT].image = SPR_G2_RCT1_TEST_BUTTON_0 + (ride->status == RideStatus::Testing) * 2 - + WidgetIsPressed(*w, WIDX_TEST_LIGHT); -#else - const auto closeLightImage = SPR_G2_RCT1_CLOSE_BUTTON_0 + (ride->status == RideStatus::Closed) * 2 - + WidgetIsPressed(*w, WIDX_CLOSE_LIGHT); - window_ride_main_widgets[WIDX_CLOSE_LIGHT].image = ImageId(closeLightImage); - - auto baseSprite = ride->status == RideStatus::Simulating ? SPR_G2_RCT1_SIMULATE_BUTTON_0 : SPR_G2_RCT1_TEST_BUTTON_0; - const auto testLightImage = baseSprite + (ride->status == RideStatus::Testing || ride->status == RideStatus::Simulating) * 2 - + WidgetIsPressed(*w, WIDX_TEST_LIGHT); - window_ride_main_widgets[WIDX_TEST_LIGHT].image = ImageId(testLightImage); -#endif - const auto openLightImage = SPR_G2_RCT1_OPEN_BUTTON_0 + (ride->status == RideStatus::Open) * 2 - + WidgetIsPressed(*w, WIDX_OPEN_LIGHT); - window_ride_main_widgets[WIDX_OPEN_LIGHT].image = ImageId(openLightImage); - - WindowRideAnchorBorderWidgets(w); - - const int32_t offset = gCheatsAllowArbitraryRideTypeChanges ? 15 : 0; - // Anchor main page specific widgets - window_ride_main_widgets[WIDX_VIEWPORT].right = w->width - 26; - window_ride_main_widgets[WIDX_VIEWPORT].bottom = w->height - (14 + offset); - window_ride_main_widgets[WIDX_STATUS].right = w->width - 26; - window_ride_main_widgets[WIDX_STATUS].top = w->height - (13 + offset); - window_ride_main_widgets[WIDX_STATUS].bottom = w->height - (3 + offset); - window_ride_main_widgets[WIDX_VIEW].right = w->width - 60; - window_ride_main_widgets[WIDX_VIEW_DROPDOWN].right = w->width - 61; - window_ride_main_widgets[WIDX_VIEW_DROPDOWN].left = w->width - 71; - window_ride_main_widgets[WIDX_RIDE_TYPE].right = w->width - 26; - window_ride_main_widgets[WIDX_RIDE_TYPE].top = w->height - 17; - window_ride_main_widgets[WIDX_RIDE_TYPE].bottom = w->height - 4; - window_ride_main_widgets[WIDX_RIDE_TYPE_DROPDOWN].left = w->width - 37; - window_ride_main_widgets[WIDX_RIDE_TYPE_DROPDOWN].right = w->width - 27; - window_ride_main_widgets[WIDX_RIDE_TYPE_DROPDOWN].top = w->height - 16; - window_ride_main_widgets[WIDX_RIDE_TYPE_DROPDOWN].bottom = w->height - 5; - - if (!gCheatsAllowArbitraryRideTypeChanges) - { - window_ride_main_widgets[WIDX_RIDE_TYPE].type = WindowWidgetType::Empty; - window_ride_main_widgets[WIDX_RIDE_TYPE_DROPDOWN].type = WindowWidgetType::Empty; - } - else - { - window_ride_main_widgets[WIDX_RIDE_TYPE].type = WindowWidgetType::DropdownMenu; - window_ride_main_widgets[WIDX_RIDE_TYPE].text = ride->GetRideTypeDescriptor().Naming.Name; - window_ride_main_widgets[WIDX_RIDE_TYPE_DROPDOWN].type = WindowWidgetType::Button; - } - - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); - - if (ThemeGetFlags() & UITHEME_FLAG_USE_LIGHTS_RIDE) - { - window_ride_main_widgets[WIDX_OPEN].type = WindowWidgetType::Empty; - window_ride_main_widgets[WIDX_CLOSE_LIGHT].type = WindowWidgetType::ImgBtn; - window_ride_main_widgets[WIDX_SIMULATE_LIGHT].type = WindowWidgetType::Empty; -#ifdef __SIMULATE_IN_RIDE_WINDOW__ - if (ride->SupportsStatus(RideStatus::Simulating)) - window_ride_main_widgets[WIDX_SIMULATE_LIGHT].type = WindowWidgetType::ImgBtn; -#endif - window_ride_main_widgets[WIDX_TEST_LIGHT].type = ride->SupportsStatus(RideStatus::Testing) ? WindowWidgetType::ImgBtn - : WindowWidgetType::Empty; - window_ride_main_widgets[WIDX_OPEN_LIGHT].type = WindowWidgetType::ImgBtn; - - height = 62; - if (window_ride_main_widgets[WIDX_SIMULATE_LIGHT].type != WindowWidgetType::Empty) - { - window_ride_main_widgets[WIDX_SIMULATE_LIGHT].top = height; - window_ride_main_widgets[WIDX_SIMULATE_LIGHT].bottom = height + 13; - height += 14; - } - if (window_ride_main_widgets[WIDX_TEST_LIGHT].type != WindowWidgetType::Empty) - { - window_ride_main_widgets[WIDX_TEST_LIGHT].top = height; - window_ride_main_widgets[WIDX_TEST_LIGHT].bottom = height + 13; - height += 14; - } - window_ride_main_widgets[WIDX_OPEN_LIGHT].top = height; - window_ride_main_widgets[WIDX_OPEN_LIGHT].bottom = height + 13; - height += 14 - 24 + RCT1_LIGHT_OFFSET; - } - else - { - window_ride_main_widgets[WIDX_OPEN].type = WindowWidgetType::FlatBtn; - window_ride_main_widgets[WIDX_CLOSE_LIGHT].type = WindowWidgetType::Empty; - window_ride_main_widgets[WIDX_SIMULATE_LIGHT].type = WindowWidgetType::Empty; - window_ride_main_widgets[WIDX_TEST_LIGHT].type = WindowWidgetType::Empty; - window_ride_main_widgets[WIDX_OPEN_LIGHT].type = WindowWidgetType::Empty; - height = 46; - } - for (i = WIDX_CLOSE_LIGHT; i <= WIDX_OPEN_LIGHT; i++) - { - window_ride_main_widgets[i].left = w->width - 20; - window_ride_main_widgets[i].right = w->width - 7; - } - for (i = WIDX_OPEN; i <= WIDX_DEMOLISH; i++, height += 24) - { - window_ride_main_widgets[i].left = w->width - 25; - window_ride_main_widgets[i].right = w->width - 2; - window_ride_main_widgets[i].top = height; - window_ride_main_widgets[i].bottom = height + 23; - } -} - -/** - * - * rct2: 0x006AF10A - */ -static StringId WindowRideGetStatusOverallView(WindowBase* w, Formatter& ft) -{ - auto stringId = STR_NONE; - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - ride->FormatStatusTo(ft); - stringId = STR_BLACK_STRING; - if ((ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) || (ride->lifecycle_flags & RIDE_LIFECYCLE_CRASHED)) - { - stringId = STR_RED_OUTLINED_STRING; - } - } - return stringId; -} - -/** - * - * rct2: 0x006AEFEF - */ -static StringId WindowRideGetStatusVehicle(WindowBase* w, Formatter& ft) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return STR_EMPTY; - - auto vehicle = GetEntity(ride->vehicles[w->ride.view - 1]); - if (vehicle == nullptr) - return STR_EMPTY; - - if (vehicle->status != Vehicle::Status::Crashing && vehicle->status != Vehicle::Status::Crashed) - { - auto trackType = vehicle->GetTrackType(); - if (trackType == TrackElemType::BlockBrakes || trackType == TrackElemType::CableLiftHill - || trackType == TrackElemType::Up25ToFlat || trackType == TrackElemType::Up60ToFlat - || trackType == TrackElemType::DiagUp25ToFlat || trackType == TrackElemType::DiagUp60ToFlat) - { - if (ride->GetRideTypeDescriptor().SupportsTrackPiece(TRACK_BLOCK_BRAKES) && vehicle->velocity == 0) - { - ft.Add(STR_STOPPED_BY_BLOCK_BRAKES); - return STR_BLACK_STRING; - } - } - } - - if (ride->type == RIDE_TYPE_MINI_GOLF) - return STR_EMPTY; - - auto stringId = VehicleStatusNames[static_cast(vehicle->status)]; - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_SINGLE_SESSION) - && vehicle->status <= Vehicle::Status::UnloadingPassengers) - { - stringId = SingleSessionVehicleStatusNames[static_cast(vehicle->status)]; - } - - ft.Add(stringId); - uint16_t speedInMph = (abs(vehicle->velocity) * 9) >> 18; - ft.Add(speedInMph); - const RideComponentName stationName = GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.station); - ft.Add(ride->num_stations > 1 ? stationName.number : stationName.singular); - ft.Add(vehicle->current_station.ToUnderlying() + 1); - return stringId != STR_CRASHING && stringId != STR_CRASHED_0 ? STR_BLACK_STRING : STR_RED_OUTLINED_STRING; -} - -/** - * - * rct2: 0x006AEF65 - */ -static StringId WindowRideGetStatusStation(WindowBase* w, Formatter& ft) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return STR_NONE; - - const auto stationIndex = GetStationIndexFromViewSelection(*w); - if (!stationIndex) - { - return STR_NONE; - } - - const auto& station = ride->GetStation(*stationIndex); - StringId stringId = STR_EMPTY; - // Entrance / exit - if (ride->status == RideStatus::Closed) - { - if (station.Entrance.IsNull()) - stringId = STR_NO_ENTRANCE; - else if (station.Exit.IsNull()) - stringId = STR_NO_EXIT; - } - else - { - if (station.Entrance.IsNull()) - stringId = STR_EXIT_ONLY; - } - // Queue length - if (stringId == STR_EMPTY) - { - stringId = STR_QUEUE_EMPTY; - uint16_t queueLength = ride->GetStation(*stationIndex).QueueLength; - if (queueLength == 1) - stringId = STR_QUEUE_ONE_PERSON; - else if (queueLength > 1) - stringId = STR_QUEUE_PEOPLE; - - ft.Add(stringId); - ft.Add(queueLength); - } - else - { - ft.Add(stringId); - } - - return STR_BLACK_STRING; -} - -/** - * - * rct2: 0x006AEE73 - */ -static StringId WindowRideGetStatus(WindowBase* w, Formatter& ft) -{ - auto ride = GetRide(w->rideId); - if (w->ride.view == 0) - return WindowRideGetStatusOverallView(w, ft); - if (ride != nullptr && w->ride.view <= ride->NumTrains) - return WindowRideGetStatusVehicle(w, ft); - if (ride != nullptr && ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) - return WindowRideGetStatusOverallView(w, ft); - return WindowRideGetStatusStation(w, ft); -} - -/** - * - * rct2: 0x006AEE73 - */ -static void WindowRideMainPaint(WindowBase* w, DrawPixelInfo& dpi) -{ - Widget* widget; - - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); - - // Viewport and ear icon - if (w->viewport != nullptr) - { - WindowDrawViewport(dpi, *w); - if (w->viewport->flags & VIEWPORT_FLAG_SOUND_ON) - GfxDrawSprite(dpi, ImageId(SPR_HEARING_VIEWPORT), w->windowPos + ScreenCoordsXY{ 2, 2 }); - } - - // View dropdown - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto ft = Formatter(); - if (w->ride.view != 0) - { - if (w->ride.view > ride->NumTrains) - { - ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.station).number); - ft.Add(w->ride.view - ride->NumTrains); - } - else - { - ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).number); - ft.Add(w->ride.view); - } - } - else - { - ft.Add(STR_OVERALL_VIEW); - } - - widget = &window_ride_main_widgets[WIDX_VIEW]; - DrawTextBasic( - dpi, { w->windowPos.x + (widget->left + widget->right - 11) / 2, w->windowPos.y + widget->top }, - STR_WINDOW_COLOUR_2_STRINGID, ft, { TextAlignment::CENTRE }); - - // Status - ft = Formatter(); - widget = &window_ride_main_widgets[WIDX_STATUS]; - StringId rideStatus = WindowRideGetStatus(w, ft); - DrawTextEllipsised( - dpi, w->windowPos + ScreenCoordsXY{ (widget->left + widget->right) / 2, widget->top }, widget->width(), rideStatus, ft, - { TextAlignment::CENTRE }); -} - -#pragma endregion - -#pragma region Vehicle - -/** - * - * rct2: 0x006B272D - */ -static void WindowRideVehicleMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - } -} - -/** - * - * rct2: 0x006B2ABB - */ -static void WindowRideVehicleResize(WindowBase* w) -{ - WindowSetResize(*w, 316, 221, 316, 221); -} - -/** - * - * rct2: 0x006B2748 - */ -static void WindowRideVehicleMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - switch (widgetIndex) - { - case WIDX_VEHICLE_TYPE_DROPDOWN: - WindowRideShowVehicleTypeDropdown(w, &w->widgets[widgetIndex]); - break; - case WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX: - ride->SetReversedTrains(!ride->HasLifecycleFlag(RIDE_LIFECYCLE_REVERSED_TRAINS)); - break; - case WIDX_VEHICLE_TRAINS_INCREASE: - if (ride->NumTrains < OpenRCT2::Limits::MaxTrainsPerRide) - ride->SetNumTrains(ride->NumTrains + 1); - break; - case WIDX_VEHICLE_TRAINS_DECREASE: - if (ride->NumTrains > 1) - ride->SetNumTrains(ride->NumTrains - 1); - break; - case WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE: - if (ride->num_cars_per_train < OpenRCT2::Limits::MaxCarsPerTrain) - ride->SetNumCarsPerVehicle(ride->num_cars_per_train + 1); - break; - case WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE: - if (ride->num_cars_per_train > 1) - ride->SetNumCarsPerVehicle(ride->num_cars_per_train - 1); - break; - } -} - -/** - * - * rct2: 0x006B2767 - */ -static void WindowRideVehicleDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex) -{ - if (dropdownIndex == -1) - return; - - switch (widgetIndex) - { - case WIDX_VEHICLE_TYPE_DROPDOWN: - if (dropdownIndex >= 0 && static_cast(dropdownIndex) < VehicleDropdownData.size()) - { - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - auto newRideType = VehicleDropdownData[dropdownIndex].subtype_id; - ride->SetRideEntry(newRideType); - } - } - break; - } -} - -/** - * - * rct2: 0x006B2AA1 - */ -static void WindowRideVehicleUpdate(WindowBase* w) -{ - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_2); -} - -static OpenRCT2String WindowRideVehicleTooltip(WindowBase* const w, const WidgetIndex widgetIndex, StringId fallback) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return { STR_NONE, {} }; - - switch (widgetIndex) - { - case WIDX_VEHICLE_TRAINS: - case WIDX_VEHICLE_TRAINS_DECREASE: - case WIDX_VEHICLE_TRAINS_INCREASE: - { - auto ft = Formatter(); - ft.Increment(12); - - RideComponentType vehicleType = ride->GetRideTypeDescriptor().NameConvention.vehicle; - StringId stringId = GetRideComponentName(vehicleType).count; - if (ride->max_trains > 1) - { - stringId = GetRideComponentName(vehicleType).count_plural; - } - ft.Add(stringId); - ft.Add(ride->max_trains); - return { fallback, ft }; - } - case WIDX_VEHICLE_CARS_PER_TRAIN: - case WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE: - case WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE: - { - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return { STR_NONE, {} }; - - auto ft = Formatter(); - ft.Increment(16); - ft.Add(std::max(uint8_t(1), ride->MaxCarsPerTrain) - rideEntry->zero_cars); - - StringId stringId = GetRideComponentName(RideComponentType::Car).singular; - if (ride->MaxCarsPerTrain - rideEntry->zero_cars > 1) - { - stringId = GetRideComponentName(RideComponentType::Car).plural; - } - ft.Add(stringId); - return { fallback, ft }; - } - } - return { fallback, {} }; -} - -/** - * - * rct2: 0x006B222C - */ -static void WindowRideVehicleInvalidate(WindowBase* w) -{ - Widget* widgets; - StringId stringId; - int32_t carsPerTrain; - - widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - const auto* rideEntry = ride->GetRideEntry(); - - w->widgets[WIDX_TITLE].text = STR_ARG_20_STRINGID; - - // Widget setup - carsPerTrain = ride->num_cars_per_train - rideEntry->zero_cars; - - // Vehicle type - window_ride_vehicle_widgets[WIDX_VEHICLE_TYPE].text = rideEntry->naming.Name; - - // Trains - if (rideEntry->cars_per_flat_ride > 1 || gCheatsDisableTrainLengthLimit) - { - window_ride_vehicle_widgets[WIDX_VEHICLE_TRAINS].type = WindowWidgetType::Spinner; - window_ride_vehicle_widgets[WIDX_VEHICLE_TRAINS_INCREASE].type = WindowWidgetType::Button; - window_ride_vehicle_widgets[WIDX_VEHICLE_TRAINS_DECREASE].type = WindowWidgetType::Button; - } - else - { - window_ride_vehicle_widgets[WIDX_VEHICLE_TRAINS].type = WindowWidgetType::Empty; - window_ride_vehicle_widgets[WIDX_VEHICLE_TRAINS_INCREASE].type = WindowWidgetType::Empty; - window_ride_vehicle_widgets[WIDX_VEHICLE_TRAINS_DECREASE].type = WindowWidgetType::Empty; - } - - // Cars per train - if (rideEntry->zero_cars + 1 < rideEntry->max_cars_in_train || gCheatsDisableTrainLengthLimit) - { - window_ride_vehicle_widgets[WIDX_VEHICLE_CARS_PER_TRAIN].type = WindowWidgetType::Spinner; - window_ride_vehicle_widgets[WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE].type = WindowWidgetType::Button; - window_ride_vehicle_widgets[WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE].type = WindowWidgetType::Button; - } - else - { - window_ride_vehicle_widgets[WIDX_VEHICLE_CARS_PER_TRAIN].type = WindowWidgetType::Empty; - window_ride_vehicle_widgets[WIDX_VEHICLE_CARS_PER_TRAIN_INCREASE].type = WindowWidgetType::Empty; - window_ride_vehicle_widgets[WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE].type = WindowWidgetType::Empty; - } - - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_ALLOW_REVERSED_TRAINS) - || (gCheatsDisableTrainLengthLimit && !ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE))) - { - window_ride_vehicle_widgets[WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX].type = WindowWidgetType::Checkbox; - if (ride->HasLifecycleFlag(RIDE_LIFECYCLE_REVERSED_TRAINS)) - { - w->pressed_widgets |= (1uLL << WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX); - } - else - { - w->pressed_widgets &= ~(1uLL << WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX); - } - } - else - { - window_ride_vehicle_widgets[WIDX_VEHICLE_REVERSED_TRAINS_CHECKBOX].type = WindowWidgetType::Empty; - } - - auto ft = Formatter::Common(); - ft.Increment(6); - ft.Add(carsPerTrain); - RideComponentType vehicleType = ride->GetRideTypeDescriptor().NameConvention.vehicle; - stringId = GetRideComponentName(vehicleType).count; - if (ride->NumTrains > 1) - { - stringId = GetRideComponentName(vehicleType).count_plural; - } - ft.Add(stringId); - ft.Add(ride->NumTrains); - - ft.Increment(8); - - ride->FormatNameTo(ft); - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); - - if (abs(ride->num_cars_per_train - rideEntry->zero_cars) == 1) - { - window_ride_vehicle_widgets[WIDX_VEHICLE_CARS_PER_TRAIN].text = STR_1_CAR_PER_TRAIN; - } - else - { - window_ride_vehicle_widgets[WIDX_VEHICLE_CARS_PER_TRAIN].text = STR_X_CARS_PER_TRAIN; - } -} - -/** - * - * rct2: 0x006B23DC - */ -static void WindowRideVehiclePaint(WindowBase* w, DrawPixelInfo& dpi) -{ - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return; - - auto screenCoords = w->windowPos + ScreenCoordsXY{ 8, 64 }; - - // Description - auto ft = Formatter(); - ft.Add(rideEntry->naming.Description); - screenCoords.y += DrawTextWrapped(dpi, screenCoords, 300, STR_BLACK_STRING, ft, { TextAlignment::LEFT }); - screenCoords.y += 2; - - // Capacity - ft = Formatter(); - ft.Add(rideEntry->capacity); - DrawTextBasic(dpi, screenCoords, STR_CAPACITY, ft); - - // Excitement Factor - if (rideEntry->excitement_multiplier != 0) - { - screenCoords.y += LIST_ROW_HEIGHT; - - ft = Formatter(); - ft.Add(abs(rideEntry->excitement_multiplier)); - StringId stringId = rideEntry->excitement_multiplier > 0 ? STR_EXCITEMENT_FACTOR : STR_EXCITEMENT_FACTOR_NEGATIVE; - DrawTextBasic(dpi, screenCoords, stringId, ft); - } - - // Intensity Factor - if (rideEntry->intensity_multiplier != 0) - { - int32_t lineHeight = FontGetLineHeight(FontStyle::Medium); - if (lineHeight != 10) - screenCoords.x += 150; - else - screenCoords.y += LIST_ROW_HEIGHT; - - ft = Formatter(); - ft.Add(abs(rideEntry->intensity_multiplier)); - StringId stringId = rideEntry->intensity_multiplier > 0 ? STR_INTENSITY_FACTOR : STR_INTENSITY_FACTOR_NEGATIVE; - DrawTextBasic(dpi, screenCoords, stringId, ft); - - if (lineHeight != 10) - screenCoords.x -= 150; - } - - // Nausea Factor - if (rideEntry->nausea_multiplier != 0) - { - screenCoords.y += LIST_ROW_HEIGHT; - - ft = Formatter(); - ft.Add(abs(rideEntry->nausea_multiplier)); - StringId stringId = rideEntry->nausea_multiplier > 0 ? STR_NAUSEA_FACTOR : STR_NAUSEA_FACTOR_NEGATIVE; - DrawTextBasic(dpi, screenCoords, stringId, ft); - } -} - -struct VehicleDrawInfo -{ - int16_t x; - int16_t y; - ImageId imageId; -}; - -/** - * - * rct2: 0x006B2502 - */ -static void WindowRideVehicleScrollpaint(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - const auto* rideEntry = ride->GetRideEntry(); - - // Background - GfxFillRect(dpi, { { dpi.x, dpi.y }, { dpi.x + dpi.width, dpi.y + dpi.height } }, PALETTE_INDEX_12); - - Widget* widget = &window_ride_vehicle_widgets[WIDX_VEHICLE_TRAINS_PREVIEW]; - int32_t startX = std::max(2, (widget->width() - ((ride->NumTrains - 1) * 36)) / 2 - 25); - int32_t startY = widget->height() - 4; - - bool isReversed = ride->HasLifecycleFlag(RIDE_LIFECYCLE_REVERSED_TRAINS); - int32_t carIndex = (isReversed) ? ride->num_cars_per_train - 1 : 0; - - const auto& firstCarEntry = rideEntry - ->Cars[RideEntryGetVehicleAtPosition(ride->subtype, ride->num_cars_per_train, carIndex)]; - startY += firstCarEntry.tab_height; - - // For each train - for (int32_t i = 0; i < ride->NumTrains; i++) - { - VehicleDrawInfo trainCarImages[OpenRCT2::Limits::MaxCarsPerTrain]; - VehicleDrawInfo* nextSpriteToDraw = trainCarImages; - int32_t x = startX; - int32_t y = startY; - - // For each car in train - static_assert(std::numeric_limitsnum_cars_per_train)>::max() <= std::size(trainCarImages)); - for (int32_t j = 0; j < ride->num_cars_per_train; j++) - { - carIndex = (isReversed) ? (ride->num_cars_per_train - 1) - j : j; - - const auto& carEntry = rideEntry - ->Cars[RideEntryGetVehicleAtPosition(ride->subtype, ride->num_cars_per_train, carIndex)]; - x += carEntry.spacing / 17432; - y -= (carEntry.spacing / 2) / 17432; - - // Get colour of vehicle - int32_t vehicleColourIndex = 0; - switch (ride->colour_scheme_type & 3) - { - case VEHICLE_COLOUR_SCHEME_SAME: - vehicleColourIndex = 0; - break; - case VEHICLE_COLOUR_SCHEME_PER_TRAIN: - vehicleColourIndex = i; - break; - case VEHICLE_COLOUR_SCHEME_PER_VEHICLE: - vehicleColourIndex = carIndex; - break; - } - VehicleColour vehicleColour = RideGetVehicleColour(*ride, vehicleColourIndex); - - ImageIndex imageIndex = carEntry.SpriteByYaw(OpenRCT2::Entity::Yaw::BaseRotation / 2, SpriteGroupType::SlopeFlat); - if (isReversed) - { - auto baseRotation = carEntry.NumRotationSprites(SpriteGroupType::SlopeFlat); - imageIndex = carEntry.SpriteByYaw( - (imageIndex + (baseRotation / 2)) & (baseRotation - 1), SpriteGroupType::SlopeFlat); - } - - imageIndex &= carEntry.TabRotationMask; - imageIndex *= carEntry.base_num_frames; - imageIndex += carEntry.base_image_id; - - auto imageId = ImageId(imageIndex, vehicleColour.Body, vehicleColour.Trim, vehicleColour.Tertiary); - - nextSpriteToDraw->x = x; - nextSpriteToDraw->y = y; - nextSpriteToDraw->imageId = imageId; - nextSpriteToDraw++; - - x += carEntry.spacing / 17432; - y -= (carEntry.spacing / 2) / 17432; - } - - if (ride->type == RIDE_TYPE_REVERSER_ROLLER_COASTER) - { - VehicleDrawInfo tmp = *(nextSpriteToDraw - 1); - *(nextSpriteToDraw - 1) = *(nextSpriteToDraw - 2); - *(nextSpriteToDraw - 2) = tmp; - } - - VehicleDrawInfo* current = nextSpriteToDraw; - while (--current >= trainCarImages) - GfxDrawSprite(dpi, current->imageId, { current->x, current->y }); - - startX += 36; - } -} - -#pragma endregion - -#pragma region Operating - -/** - * - * rct2: 0x006B11D5 - */ -static void WindowRideModeTweakIncrease(WindowBase* w) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; - uint8_t maxValue = operatingSettings.MaxValue; - uint8_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; - - if (gCheatsUnlockOperatingLimits) - { - maxValue = OpenRCT2::Limits::CheatsMaxOperatingLimit; - } - - uint8_t increment = ride->mode == RideMode::Dodgems ? 10 : 1; - - SetOperatingSetting( - w->rideId, RideSetSetting::Operation, std::clamp(ride->operation_option + increment, minValue, maxValue)); -} - -/** - * - * rct2: 0x006B120A - */ -static void WindowRideModeTweakDecrease(WindowBase* w) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; - uint8_t maxValue = operatingSettings.MaxValue; - uint8_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; - if (gCheatsUnlockOperatingLimits) - { - maxValue = OpenRCT2::Limits::CheatsMaxOperatingLimit; - } - - uint8_t decrement = ride->mode == RideMode::Dodgems ? 10 : 1; - - SetOperatingSetting( - w->rideId, RideSetSetting::Operation, std::clamp(ride->operation_option - decrement, minValue, maxValue)); -} - -/** - * - * rct2: 0x006B1631 - */ -static void WindowRideModeDropdown(WindowBase* w, Widget* widget) -{ - Widget* dropdownWidget; - - dropdownWidget = widget - 1; - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto availableModes = ride->GetAvailableModes(); - - // Create dropdown list - auto numAvailableModes = 0; - auto checkedIndex = -1; - for (auto i = 0; i < static_cast(RideMode::Count); i++) - { - if (availableModes & (1uLL << i)) - { - gDropdownItems[numAvailableModes].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[numAvailableModes].Args = RideModeNames[i]; - - if (ride->mode == static_cast(i)) - checkedIndex = numAvailableModes; - - numAvailableModes++; - } - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, numAvailableModes, widget->right - dropdownWidget->left); - - if (checkedIndex != -1) - { - Dropdown::SetChecked(checkedIndex, true); - } -} - -/** - * - * rct2: 0x006B15C0 - */ -static void WindowRideLoadDropdown(WindowBase* w, Widget* widget) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto dropdownWidget = widget - 1; - for (auto i = 0; i < 5; i++) - { - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = VehicleLoadNames[i]; - } - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, 5, widget->right - dropdownWidget->left); - - Dropdown::SetChecked(ride->depart_flags & RIDE_DEPART_WAIT_FOR_LOAD_MASK, true); -} - -/** - * - * rct2: 0x006B10A7 - */ -static void WindowRideOperatingMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - const auto rideId = w->rideId; - auto ride = GetRide(rideId); - if (ride == nullptr) - return; - - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - case WIDX_LOAD_CHECKBOX: - SetOperatingSetting(rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_WAIT_FOR_LOAD); - break; - case WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX: - SetOperatingSetting(rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_LEAVE_WHEN_ANOTHER_ARRIVES); - break; - case WIDX_MINIMUM_LENGTH_CHECKBOX: - SetOperatingSetting(rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_WAIT_FOR_MINIMUM_LENGTH); - break; - case WIDX_MAXIMUM_LENGTH_CHECKBOX: - SetOperatingSetting(rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_WAIT_FOR_MAXIMUM_LENGTH); - break; - case WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX: - SetOperatingSetting( - rideId, RideSetSetting::Departure, ride->depart_flags ^ RIDE_DEPART_SYNCHRONISE_WITH_ADJACENT_STATIONS); - break; - } -} - -/** - * - * rct2: 0x006B1715 - */ -static void WindowRideOperatingResize(WindowBase* w) -{ - WindowSetResize(*w, 316, 186, 316, 186); -} - -/** - * - * rct2: 0x006B10F4 - */ -static void WindowRideOperatingMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - const auto rideId = w->rideId; - auto ride = GetRide(rideId); - if (ride == nullptr) - return; - - uint8_t upper_bound, lower_bound; - switch (widgetIndex) - { - case WIDX_MODE_TWEAK: - WindowRideOperatingTweakTextInput(w, *ride); - break; - case WIDX_MODE_TWEAK_INCREASE: - WindowRideModeTweakIncrease(w); - break; - case WIDX_MODE_TWEAK_DECREASE: - WindowRideModeTweakDecrease(w); - break; - case WIDX_LIFT_HILL_SPEED_INCREASE: - upper_bound = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit - : ride->GetRideTypeDescriptor().LiftData.maximum_speed; - lower_bound = gCheatsUnlockOperatingLimits ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; - SetOperatingSetting( - rideId, RideSetSetting::LiftHillSpeed, - std::clamp(ride->lift_hill_speed + 1, lower_bound, upper_bound)); - break; - case WIDX_LIFT_HILL_SPEED_DECREASE: - upper_bound = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit - : ride->GetRideTypeDescriptor().LiftData.maximum_speed; - lower_bound = gCheatsUnlockOperatingLimits ? 0 : ride->GetRideTypeDescriptor().LiftData.minimum_speed; - SetOperatingSetting( - rideId, RideSetSetting::LiftHillSpeed, - std::clamp(ride->lift_hill_speed - 1, lower_bound, upper_bound)); - break; - case WIDX_MINIMUM_LENGTH: - WindowRideOperatingLengthWindow(w, WIDX_MINIMUM_LENGTH); - break; - case WIDX_MAXIMUM_LENGTH: - WindowRideOperatingLengthWindow(w, WIDX_MAXIMUM_LENGTH); - break; - case WIDX_MINIMUM_LENGTH_INCREASE: - upper_bound = OpenRCT2::Limits::MaxWaitingTime; - lower_bound = 0; - SetOperatingSetting( - rideId, RideSetSetting::MinWaitingTime, - std::clamp(ride->min_waiting_time + 1, lower_bound, upper_bound)); - break; - case WIDX_MINIMUM_LENGTH_DECREASE: - upper_bound = OpenRCT2::Limits::MaxWaitingTime; - lower_bound = 0; - SetOperatingSetting( - rideId, RideSetSetting::MinWaitingTime, - std::clamp(ride->min_waiting_time - 1, lower_bound, upper_bound)); - break; - case WIDX_MAXIMUM_LENGTH_INCREASE: - upper_bound = OpenRCT2::Limits::MaxWaitingTime; - lower_bound = 0; - SetOperatingSetting( - rideId, RideSetSetting::MaxWaitingTime, - std::clamp(ride->max_waiting_time + 1, lower_bound, upper_bound)); - break; - case WIDX_MAXIMUM_LENGTH_DECREASE: - upper_bound = OpenRCT2::Limits::MaxWaitingTime; - lower_bound = 0; - SetOperatingSetting( - rideId, RideSetSetting::MaxWaitingTime, - std::clamp(ride->max_waiting_time - 1, lower_bound, upper_bound)); - break; - case WIDX_MODE_DROPDOWN: - WindowRideModeDropdown(w, widget); - break; - case WIDX_LOAD_DROPDOWN: - WindowRideLoadDropdown(w, widget); - break; - case WIDX_OPERATE_NUMBER_OF_CIRCUITS_INCREASE: - upper_bound = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit - : OpenRCT2::Limits::MaxCircuitsPerRide; - lower_bound = 1; - SetOperatingSetting( - rideId, RideSetSetting::NumCircuits, std::clamp(ride->num_circuits + 1, lower_bound, upper_bound)); - break; - case WIDX_OPERATE_NUMBER_OF_CIRCUITS_DECREASE: - upper_bound = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit - : OpenRCT2::Limits::MaxCircuitsPerRide; - lower_bound = 1; - SetOperatingSetting( - rideId, RideSetSetting::NumCircuits, std::clamp(ride->num_circuits - 1, lower_bound, upper_bound)); - break; - } -} - -static void WindowRideOperatingLengthWindow(WindowBase* w, WidgetIndex widgetIndex) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - uint8_t upperBound = OpenRCT2::Limits::MaxWaitingTime; - uint8_t lowerBound = 0; - Formatter ft; - ft.Add(lowerBound); - ft.Add(upperBound); - auto title = (widgetIndex == WIDX_MINIMUM_LENGTH) ? STR_MINIMUM_WAITING_TIME : STR_MAXIMUM_WAITING_TIME; - auto currentValue = (widgetIndex == WIDX_MINIMUM_LENGTH) ? ride->min_waiting_time : ride->max_waiting_time; - char buffer[5]{}; - snprintf(buffer, std::size(buffer), "%u", currentValue); - WindowTextInputRawOpen(w, widgetIndex, title, STR_ENTER_VALUE, ft, buffer, 4); -} - -static void WindowRideOperatingTweakTextInput(WindowBase* w, const Ride& ride) -{ - switch (ride.mode) - { - case RideMode::PoweredLaunchPasstrough: - case RideMode::PoweredLaunch: - case RideMode::UpwardLaunch: - case RideMode::PoweredLaunchBlockSectioned: - case RideMode::StationToStation: - case RideMode::Dodgems: - return; - default: - break; - } - - const auto& operatingSettings = ride.GetRideTypeDescriptor().OperatingSettings; - int16_t maxValue = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit : operatingSettings.MaxValue; - int16_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; - - const auto& title = window_ride_operating_widgets[WIDX_MODE_TWEAK_LABEL].text; - Formatter ft; - ft.Add(minValue * operatingSettings.OperatingSettingMultiplier); - ft.Add(maxValue * operatingSettings.OperatingSettingMultiplier); - - uint16_t currentValue = static_cast(ride.operation_option) * operatingSettings.OperatingSettingMultiplier; - char buffer[6]{}; - snprintf(buffer, std::size(buffer), "%u", currentValue); - - WindowTextInputRawOpen(w, WIDX_MODE_TWEAK, title, STR_ENTER_VALUE, ft, buffer, 4); -} - -/** - * - * rct2: 0x006B1165 - */ -static void WindowRideOperatingDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex) -{ - if (dropdownIndex == -1) - return; - - const auto rideId = w->rideId; - auto ride = GetRide(rideId); - if (ride == nullptr) - return; - - switch (widgetIndex) - { - case WIDX_MODE_DROPDOWN: - { - RideMode rideMode = RideMode::NullMode; - auto availableModes = ride->GetAvailableModes(); - auto modeInDropdownIndex = -1; - for (RideMode rideModeIndex = RideMode::Normal; rideModeIndex < RideMode::Count; rideModeIndex++) - { - if (availableModes & EnumToFlag(rideModeIndex)) - { - modeInDropdownIndex++; - if (modeInDropdownIndex == dropdownIndex) - { - rideMode = rideModeIndex; - break; - } - } - } - if (rideMode != RideMode::NullMode) - SetOperatingSetting(rideId, RideSetSetting::Mode, static_cast(rideMode)); - break; - } - case WIDX_LOAD_DROPDOWN: - SetOperatingSetting( - rideId, RideSetSetting::Departure, (ride->depart_flags & ~RIDE_DEPART_WAIT_FOR_LOAD_MASK) | dropdownIndex); - break; - } -} - -/** - * - * rct2: 0x006B178E - */ -static void WindowRideOperatingUpdate(WindowBase* w) -{ - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_3); - - auto ride = GetRide(w->rideId); - if (ride != nullptr && ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_OPERATING) - { - ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_OPERATING; - w->Invalidate(); - } -} - -static void WindowRideOperatingTextinput(WindowBase* w, WidgetIndex widgetIndex, const char* text) -{ - if (text == nullptr) - return; - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - if (widgetIndex == WIDX_MODE_TWEAK) - { - const auto& operatingSettings = ride->GetRideTypeDescriptor().OperatingSettings; - uint32_t maxValue = gCheatsUnlockOperatingLimits ? OpenRCT2::Limits::CheatsMaxOperatingLimit - : operatingSettings.MaxValue; - uint32_t minValue = gCheatsUnlockOperatingLimits ? 0 : operatingSettings.MinValue; - auto multiplier = ride->GetRideTypeDescriptor().OperatingSettings.OperatingSettingMultiplier; - - try - { - uint32_t origSize = std::stol(std::string(text)) / multiplier; - uint8_t size = static_cast(std::clamp(origSize, minValue, maxValue)); - SetOperatingSetting(ride->id, RideSetSetting::Operation, size); - } - catch (const std::logic_error&) - { - // std::stol can throw std::out_of_range or std::invalid_argument - } - } - else if (widgetIndex == WIDX_MINIMUM_LENGTH || widgetIndex == WIDX_MAXIMUM_LENGTH) - { - try - { - auto rideSetSetting = widgetIndex == WIDX_MINIMUM_LENGTH ? RideSetSetting::MinWaitingTime - : RideSetSetting::MaxWaitingTime; - - uint16_t upperBound = OpenRCT2::Limits::MaxWaitingTime; - uint16_t lowerBound = 0; - uint16_t size = std::stol(std::string(text)); - size = std::clamp(size, lowerBound, upperBound); - SetOperatingSetting(ride->id, rideSetSetting, size); - } - catch (const std::logic_error&) - { - // std::stol can throw std::out_of_range or std::invalid_argument - } - } -} - -/** - * - * rct2: 0x006B0B30 - */ -static void WindowRideOperatingInvalidate(WindowBase* w) -{ - Widget* widgets; - StringId format, caption, tooltip; - - widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto ft = Formatter::Common(); - ride->FormatNameTo(ft); - - // Widget setup - w->pressed_widgets &= ~( - (1uLL << WIDX_LOAD_CHECKBOX) | (1uLL << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX) - | (1uLL << WIDX_MINIMUM_LENGTH_CHECKBOX) | (1uLL << WIDX_MAXIMUM_LENGTH_CHECKBOX) - | (1uLL << WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX)); - - // Sometimes, only one of the alternatives support lift hill pieces. Make sure to check both. - bool hasAlternativeType = ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE); - if (ride->GetRideTypeDescriptor().SupportsTrackPiece(TRACK_LIFT_HILL) - || (hasAlternativeType - && GetRideTypeDescriptor(ride->GetRideTypeDescriptor().AlternateType).SupportsTrackPiece(TRACK_LIFT_HILL))) - { - window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_LABEL].type = WindowWidgetType::Label; - window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED].type = WindowWidgetType::Spinner; - window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_INCREASE].type = WindowWidgetType::Button; - window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_DECREASE].type = WindowWidgetType::Button; - ft.Rewind(); - ft.Increment(20); - ft.Add(ride->lift_hill_speed); - } - else - { - window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_LABEL].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_INCREASE].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_DECREASE].type = WindowWidgetType::Empty; - } - - // Number of circuits - if (ride->CanHaveMultipleCircuits()) - { - window_ride_operating_widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_LABEL].type = WindowWidgetType::Label; - window_ride_operating_widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS].type = WindowWidgetType::Spinner; - window_ride_operating_widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_INCREASE].type = WindowWidgetType::Button; - window_ride_operating_widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_DECREASE].type = WindowWidgetType::Button; - ft.Rewind(); - ft.Increment(22); - ft.Add(ride->num_circuits); - } - else - { - window_ride_operating_widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_LABEL].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_INCREASE].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_OPERATE_NUMBER_OF_CIRCUITS_DECREASE].type = WindowWidgetType::Empty; - } - - // Leave if another vehicle arrives at station - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION) - && ride->NumTrains > 1 && !ride->IsBlockSectioned()) - { - window_ride_operating_widgets[WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX].type = WindowWidgetType::Checkbox; - window_ride_operating_widgets[WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX].tooltip - = STR_LEAVE_IF_ANOTHER_VEHICLE_ARRIVES_TIP; - window_ride_operating_widgets[WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX].text = ride->GetRideTypeDescriptor() - .NameConvention.vehicle - == RideComponentType::Boat - ? STR_LEAVE_IF_ANOTHER_BOAT_ARRIVES - : STR_LEAVE_IF_ANOTHER_TRAIN_ARRIVES; - } - else - { - window_ride_operating_widgets[WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX].type = WindowWidgetType::Empty; - } - - // Synchronise with adjacent stations - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS)) - { - window_ride_operating_widgets[WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX].type = WindowWidgetType::Checkbox; - window_ride_operating_widgets[WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX].text - = STR_SYNCHRONISE_WITH_ADJACENT_STATIONS; - window_ride_operating_widgets[WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX].tooltip - = STR_SYNCHRONISE_WITH_ADJACENT_STATIONS_TIP; - } - else - { - window_ride_operating_widgets[WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX].type = WindowWidgetType::Empty; - } - - // Mode - window_ride_operating_widgets[WIDX_MODE].text = RideModeNames[static_cast(ride->mode)]; - - // Waiting - window_ride_operating_widgets[WIDX_LOAD].text = VehicleLoadNames[(ride->depart_flags & RIDE_DEPART_WAIT_FOR_LOAD_MASK)]; - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS)) - { - window_ride_operating_widgets[WIDX_LOAD_CHECKBOX].type = WindowWidgetType::Checkbox; - window_ride_operating_widgets[WIDX_LOAD].type = WindowWidgetType::DropdownMenu; - window_ride_operating_widgets[WIDX_LOAD_DROPDOWN].type = WindowWidgetType::Button; - - window_ride_operating_widgets[WIDX_MINIMUM_LENGTH_CHECKBOX].type = WindowWidgetType::Checkbox; - window_ride_operating_widgets[WIDX_MINIMUM_LENGTH].type = WindowWidgetType::Spinner; - window_ride_operating_widgets[WIDX_MINIMUM_LENGTH_INCREASE].type = WindowWidgetType::Button; - window_ride_operating_widgets[WIDX_MINIMUM_LENGTH_DECREASE].type = WindowWidgetType::Button; - - window_ride_operating_widgets[WIDX_MAXIMUM_LENGTH_CHECKBOX].type = WindowWidgetType::Checkbox; - window_ride_operating_widgets[WIDX_MAXIMUM_LENGTH].type = WindowWidgetType::Spinner; - window_ride_operating_widgets[WIDX_MAXIMUM_LENGTH_INCREASE].type = WindowWidgetType::Button; - window_ride_operating_widgets[WIDX_MAXIMUM_LENGTH_DECREASE].type = WindowWidgetType::Button; - - ft.Rewind(); - ft.Increment(10); - ft.Add(STR_FORMAT_SECONDS); - ft.Add(ride->min_waiting_time); - ft.Add(STR_FORMAT_SECONDS); - ft.Add(ride->max_waiting_time); - - if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_LOAD) - w->pressed_widgets |= (1uLL << WIDX_LOAD_CHECKBOX); - } - else - { - window_ride_operating_widgets[WIDX_LOAD_CHECKBOX].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_LOAD].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_LOAD_DROPDOWN].type = WindowWidgetType::Empty; - - window_ride_operating_widgets[WIDX_MINIMUM_LENGTH_CHECKBOX].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MINIMUM_LENGTH].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MINIMUM_LENGTH_INCREASE].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MINIMUM_LENGTH_DECREASE].type = WindowWidgetType::Empty; - - window_ride_operating_widgets[WIDX_MAXIMUM_LENGTH_CHECKBOX].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MAXIMUM_LENGTH].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MAXIMUM_LENGTH_INCREASE].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MAXIMUM_LENGTH_DECREASE].type = WindowWidgetType::Empty; - } - - if (ride->depart_flags & RIDE_DEPART_LEAVE_WHEN_ANOTHER_ARRIVES) - w->pressed_widgets |= (1uLL << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX); - if (ride->depart_flags & RIDE_DEPART_SYNCHRONISE_WITH_ADJACENT_STATIONS) - w->pressed_widgets |= (1uLL << WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX); - if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_MINIMUM_LENGTH) - w->pressed_widgets |= (1uLL << WIDX_MINIMUM_LENGTH_CHECKBOX); - if (ride->depart_flags & RIDE_DEPART_WAIT_FOR_MAXIMUM_LENGTH) - w->pressed_widgets |= (1uLL << WIDX_MAXIMUM_LENGTH_CHECKBOX); - - // Mode specific functionality - auto multiplier = ride->GetRideTypeDescriptor().OperatingSettings.OperatingSettingMultiplier; - ft.Rewind(); - ft.Increment(18); - ft.Add(static_cast(ride->operation_option) * multiplier); - switch (ride->mode) - { - case RideMode::PoweredLaunchPasstrough: - case RideMode::PoweredLaunch: - case RideMode::UpwardLaunch: - case RideMode::PoweredLaunchBlockSectioned: - ft.Rewind(); - ft.Increment(18); - ft.Add((ride->launch_speed * 9) / 4); - format = STR_RIDE_MODE_SPEED_VALUE; - caption = STR_LAUNCH_SPEED; - tooltip = STR_LAUNCH_SPEED_TIP; - break; - case RideMode::StationToStation: - ft.Rewind(); - ft.Increment(18); - ft.Add((ride->speed * 9) / 4); - format = STR_RIDE_MODE_SPEED_VALUE; - caption = STR_SPEED; - tooltip = STR_SPEED_TIP; - break; - case RideMode::Race: - ft.Rewind(); - ft.Increment(18); - ft.Add(ride->NumLaps); - format = STR_NUMBER_OF_LAPS_VALUE; - caption = STR_NUMBER_OF_LAPS; - tooltip = STR_NUMBER_OF_LAPS_TIP; - break; - case RideMode::Dodgems: - format = STR_RIDE_MODE_TIME_LIMIT_VALUE; - caption = STR_TIME_LIMIT; - tooltip = STR_TIME_LIMIT_TIP; - break; - case RideMode::Swing: - format = STR_RIDE_MODE_NUMBER_OF_SWINGS_VALUE; - caption = STR_NUMBER_OF_SWINGS; - tooltip = STR_NUMBER_OF_SWINGS_TIP; - break; - case RideMode::Rotation: - case RideMode::ForwardRotation: - case RideMode::BackwardRotation: - format = STR_NUMBER_OF_ROTATIONS_VALUE; - caption = STR_NUMBER_OF_ROTATIONS; - tooltip = STR_NUMBER_OF_ROTATIONS_TIP; - break; - default: - format = STR_MAX_PEOPLE_ON_RIDE_VALUE; - caption = STR_MAX_PEOPLE_ON_RIDE; - tooltip = STR_MAX_PEOPLE_ON_RIDE_TIP; - if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES)) - format = 0; - break; - } - - if (format != 0) - { - window_ride_operating_widgets[WIDX_MODE_TWEAK_LABEL].type = WindowWidgetType::Label; - window_ride_operating_widgets[WIDX_MODE_TWEAK_LABEL].text = caption; - window_ride_operating_widgets[WIDX_MODE_TWEAK_LABEL].tooltip = tooltip; - window_ride_operating_widgets[WIDX_MODE_TWEAK].type = WindowWidgetType::Spinner; - window_ride_operating_widgets[WIDX_MODE_TWEAK].text = format; - window_ride_operating_widgets[WIDX_MODE_TWEAK_INCREASE].type = WindowWidgetType::Button; - window_ride_operating_widgets[WIDX_MODE_TWEAK_DECREASE].type = WindowWidgetType::Button; - w->pressed_widgets &= ~(1uLL << WIDX_LEAVE_WHEN_ANOTHER_ARRIVES_CHECKBOX); - } - else - { - window_ride_operating_widgets[WIDX_MODE_TWEAK_LABEL].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MODE_TWEAK].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MODE_TWEAK_INCREASE].type = WindowWidgetType::Empty; - window_ride_operating_widgets[WIDX_MODE_TWEAK_DECREASE].type = WindowWidgetType::Empty; - } - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); -} - -/** - * - * rct2: 0x006B1001 - */ -static void WindowRideOperatingPaint(WindowBase* w, DrawPixelInfo& dpi) -{ - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - // Horizontal rule between mode settings and depart settings - GfxFillRectInset( - dpi, - { w->windowPos + ScreenCoordsXY{ window_ride_operating_widgets[WIDX_PAGE_BACKGROUND].left + 4, 103 }, - w->windowPos + ScreenCoordsXY{ window_ride_operating_widgets[WIDX_PAGE_BACKGROUND].right - 5, 104 } }, - w->colours[1], INSET_RECT_FLAG_BORDER_INSET); - - // Number of block sections - if (ride->IsBlockSectioned()) - { - auto ft = Formatter(); - ft.Add(ride->num_block_brakes + ride->num_stations); - DrawTextBasic( - dpi, w->windowPos + ScreenCoordsXY{ 21, ride->mode == RideMode::PoweredLaunchBlockSectioned ? 89 : 61 }, - STR_BLOCK_SECTIONS, ft, COLOUR_BLACK); - } -} - -#pragma endregion - -#pragma region Maintenance - -/** - * - * rct2: 0x006B1AE4 - */ -static void WindowRideLocateMechanic(WindowBase* w) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - // First check if there is a mechanic assigned - Peep* mechanic = RideGetAssignedMechanic(*ride); - - // Otherwise find the closest mechanic - if (mechanic == nullptr) - mechanic = RideFindClosestMechanic(*ride, 1); - - if (mechanic == nullptr) - ContextShowError(STR_UNABLE_TO_LOCATE_MECHANIC, STR_NONE, {}); - else - { - auto intent = Intent(WindowClass::Peep); - intent.PutExtra(INTENT_EXTRA_PEEP, mechanic); - ContextOpenIntent(&intent); - } -} - -/** - * - * rct2: 0x006B7D08 - */ -static void WindowRideMaintenanceDrawBar( - WindowBase* w, DrawPixelInfo& dpi, const ScreenCoordsXY& coords, int32_t value, int32_t colour) -{ - GfxFillRectInset(dpi, { coords, coords + ScreenCoordsXY{ 149, 8 } }, w->colours[1], INSET_RECT_F_30); - if (colour & BAR_BLINK) - { - colour &= ~BAR_BLINK; - if (GameIsNotPaused() && (gCurrentRealTimeTicks & 8)) - return; - } - - value = ((186 * ((value * 2) & 0xFF)) >> 8) & 0xFF; - if (value > 2) - { - GfxFillRectInset(dpi, { coords + ScreenCoordsXY{ 2, 1 }, coords + ScreenCoordsXY{ value + 1, 7 } }, colour, 0); - } -} - -/** - * - * rct2: 0x006B1AAD - */ -static void WindowRideMaintenanceMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - case WIDX_LOCATE_MECHANIC: - WindowRideLocateMechanic(w); - break; - case WIDX_REFURBISH_RIDE: - ContextOpenDetailWindow(WD_REFURBISH_RIDE, w->number); - break; - } -} - -/** - * - * rct2: 0x006B1D70 - */ -static void WindowRideMaintenanceResize(WindowBase* w) -{ - WindowSetResize(*w, 316, 135, 316, 135); -} - -/** - * - * rct2: 0x006B1ACE - */ -static void WindowRideMaintenanceMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return; - - Widget* dropdownWidget = widget; - int32_t j, num_items; - - switch (widgetIndex) - { - case WIDX_INSPECTION_INTERVAL_DROPDOWN: - dropdownWidget--; - for (int32_t i = 0; i < 7; i++) - { - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = RideInspectionIntervalNames[i]; - } - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, 7, widget->right - dropdownWidget->left); - - Dropdown::SetChecked(ride->inspection_interval, true); - break; - - case WIDX_FORCE_BREAKDOWN: - num_items = 1; - for (j = 0; j < RCT2::ObjectLimits::MaxRideTypesPerRideEntry; j++) - { - if (rideEntry->ride_type[j] != RIDE_TYPE_NULL) - break; - } - gDropdownItems[0].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[0].Args = STR_DEBUG_FIX_RIDE; - for (int32_t i = 0; i < 8; i++) - { - assert(j < static_cast(std::size(rideEntry->ride_type))); - if (GetRideTypeDescriptor(rideEntry->ride_type[j]).AvailableBreakdowns & static_cast(1 << i)) - { - if (i == BREAKDOWN_BRAKES_FAILURE && ride->IsBlockSectioned()) - { - if (ride->NumTrains != 1) - continue; - } - gDropdownItems[num_items].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[num_items].Args = RideBreakdownReasonNames[i]; - num_items++; - } - } - if (num_items == 1) - { - ContextShowError(STR_DEBUG_NO_BREAKDOWNS_AVAILABLE, STR_NONE, {}); - } - else - { - WindowDropdownShowText( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, - dropdownWidget->height() + 1, w->colours[1], Dropdown::Flag::StayOpen, num_items); - - num_items = 1; - int32_t breakdownReason = ride->breakdown_reason_pending; - if (breakdownReason != BREAKDOWN_NONE && (ride->lifecycle_flags & RIDE_LIFECYCLE_BREAKDOWN_PENDING)) - { - for (int32_t i = 0; i < 8; i++) - { - if (GetRideTypeDescriptor(rideEntry->ride_type[j]).AvailableBreakdowns & static_cast(1 << i)) - { - if (i == BREAKDOWN_BRAKES_FAILURE && ride->IsBlockSectioned()) - { - if (ride->NumTrains != 1) - continue; - } - if (i == breakdownReason) - { - Dropdown::SetChecked(num_items, true); - break; - } - gDropdownItems[num_items].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[num_items].Args = RideBreakdownReasonNames[i]; - num_items++; - } - } - } - - if ((ride->lifecycle_flags & RIDE_LIFECYCLE_BREAKDOWN_PENDING) == 0) - { - Dropdown::SetDisabled(0, true); - } - } - break; - } -} - -/** - * - * rct2: 0x006B1AD9 - */ -static void WindowRideMaintenanceDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex) -{ - if (dropdownIndex == -1) - return; - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return; - - switch (widgetIndex) - { - case WIDX_INSPECTION_INTERVAL_DROPDOWN: - SetOperatingSetting(w->rideId, RideSetSetting::InspectionInterval, dropdownIndex); - break; - - case WIDX_FORCE_BREAKDOWN: - if (dropdownIndex == 0) - { - Vehicle* vehicle; - switch (ride->breakdown_reason_pending) - { - case BREAKDOWN_SAFETY_CUT_OUT: - if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK)) - break; - for (int32_t i = 0; i < ride->NumTrains; ++i) - { - for (vehicle = GetEntity(ride->vehicles[i]); vehicle != nullptr; - vehicle = GetEntity(vehicle->next_vehicle_on_train)) - { - vehicle->ClearFlag( - VehicleFlags::CarIsBroken | VehicleFlags::StoppedOnLift | VehicleFlags::TrainIsBroken); - } - } - break; - case BREAKDOWN_RESTRAINTS_STUCK_CLOSED: - case BREAKDOWN_RESTRAINTS_STUCK_OPEN: - case BREAKDOWN_DOORS_STUCK_CLOSED: - case BREAKDOWN_DOORS_STUCK_OPEN: - vehicle = GetEntity(ride->vehicles[ride->broken_vehicle]); - if (vehicle != nullptr) - { - vehicle->ClearFlag(VehicleFlags::CarIsBroken); - } - break; - case BREAKDOWN_VEHICLE_MALFUNCTION: - vehicle = GetEntity(ride->vehicles[ride->broken_vehicle]); - if (vehicle != nullptr) - { - vehicle->ClearFlag(VehicleFlags::TrainIsBroken); - } - break; - } - ride->lifecycle_flags &= ~(RIDE_LIFECYCLE_BREAKDOWN_PENDING | RIDE_LIFECYCLE_BROKEN_DOWN); - WindowInvalidateByNumber(WindowClass::Ride, w->number); - break; - } - if (ride->lifecycle_flags - & (RIDE_LIFECYCLE_BREAKDOWN_PENDING | RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED)) - { - ContextShowError(STR_DEBUG_CANT_FORCE_BREAKDOWN, STR_DEBUG_RIDE_ALREADY_BROKEN, {}); - } - else if (ride->status == RideStatus::Closed) - { - ContextShowError(STR_DEBUG_CANT_FORCE_BREAKDOWN, STR_DEBUG_RIDE_IS_CLOSED, {}); - } - else - { - int32_t j; - for (j = 0; j < RCT2::ObjectLimits::MaxRideTypesPerRideEntry; j++) - { - if (rideEntry->ride_type[j] != RIDE_TYPE_NULL) - break; - } - int32_t i; - int32_t num_items = 1; - for (i = 0; i < BREAKDOWN_COUNT; i++) - { - assert(j < static_cast(std::size(rideEntry->ride_type))); - if (GetRideTypeDescriptor(rideEntry->ride_type[j]).AvailableBreakdowns & static_cast(1 << i)) - { - if (i == BREAKDOWN_BRAKES_FAILURE && ride->IsBlockSectioned()) - { - if (ride->NumTrains != 1) - continue; - } - if (num_items == dropdownIndex) - break; - num_items++; - } - } - RidePrepareBreakdown(*ride, i); - } - break; - } -} - -/** - * - * rct2: 0x006B1D37 - */ -static void WindowRideMaintenanceUpdate(WindowBase* w) -{ - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_4); - - auto ride = GetRide(w->rideId); - if (ride != nullptr && ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_MAINTENANCE) - { - ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_MAINTENANCE; - w->Invalidate(); - } -} - -/** - * - * rct2: 0x006B17C8 - */ -static void WindowRideMaintenanceInvalidate(WindowBase* w) -{ - auto widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto ft = Formatter::Common(); - ride->FormatNameTo(ft); - - window_ride_maintenance_widgets[WIDX_INSPECTION_INTERVAL].text = RideInspectionIntervalNames[ride->inspection_interval]; - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); - - if (gConfigGeneral.DebuggingTools && NetworkGetMode() == NETWORK_MODE_NONE) - { - window_ride_maintenance_widgets[WIDX_FORCE_BREAKDOWN].type = WindowWidgetType::FlatBtn; - } - else - { - window_ride_maintenance_widgets[WIDX_FORCE_BREAKDOWN].type = WindowWidgetType::Empty; - } - - if (ride->GetRideTypeDescriptor().AvailableBreakdowns == 0 || !(ride->lifecycle_flags & RIDE_LIFECYCLE_EVER_BEEN_OPENED)) - { - w->disabled_widgets |= (1uLL << WIDX_REFURBISH_RIDE); - window_ride_maintenance_widgets[WIDX_REFURBISH_RIDE].tooltip = STR_CANT_REFURBISH_NOT_NEEDED; - } - else - { - w->disabled_widgets &= ~(1uLL << WIDX_REFURBISH_RIDE); - window_ride_maintenance_widgets[WIDX_REFURBISH_RIDE].tooltip = STR_REFURBISH_RIDE_TIP; - } -} - -/** - * - * rct2: 0x006B1877 - */ -static void WindowRideMaintenancePaint(WindowBase* w, DrawPixelInfo& dpi) -{ - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - // Locate mechanic button image - Widget* widget = &window_ride_maintenance_widgets[WIDX_LOCATE_MECHANIC]; - auto screenCoords = w->windowPos + ScreenCoordsXY{ widget->left, widget->top }; - auto image = ImageId(SPR_MECHANIC, COLOUR_BLACK, gStaffMechanicColour); - GfxDrawSprite(dpi, image, screenCoords); - - // Inspection label - widget = &window_ride_maintenance_widgets[WIDX_INSPECTION_INTERVAL]; - screenCoords = w->windowPos + ScreenCoordsXY{ 4, widget->top + 1 }; - DrawTextBasic(dpi, screenCoords, STR_INSPECTION); - - // Reliability - widget = &window_ride_maintenance_widgets[WIDX_PAGE_BACKGROUND]; - screenCoords = w->windowPos + ScreenCoordsXY{ widget->left + 4, widget->top + 4 }; - - uint16_t reliability = ride->reliability_percentage; - auto ft = Formatter(); - ft.Add(reliability); - DrawTextBasic(dpi, screenCoords, STR_RELIABILITY_LABEL_1757, ft); - WindowRideMaintenanceDrawBar( - w, dpi, screenCoords + ScreenCoordsXY{ 103, 0 }, std::max(10, reliability), COLOUR_BRIGHT_GREEN); - screenCoords.y += 11; - - uint16_t downTime = ride->downtime; - ft = Formatter(); - ft.Add(downTime); - DrawTextBasic(dpi, screenCoords, STR_DOWN_TIME_LABEL_1889, ft); - WindowRideMaintenanceDrawBar(w, dpi, screenCoords + ScreenCoordsXY{ 103, 0 }, downTime, COLOUR_BRIGHT_RED); - screenCoords.y += 26; - - // Last inspection - StringId stringId; - if (ride->last_inspection <= 1) - stringId = STR_TIME_SINCE_LAST_INSPECTION_MINUTE; - else if (ride->last_inspection <= 240) - stringId = STR_TIME_SINCE_LAST_INSPECTION_MINUTES; - else - stringId = STR_TIME_SINCE_LAST_INSPECTION_MORE_THAN_4_HOURS; - - ft = Formatter(); - ft.Add(ride->last_inspection); - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += 12; - - // Last / current breakdown - if (ride->breakdown_reason == BREAKDOWN_NONE) - return; - - stringId = (ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) ? STR_CURRENT_BREAKDOWN : STR_LAST_BREAKDOWN; - ft = Formatter(); - ft.Add(RideBreakdownReasonNames[ride->breakdown_reason]); - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += 12; - - // Mechanic status - if (ride->lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN) - { - switch (ride->mechanic_status) - { - case RIDE_MECHANIC_STATUS_CALLING: - { - stringId = STR_NO_MECHANICS_ARE_HIRED_MESSAGE; - - for (auto peep : EntityList()) - { - if (peep->IsMechanic()) - { - stringId = STR_CALLING_MECHANIC; - break; - } - } - break; - } - case RIDE_MECHANIC_STATUS_HEADING: - stringId = STR_MEHCANIC_IS_HEADING_FOR_THE_RIDE; - break; - case RIDE_MECHANIC_STATUS_FIXING: - case RIDE_MECHANIC_STATUS_HAS_FIXED_STATION_BRAKES: - stringId = STR_MEHCANIC_IS_FIXING_THE_RIDE; - break; - default: - stringId = STR_EMPTY; - break; - } - - if (stringId != STR_EMPTY) - { - if (stringId == STR_CALLING_MECHANIC || stringId == STR_NO_MECHANICS_ARE_HIRED_MESSAGE) - { - DrawTextWrapped(dpi, screenCoords, 280, stringId, {}, { TextAlignment::LEFT }); - } - else - { - auto staff = GetEntity(ride->mechanic); - if (staff != nullptr && staff->IsMechanic()) - { - ft = Formatter(); - staff->FormatNameTo(ft); - DrawTextWrapped(dpi, screenCoords, 280, stringId, ft, { TextAlignment::LEFT }); - } - } - } - } -} - -#pragma endregion - -#pragma region Colour - -static int32_t WindowRideHasTrackColour(const Ride& ride, int32_t trackColour) -{ - // Get station flags (shops don't have them) - auto stationObjFlags = 0; - if (!ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY)) - { - auto stationObj = ride.GetStationObject(); - if (stationObj != nullptr) - { - stationObjFlags = stationObj->Flags; - } - } - - switch (trackColour) - { - case 0: - return (stationObjFlags & STATION_OBJECT_FLAGS::HAS_PRIMARY_COLOUR) - || ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN); - case 1: - return (stationObjFlags & STATION_OBJECT_FLAGS::HAS_SECONDARY_COLOUR) - || ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL); - case 2: - return ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS); - default: - return 0; - } -} - -static void WindowRideSetTrackColourScheme(WindowBase* w, const ScreenCoordsXY& screenPos) -{ - auto newColourScheme = static_cast(w->ride_colour); - auto info = GetMapCoordinatesFromPos(screenPos, EnumsToFlags(ViewportInteractionItem::Ride)); - - if (info.SpriteType != ViewportInteractionItem::Ride) - return; - if (info.Element->GetType() != TileElementType::Track) - return; - if (info.Element->AsTrack()->GetRideIndex() != w->rideId) - return; - if (info.Element->AsTrack()->GetColourScheme() == newColourScheme) - return; - - auto z = info.Element->GetBaseZ(); - auto direction = info.Element->GetDirection(); - auto gameAction = RideSetColourSchemeAction( - CoordsXYZD{ info.Loc, z, static_cast(direction) }, info.Element->AsTrack()->GetTrackType(), newColourScheme); - GameActions::Execute(&gameAction); -} - -/** - * - * rct2: 0x006B04FA - */ -static void WindowRideColourClose(WindowBase* w) -{ - if (!(InputTestFlag(INPUT_FLAG_TOOL_ACTIVE))) - return; - - if (gCurrentToolWidget.window_classification != w->classification) - return; - - if (gCurrentToolWidget.window_number != w->number) - return; - - ToolCancel(); -} - -/** - * - * rct2: 0x006B02A1 - */ -static void WindowRideColourMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - case WIDX_PAINT_INDIVIDUAL_AREA: - ToolSet(*w, WIDX_PAINT_INDIVIDUAL_AREA, Tool::PaintDown); - break; - case WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX: - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - const bool currentlyEnabled = ride->HasLifecycleFlag(RIDE_LIFECYCLE_RANDOM_SHOP_COLOURS); - auto rideSetAppearanceAction = RideSetAppearanceAction( - w->rideId, RideSetAppearanceType::SellingItemColourIsRandom, currentlyEnabled ? 0 : 1, 0); - GameActions::Execute(&rideSetAppearanceAction); - } - break; - } -} - -/** - * - * rct2: 0x006B0AB6 - */ -static void WindowRideColourResize(WindowBase* w) -{ - WindowSetResize(*w, 316, 207, 316, 207); -} - -/** - * - * rct2: 0x006B02C6 - */ -static void WindowRideColourMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - VehicleColour vehicleColour; - int32_t i, numItems; - StringId stringId; - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return; - - auto colourSchemeIndex = w->ride_colour; - auto dropdownWidget = widget - 1; - - switch (widgetIndex) - { - case WIDX_TRACK_COLOUR_SCHEME_DROPDOWN: - for (i = 0; i < OpenRCT2::Limits::NumColourSchemes; i++) - { - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = ColourSchemeNames[i]; - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, 4, widget->right - dropdownWidget->left); - - Dropdown::SetChecked(colourSchemeIndex, true); - break; - case WIDX_TRACK_MAIN_COLOUR: - WindowDropdownShowColour(w, widget, w->colours[1], ride->track_colour[colourSchemeIndex].main); - break; - case WIDX_TRACK_ADDITIONAL_COLOUR: - WindowDropdownShowColour(w, widget, w->colours[1], ride->track_colour[colourSchemeIndex].additional); - break; - case WIDX_TRACK_SUPPORT_COLOUR: - WindowDropdownShowColour(w, widget, w->colours[1], ride->track_colour[colourSchemeIndex].supports); - break; - case WIDX_MAZE_STYLE_DROPDOWN: - for (i = 0; i < 4; i++) - { - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = MazeOptions[i].text; - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, 4, widget->right - dropdownWidget->left); - - Dropdown::SetChecked(ride->track_colour[colourSchemeIndex].supports, true); - break; - case WIDX_ENTRANCE_STYLE_DROPDOWN: - { - auto ddIndex = 0; - auto& objManager = GetContext()->GetObjectManager(); - for (i = 0; i < MAX_STATION_OBJECTS; i++) - { - auto stationObj = static_cast(objManager.GetLoadedObject(ObjectType::Station, i)); - if (stationObj != nullptr) - { - gDropdownItems[ddIndex].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[ddIndex].Args = stationObj->NameStringId; - if (ride->entrance_style == i) - { - gDropdownItems[ddIndex].Format = STR_DROPDOWN_MENU_LABEL_SELECTED; - } - ddIndex++; - } - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, ddIndex, widget->right - dropdownWidget->left); - break; - } - case WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN: - for (i = 0; i < 3; i++) - { - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = (GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).singular - << 16) - | VehicleColourSchemeNames[i]; - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, rideEntry->max_cars_in_train > 1 ? 3 : 2, - widget->right - dropdownWidget->left); - - Dropdown::SetChecked(ride->colour_scheme_type & 3, true); - break; - case WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN: - numItems = ride->NumTrains; - if ((ride->colour_scheme_type & 3) != VEHICLE_COLOUR_SCHEME_PER_TRAIN) - numItems = ride->num_cars_per_train; - - stringId = (ride->colour_scheme_type & 3) == VEHICLE_COLOUR_SCHEME_PER_TRAIN ? STR_RIDE_COLOUR_TRAIN_OPTION - : STR_RIDE_COLOUR_VEHICLE_OPTION; - for (i = 0; i < std::min(numItems, Dropdown::ItemsMaxSize); i++) - { - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = (static_cast(i + 1) << 32) - | ((GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).capitalised) << 16) - | stringId; - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, numItems, widget->right - dropdownWidget->left); - - Dropdown::SetChecked(w->vehicleIndex, true); - break; - case WIDX_VEHICLE_BODY_COLOUR: - vehicleColour = RideGetVehicleColour(*ride, w->vehicleIndex); - WindowDropdownShowColour(w, widget, w->colours[1], vehicleColour.Body); - break; - case WIDX_VEHICLE_TRIM_COLOUR: - vehicleColour = RideGetVehicleColour(*ride, w->vehicleIndex); - WindowDropdownShowColour(w, widget, w->colours[1], vehicleColour.Trim); - break; - case WIDX_VEHICLE_TERNARY_COLOUR: - vehicleColour = RideGetVehicleColour(*ride, w->vehicleIndex); - WindowDropdownShowColour(w, widget, w->colours[1], vehicleColour.Tertiary); - break; - } -} - -/** - * - * rct2: 0x006B0331 - */ -static void WindowRideColourDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex) -{ - if (dropdownIndex == -1) - return; - - const auto rideId = w->rideId; - switch (widgetIndex) - { - case WIDX_TRACK_COLOUR_SCHEME_DROPDOWN: - w->ride_colour = static_cast(dropdownIndex); - w->Invalidate(); - break; - case WIDX_TRACK_MAIN_COLOUR: - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::TrackColourMain, ColourDropDownIndexToColour(dropdownIndex), w->ride_colour); - GameActions::Execute(&rideSetAppearanceAction); - } - break; - case WIDX_TRACK_ADDITIONAL_COLOUR: - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::TrackColourAdditional, ColourDropDownIndexToColour(dropdownIndex), - w->ride_colour); - GameActions::Execute(&rideSetAppearanceAction); - } - break; - case WIDX_TRACK_SUPPORT_COLOUR: - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::TrackColourSupports, ColourDropDownIndexToColour(dropdownIndex), w->ride_colour); - GameActions::Execute(&rideSetAppearanceAction); - } - break; - case WIDX_MAZE_STYLE_DROPDOWN: - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::MazeStyle, dropdownIndex, w->ride_colour); - GameActions::Execute(&rideSetAppearanceAction); - } - break; - case WIDX_ENTRANCE_STYLE_DROPDOWN: - { - auto ddIndex = 0; - auto& objManager = GetContext()->GetObjectManager(); - for (auto i = 0; i < MAX_STATION_OBJECTS; i++) - { - auto stationObj = static_cast(objManager.GetLoadedObject(ObjectType::Station, i)); - if (stationObj != nullptr) - { - if (ddIndex == dropdownIndex) - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::EntranceStyle, ddIndex, 0); - rideSetAppearanceAction.SetCallback([ddIndex](const GameAction*, const GameActions::Result* res) { - if (res->Error != GameActions::Status::Ok) - return; - gLastEntranceStyle = ddIndex; - }); - GameActions::Execute(&rideSetAppearanceAction); - break; - } - ddIndex++; - } - } - break; - } - case WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN: - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::VehicleColourScheme, dropdownIndex, 0); - GameActions::Execute(&rideSetAppearanceAction); - w->vehicleIndex = 0; - } - break; - case WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN: - w->vehicleIndex = dropdownIndex; - w->Invalidate(); - break; - case WIDX_VEHICLE_BODY_COLOUR: - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::VehicleColourBody, ColourDropDownIndexToColour(dropdownIndex), w->vehicleIndex); - GameActions::Execute(&rideSetAppearanceAction); - } - break; - case WIDX_VEHICLE_TRIM_COLOUR: - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::VehicleColourTrim, ColourDropDownIndexToColour(dropdownIndex), w->vehicleIndex); - GameActions::Execute(&rideSetAppearanceAction); - } - break; - case WIDX_VEHICLE_TERNARY_COLOUR: - { - auto rideSetAppearanceAction = RideSetAppearanceAction( - rideId, RideSetAppearanceType::VehicleColourTernary, ColourDropDownIndexToColour(dropdownIndex), - w->vehicleIndex); - GameActions::Execute(&rideSetAppearanceAction); - } - break; - } -} - -/** - * - * rct2: 0x006B0A8F - */ -static void WindowRideColourUpdate(WindowBase* w) -{ - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_5); - WidgetInvalidate(*w, WIDX_VEHICLE_PREVIEW); -} - -/** - * - * rct2: 0x006B04EC - */ -static void WindowRideColourTooldown(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) -{ - if (widgetIndex == WIDX_PAINT_INDIVIDUAL_AREA) - WindowRideSetTrackColourScheme(w, screenCoords); -} - -/** - * - * rct2: 0x006B04F3 - */ -static void WindowRideColourTooldrag(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) -{ - if (widgetIndex == WIDX_PAINT_INDIVIDUAL_AREA) - WindowRideSetTrackColourScheme(w, screenCoords); -} - -/** - * - * rct2: 0x006AFB36 - */ -static void WindowRideColourInvalidate(WindowBase* w) -{ - TrackColour trackColour; - VehicleColour vehicleColour; - - auto widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return; - - w->widgets[WIDX_TITLE].text = STR_ARG_16_STRINGID; - auto ft = Formatter::Common(); - ft.Increment(16); - ride->FormatNameTo(ft); - - // Track colours - int32_t colourScheme = w->ride_colour; - trackColour = ride->track_colour[colourScheme]; - - // Maze style - const auto& rtd = ride->GetRideTypeDescriptor(); - if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE)) - { - window_ride_colour_widgets[WIDX_MAZE_STYLE].type = WindowWidgetType::DropdownMenu; - window_ride_colour_widgets[WIDX_MAZE_STYLE_DROPDOWN].type = WindowWidgetType::Button; - window_ride_colour_widgets[WIDX_MAZE_STYLE].text = MazeOptions[trackColour.supports].text; - } - else - { - window_ride_colour_widgets[WIDX_MAZE_STYLE].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_MAZE_STYLE_DROPDOWN].type = WindowWidgetType::Empty; - } - - // Track, multiple colour schemes - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR)) - { - window_ride_colour_widgets[WIDX_TRACK_COLOUR_SCHEME].type = WindowWidgetType::DropdownMenu; - window_ride_colour_widgets[WIDX_TRACK_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Button; - window_ride_colour_widgets[WIDX_PAINT_INDIVIDUAL_AREA].type = WindowWidgetType::FlatBtn; - } - else - { - window_ride_colour_widgets[WIDX_TRACK_COLOUR_SCHEME].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_TRACK_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_PAINT_INDIVIDUAL_AREA].type = WindowWidgetType::Empty; - } - - // Track main colour - if (WindowRideHasTrackColour(*ride, 0)) - { - window_ride_colour_widgets[WIDX_TRACK_MAIN_COLOUR].type = WindowWidgetType::ColourBtn; - window_ride_colour_widgets[WIDX_TRACK_MAIN_COLOUR].image = GetColourButtonImage(trackColour.main); - } - else - { - window_ride_colour_widgets[WIDX_TRACK_MAIN_COLOUR].type = WindowWidgetType::Empty; - } - - // Track additional colour - if (WindowRideHasTrackColour(*ride, 1)) - { - window_ride_colour_widgets[WIDX_TRACK_ADDITIONAL_COLOUR].type = WindowWidgetType::ColourBtn; - window_ride_colour_widgets[WIDX_TRACK_ADDITIONAL_COLOUR].image = GetColourButtonImage(trackColour.additional); - } - else - { - window_ride_colour_widgets[WIDX_TRACK_ADDITIONAL_COLOUR].type = WindowWidgetType::Empty; - } - - // Selling item random colour checkbox - if (ride->HasRecolourableShopItems()) - { - window_ride_colour_widgets[WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX].type = WindowWidgetType::Checkbox; - if (ride->HasLifecycleFlag(RIDE_LIFECYCLE_RANDOM_SHOP_COLOURS)) - { - w->pressed_widgets |= (1uLL << WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX); - } - else - { - w->pressed_widgets &= ~(1uLL << WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX); - } - } - else - { - window_ride_colour_widgets[WIDX_SELL_ITEM_RANDOM_COLOUR_CHECKBOX].type = WindowWidgetType::Empty; - } - - // Track supports colour - if (WindowRideHasTrackColour(*ride, 2) && !rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE)) - { - window_ride_colour_widgets[WIDX_TRACK_SUPPORT_COLOUR].type = WindowWidgetType::ColourBtn; - window_ride_colour_widgets[WIDX_TRACK_SUPPORT_COLOUR].image = GetColourButtonImage(trackColour.supports); - } - else - { - window_ride_colour_widgets[WIDX_TRACK_SUPPORT_COLOUR].type = WindowWidgetType::Empty; - } - - // Track preview - if (ride->GetRideTypeDescriptor().HasFlag( - RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL - | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS)) - window_ride_colour_widgets[WIDX_TRACK_PREVIEW].type = WindowWidgetType::Spinner; - else - window_ride_colour_widgets[WIDX_TRACK_PREVIEW].type = WindowWidgetType::Empty; - - // Entrance style - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT)) - { - window_ride_colour_widgets[WIDX_ENTRANCE_PREVIEW].type = WindowWidgetType::Spinner; - window_ride_colour_widgets[WIDX_ENTRANCE_STYLE].type = WindowWidgetType::DropdownMenu; - window_ride_colour_widgets[WIDX_ENTRANCE_STYLE_DROPDOWN].type = WindowWidgetType::Button; - - auto stringId = STR_NONE; - auto stationObj = ride->GetStationObject(); - if (stationObj != nullptr) - { - stringId = stationObj->NameStringId; - } - window_ride_colour_widgets[WIDX_ENTRANCE_STYLE].text = stringId; - } - else - { - window_ride_colour_widgets[WIDX_ENTRANCE_PREVIEW].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_ENTRANCE_STYLE].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_ENTRANCE_STYLE_DROPDOWN].type = WindowWidgetType::Empty; - } - - // Vehicle colours - if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_NO_VEHICLES) - && ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS)) - { - int32_t vehicleColourSchemeType = ride->colour_scheme_type & 3; - if (vehicleColourSchemeType == 0) - w->vehicleIndex = 0; - - vehicleColour = RideGetVehicleColour(*ride, w->vehicleIndex); - - window_ride_colour_widgets[WIDX_VEHICLE_PREVIEW].type = WindowWidgetType::Scroll; - window_ride_colour_widgets[WIDX_VEHICLE_BODY_COLOUR].type = WindowWidgetType::ColourBtn; - window_ride_colour_widgets[WIDX_VEHICLE_BODY_COLOUR].image = GetColourButtonImage(vehicleColour.Body); - - bool allowChangingTrimColour = false; - bool allowChangingTernaryColour = false; - - for (int32_t i = 0; i < ride->num_cars_per_train; i++) - { - uint8_t vehicleTypeIndex = RideEntryGetVehicleAtPosition(ride->subtype, ride->num_cars_per_train, i); - - if (rideEntry->Cars[vehicleTypeIndex].flags & CAR_ENTRY_FLAG_ENABLE_TRIM_COLOUR) - { - allowChangingTrimColour = true; - } - if (rideEntry->Cars[vehicleTypeIndex].flags & CAR_ENTRY_FLAG_ENABLE_TERNARY_COLOUR) - { - allowChangingTernaryColour = true; - } - } - - // Additional colours - if (allowChangingTrimColour) - { - window_ride_colour_widgets[WIDX_VEHICLE_TRIM_COLOUR].type = WindowWidgetType::ColourBtn; - window_ride_colour_widgets[WIDX_VEHICLE_TRIM_COLOUR].image = GetColourButtonImage(vehicleColour.Trim); - if (allowChangingTernaryColour) - { - window_ride_colour_widgets[WIDX_VEHICLE_TERNARY_COLOUR].type = WindowWidgetType::ColourBtn; - window_ride_colour_widgets[WIDX_VEHICLE_TERNARY_COLOUR].image = GetColourButtonImage(vehicleColour.Tertiary); - } - else - { - window_ride_colour_widgets[WIDX_VEHICLE_TERNARY_COLOUR].type = WindowWidgetType::Empty; - } - } - else - { - window_ride_colour_widgets[WIDX_VEHICLE_TRIM_COLOUR].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_TERNARY_COLOUR].type = WindowWidgetType::Empty; - } - - // Vehicle colour scheme type - if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL) - && (ride->num_cars_per_train | ride->NumTrains) > 1) - { - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_SCHEME].type = WindowWidgetType::DropdownMenu; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Button; - } - else - { - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_SCHEME].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Empty; - } - ft.Rewind(); - ft.Increment(6); - ft.Add(VehicleColourSchemeNames[vehicleColourSchemeType]); - ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).singular); - ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).capitalised); - ft.Add(w->vehicleIndex + 1); - - // Vehicle index - if (vehicleColourSchemeType != 0) - { - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_INDEX].type = WindowWidgetType::DropdownMenu; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN].type = WindowWidgetType::Button; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_INDEX].text = vehicleColourSchemeType == 1 - ? STR_RIDE_COLOUR_TRAIN_VALUE - : STR_RIDE_COLOUR_VEHICLE_VALUE; - } - else - { - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_INDEX].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN].type = WindowWidgetType::Empty; - } - } - else - { - window_ride_colour_widgets[WIDX_VEHICLE_PREVIEW].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_SCHEME].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_SCHEME_DROPDOWN].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_INDEX].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_COLOUR_INDEX_DROPDOWN].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_BODY_COLOUR].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_TRIM_COLOUR].type = WindowWidgetType::Empty; - window_ride_colour_widgets[WIDX_VEHICLE_TERNARY_COLOUR].type = WindowWidgetType::Empty; - } - - ft.Rewind(); - ft.Increment(14); - ft.Add(ColourSchemeNames[colourScheme]); - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); -} - -/** - * - * rct2: 0x006AFF3E - */ -static void WindowRideColourPaint(WindowBase* w, DrawPixelInfo& dpi) -{ - // TODO: This should use lists and identified sprites - DrawPixelInfo clippedDpi; - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); - - // Track / shop item preview - const auto& trackPreviewWidget = window_ride_colour_widgets[WIDX_TRACK_PREVIEW]; - if (trackPreviewWidget.type != WindowWidgetType::Empty) - GfxFillRect( - dpi, - { { w->windowPos + ScreenCoordsXY{ trackPreviewWidget.left + 1, trackPreviewWidget.top + 1 } }, - { w->windowPos + ScreenCoordsXY{ trackPreviewWidget.right - 1, trackPreviewWidget.bottom - 1 } } }, - PALETTE_INDEX_12); - - auto trackColour = ride->track_colour[w->ride_colour]; - - // - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr || rideEntry->shop_item[0] == ShopItem::None) - { - auto screenCoords = w->windowPos + ScreenCoordsXY{ trackPreviewWidget.left, trackPreviewWidget.top }; - - // Track - const auto& rtd = ride->GetRideTypeDescriptor(); - if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE)) - { - GfxDrawSprite(dpi, ImageId(MazeOptions[trackColour.supports].sprite), screenCoords); - } - else - { - auto typeDescriptor = ride->GetRideTypeDescriptor(); - int32_t spriteIndex = typeDescriptor.ColourPreview.Track; - if (spriteIndex != 0) - { - GfxDrawSprite(dpi, ImageId(spriteIndex, trackColour.main, trackColour.additional), screenCoords); - } - - // Supports - spriteIndex = typeDescriptor.ColourPreview.Supports; - if (spriteIndex != 0) - { - GfxDrawSprite(dpi, ImageId(spriteIndex, trackColour.supports), screenCoords); - } - } - } - else - { - auto screenCoords = w->windowPos - + ScreenCoordsXY{ (trackPreviewWidget.left + trackPreviewWidget.right) / 2 - 8, - (trackPreviewWidget.bottom + trackPreviewWidget.top) / 2 - 6 }; - - ShopItem shopItem = rideEntry->shop_item[1] == ShopItem::None ? rideEntry->shop_item[0] : rideEntry->shop_item[1]; - if (ride->HasLifecycleFlag(RIDE_LIFECYCLE_RANDOM_SHOP_COLOURS)) - { - static colour_t spriteColour = COLOUR_BLACK; - // Limit update rate of preview to avoid making people dizzy. - if ((gCurrentTicks % 64) == 0) - { - spriteColour++; - if (spriteColour >= COLOUR_NUM_NORMAL) - { - spriteColour = COLOUR_BLACK; - } - } - - GfxDrawSprite(dpi, ImageId(GetShopItemDescriptor(shopItem).Image, spriteColour), screenCoords); - } - else - { - GfxDrawSprite(dpi, ImageId(GetShopItemDescriptor(shopItem).Image, ride->track_colour[0].main), screenCoords); - } - } - - // Entrance preview - trackColour = ride->track_colour[0]; - const auto& entrancePreviewWidget = w->widgets[WIDX_ENTRANCE_PREVIEW]; - if (entrancePreviewWidget.type != WindowWidgetType::Empty) - { - if (ClipDrawPixelInfo( - clippedDpi, dpi, w->windowPos + ScreenCoordsXY{ entrancePreviewWidget.left + 1, entrancePreviewWidget.top + 1 }, - entrancePreviewWidget.width(), entrancePreviewWidget.height())) - { - GfxClear(&clippedDpi, PALETTE_INDEX_12); - - auto stationObj = ride->GetStationObject(); - if (stationObj != nullptr && stationObj->BaseImageId != ImageIndexUndefined) - { - auto imageId = ImageId(stationObj->BaseImageId, trackColour.main, trackColour.additional); - - // Back - GfxDrawSprite(clippedDpi, imageId, { 34, 20 }); - - // Front - GfxDrawSprite(clippedDpi, imageId.WithIndexOffset(4), { 34, 20 }); - - // Glass - if (stationObj->Flags & STATION_OBJECT_FLAGS::IS_TRANSPARENT) - { - auto glassImageId = ImageId(stationObj->BaseImageId + 20).WithTransparency(trackColour.main); - GfxDrawSprite(clippedDpi, glassImageId, { 34, 20 }); - } - } - } - - DrawTextEllipsised(dpi, { w->windowPos.x + 3, w->windowPos.y + 103 }, 97, STR_STATION_STYLE, {}); - } -} - -/** - * - * rct2: 0x006B0192 - */ -static void WindowRideColourScrollpaint(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return; - - auto vehiclePreviewWidget = &window_ride_colour_widgets[WIDX_VEHICLE_PREVIEW]; - auto vehicleColour = RideGetVehicleColour(*ride, w->vehicleIndex); - - // Background colour - GfxFillRect(dpi, { { dpi.x, dpi.y }, { dpi.x + dpi.width - 1, dpi.y + dpi.height - 1 } }, PALETTE_INDEX_12); - - // ? - auto screenCoords = ScreenCoordsXY{ vehiclePreviewWidget->width() / 2, vehiclePreviewWidget->height() - 15 }; - - // ? - auto trainCarIndex = (ride->colour_scheme_type & 3) == RIDE_COLOUR_SCHEME_MODE_DIFFERENT_PER_CAR ? w->vehicleIndex - : rideEntry->TabCar; - - const auto& carEntry = rideEntry - ->Cars[RideEntryGetVehicleAtPosition(ride->subtype, ride->num_cars_per_train, trainCarIndex)]; - - screenCoords.y += carEntry.tab_height; - - // Draw the coloured spinning vehicle - // w->frame_no represents a SpritePrecision of 64 - ImageIndex imageIndex = carEntry.SpriteByYaw(w->frame_no / 2, SpriteGroupType::SlopeFlat); - imageIndex &= carEntry.TabRotationMask; - imageIndex *= carEntry.base_num_frames; - imageIndex += carEntry.base_image_id; - auto imageId = ImageId(imageIndex, vehicleColour.Body, vehicleColour.Trim, vehicleColour.Tertiary); - GfxDrawSprite(dpi, imageId, screenCoords); -} - -#pragma endregion - -#pragma region Music -static std::vector window_ride_current_music_style_order; - -/** - * - * rct2: 0x006B215D - */ -static void WindowRideToggleMusic(WindowBase* w) -{ - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - int32_t activateMusic = (ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC) ? 0 : 1; - SetOperatingSetting(w->rideId, RideSetSetting::Music, activateMusic); - } -} - -/** - * - * rct2: 0x006B1ED7 - */ -static void WindowRideMusicMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - case WIDX_PLAY_MUSIC: - WindowRideToggleMusic(w); - break; - } -} - -/** - * - * rct2: 0x006AF4A2 - */ -static void WindowRideMusicResize(WindowBase* w) -{ - w->flags |= WF_RESIZABLE; - WindowSetResize(*w, 316, 81, 316, 81); -} - -static std::string GetMusicString(ObjectEntryIndex musicObjectIndex) -{ - auto& objManager = GetContext()->GetObjectManager(); - auto musicObj = static_cast(objManager.GetLoadedObject(ObjectType::Music, musicObjectIndex)); - - auto name = musicObj->NameStringId; - return FormatStringID(name, {}); -} - -/** - * - * rct2: 0x006B1EFC - */ -static void WindowRideMusicMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - if (widgetIndex != WIDX_MUSIC_DROPDOWN) - return; - - auto dropdownWidget = widget - 1; - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - // Construct list of available music - auto& musicOrder = window_ride_current_music_style_order; - musicOrder.clear(); - auto& objManager = GetContext()->GetObjectManager(); - for (ObjectEntryIndex i = 0; i < MAX_MUSIC_OBJECTS; i++) - { - auto musicObj = static_cast(objManager.GetLoadedObject(ObjectType::Music, i)); - if (musicObj != nullptr) - { - // Hide custom music if the WAV file does not exist - auto originalStyleId = musicObj->GetOriginalStyleId(); - if (originalStyleId.has_value() - && (originalStyleId == MUSIC_STYLE_CUSTOM_MUSIC_1 || originalStyleId == MUSIC_STYLE_CUSTOM_MUSIC_2)) - { - auto numTracks = musicObj->GetTrackCount(); - if (numTracks != 0) - { - auto track0 = musicObj->GetTrack(0); - if (!track0->Asset.IsAvailable()) - { - continue; - } - } - else - { - continue; - } - } - - if (gCheatsUnlockOperatingLimits || musicObj->SupportsRideType(ride->type)) - { - musicOrder.push_back(i); - } - } - } - - // Sort available music by the alphabetical order - std::stable_sort(musicOrder.begin(), musicOrder.end(), [](const ObjectEntryIndex& a, const ObjectEntryIndex& b) { - return String::Compare(GetMusicString(b), GetMusicString(a), false) > 0; - }); - - // Setup dropdown list - auto numItems = musicOrder.size(); - for (size_t i = 0; i < numItems; i++) - { - auto musicObj = static_cast(objManager.GetLoadedObject(ObjectType::Music, musicOrder[i])); - gDropdownItems[i].Format = STR_DROPDOWN_MENU_LABEL; - gDropdownItems[i].Args = musicObj->NameStringId; - } - - WindowDropdownShowTextCustomWidth( - { w->windowPos.x + dropdownWidget->left, w->windowPos.y + dropdownWidget->top }, dropdownWidget->height() + 1, - w->colours[1], 0, Dropdown::Flag::StayOpen, numItems, widget->right - dropdownWidget->left); - - // Set currently checked item - for (size_t i = 0; i < numItems; i++) - { - if (musicOrder[i] == ride->music) - { - Dropdown::SetChecked(static_cast(i), true); - } - } -} - -/** - * - * rct2: 0x006B1F03 - */ -static void WindowRideMusicDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex) -{ - if (widgetIndex == WIDX_MUSIC_DROPDOWN && dropdownIndex >= 0 - && static_cast(dropdownIndex) < window_ride_current_music_style_order.size()) - { - auto musicStyle = window_ride_current_music_style_order[dropdownIndex]; - SetOperatingSetting(w->rideId, RideSetSetting::MusicType, musicStyle); - } -} - -/** - * - * rct2: 0x006B2198 - */ -static void WindowRideMusicUpdate(WindowBase* w) -{ - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_6); -} - -/** - * - * rct2: 0x006B1DEA - */ -static void WindowRideMusicInvalidate(WindowBase* w) -{ - auto widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto ft = Formatter::Common(); - ride->FormatNameTo(ft); - - // Set selected music - StringId musicName = STR_NONE; - auto& objManager = GetContext()->GetObjectManager(); - auto musicObj = static_cast(objManager.GetLoadedObject(ObjectType::Music, ride->music)); - if (musicObj != nullptr) - { - musicName = musicObj->NameStringId; - } - window_ride_music_widgets[WIDX_MUSIC].text = musicName; - - // Set music activated - auto isMusicActivated = (ride->lifecycle_flags & RIDE_LIFECYCLE_MUSIC) != 0; - if (isMusicActivated) - { - w->pressed_widgets |= (1uLL << WIDX_PLAY_MUSIC); - w->disabled_widgets &= ~(1uLL << WIDX_MUSIC); - w->disabled_widgets &= ~(1uLL << WIDX_MUSIC_DROPDOWN); - } - else - { - w->pressed_widgets &= ~(1uLL << WIDX_PLAY_MUSIC); - w->disabled_widgets |= (1uLL << WIDX_MUSIC); - w->disabled_widgets |= (1uLL << WIDX_MUSIC_DROPDOWN); - } - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); -} - -/** - * - * rct2: 0x006B1ECC - */ -static void WindowRideMusicPaint(WindowBase* w, DrawPixelInfo& dpi) -{ - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); -} - -#pragma endregion - -#pragma region Measurements - -static StringId GetRatingName(ride_rating rating) -{ - int32_t index = std::clamp(rating >> 8, 0, static_cast(std::size(RatingNames)) - 1); - return RatingNames[index]; -} - -/** - * - * rct2: 0x006D2804 - when al == 0*/ static void CancelScenerySelection() { gGamePaused &= ~GAME_PAUSED_SAVING_TRACK; @@ -5334,59 +6834,6 @@ static void CancelScenerySelection() ToolCancel(); } -/** - * - * rct2: 0x006D27A3 - */ -static void SetupScenerySelection(WindowBase* w) -{ - if (gTrackDesignSaveMode) - { - CancelScenerySelection(); - } - - while (ToolSet(*w, WIDX_BACKGROUND, Tool::Crosshair)) - ; - - gTrackDesignSaveRideIndex = w->rideId; - - TrackDesignSaveInit(); - gGamePaused |= GAME_PAUSED_SAVING_TRACK; - gTrackDesignSaveMode = true; - - OpenRCT2::Audio::StopAll(); - - WindowBase* w_main = WindowGetMain(); - if (w_main != nullptr) - { - w_main->viewport->flags |= (VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_BASE); - } - - GfxInvalidateScreen(); -} - -/** - * - * rct2: 0x006D3026 - */ -static void WindowRideMeasurementsDesignReset() -{ - TrackDesignSaveResetScenery(); -} - -/** - * - * rct2: 0x006D303D - */ -static void WindowRideMeasurementsDesignSelectNearbyScenery() -{ - TrackDesignSaveSelectNearbyScenery(gTrackDesignSaveRideIndex); -} - -/** - * - * rct2: 0x006AD4DA - */ void WindowRideMeasurementsDesignCancel() { if (gTrackDesignSaveMode) @@ -5394,1746 +6841,3 @@ void WindowRideMeasurementsDesignCancel() CancelScenerySelection(); } } - -static void TrackDesignCallback(int32_t result, [[maybe_unused]] const utf8* path) -{ - if (result == MODAL_RESULT_OK) - { - TrackRepositoryScan(); - } - GfxInvalidateScreen(); -}; - -/** - * - * rct2: 0x006AD4CD - */ -static void WindowRideMeasurementsDesignSave(WindowBase* w) -{ - TrackDesignState tds{}; - - Ride* ride = GetRide(w->rideId); - _trackDesign = ride->SaveToTrackDesign(tds); - if (!_trackDesign) - { - return; - } - - if (gTrackDesignSaveMode) - { - auto errMessage = _trackDesign->CreateTrackDesignScenery(tds); - if (!errMessage.Successful) - { - ContextShowError(STR_CANT_SAVE_TRACK_DESIGN, errMessage.Message, {}); - return; - } - if (errMessage.HasMessage()) - { - ContextShowError(errMessage.Message, STR_EMPTY, {}); - } - } - - auto trackName = ride->GetName(); - auto intent = Intent(WindowClass::Loadsave); - intent.PutExtra(INTENT_EXTRA_LOADSAVE_TYPE, LOADSAVETYPE_SAVE | LOADSAVETYPE_TRACK); - intent.PutExtra(INTENT_EXTRA_TRACK_DESIGN, _trackDesign.get()); - intent.PutExtra(INTENT_EXTRA_PATH, trackName); - intent.PutExtra(INTENT_EXTRA_CALLBACK, reinterpret_cast(&TrackDesignCallback)); - - ContextOpenIntent(&intent); -} - -/** - * - * rct2: 0x006AD4DA - */ -static void WindowRideMeasurementsClose(WindowBase* w) -{ - WindowRideMeasurementsDesignCancel(); -} - -/** - * - * rct2: 0x006AD478 - */ -static void WindowRideMeasurementsMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - case WIDX_SELECT_NEARBY_SCENERY: - WindowRideMeasurementsDesignSelectNearbyScenery(); - break; - case WIDX_RESET_SELECTION: - WindowRideMeasurementsDesignReset(); - break; - case WIDX_SAVE_DESIGN: - WindowRideMeasurementsDesignSave(w); - break; - case WIDX_CANCEL_DESIGN: - WindowRideMeasurementsDesignCancel(); - break; - } -} - -/** - * - * rct2: 0x006AD564 - */ -static void WindowRideMeasurementsResize(WindowBase* w) -{ - WindowSetResize(*w, 316, 234, 316, 234); -} - -/** - * - * rct2: 0x006AD4AB - */ -static void WindowRideMeasurementsMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - if (widgetIndex != WIDX_SAVE_TRACK_DESIGN) - return; - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - gDropdownItems[0].Format = STR_SAVE_TRACK_DESIGN_ITEM; - gDropdownItems[1].Format = STR_SAVE_TRACK_DESIGN_WITH_SCENERY_ITEM; - - WindowDropdownShowText( - { w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, w->colours[1], - Dropdown::Flag::StayOpen, 2); - gDropdownDefaultIndex = 0; - if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) - { - // Disable saving without scenery if we're a flat ride - Dropdown::SetDisabled(0, true); - gDropdownDefaultIndex = 1; - } -} - -/** - * - * rct2: 0x006AD4B2 - */ -static void WindowRideMeasurementsDropdown(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex) -{ - if (widgetIndex != WIDX_SAVE_TRACK_DESIGN) - return; - - if (dropdownIndex == -1) - dropdownIndex = gDropdownHighlightedIndex; - - if (dropdownIndex == 0) - { - WindowRideMeasurementsDesignSave(w); - } - else - SetupScenerySelection(w); -} - -/** - * - * rct2: 0x006AD5DD - */ -static void WindowRideMeasurementsUpdate(WindowBase* w) -{ - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_7); -} - -/** - * - * rct2: 0x006D2AE7 - */ -static void WindowRideMeasurementsTooldown(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) -{ - _lastSceneryX = screenCoords.x; - _lastSceneryY = screenCoords.y; - _collectTrackDesignScenery = true; // Default to true in case user does not select anything valid - - constexpr auto flags = EnumsToFlags( - ViewportInteractionItem::Scenery, ViewportInteractionItem::Footpath, ViewportInteractionItem::Wall, - ViewportInteractionItem::LargeScenery); - auto info = GetMapCoordinatesFromPos(screenCoords, flags); - switch (info.SpriteType) - { - case ViewportInteractionItem::Scenery: - case ViewportInteractionItem::LargeScenery: - case ViewportInteractionItem::Wall: - case ViewportInteractionItem::Footpath: - _collectTrackDesignScenery = !TrackDesignSaveContainsTileElement(info.Element); - TrackDesignSaveSelectTileElement(info.SpriteType, info.Loc, info.Element, _collectTrackDesignScenery); - break; - default: - break; - } -} - -static void WindowRideMeasurementsTooldrag(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) -{ - if (screenCoords.x == _lastSceneryX && screenCoords.y == _lastSceneryY) - return; - _lastSceneryX = screenCoords.x; - _lastSceneryY = screenCoords.y; - - auto flags = EnumsToFlags( - ViewportInteractionItem::Scenery, ViewportInteractionItem::Footpath, ViewportInteractionItem::Wall, - ViewportInteractionItem::LargeScenery); - auto info = GetMapCoordinatesFromPos(screenCoords, flags); - switch (info.SpriteType) - { - case ViewportInteractionItem::Scenery: - case ViewportInteractionItem::LargeScenery: - case ViewportInteractionItem::Wall: - case ViewportInteractionItem::Footpath: - TrackDesignSaveSelectTileElement(info.SpriteType, info.Loc, info.Element, _collectTrackDesignScenery); - break; - default: - break; - } -} - -/** - * - * rct2: 0x006AD4DA - */ -static void WindowRideMeasurementsToolabort(WindowBase* w, WidgetIndex widgetIndex) -{ - WindowRideMeasurementsDesignCancel(); -} - -/** - * - * rct2: 0x006ACDBC - */ -static void WindowRideMeasurementsInvalidate(WindowBase* w) -{ - auto widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - const auto rideId = w->rideId; - auto ride = GetRide(rideId); - if (ride == nullptr) - return; - - auto ft = Formatter::Common(); - ride->FormatNameTo(ft); - - window_ride_measurements_widgets[WIDX_SAVE_TRACK_DESIGN].tooltip = STR_SAVE_TRACK_DESIGN_NOT_POSSIBLE; - window_ride_measurements_widgets[WIDX_SAVE_TRACK_DESIGN].type = WindowWidgetType::Empty; - if (gTrackDesignSaveMode && gTrackDesignSaveRideIndex == rideId) - { - window_ride_measurements_widgets[WIDX_SELECT_NEARBY_SCENERY].type = WindowWidgetType::Button; - window_ride_measurements_widgets[WIDX_RESET_SELECTION].type = WindowWidgetType::Button; - window_ride_measurements_widgets[WIDX_SAVE_DESIGN].type = WindowWidgetType::Button; - window_ride_measurements_widgets[WIDX_CANCEL_DESIGN].type = WindowWidgetType::Button; - } - else - { - window_ride_measurements_widgets[WIDX_SELECT_NEARBY_SCENERY].type = WindowWidgetType::Empty; - window_ride_measurements_widgets[WIDX_RESET_SELECTION].type = WindowWidgetType::Empty; - window_ride_measurements_widgets[WIDX_SAVE_DESIGN].type = WindowWidgetType::Empty; - window_ride_measurements_widgets[WIDX_CANCEL_DESIGN].type = WindowWidgetType::Empty; - - window_ride_measurements_widgets[WIDX_SAVE_TRACK_DESIGN].type = WindowWidgetType::FlatBtn; - w->disabled_widgets |= (1uLL << WIDX_SAVE_TRACK_DESIGN); - if (ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED) - { - if (ride->excitement != RIDE_RATING_UNDEFINED) - { - w->disabled_widgets &= ~(1uLL << WIDX_SAVE_TRACK_DESIGN); - window_ride_measurements_widgets[WIDX_SAVE_TRACK_DESIGN].tooltip = STR_SAVE_TRACK_DESIGN; - } - } - } - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); -} - -/** - * - * rct2: 0x006ACF07 - */ -static void WindowRideMeasurementsPaint(WindowBase* w, DrawPixelInfo& dpi) -{ - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); - - if (window_ride_measurements_widgets[WIDX_SAVE_DESIGN].type == WindowWidgetType::Button) - { - Widget* widget = &window_ride_measurements_widgets[WIDX_PAGE_BACKGROUND]; - - ScreenCoordsXY widgetCoords(w->windowPos.x + widget->width() / 2, w->windowPos.y + widget->top + 40); - DrawTextWrapped(dpi, widgetCoords, w->width - 8, STR_CLICK_ITEMS_OF_SCENERY_TO_SELECT, {}, { TextAlignment::CENTRE }); - - widgetCoords.x = w->windowPos.x + 4; - widgetCoords.y = w->windowPos.y + window_ride_measurements_widgets[WIDX_SELECT_NEARBY_SCENERY].bottom + 17; - GfxFillRectInset( - dpi, { widgetCoords, { w->windowPos.x + 312, widgetCoords.y + 1 } }, w->colours[1], INSET_RECT_FLAG_BORDER_INSET); - } - else - { - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto screenCoords = w->windowPos - + ScreenCoordsXY{ window_ride_measurements_widgets[WIDX_PAGE_BACKGROUND].left + 4, - window_ride_measurements_widgets[WIDX_PAGE_BACKGROUND].top + 4 }; - - if (ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED) - { - // Excitement - StringId ratingName = GetRatingName(ride->excitement); - auto ft = Formatter(); - ft.Add(ride->excitement); - ft.Add(ratingName); - StringId stringId = !RideHasRatings(*ride) ? STR_EXCITEMENT_RATING_NOT_YET_AVAILABLE : STR_EXCITEMENT_RATING; - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Intensity - ratingName = GetRatingName(ride->intensity); - ft = Formatter(); - ft.Add(ride->intensity); - ft.Add(ratingName); - - stringId = STR_INTENSITY_RATING; - if (!RideHasRatings(*ride)) - stringId = STR_INTENSITY_RATING_NOT_YET_AVAILABLE; - else if (ride->intensity >= RIDE_RATING(10, 00)) - stringId = STR_INTENSITY_RATING_RED; - - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Nausea - ratingName = GetRatingName(ride->nausea); - ft = Formatter(); - ft.Add(ride->nausea); - ft.Add(ratingName); - stringId = !RideHasRatings(*ride) ? STR_NAUSEA_RATING_NOT_YET_AVAILABLE : STR_NAUSEA_RATING; - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += 2 * LIST_ROW_HEIGHT; - - // Horizontal rule - GfxFillRectInset( - dpi, { screenCoords - ScreenCoordsXY{ 0, 6 }, screenCoords + ScreenCoordsXY{ 303, -5 } }, w->colours[1], - INSET_RECT_FLAG_BORDER_INSET); - - if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_NO_RAW_STATS)) - { - if (ride->type == RIDE_TYPE_MINI_GOLF) - { - // Holes - ft = Formatter(); - ft.Add(ride->holes); - DrawTextBasic(dpi, screenCoords, STR_HOLES, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - else - { - // Max speed - ft = Formatter(); - ft.Add((ride->max_speed * 9) >> 18); - DrawTextBasic(dpi, screenCoords, STR_MAX_SPEED, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Average speed - ft = Formatter(); - ft.Add((ride->average_speed * 9) >> 18); - DrawTextBasic(dpi, screenCoords, STR_AVERAGE_SPEED, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Ride time - ft = Formatter(); - int32_t numTimes = 0; - // TODO: STR_RIDE_TIME only takes up to 4 stations modify to take more - // also if modified may need to be split into multiple format strings - // as formatter cannot take more than 256 bytes - for (int32_t i = 0; i < std::min(ride->num_stations, 4); i++) - { - StationIndex stationIndex = StationIndex::FromUnderlying(numTimes); - auto time = ride->GetStation(stationIndex).SegmentTime; - if (time != 0) - { - ft.Add(STR_RIDE_TIME_ENTRY_WITH_SEPARATOR); - ft.Add(time); - numTimes++; - } - } - if (numTimes == 0) - { - ft.Add(STR_RIDE_TIME_ENTRY); - ft.Add(0); - numTimes++; - } - else - { - // sadly, STR_RIDE_TIME_ENTRY_WITH_SEPARATOR are defined with the separator AFTER an entry - // therefore we set the last entry to use the no-separator format now, post-format - ft.Rewind(); - ft.Increment((numTimes - 1) * 4); - ft.Add(STR_RIDE_TIME_ENTRY); - } - ft.Rewind(); - ft.Increment(numTimes * 4); - ft.Add(0); - ft.Add(0); - ft.Add(0); - ft.Add(0); - DrawTextEllipsised(dpi, screenCoords, 308, STR_RIDE_TIME, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - - // Ride length - ft = Formatter(); - int32_t numLengths = 0; - // TODO: see above STR_RIDE_LENGTH is also only able to display max 4 - for (int32_t i = 0; i < std::min(ride->num_stations, 4); i++) - { - StationIndex stationIndex = StationIndex::FromUnderlying(i); - auto length = ride->GetStation(stationIndex).SegmentLength; - if (length != 0) - { - length >>= 16; - ft.Add(STR_RIDE_LENGTH_ENTRY_WITH_SEPARATOR); - ft.Add(length & 0xFFFF); - numLengths++; - } - } - if (numLengths == 0) - { - ft.Add(STR_RIDE_LENGTH_ENTRY); - ft.Add(0); - numLengths++; - } - else - { - // sadly, STR_RIDE_LENGTH_ENTRY_WITH_SEPARATOR are defined with the separator AFTER an entry - // therefore we set the last entry to use the no-separator format now, post-format - ft.Rewind(); - ft.Increment((numLengths - 1) * 4); - ft.Add(STR_RIDE_LENGTH_ENTRY); - } - ft.Rewind(); - ft.Increment(numLengths * 4); - ft.Add(0); - ft.Add(0); - ft.Add(0); - ft.Add(0); - DrawTextEllipsised(dpi, screenCoords, 308, STR_RIDE_LENGTH, ft); - - screenCoords.y += LIST_ROW_HEIGHT; - - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_G_FORCES)) - { - // Max. positive vertical G's - stringId = STR_MAX_POSITIVE_VERTICAL_G; - - ft = Formatter(); - ft.Add(ride->max_positive_vertical_g); - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Max. negative vertical G's - stringId = ride->max_negative_vertical_g <= RIDE_G_FORCES_RED_NEG_VERTICAL ? STR_MAX_NEGATIVE_VERTICAL_G_RED - : STR_MAX_NEGATIVE_VERTICAL_G; - ft = Formatter(); - ft.Add(ride->max_negative_vertical_g); - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Max lateral G's - stringId = ride->max_lateral_g > RIDE_G_FORCES_RED_LATERAL ? STR_MAX_LATERAL_G_RED : STR_MAX_LATERAL_G; - ft = Formatter(); - ft.Add(ride->max_lateral_g); - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Total 'air' time - ft = Formatter(); - ft.Add(ride->total_air_time * 3); - DrawTextBasic(dpi, screenCoords, STR_TOTAL_AIR_TIME, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_DROPS)) - { - // Drops - auto drops = ride->drops & 0x3F; - ft = Formatter(); - ft.Add(drops); - DrawTextBasic(dpi, screenCoords, STR_DROPS, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Highest drop height - auto highestDropHeight = (ride->highest_drop_height * 3) / 4; - ft = Formatter(); - ft.Add(highestDropHeight); - DrawTextBasic(dpi, screenCoords, STR_HIGHEST_DROP_HEIGHT, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - - if (ride->type != RIDE_TYPE_MINI_GOLF) - { - // Inversions - if (ride->inversions != 0) - { - ft = Formatter(); - ft.Add(ride->inversions); - DrawTextBasic(dpi, screenCoords, STR_INVERSIONS, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - } - } - } - else - { - DrawTextBasic(dpi, screenCoords, STR_NO_TEST_RESULTS_YET); - } - } -} - -#pragma endregion - -#pragma region Graphs - -enum -{ - GRAPH_VELOCITY, - GRAPH_ALTITUDE, - GRAPH_VERTICAL, - GRAPH_LATERAL -}; - -/** - * - * rct2: 0x006AE8A6 - */ -static void WindowRideSetGraph(WindowBase* w, int32_t type) -{ - if ((w->list_information_type & 0xFF) == type) - { - w->list_information_type ^= 0x8000; - } - else - { - w->list_information_type &= 0xFF00; - w->list_information_type |= type; - } - w->Invalidate(); -} - -/** - * - * rct2: 0x006AE85D - */ -static void WindowRideGraphsMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - } -} - -/** - * - * rct2: 0x006AE8DA - */ -static void WindowRideGraphsResize(WindowBase* w) -{ - WindowSetResize(*w, 316, 182, 500, 450); -} - -/** - * - * rct2: 0x006AE878 - */ -static void WindowRideGraphsMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - switch (widgetIndex) - { - case WIDX_GRAPH_VELOCITY: - WindowRideSetGraph(w, GRAPH_VELOCITY); - break; - case WIDX_GRAPH_ALTITUDE: - WindowRideSetGraph(w, GRAPH_ALTITUDE); - break; - case WIDX_GRAPH_VERTICAL: - WindowRideSetGraph(w, GRAPH_VERTICAL); - break; - case WIDX_GRAPH_LATERAL: - WindowRideSetGraph(w, GRAPH_LATERAL); - break; - } -} - -/** - * - * rct2: 0x006AE95D - */ -static void WindowRideGraphsUpdate(WindowBase* w) -{ - Widget* widget; - int32_t x; - - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_8); - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_GRAPH); - - widget = &window_ride_graphs_widgets[WIDX_GRAPH]; - x = w->scrolls[0].h_left; - if (!(w->list_information_type & 0x8000)) - { - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - RideMeasurement* measurement{}; - std::tie(measurement, std::ignore) = ride->GetMeasurement(); - x = measurement == nullptr ? 0 : measurement->current_item - ((widget->width() / 4) * 3); - } - } - - w->scrolls[0].h_left = std::clamp(x, 0, w->scrolls[0].h_right - (widget->width() - 2)); - WidgetScrollUpdateThumbs(*w, WIDX_GRAPH); -} - -/** - * - * rct2: 0x006AEA75 - */ -static void WindowRideGraphsScrollgetheight(WindowBase* w, int32_t scrollIndex, int32_t* width, int32_t* height) -{ - WindowEventInvalidateCall(w); - - // Set minimum size - *width = window_ride_graphs_widgets[WIDX_GRAPH].width() - 2; - - // Get measurement size - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - RideMeasurement* measurement{}; - std::tie(measurement, std::ignore) = ride->GetMeasurement(); - if (measurement != nullptr) - { - *width = std::max(*width, measurement->num_items); - } - } -} - -/** - * - * rct2: 0x006AE953 - */ -static void WindowRideGraphs15(WindowBase* w, int32_t scrollIndex, int32_t scrollAreaType) -{ - w->list_information_type |= 0x8000; -} - -/** - * - * rct2: 0x006AEA05 - */ -static OpenRCT2String WindowRideGraphsTooltip(WindowBase* w, const WidgetIndex widgetIndex, const StringId fallback) -{ - if (widgetIndex == WIDX_GRAPH) - { - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - auto [measurement, message] = ride->GetMeasurement(); - if (measurement != nullptr && (measurement->flags & RIDE_MEASUREMENT_FLAG_RUNNING)) - { - auto ft = Formatter(); - ft.Increment(2); - ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.vehicle).number); - ft.Add(measurement->vehicle_index + 1); - return { fallback, ft }; - } - - return message; - } - } - else - { - return { STR_NONE, {} }; - } - return { fallback, {} }; -} - -/** - * - * rct2: 0x006AE372 - */ -static void WindowRideGraphsInvalidate(WindowBase* w) -{ - auto widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto ft = Formatter::Common(); - ride->FormatNameTo(ft); - - // Set pressed graph button type - w->pressed_widgets &= ~(1uLL << WIDX_GRAPH_VELOCITY); - w->pressed_widgets &= ~(1uLL << WIDX_GRAPH_ALTITUDE); - w->pressed_widgets &= ~(1uLL << WIDX_GRAPH_VERTICAL); - w->pressed_widgets &= ~(1uLL << WIDX_GRAPH_LATERAL); - w->pressed_widgets |= (1LL << (WIDX_GRAPH_VELOCITY + (w->list_information_type & 0xFF))); - - // Hide graph buttons that are not applicable - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_G_FORCES)) - { - window_ride_graphs_widgets[WIDX_GRAPH_VERTICAL].type = WindowWidgetType::Button; - window_ride_graphs_widgets[WIDX_GRAPH_LATERAL].type = WindowWidgetType::Button; - } - else - { - window_ride_graphs_widgets[WIDX_GRAPH_VERTICAL].type = WindowWidgetType::Empty; - window_ride_graphs_widgets[WIDX_GRAPH_LATERAL].type = WindowWidgetType::Empty; - } - - // Anchor graph widget - auto x = w->width - 4; - auto y = w->height - BUTTON_FACE_HEIGHT - 8; - - window_ride_graphs_widgets[WIDX_GRAPH].right = x; - window_ride_graphs_widgets[WIDX_GRAPH].bottom = y; - y += 3; - window_ride_graphs_widgets[WIDX_GRAPH_VELOCITY].top = y; - window_ride_graphs_widgets[WIDX_GRAPH_ALTITUDE].top = y; - window_ride_graphs_widgets[WIDX_GRAPH_VERTICAL].top = y; - window_ride_graphs_widgets[WIDX_GRAPH_LATERAL].top = y; - y += BUTTON_FACE_HEIGHT + 1; - window_ride_graphs_widgets[WIDX_GRAPH_VELOCITY].bottom = y; - window_ride_graphs_widgets[WIDX_GRAPH_ALTITUDE].bottom = y; - window_ride_graphs_widgets[WIDX_GRAPH_VERTICAL].bottom = y; - window_ride_graphs_widgets[WIDX_GRAPH_LATERAL].bottom = y; - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); -} - -/** - * - * rct2: 0x006AE4BC - */ -static void WindowRideGraphsPaint(WindowBase* w, DrawPixelInfo& dpi) -{ - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); -} - -/** - * - * rct2: 0x006AE4C7 - */ -static void WindowRideGraphsScrollpaint(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex) -{ - GfxClear(&dpi, ColourMapA[COLOUR_SATURATED_GREEN].darker); - - auto widget = &window_ride_graphs_widgets[WIDX_GRAPH]; - auto ride = GetRide(w->rideId); - if (ride == nullptr) - { - return; - } - - auto [measurement, message] = ride->GetMeasurement(); - - if (measurement == nullptr) - { - // No measurement message - ScreenCoordsXY stringCoords(widget->width() / 2, widget->height() / 2 - 5); - int32_t width = widget->width() - 2; - DrawTextWrapped(dpi, stringCoords, width, message.str, message.args, { TextAlignment::CENTRE }); - return; - } - - // Vertical grid lines - const uint8_t lightColour = ColourMapA[COLOUR_SATURATED_GREEN].mid_light; - const uint8_t darkColour = ColourMapA[COLOUR_SATURATED_GREEN].mid_dark; - - int32_t time = 0; - for (int32_t x = 0; x < dpi.x + dpi.width; x += 80) - { - if (x + 80 >= dpi.x) - { - auto coord1 = ScreenCoordsXY{ x, dpi.y }; - auto coord2 = ScreenCoordsXY{ x, dpi.y + dpi.height - 1 }; - GfxFillRect(dpi, { coord1, coord2 }, lightColour); - GfxFillRect(dpi, { coord1 + ScreenCoordsXY{ 16, 0 }, coord2 + ScreenCoordsXY{ 16, 0 } }, darkColour); - GfxFillRect(dpi, { coord1 + ScreenCoordsXY{ 32, 0 }, coord2 + ScreenCoordsXY{ 32, 0 } }, darkColour); - GfxFillRect(dpi, { coord1 + ScreenCoordsXY{ 48, 0 }, coord2 + ScreenCoordsXY{ 48, 0 } }, darkColour); - GfxFillRect(dpi, { coord1 + ScreenCoordsXY{ 64, 0 }, coord2 + ScreenCoordsXY{ 64, 0 } }, darkColour); - } - time += 5; - } - - // Horizontal grid lines - int32_t listType = w->list_information_type & 0xFF; - int16_t yUnit = window_graphs_y_axi[listType].unit; - StringId stringID = window_graphs_y_axi[listType].label; - int16_t yUnitInterval = window_graphs_y_axi[listType].unit_interval; - int16_t yInterval = window_graphs_y_axi[listType].interval; - - // Scale modifier - if (listType == GRAPH_ALTITUDE) - { - yUnit -= gMapBaseZ * 3; - } - - for (int32_t y = widget->height() - 13; y >= 8; y -= yInterval, yUnit += yUnitInterval) - { - // Minor / major line - int32_t colour = yUnit == 0 ? lightColour : darkColour; - GfxFillRect(dpi, { { dpi.x, y }, { dpi.x + dpi.width - 1, y } }, colour); - - int16_t scaled_yUnit = yUnit; - // Scale modifier - if (listType == GRAPH_ALTITUDE) - scaled_yUnit /= 2; - - auto ft = Formatter(); - ft.Add(scaled_yUnit); - - DrawTextBasic(dpi, { w->scrolls[0].h_left + 1, y - 4 }, stringID, ft, { FontStyle::Small }); - } - - // Time marks - time = 0; - for (int32_t x = 0; x < dpi.x + dpi.width; x += 80) - { - auto ft = Formatter(); - ft.Add(time); - if (x + 80 >= dpi.x) - DrawTextBasic(dpi, { x + 2, 1 }, STR_RIDE_STATS_TIME, ft, { FontStyle::Small }); - time += 5; - } - - // Plot - int32_t x = dpi.x; - int32_t firstPoint, secondPoint; - // Uses the force limits (used to draw extreme G's in red on measurement tab) to determine if line should be drawn red. - int32_t intensityThresholdPositive = 0; - int32_t intensityThresholdNegative = 0; - for (int32_t width = 0; width < dpi.width; width++, x++) - { - if (x < 0 || x >= measurement->num_items - 1) - continue; - - constexpr int32_t VerticalGraphHeightOffset = 39; - constexpr int32_t LateralGraphHeightOffset = 52; - - switch (listType) - { - case GRAPH_VELOCITY: - firstPoint = measurement->velocity[x] / 2; - secondPoint = measurement->velocity[x + 1] / 2; - break; - case GRAPH_ALTITUDE: - firstPoint = measurement->altitude[x]; - secondPoint = measurement->altitude[x + 1]; - break; - case GRAPH_VERTICAL: - firstPoint = measurement->vertical[x] + VerticalGraphHeightOffset; - secondPoint = measurement->vertical[x + 1] + VerticalGraphHeightOffset; - intensityThresholdNegative = (RIDE_G_FORCES_RED_NEG_VERTICAL / 8) + VerticalGraphHeightOffset; - break; - case GRAPH_LATERAL: - firstPoint = measurement->lateral[x] + LateralGraphHeightOffset; - secondPoint = measurement->lateral[x + 1] + LateralGraphHeightOffset; - intensityThresholdPositive = (RIDE_G_FORCES_RED_LATERAL / 8) + LateralGraphHeightOffset; - intensityThresholdNegative = -(RIDE_G_FORCES_RED_LATERAL / 8) + LateralGraphHeightOffset; - break; - default: - LOG_ERROR("Wrong graph type %d", listType); - firstPoint = secondPoint = 0; - break; - } - - // Adjust line to match graph widget position. - firstPoint = widget->height() - firstPoint - 13; - secondPoint = widget->height() - secondPoint - 13; - if (firstPoint > secondPoint) - { - std::swap(firstPoint, secondPoint); - } - - // Adjust threshold line position as well - if (listType == GRAPH_VERTICAL || listType == GRAPH_LATERAL) - { - intensityThresholdPositive = widget->height() - intensityThresholdPositive - 13; - intensityThresholdNegative = widget->height() - intensityThresholdNegative - 13; - } - - const bool previousMeasurement = x > measurement->current_item; - - // Draw the current line in grey. - GfxFillRect(dpi, { { x, firstPoint }, { x, secondPoint } }, previousMeasurement ? PALETTE_INDEX_17 : PALETTE_INDEX_21); - - // Draw red over extreme values (if supported by graph type). - if (listType == GRAPH_VERTICAL || listType == GRAPH_LATERAL) - { - const auto redLineColour = previousMeasurement ? PALETTE_INDEX_171 : PALETTE_INDEX_173; - - // Line exceeds negative threshold (at bottom of graph). - if (secondPoint >= intensityThresholdNegative) - { - const auto redLineTop = ScreenCoordsXY{ x, std::max(firstPoint, intensityThresholdNegative) }; - const auto redLineBottom = ScreenCoordsXY{ x, std::max(secondPoint, intensityThresholdNegative) }; - GfxFillRect(dpi, { redLineTop, redLineBottom }, redLineColour); - } - - // Line exceeds positive threshold (at top of graph). - if (listType == GRAPH_LATERAL && firstPoint < intensityThresholdPositive) - { - const auto redLineTop = ScreenCoordsXY{ x, std::min(firstPoint, intensityThresholdPositive) }; - const auto redLineBottom = ScreenCoordsXY{ x, std::min(secondPoint, intensityThresholdPositive) }; - GfxFillRect(dpi, { redLineTop, redLineBottom }, redLineColour); - } - } - } -} - -#pragma endregion - -#pragma region Income - -static utf8 _moneyInputText[MONEY_STRING_MAXLENGTH]; - -static void UpdateSamePriceThroughoutFlags(ShopItem shop_item) -{ - if (GetShopItemDescriptor(shop_item).IsPhoto()) - { - auto newFlags = gSamePriceThroughoutPark; - if (gSamePriceThroughoutPark & EnumToFlag(shop_item)) - newFlags &= ~EnumsToFlags(ShopItem::Photo, ShopItem::Photo2, ShopItem::Photo3, ShopItem::Photo4); - else - newFlags |= EnumsToFlags(ShopItem::Photo, ShopItem::Photo2, ShopItem::Photo3, ShopItem::Photo4); - auto parkSetParameter = ParkSetParameterAction(ParkParameter::SamePriceInPark, newFlags); - GameActions::Execute(&parkSetParameter); - } - else - { - auto newFlags = gSamePriceThroughoutPark; - newFlags ^= EnumToFlag(shop_item); - auto parkSetParameter = ParkSetParameterAction(ParkParameter::SamePriceInPark, newFlags); - GameActions::Execute(&parkSetParameter); - } -} - -/** - * - * rct2: 0x006ADEFD - */ -static void WindowRideIncomeTogglePrimaryPrice(WindowBase* w) -{ - const auto rideId = w->rideId; - auto ride = GetRide(rideId); - if (ride == nullptr) - return; - - ShopItem shop_item; - const auto& rtd = ride->GetRideTypeDescriptor(); - if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET)) - { - shop_item = ShopItem::Admission; - } - else - { - auto rideEntry = GetRideEntryByIndex(ride->subtype); - if (rideEntry != nullptr) - { - shop_item = rideEntry->shop_item[0]; - if (shop_item == ShopItem::None) - return; - } - else - { - return; - } - } - - UpdateSamePriceThroughoutFlags(shop_item); - - auto rideSetPriceAction = RideSetPriceAction(rideId, ride->price[0], true); - GameActions::Execute(&rideSetPriceAction); -} - -/** - * - * rct2: 0x006AE06E - */ -static void WindowRideIncomeToggleSecondaryPrice(WindowBase* w) -{ - const auto rideId = w->rideId; - auto ride = GetRide(rideId); - if (ride == nullptr) - return; - - auto rideEntry = GetRideEntryByIndex(ride->subtype); - if (rideEntry == nullptr) - return; - - auto shop_item = rideEntry->shop_item[1]; - if (shop_item == ShopItem::None) - shop_item = ride->GetRideTypeDescriptor().PhotoItem; - - UpdateSamePriceThroughoutFlags(shop_item); - - auto rideSetPriceAction = RideSetPriceAction(rideId, ride->price[1], false); - GameActions::Execute(&rideSetPriceAction); -} - -static void WindowRideIncomeSetPrimaryPrice(WindowBase* w, money64 price) -{ - auto rideSetPriceAction = RideSetPriceAction(w->rideId, price, true); - GameActions::Execute(&rideSetPriceAction); -} - -/** - * - * rct2: 0x006AE1E4 - */ -static void WindowRideIncomeIncreasePrimaryPrice(WindowBase* w) -{ - if (!WindowRideIncomeCanModifyPrimaryPrice(w)) - return; - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto price = ride->price[0]; - if (price < 20.00_GBP) - price++; - - WindowRideIncomeSetPrimaryPrice(w, price); -} - -/** - * - * rct2: 0x006AE237 - */ -static void WindowRideIncomeDecreasePrimaryPrice(WindowBase* w) -{ - if (!WindowRideIncomeCanModifyPrimaryPrice(w)) - return; - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto price = ride->price[0]; - if (price > 0.00_GBP) - price--; - - WindowRideIncomeSetPrimaryPrice(w, price); -} - -static money64 WindowRideIncomeGetSecondaryPrice(WindowBase* w) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return 0; - - return ride->price[1]; -} - -static void WindowRideIncomeSetSecondaryPrice(WindowBase* w, money64 price) -{ - auto rideSetPriceAction = RideSetPriceAction(w->rideId, price, false); - GameActions::Execute(&rideSetPriceAction); -} - -static bool WindowRideIncomeCanModifyPrimaryPrice(WindowBase* w) -{ - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return false; - - auto rideEntry = ride->GetRideEntry(); - const auto& rtd = ride->GetRideTypeDescriptor(); - return ParkRidePricesUnlocked() || rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET) - || (rideEntry != nullptr && rideEntry->shop_item[0] != ShopItem::None); -} - -/** - * - * rct2: 0x006AE269 - */ -static void WindowRideIncomeIncreaseSecondaryPrice(WindowBase* w) -{ - auto price = WindowRideIncomeGetSecondaryPrice(w); - - if (price < 20.00_GBP) - price++; - - WindowRideIncomeSetSecondaryPrice(w, price); -} - -/** - * - * rct2: 0x006AE28D - */ -static void WindowRideIncomeDecreaseSecondaryPrice(WindowBase* w) -{ - auto price = WindowRideIncomeGetSecondaryPrice(w); - - if (price > 0.00_GBP) - price--; - - WindowRideIncomeSetSecondaryPrice(w, price); -} - -/** - * - * rct2: 0x006ADEA9 - */ -static void WindowRideIncomeMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - case WIDX_PRIMARY_PRICE: - { - if (!WindowRideIncomeCanModifyPrimaryPrice(w)) - return; - - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - MoneyToString(ride->price[0], _moneyInputText, MONEY_STRING_MAXLENGTH, true); - WindowTextInputRawOpen( - w, WIDX_PRIMARY_PRICE, STR_ENTER_NEW_VALUE, STR_ENTER_NEW_VALUE, {}, _moneyInputText, - MONEY_STRING_MAXLENGTH); - } - break; - } - case WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK: - WindowRideIncomeTogglePrimaryPrice(w); - break; - case WIDX_SECONDARY_PRICE: - { - auto price64 = WindowRideIncomeGetSecondaryPrice(w); - - MoneyToString(price64, _moneyInputText, MONEY_STRING_MAXLENGTH, true); - WindowTextInputRawOpen( - w, WIDX_SECONDARY_PRICE, STR_ENTER_NEW_VALUE, STR_ENTER_NEW_VALUE, {}, _moneyInputText, MONEY_STRING_MAXLENGTH); - } - break; - case WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK: - WindowRideIncomeToggleSecondaryPrice(w); - break; - } -} - -/** - * - * rct2: 0x006AE2F8 - */ -static void WindowRideIncomeResize(WindowBase* w) -{ - WindowSetResize(*w, 316, 194, 316, 194); -} - -/** - * - * rct2: 0x006ADED4 - */ -static void WindowRideIncomeMousedown(WindowBase* w, WidgetIndex widgetIndex, Widget* widget) -{ - switch (widgetIndex) - { - case WIDX_PRIMARY_PRICE_INCREASE: - WindowRideIncomeIncreasePrimaryPrice(w); - break; - case WIDX_PRIMARY_PRICE_DECREASE: - WindowRideIncomeDecreasePrimaryPrice(w); - break; - case WIDX_SECONDARY_PRICE_INCREASE: - WindowRideIncomeIncreaseSecondaryPrice(w); - break; - case WIDX_SECONDARY_PRICE_DECREASE: - WindowRideIncomeDecreaseSecondaryPrice(w); - break; - } -} - -/** - * - * rct2: 0x006AE2BF - */ -static void WindowRideIncomeUpdate(WindowBase* w) -{ - w->frame_no++; - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_9); - - auto ride = GetRide(w->rideId); - if (ride != nullptr && ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_INCOME) - { - ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_INCOME; - w->Invalidate(); - } -} - -static void WindowRideIncomeTextinput(WindowBase* w, WidgetIndex widgetIndex, const char* text) -{ - if ((widgetIndex != WIDX_PRIMARY_PRICE && widgetIndex != WIDX_SECONDARY_PRICE) || text == nullptr) - return; - - money64 price = StringToMoney(text); - if (price == MONEY64_UNDEFINED) - { - return; - } - - price = std::clamp(price, 0.00_GBP, 20.00_GBP); - - if (widgetIndex == WIDX_PRIMARY_PRICE) - { - WindowRideIncomeSetPrimaryPrice(w, price); - } - else - { - WindowRideIncomeSetSecondaryPrice(w, price); - } -} - -/** - * - * rct2: 0x006ADAA3 - */ -static void WindowRideIncomeInvalidate(WindowBase* w) -{ - auto widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - w->widgets[WIDX_TITLE].text = STR_ARG_18_STRINGID; - - auto ft = Formatter::Common(); - ft.Increment(18); - ride->FormatNameTo(ft); - - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return; - - // Primary item - w->pressed_widgets &= ~(1uLL << WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK); - w->disabled_widgets &= ~(1uLL << WIDX_PRIMARY_PRICE); - - window_ride_income_widgets[WIDX_PRIMARY_PRICE_LABEL].tooltip = STR_NONE; - window_ride_income_widgets[WIDX_PRIMARY_PRICE].tooltip = STR_NONE; - - // If ride prices are locked, do not allow setting the price, unless we're dealing with a shop or toilet. - const auto& rtd = ride->GetRideTypeDescriptor(); - if (!ParkRidePricesUnlocked() && rideEntry->shop_item[0] == ShopItem::None && !rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET)) - { - w->disabled_widgets |= (1uLL << WIDX_PRIMARY_PRICE); - window_ride_income_widgets[WIDX_PRIMARY_PRICE_LABEL].tooltip = STR_RIDE_INCOME_ADMISSION_PAY_FOR_ENTRY_TIP; - window_ride_income_widgets[WIDX_PRIMARY_PRICE].tooltip = STR_RIDE_INCOME_ADMISSION_PAY_FOR_ENTRY_TIP; - } - - window_ride_income_widgets[WIDX_PRIMARY_PRICE_LABEL].text = STR_RIDE_INCOME_ADMISSION_PRICE; - window_ride_income_widgets[WIDX_SECONDARY_PRICE_LABEL].text = STR_SHOP_ITEM_PRICE_LABEL_ON_RIDE_PHOTO; - window_ride_income_widgets[WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Empty; - - window_ride_income_widgets[WIDX_PRIMARY_PRICE].text = STR_BOTTOM_TOOLBAR_CASH; - auto ridePrimaryPrice = RideGetPrice(*ride); - ft.Rewind(); - ft.Add(ridePrimaryPrice); - if (ridePrimaryPrice == 0) - window_ride_income_widgets[WIDX_PRIMARY_PRICE].text = STR_FREE; - - ShopItem primaryItem = ShopItem::Admission; - if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_TOILET) || ((primaryItem = rideEntry->shop_item[0]) != ShopItem::None)) - { - window_ride_income_widgets[WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Checkbox; - - if (ShopItemHasCommonPrice(primaryItem)) - w->pressed_widgets |= (1uLL << WIDX_PRIMARY_PRICE_SAME_THROUGHOUT_PARK); - - window_ride_income_widgets[WIDX_PRIMARY_PRICE_LABEL].text = GetShopItemDescriptor(primaryItem).Naming.PriceLabel; - } - - // Get secondary item - auto secondaryItem = ride->GetRideTypeDescriptor().PhotoItem; - if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_ON_RIDE_PHOTO)) - { - if ((secondaryItem = rideEntry->shop_item[1]) != ShopItem::None) - { - window_ride_income_widgets[WIDX_SECONDARY_PRICE_LABEL].text = GetShopItemDescriptor(secondaryItem) - .Naming.PriceLabel; - } - } - - if (secondaryItem == ShopItem::None) - { - // Hide secondary item widgets - window_ride_income_widgets[WIDX_SECONDARY_PRICE_LABEL].type = WindowWidgetType::Empty; - window_ride_income_widgets[WIDX_SECONDARY_PRICE].type = WindowWidgetType::Empty; - window_ride_income_widgets[WIDX_SECONDARY_PRICE_INCREASE].type = WindowWidgetType::Empty; - window_ride_income_widgets[WIDX_SECONDARY_PRICE_DECREASE].type = WindowWidgetType::Empty; - window_ride_income_widgets[WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Empty; - } - else - { - // Set same price throughout park checkbox - w->pressed_widgets &= ~(1uLL << WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK); - if (ShopItemHasCommonPrice(secondaryItem)) - w->pressed_widgets |= (1uLL << WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK); - - // Show widgets - window_ride_income_widgets[WIDX_SECONDARY_PRICE_LABEL].type = WindowWidgetType::Label; - window_ride_income_widgets[WIDX_SECONDARY_PRICE].type = WindowWidgetType::Spinner; - window_ride_income_widgets[WIDX_SECONDARY_PRICE_INCREASE].type = WindowWidgetType::Button; - window_ride_income_widgets[WIDX_SECONDARY_PRICE_DECREASE].type = WindowWidgetType::Button; - window_ride_income_widgets[WIDX_SECONDARY_PRICE_SAME_THROUGHOUT_PARK].type = WindowWidgetType::Checkbox; - - // Set secondary item price - window_ride_income_widgets[WIDX_SECONDARY_PRICE].text = STR_RIDE_SECONDARY_PRICE_VALUE; - ft.Rewind(); - ft.Increment(10); - ft.Add(ride->price[1]); - if (ride->price[1] == 0) - window_ride_income_widgets[WIDX_SECONDARY_PRICE].text = STR_FREE; - } - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); -} - -/** - * - * rct2: 0x006ADCE5 - */ -static void WindowRideIncomePaint(WindowBase* w, DrawPixelInfo& dpi) -{ - StringId stringId; - money64 profit; - ShopItem primaryItem, secondaryItem; - - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto rideEntry = ride->GetRideEntry(); - if (rideEntry == nullptr) - return; - - auto screenCoords = w->windowPos - + ScreenCoordsXY{ window_ride_income_widgets[WIDX_PAGE_BACKGROUND].left + 4, - window_ride_income_widgets[WIDX_PAGE_BACKGROUND].top + 33 }; - - // Primary item profit / loss per item sold - primaryItem = rideEntry->shop_item[0]; - if (primaryItem != ShopItem::None) - { - profit = ride->price[0]; - - stringId = STR_PROFIT_PER_ITEM_SOLD; - profit -= GetShopItemDescriptor(primaryItem).Cost; - if (profit < 0) - { - profit *= -1; - stringId = STR_LOSS_PER_ITEM_SOLD; - } - - auto ft = Formatter(); - ft.Add(profit); - - DrawTextBasic(dpi, screenCoords, stringId, ft); - } - screenCoords.y += 44; - - // Secondary item profit / loss per item sold - secondaryItem = ride->GetRideTypeDescriptor().PhotoItem; - if (!(ride->lifecycle_flags & RIDE_LIFECYCLE_ON_RIDE_PHOTO)) - secondaryItem = rideEntry->shop_item[1]; - - if (secondaryItem != ShopItem::None) - { - profit = ride->price[1]; - - stringId = STR_PROFIT_PER_ITEM_SOLD; - profit -= GetShopItemDescriptor(secondaryItem).Cost; - if (profit < 0) - { - profit *= -1; - stringId = STR_LOSS_PER_ITEM_SOLD; - } - - auto ft = Formatter(); - ft.Add(profit); - - DrawTextBasic(dpi, screenCoords, stringId, ft); - } - screenCoords.y += 18; - - // Income per hour - if (ride->income_per_hour != MONEY64_UNDEFINED) - { - auto ft = Formatter(); - ft.Add(ride->income_per_hour); - - DrawTextBasic(dpi, screenCoords, STR_INCOME_PER_HOUR, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - - // Running cost per hour - money64 costPerHour = ride->upkeep_cost * 16; - stringId = ride->upkeep_cost == MONEY64_UNDEFINED ? STR_RUNNING_COST_UNKNOWN : STR_RUNNING_COST_PER_HOUR; - auto ft = Formatter(); - ft.Add(costPerHour); - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Profit per hour - if (ride->profit != MONEY64_UNDEFINED) - { - ft = Formatter(); - ft.Add(ride->profit); - DrawTextBasic(dpi, screenCoords, STR_PROFIT_PER_HOUR, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - screenCoords.y += 5; - - // Total profit - ft = Formatter(); - ft.Add(ride->total_profit); - DrawTextBasic(dpi, screenCoords, STR_TOTAL_PROFIT, ft); -} - -#pragma endregion - -#pragma region Customer - -/** - * - * rct2: 0x006AD986 - */ -static void WindowRideCustomerMouseup(WindowBase* w, WidgetIndex widgetIndex) -{ - switch (widgetIndex) - { - case WIDX_CLOSE: - WindowClose(*w); - break; - case WIDX_TAB_1: - case WIDX_TAB_2: - case WIDX_TAB_3: - case WIDX_TAB_4: - case WIDX_TAB_5: - case WIDX_TAB_6: - case WIDX_TAB_7: - case WIDX_TAB_8: - case WIDX_TAB_9: - case WIDX_TAB_10: - WindowRideSetPage(w, widgetIndex - WIDX_TAB_1); - break; - case WIDX_SHOW_GUESTS_THOUGHTS: - { - auto intent = Intent(WindowClass::GuestList); - intent.PutExtra(INTENT_EXTRA_GUEST_LIST_FILTER, static_cast(GuestListFilterType::GuestsThinkingAboutRide)); - intent.PutExtra(INTENT_EXTRA_RIDE_ID, w->number); - ContextOpenIntent(&intent); - break; - } - case WIDX_SHOW_GUESTS_ON_RIDE: - { - auto intent = Intent(WindowClass::GuestList); - intent.PutExtra(INTENT_EXTRA_GUEST_LIST_FILTER, static_cast(GuestListFilterType::GuestsOnRide)); - intent.PutExtra(INTENT_EXTRA_RIDE_ID, w->number); - ContextOpenIntent(&intent); - break; - } - case WIDX_SHOW_GUESTS_QUEUING: - { - auto intent = Intent(WindowClass::GuestList); - intent.PutExtra(INTENT_EXTRA_GUEST_LIST_FILTER, static_cast(GuestListFilterType::GuestsInQueue)); - intent.PutExtra(INTENT_EXTRA_RIDE_ID, w->number); - ContextOpenIntent(&intent); - break; - } - } -} - -/** - * - * rct2: 0x006ADA29 - */ -static void WindowRideCustomerResize(WindowBase* w) -{ - w->flags |= WF_RESIZABLE; - WindowSetResize(*w, 316, 163, 316, 163); -} - -/** - * - * rct2: 0x006AD9DD - */ -static void WindowRideCustomerUpdate(WindowBase* w) -{ - w->picked_peep_frame++; - if (w->picked_peep_frame >= 24) - w->picked_peep_frame = 0; - - WindowEventInvalidateCall(w); - WidgetInvalidate(*w, WIDX_TAB_10); - - auto ride = GetRide(w->rideId); - if (ride != nullptr && ride->window_invalidate_flags & RIDE_INVALIDATE_RIDE_CUSTOMER) - { - ride->window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_CUSTOMER; - w->Invalidate(); - } -} - -/** - * - * rct2: 0x006AD5F8 - */ -static void WindowRideCustomerInvalidate(WindowBase* w) -{ - auto widgets = window_ride_page_widgets[w->page]; - if (w->widgets != widgets) - { - w->widgets = widgets; - WindowInitScrollWidgets(*w); - } - - WindowRideSetPressedTab(w); - - auto ride = GetRide(w->rideId); - if (ride != nullptr) - { - auto ft = Formatter::Common(); - ride->FormatNameTo(ft); - - window_ride_customer_widgets[WIDX_SHOW_GUESTS_THOUGHTS].type = WindowWidgetType::FlatBtn; - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY)) - { - window_ride_customer_widgets[WIDX_SHOW_GUESTS_ON_RIDE].type = WindowWidgetType::Empty; - window_ride_customer_widgets[WIDX_SHOW_GUESTS_QUEUING].type = WindowWidgetType::Empty; - } - else - { - window_ride_customer_widgets[WIDX_SHOW_GUESTS_ON_RIDE].type = WindowWidgetType::FlatBtn; - window_ride_customer_widgets[WIDX_SHOW_GUESTS_QUEUING].type = WindowWidgetType::FlatBtn; - } - - WindowRideAnchorBorderWidgets(w); - WindowAlignTabs(w, WIDX_TAB_1, WIDX_TAB_10); - } -} - -/** - * - * rct2: 0x006AD6CD - */ -static void WindowRideCustomerPaint(WindowBase* w, DrawPixelInfo& dpi) -{ - ShopItem shopItem; - int16_t popularity, satisfaction, queueTime; - StringId stringId; - - WindowDrawWidgets(*w, dpi); - WindowRideDrawTabImages(dpi, w); - - auto ride = GetRide(w->rideId); - if (ride == nullptr) - return; - - auto screenCoords = w->windowPos - + ScreenCoordsXY{ window_ride_customer_widgets[WIDX_PAGE_BACKGROUND].left + 4, - window_ride_customer_widgets[WIDX_PAGE_BACKGROUND].top + 4 }; - - // Customers currently on ride - if (ride->IsRide()) - { - auto ft = Formatter(); - ft.Add(ride->num_riders); - DrawTextBasic(dpi, screenCoords, STR_CUSTOMERS_ON_RIDE, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - - // Customers per hour - auto ft = Formatter(); - ft.Add(RideCustomersPerHour(*ride)); - DrawTextBasic(dpi, screenCoords, STR_CUSTOMERS_PER_HOUR, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Popularity - popularity = ride->popularity; - if (popularity == 255) - { - stringId = STR_POPULARITY_UNKNOWN; - } - else - { - stringId = STR_POPULARITY_PERCENT; - popularity *= 4; - } - ft = Formatter(); - ft.Add(popularity); - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Satisfaction - satisfaction = ride->satisfaction; - if (satisfaction == 255) - { - stringId = STR_SATISFACTION_UNKNOWN; - } - else - { - stringId = STR_SATISFACTION_PERCENT; - satisfaction *= 5; - } - ft = Formatter(); - ft.Add(satisfaction); - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Queue time - if (ride->IsRide()) - { - queueTime = ride->GetMaxQueueTime(); - stringId = queueTime == 1 ? STR_QUEUE_TIME_MINUTE : STR_QUEUE_TIME_MINUTES; - ft = Formatter(); - ft.Add(queueTime); - screenCoords.y += DrawTextWrapped(dpi, screenCoords, 308, stringId, ft, { TextAlignment::LEFT }); - screenCoords.y += 5; - } - - // Primary shop items sold - shopItem = ride->GetRideEntry()->shop_item[0]; - if (shopItem != ShopItem::None) - { - ft = Formatter(); - ft.Add(GetShopItemDescriptor(shopItem).Naming.Plural); - ft.Add(ride->no_primary_items_sold); - DrawTextBasic(dpi, screenCoords, STR_ITEMS_SOLD, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - - // Secondary shop items sold / on-ride photos sold - shopItem = (ride->lifecycle_flags & RIDE_LIFECYCLE_ON_RIDE_PHOTO) ? ride->GetRideTypeDescriptor().PhotoItem - : ride->GetRideEntry()->shop_item[1]; - if (shopItem != ShopItem::None) - { - ft = Formatter(); - ft.Add(GetShopItemDescriptor(shopItem).Naming.Plural); - ft.Add(ride->no_secondary_items_sold); - DrawTextBasic(dpi, screenCoords, STR_ITEMS_SOLD, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - - // Total customers - ft = Formatter(); - ft.Add(ride->total_customers); - DrawTextBasic(dpi, screenCoords, STR_TOTAL_CUSTOMERS, ft); - screenCoords.y += LIST_ROW_HEIGHT; - - // Guests favourite - if (ride->IsRide()) - { - ft = Formatter(); - ft.Add(ride->guests_favourite); - stringId = ride->guests_favourite == 1 ? STR_FAVOURITE_RIDE_OF_GUEST : STR_FAVOURITE_RIDE_OF_GUESTS; - DrawTextBasic(dpi, screenCoords, stringId, ft); - screenCoords.y += LIST_ROW_HEIGHT; - } - screenCoords.y += 2; - - // Age - // If the ride has a build date that is in the future, show it as built this year. - int16_t age = std::max(DateGetYear(ride->GetAge()), 0); - stringId = age == 0 ? STR_BUILT_THIS_YEAR : age == 1 ? STR_BUILT_LAST_YEAR : STR_BUILT_YEARS_AGO; - ft = Formatter(); - ft.Add(age); - DrawTextBasic(dpi, screenCoords, stringId, ft); -} - -#pragma endregion diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 4f20b05455..62bcd88e3b 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -46,13 +46,13 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_RIDE_CONSTRUCTION_WINDOW_TITLE; -static constexpr const int32_t WH = 394; -static constexpr const int32_t WW = 166; +static constexpr StringId WINDOW_TITLE = STR_RIDE_CONSTRUCTION_WINDOW_TITLE; +static constexpr int32_t WH = 394; +static constexpr int32_t WW = 166; -static constexpr const uint16_t ARROW_PULSE_DURATION = 200; +static constexpr uint16_t ARROW_PULSE_DURATION = 200; // Width of the group boxes, e.g. “Banking” -static constexpr const int32_t GW = WW - 6; +static constexpr int32_t GW = WW - 6; using namespace OpenRCT2::TrackMetaData; @@ -112,7 +112,7 @@ validate_global_widx(WC_RIDE_CONSTRUCTION, WIDX_EXIT); validate_global_widx(WC_RIDE_CONSTRUCTION, WIDX_ROTATE); // clang-format off -static Widget window_ride_construction_widgets[] = { +static Widget _rideConstructionWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget ({ 3, 17}, { GW, 57}, WindowWidgetType::Groupbox, WindowColour::Primary , STR_RIDE_CONSTRUCTION_DIRECTION ), MakeWidget ({ 3, 76}, { GW, 41}, WindowWidgetType::Groupbox, WindowColour::Primary , STR_RIDE_CONSTRUCTION_SLOPE ), @@ -166,7 +166,7 @@ static StringId _trackPlaceErrorMessage; static bool _autoRotatingShop; static bool _gotoStartPlacementMode = false; -static constexpr const StringId RideConstructionSeatAngleRotationStrings[] = { +static constexpr StringId RideConstructionSeatAngleRotationStrings[] = { STR_RIDE_CONSTRUCTION_SEAT_ROTATION_ANGLE_NEG_180, STR_RIDE_CONSTRUCTION_SEAT_ROTATION_ANGLE_NEG_135, STR_RIDE_CONSTRUCTION_SEAT_ROTATION_ANGLE_NEG_90, STR_RIDE_CONSTRUCTION_SEAT_ROTATION_ANGLE_NEG_45, STR_RIDE_CONSTRUCTION_SEAT_ROTATION_ANGLE_0, STR_RIDE_CONSTRUCTION_SEAT_ROTATION_ANGLE_45, @@ -213,7 +213,7 @@ public: return; } - widgets = window_ride_construction_widgets; + widgets = _rideConstructionWidgets; number = _currentRideIndex.ToUnderlying(); InitScrollWidgets(); @@ -249,7 +249,7 @@ public: void OnClose() override { RideConstructionInvalidateCurrentTrack(); - ViewportSetVisibility(0); + ViewportSetVisibility(ViewportVisibility::Default); MapInvalidateMapSelectionTiles(); gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_CONSTRUCT; @@ -294,16 +294,15 @@ public: } else { - int32_t previousPauseState = gGamePaused; - gGamePaused = 0; auto gameAction = RideDemolishAction(currentRide->id, RIDE_MODIFY_DEMOLISH); + gameAction.SetFlags(GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED); GameActions::Execute(&gameAction); - gGamePaused = previousPauseState; } } void OnResize() override { + ResizeFrame(); WindowRideConstructionUpdateEnabledTrackPieces(); auto currentRide = GetRide(_currentRideIndex); @@ -390,6 +389,18 @@ public: | (1uLL << WIDX_LEVEL) | (1uLL << WIDX_SLOPE_UP) | (1uLL << WIDX_SLOPE_UP_STEEP); } } + // If ride type does not have access to diagonal sloped turns, disallow simultaneous use of banked and sloped diagonals + if (!IsTrackEnabled(TRACK_SLOPE_CURVE_LARGE) && TrackPieceDirectionIsDiagonal(_currentTrackPieceDirection)) + { + if (_currentTrackSlopeEnd != TRACK_SLOPE_NONE) + { + disabledWidgets |= (1uLL << WIDX_BANK_LEFT) | (1uLL << WIDX_BANK_RIGHT); + } + else if (_currentTrackBankEnd != TRACK_BANK_NONE) + { + disabledWidgets |= (1uLL << WIDX_SLOPE_DOWN) | (1uLL << WIDX_SLOPE_UP); + } + } if (currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_UP_INCLINE_REQUIRES_LIFT) && !gCheatsEnableAllDrawableTrackPieces) { @@ -1896,27 +1907,18 @@ public: widgets[WIDX_SPEED_SETTING_SPINNER].text = STR_RIDE_CONSTRUCTION_BRAKE_SPEED_VELOCITY; widgets[WIDX_SPEED_SETTING_SPINNER].type = WindowWidgetType::Spinner; - widgets[WIDX_SPEED_SETTING_SPINNER].left = 12; - widgets[WIDX_SPEED_SETTING_SPINNER].right = 96; - widgets[WIDX_SPEED_SETTING_SPINNER].top = 138; - widgets[WIDX_SPEED_SETTING_SPINNER].bottom = 149; widgets[WIDX_SPEED_SETTING_SPINNER_UP].type = WindowWidgetType::Button; widgets[WIDX_SPEED_SETTING_SPINNER_UP].text = STR_NUMERIC_UP; - widgets[WIDX_SPEED_SETTING_SPINNER_UP].left = 84; - widgets[WIDX_SPEED_SETTING_SPINNER_UP].right = 95; - widgets[WIDX_SPEED_SETTING_SPINNER_UP].top = 139; - widgets[WIDX_SPEED_SETTING_SPINNER_UP].bottom = 148; widgets[WIDX_SPEED_SETTING_SPINNER_DOWN].type = WindowWidgetType::Button; widgets[WIDX_SPEED_SETTING_SPINNER_DOWN].text = STR_NUMERIC_DOWN; - widgets[WIDX_SPEED_SETTING_SPINNER_DOWN].left = 72; - widgets[WIDX_SPEED_SETTING_SPINNER_DOWN].right = 83; - widgets[WIDX_SPEED_SETTING_SPINNER_DOWN].top = 139; - widgets[WIDX_SPEED_SETTING_SPINNER_DOWN].bottom = 148; + + ResizeSpinner(WIDX_SPEED_SETTING_SPINNER, { 12, 138 }, { 85, SPINNER_HEIGHT }); + hold_down_widgets |= (1uLL << WIDX_SPEED_SETTING_SPINNER_UP) | (1uLL << WIDX_SPEED_SETTING_SPINNER_DOWN); } - static constexpr const int16_t bankingGroupboxRightNoSeatRotation = 162; - static constexpr const int16_t bankingGroupboxRightWithSeatRotation = 92; + static constexpr int16_t bankingGroupboxRightNoSeatRotation = 162; + static constexpr int16_t bankingGroupboxRightWithSeatRotation = 92; widgets[WIDX_BANKING_GROUPBOX].right = bankingGroupboxRightNoSeatRotation; widgets[WIDX_SEAT_ROTATION_GROUPBOX].type = WindowWidgetType::Empty; @@ -2236,14 +2238,14 @@ private: const auto resultData = res.GetData(); if (resultData.GroundFlags & ELEMENT_IS_UNDERGROUND) { - ViewportSetVisibility(1); + ViewportSetVisibility(ViewportVisibility::UndergroundViewOn); } const bool helixSelected = (_currentTrackCurve & RideConstructionSpecialPieceSelected) && TrackTypeIsHelix(_currentTrackCurve & ~RideConstructionSpecialPieceSelected); if (helixSelected || (_currentTrackSlopeEnd != TRACK_SLOPE_NONE)) { - ViewportSetVisibility(2); + ViewportSetVisibility(ViewportVisibility::TrackHeights); } } @@ -2528,7 +2530,7 @@ private: if (currentRide != nullptr && RideAreAllPossibleEntrancesAndExitsBuilt(*currentRide).Successful) { ToolCancel(); - if (currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (!currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) { WindowCloseByClass(WindowClass::RideConstruction); } @@ -3319,7 +3321,7 @@ void RideConstructionToolupdateConstruct(const ScreenCoordsXY& screenCoords) if (_autoRotatingShop && _rideConstructionState == RideConstructionState::Place && ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY)) { - TileElement* pathsByDir[NumOrthogonalDirections]; + PathElement* pathsByDir[NumOrthogonalDirections]; bool keepOrientation = false; for (int8_t i = 0; i < NumOrthogonalDirections; i++) @@ -3333,8 +3335,7 @@ void RideConstructionToolupdateConstruct(const ScreenCoordsXY& screenCoords) pathsByDir[i] = MapGetFootpathElement(testLoc); - if (pathsByDir[i] != nullptr && (pathsByDir[i])->AsPath()->IsSloped() - && (pathsByDir[i])->AsPath()->GetSlopeDirection() != i) + if (pathsByDir[i] != nullptr && pathsByDir[i]->IsSloped() && pathsByDir[i]->GetSlopeDirection() != i) { pathsByDir[i] = nullptr; } @@ -3345,14 +3346,13 @@ void RideConstructionToolupdateConstruct(const ScreenCoordsXY& screenCoords) pathsByDir[i] = MapGetFootpathElement({ *mapCoords + CoordsDirectionDelta[i], z - PATH_HEIGHT_STEP }); if (pathsByDir[i] != nullptr - && (!(pathsByDir[i])->AsPath()->IsSloped() - || (pathsByDir[i])->AsPath()->GetSlopeDirection() != DirectionReverse(i))) + && (!pathsByDir[i]->IsSloped() || pathsByDir[i]->GetSlopeDirection() != DirectionReverse(i))) { pathsByDir[i] = nullptr; } } - if (pathsByDir[i] != nullptr && (pathsByDir[i])->AsPath()->IsQueue()) + if (pathsByDir[i] != nullptr && pathsByDir[i]->IsQueue()) { pathsByDir[i] = nullptr; } diff --git a/src/openrct2-ui/windows/RideList.cpp b/src/openrct2-ui/windows/RideList.cpp index 0ebf4abe6b..18cbb513e0 100644 --- a/src/openrct2-ui/windows/RideList.cpp +++ b/src/openrct2-ui/windows/RideList.cpp @@ -28,9 +28,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_NONE; -static constexpr const int32_t WH = 240; -static constexpr const int32_t WW = 340; +static constexpr StringId WINDOW_TITLE = STR_NONE; +static constexpr int32_t WH = 240; +static constexpr int32_t WW = 340; enum { @@ -60,7 +60,7 @@ enum WindowRideListWidgetIdx }; // clang-format off -static Widget window_ride_list_widgets[] = { +static Widget _rideListWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({ 0, 43}, {340, 197}, WindowWidgetType::Resize, WindowColour::Secondary ), // tab page background MakeWidget({315, 60}, { 24, 24}, WindowWidgetType::FlatBtn, WindowColour::Secondary, ImageId(SPR_TOGGLE_OPEN_CLOSE), STR_OPEN_OR_CLOSE_ALL_RIDES ), // open / close all toggle @@ -101,7 +101,7 @@ enum DROPDOWN_LIST_COUNT, }; -static constexpr const StringId ride_info_type_string_mapping[DROPDOWN_LIST_COUNT] = { +static constexpr StringId ride_info_type_string_mapping[DROPDOWN_LIST_COUNT] = { STR_STATUS, STR_POPULARITY, STR_SATISFACTION, @@ -122,13 +122,13 @@ static constexpr const StringId ride_info_type_string_mapping[DROPDOWN_LIST_COUN STR_RIDE_LIST_NAUSEA, }; -static constexpr const StringId ride_list_statusbar_count_strings[PAGE_COUNT] = { +static constexpr StringId ride_list_statusbar_count_strings[PAGE_COUNT] = { STR_NUMBER_RIDES, STR_NUMBER_SHOPS_AND_STALLS, STR_NUMBER_TOILETS_AND_INFORMATION_KIOSKS, }; -static constexpr const bool ride_info_type_money_mapping[DROPDOWN_LIST_COUNT] = { +static constexpr bool ride_info_type_money_mapping[DROPDOWN_LIST_COUNT] = { false, // Status false, // Popularity false, // Satisfaction @@ -149,7 +149,7 @@ static constexpr const bool ride_info_type_money_mapping[DROPDOWN_LIST_COUNT] = false, // Nausea }; -static constexpr const StringId page_names[] = { +static constexpr StringId page_names[] = { STR_RIDES, STR_SHOPS_AND_STALLS, STR_TOILETS_AND_INFORMATION_KIOSKS, @@ -160,12 +160,18 @@ class RideListWindow final : public Window private: bool _quickDemolishMode = false; int32_t _windowRideListInformationType = INFORMATION_TYPE_STATUS; - std::vector _rideList; + + struct RideListEntry + { + RideId Id; + u8string Name; + }; + std::vector _rideList; public: void OnOpen() override { - widgets = window_ride_list_widgets; + widgets = _rideListWidgets; WindowInitScrollWidgets(*this); page = PAGE_RIDES; selected_list_item = -1; @@ -199,6 +205,11 @@ public: height = min_height; } + widgets[WIDX_SORT].left = width - 60; + widgets[WIDX_SORT].right = width - 60 + 54; + + ResizeDropdown(WIDX_CURRENT_INFORMATION_TYPE, { 150, 46 }, { width - 216, DROPDOWN_HEIGHT }); + // Refreshing the list can be a very intensive operation // owing to its use of ride_has_any_track_elements(). // This makes sure it's only refreshed every 64 ticks. @@ -401,17 +412,17 @@ public: return; // Open ride window - const auto rideIndex = _rideList[index]; + const auto selectedRideId = _rideList[index].Id; if (_quickDemolishMode && NetworkGetMode() != NETWORK_MODE_CLIENT) { - auto gameAction = RideDemolishAction(rideIndex, RIDE_MODIFY_DEMOLISH); + auto gameAction = RideDemolishAction(selectedRideId, RIDE_MODIFY_DEMOLISH); GameActions::Execute(&gameAction); RefreshList(); } else { auto intent = Intent(WindowClass::Ride); - intent.PutExtra(INTENT_EXTRA_RIDE_ID, rideIndex.ToUnderlying()); + intent.PutExtra(INTENT_EXTRA_RIDE_ID, selectedRideId.ToUnderlying()); ContextOpenIntent(&intent); } } @@ -540,7 +551,7 @@ public: } // Get ride - const auto* ridePtr = GetRide(_rideList[i]); + const auto* ridePtr = GetRide(_rideList[i].Id); if (ridePtr == nullptr) continue; @@ -769,20 +780,26 @@ private: * Used in RefreshList() to handle the sorting of the list. * Uses a lambda function (predicate) as exit criteria for the algorithm. */ - template int32_t SortList(int32_t currentListPosition, const Ride& thisRide, const TSortPred& pred) + template void SortListByPredicate(const TSortPred& pred) { - while (--currentListPosition >= 0) - { - const auto* otherRide = GetRide(_rideList[currentListPosition]); - if (otherRide != nullptr) + std::sort(_rideList.begin(), _rideList.end(), [&pred](const auto& lhs, const auto& rhs) { + const Ride* rideLhs = GetRide(lhs.Id); + const Ride* rideRhs = GetRide(rhs.Id); + if (rideLhs == nullptr || rideRhs == nullptr) { - if (pred(thisRide, *otherRide)) - break; - std::swap(_rideList[currentListPosition], _rideList[currentListPosition + 1]); + return false; } - } - return currentListPosition; + return !pred(*rideLhs, *rideRhs); + }); } + + void SortListByName() + { + std::sort(_rideList.begin(), _rideList.end(), [](const auto& lhs, const auto& rhs) { + return !(0 <= StrLogicalCmp(lhs.Name.c_str(), rhs.Name.c_str())); + }); + } + /** * * rct2: 0x006B39A8 @@ -790,133 +807,114 @@ private: void RefreshList() { _rideList.clear(); - - size_t listIndex = 0; for (auto& rideRef : GetRideManager()) { if (rideRef.GetClassification() != static_cast(page) || (rideRef.status == RideStatus::Closed && !RideHasAnyTrackElements(rideRef))) + { continue; + } if (rideRef.window_invalidate_flags & RIDE_INVALIDATE_RIDE_LIST) { rideRef.window_invalidate_flags &= ~RIDE_INVALIDATE_RIDE_LIST; } - _rideList.push_back(rideRef.id); - auto currentListPosition = static_cast(listIndex); - switch (list_information_type) - { - case INFORMATION_TYPE_STATUS: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return 0 <= StrLogicalCmp(thisRide.GetName().c_str(), otherRide.GetName().c_str()); - }); - break; - case INFORMATION_TYPE_POPULARITY: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.popularity * 4 <= otherRide.popularity * 4; - }); - break; - case INFORMATION_TYPE_SATISFACTION: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.satisfaction * 5 <= otherRide.satisfaction * 5; - }); - break; - case INFORMATION_TYPE_PROFIT: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.profit <= otherRide.profit; - }); - break; - case INFORMATION_TYPE_TOTAL_CUSTOMERS: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.total_customers <= otherRide.total_customers; - }); - break; - case INFORMATION_TYPE_TOTAL_PROFIT: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.total_profit <= otherRide.total_profit; - }); - break; - case INFORMATION_TYPE_CUSTOMERS: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return RideCustomersPerHour(thisRide) <= RideCustomersPerHour(otherRide); - }); - break; - case INFORMATION_TYPE_AGE: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.build_date <= otherRide.build_date; - }); - break; - case INFORMATION_TYPE_INCOME: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.income_per_hour <= otherRide.income_per_hour; - }); - break; - case INFORMATION_TYPE_RUNNING_COST: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.upkeep_cost <= otherRide.upkeep_cost; - }); - break; - case INFORMATION_TYPE_QUEUE_LENGTH: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.GetTotalQueueLength() <= otherRide.GetTotalQueueLength(); - }); - break; - case INFORMATION_TYPE_QUEUE_TIME: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.GetMaxQueueTime() <= otherRide.GetMaxQueueTime(); - }); - break; - case INFORMATION_TYPE_RELIABILITY: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.reliability_percentage <= otherRide.reliability_percentage; - }); - break; - case INFORMATION_TYPE_DOWN_TIME: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.downtime <= otherRide.downtime; - }); - break; - case INFORMATION_TYPE_GUESTS_FAVOURITE: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.guests_favourite <= otherRide.guests_favourite; - }); - break; - case INFORMATION_TYPE_EXCITEMENT: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.excitement <= otherRide.excitement; - }); - break; - case INFORMATION_TYPE_INTENSITY: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.intensity <= otherRide.intensity; - }); - break; - case INFORMATION_TYPE_NAUSEA: - currentListPosition = SortList( - currentListPosition, rideRef, [](const Ride& thisRide, const Ride& otherRide) -> bool { - return thisRide.nausea <= otherRide.nausea; - }); - break; - } - listIndex++; + RideListEntry entry{}; + entry.Id = rideRef.id; + entry.Name = rideRef.GetName(); + + _rideList.push_back(std::move(entry)); + } + + switch (list_information_type) + { + case INFORMATION_TYPE_STATUS: + SortListByName(); + break; + case INFORMATION_TYPE_POPULARITY: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.popularity * 4 <= otherRide.popularity * 4; + }); + break; + case INFORMATION_TYPE_SATISFACTION: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.satisfaction * 5 <= otherRide.satisfaction * 5; + }); + break; + case INFORMATION_TYPE_PROFIT: + SortListByPredicate( + [](const Ride& thisRide, const Ride& otherRide) -> bool { return thisRide.profit <= otherRide.profit; }); + break; + case INFORMATION_TYPE_TOTAL_CUSTOMERS: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.total_customers <= otherRide.total_customers; + }); + break; + case INFORMATION_TYPE_TOTAL_PROFIT: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.total_profit <= otherRide.total_profit; + }); + break; + case INFORMATION_TYPE_CUSTOMERS: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return RideCustomersPerHour(thisRide) <= RideCustomersPerHour(otherRide); + }); + break; + case INFORMATION_TYPE_AGE: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.build_date <= otherRide.build_date; + }); + break; + case INFORMATION_TYPE_INCOME: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.income_per_hour <= otherRide.income_per_hour; + }); + break; + case INFORMATION_TYPE_RUNNING_COST: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.upkeep_cost <= otherRide.upkeep_cost; + }); + break; + case INFORMATION_TYPE_QUEUE_LENGTH: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.GetTotalQueueLength() <= otherRide.GetTotalQueueLength(); + }); + break; + case INFORMATION_TYPE_QUEUE_TIME: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.GetMaxQueueTime() <= otherRide.GetMaxQueueTime(); + }); + break; + case INFORMATION_TYPE_RELIABILITY: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.reliability_percentage <= otherRide.reliability_percentage; + }); + break; + case INFORMATION_TYPE_DOWN_TIME: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.downtime <= otherRide.downtime; + }); + break; + case INFORMATION_TYPE_GUESTS_FAVOURITE: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.guests_favourite <= otherRide.guests_favourite; + }); + break; + case INFORMATION_TYPE_EXCITEMENT: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.excitement <= otherRide.excitement; + }); + break; + case INFORMATION_TYPE_INTENSITY: + SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool { + return thisRide.intensity <= otherRide.intensity; + }); + break; + case INFORMATION_TYPE_NAUSEA: + SortListByPredicate( + [](const Ride& thisRide, const Ride& otherRide) -> bool { return thisRide.nausea <= otherRide.nausea; }); + break; } selected_list_item = -1; diff --git a/src/openrct2-ui/windows/SavePrompt.cpp b/src/openrct2-ui/windows/SavePrompt.cpp index 61797f8cfc..d46b92485c 100644 --- a/src/openrct2-ui/windows/SavePrompt.cpp +++ b/src/openrct2-ui/windows/SavePrompt.cpp @@ -20,10 +20,10 @@ #include #include -static constexpr const int32_t WH_SAVE = 54; -static constexpr const int32_t WW_SAVE = 260; -static constexpr const int32_t WH_QUIT = 38; -static constexpr const int32_t WW_QUIT = 177; +static constexpr int32_t WH_SAVE = 54; +static constexpr int32_t WW_SAVE = 260; +static constexpr int32_t WH_QUIT = 38; +static constexpr int32_t WW_QUIT = 177; // clang-format off enum WindowSavePromptWidgetIdx { @@ -36,7 +36,7 @@ enum WindowSavePromptWidgetIdx { WIDX_CANCEL }; -static Widget window_save_prompt_widgets[] = { +static Widget _savePromptWidgets[] = { WINDOW_SHIM_WHITE(STR_NONE, WW_SAVE, WH_SAVE), MakeWidget({ 2, 19}, {256, 12}, WindowWidgetType::LabelCentred, WindowColour::Primary, STR_EMPTY ), // question/label MakeWidget({ 8, 35}, { 78, 14}, WindowWidgetType::Button, WindowColour::Primary, STR_SAVE_PROMPT_SAVE ), // save @@ -53,14 +53,14 @@ enum WindowQuitPromptWidgetIdx { WQIDX_CANCEL }; -static Widget window_quit_prompt_widgets[] = { +static Widget _quitPromptWidgets[] = { WINDOW_SHIM_WHITE(STR_QUIT_GAME_PROMPT_TITLE, WW_QUIT, WH_QUIT), MakeWidget({ 8, 19}, {78, 14}, WindowWidgetType::Button, WindowColour::Primary, STR_OK ), // ok MakeWidget({91, 19}, {78, 14}, WindowWidgetType::Button, WindowColour::Primary, STR_CANCEL), // cancel WIDGETS_END, }; -static constexpr const StringId window_save_prompt_labels[][2] = { +static constexpr StringId window_save_prompt_labels[][2] = { { STR_LOAD_GAME_PROMPT_TITLE, STR_SAVE_BEFORE_LOADING }, { STR_QUIT_GAME_PROMPT_TITLE, STR_SAVE_BEFORE_QUITTING }, { STR_QUIT_GAME_2_PROMPT_TITLE, STR_SAVE_BEFORE_QUITTING_2 }, @@ -91,11 +91,11 @@ public: { if (gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)) { - widgets = window_quit_prompt_widgets; + widgets = _quitPromptWidgets; } else { - widgets = window_save_prompt_widgets; + widgets = _savePromptWidgets; } InitScrollWidgets(); @@ -117,8 +117,8 @@ public: { stringId = STR_QUIT_SCENARIO_EDITOR; } - window_save_prompt_widgets[WIDX_TITLE].text = stringId; - window_save_prompt_widgets[WIDX_LABEL].text = window_save_prompt_labels[EnumValue(_promptMode)][1]; + widgets[WIDX_TITLE].text = stringId; + widgets[WIDX_LABEL].text = window_save_prompt_labels[EnumValue(_promptMode)][1]; } void OnClose() override @@ -185,6 +185,11 @@ public: { DrawWidgets(dpi); } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowSavePromptOpen() diff --git a/src/openrct2-ui/windows/ScenarioSelect.cpp b/src/openrct2-ui/windows/ScenarioSelect.cpp index 621b43c177..884a7bf5f2 100644 --- a/src/openrct2-ui/windows/ScenarioSelect.cpp +++ b/src/openrct2-ui/windows/ScenarioSelect.cpp @@ -28,17 +28,17 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_SELECT_SCENARIO; -static constexpr const int32_t WW = 734; -static constexpr const int32_t WH = 384; -static constexpr const int32_t SidebarWidth = 180; -static constexpr const int32_t TabWidth = 92; -static constexpr const int32_t TabHeight = 34; -static constexpr const int32_t TrueFontSize = 24; -static constexpr const int32_t WidgetsStart = 17; -static constexpr const int32_t TabsStart = WidgetsStart; -static constexpr const int32_t InitialNumUnlockedScenarios = 5; -constexpr const uint8_t NumTabs = 10; +static constexpr StringId WINDOW_TITLE = STR_SELECT_SCENARIO; +static constexpr int32_t WW = 734; +static constexpr int32_t WH = 384; +static constexpr int32_t SidebarWidth = 180; +static constexpr int32_t TabWidth = 92; +static constexpr int32_t TabHeight = 34; +static constexpr int32_t TrueFontSize = 24; +static constexpr int32_t WidgetsStart = 17; +static constexpr int32_t TabsStart = WidgetsStart; +static constexpr int32_t InitialNumUnlockedScenarios = 5; +constexpr uint8_t NumTabs = 10; enum class ListItemType : uint8_t { @@ -82,7 +82,7 @@ enum WIDX_SCENARIOLIST }; -static constexpr const StringId kScenarioOriginStringIds[] = { +static constexpr StringId kScenarioOriginStringIds[] = { STR_SCENARIO_CATEGORY_RCT1, STR_SCENARIO_CATEGORY_RCT1_AA, STR_SCENARIO_CATEGORY_RCT1_LL, STR_SCENARIO_CATEGORY_RCT2, STR_SCENARIO_CATEGORY_RCT2_WW, STR_SCENARIO_CATEGORY_RCT2_TT, STR_SCENARIO_CATEGORY_UCES, STR_SCENARIO_CATEGORY_REAL_PARKS, STR_SCENARIO_CATEGORY_EXTRAS_PARKS, @@ -112,14 +112,13 @@ class ScenarioSelectWindow final : public Window { private: bool _showLockedInformation = false; - bool _titleEditor = false; std::function _callback; std::vector _listItems; + const ScenarioIndexEntry* _highlightedScenario = nullptr; public: - ScenarioSelectWindow(std::function callback, bool isTitleEditor) - : _titleEditor(isTitleEditor) - , _callback(callback) + ScenarioSelectWindow(std::function callback) + : _callback(callback) { } @@ -129,17 +128,12 @@ public: ScenarioRepositoryScan(); widgets = _scenarioSelectWidgets; - highlighted_scenario = nullptr; + _highlightedScenario = nullptr; InitTabs(); InitialiseListItems(); InitScrollWidgets(); } - bool IsTitleEditor() const - { - return _titleEditor; - } - void OnMouseUp(WidgetIndex widgetIndex) override { if (widgetIndex == WIDX_CLOSE) @@ -153,7 +147,7 @@ public: if (widgetIndex >= WIDX_TAB1 && widgetIndex <= WIDX_TAB10) { selected_tab = widgetIndex - 4; - highlighted_scenario = nullptr; + _highlightedScenario = nullptr; gConfigInterface.ScenarioselectLastTab = selected_tab; ConfigSaveDefault(); InitialiseListItems(); @@ -183,7 +177,7 @@ public: continue; auto ft = Formatter(); - if (gConfigGeneral.ScenarioSelectMode == SCENARIO_SELECT_MODE_ORIGIN || IsTitleEditor()) + if (gConfigGeneral.ScenarioSelectMode == SCENARIO_SELECT_MODE_ORIGIN) { ft.Add(kScenarioOriginStringIds[i]); } @@ -197,7 +191,7 @@ public: } // Return if no scenario highlighted - scenario = highlighted_scenario; + scenario = _highlightedScenario; if (scenario == nullptr) { if (_showLockedInformation) @@ -362,9 +356,9 @@ public: } } - if (highlighted_scenario != selected) + if (_highlightedScenario != selected) { - highlighted_scenario = selected; + _highlightedScenario = selected; Invalidate(); } else if (_showLockedInformation != originalShowLockedInformation) @@ -391,12 +385,9 @@ public: { OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::Click1, 0, windowPos.x + (width / 2)); gFirstTimeSaving = true; + // Callback will likely close this window! So should always return after it. _callback(listItem.scenario.scenario->Path); - if (IsTitleEditor()) - { - Close(); - return; - } + return; } break; } @@ -445,7 +436,7 @@ public: { // Draw hover highlight const ScenarioIndexEntry* scenario = listItem.scenario.scenario; - bool isHighlighted = highlighted_scenario == scenario; + bool isHighlighted = _highlightedScenario == scenario; if (isHighlighted) { GfxFilterRect(dpi, { 0, y, width, y + scenarioItemHeight - 1 }, FilterPaletteID::PaletteDarken1); @@ -556,12 +547,10 @@ private: if (!IsScenarioVisible(*scenario)) continue; - if (IsTitleEditor() && scenario->SourceGame == ScenarioSource::Other) - continue; // Category heading StringId headingStringId = STR_NONE; - if (gConfigGeneral.ScenarioSelectMode == SCENARIO_SELECT_MODE_ORIGIN || IsTitleEditor()) + if (gConfigGeneral.ScenarioSelectMode == SCENARIO_SELECT_MODE_ORIGIN) { if (selected_tab != static_cast(ScenarioSource::Real) && currentHeading != scenario->Category) { @@ -666,7 +655,7 @@ private: bool IsScenarioVisible(const ScenarioIndexEntry& scenario) const { - if (gConfigGeneral.ScenarioSelectMode == SCENARIO_SELECT_MODE_ORIGIN || IsTitleEditor()) + if (gConfigGeneral.ScenarioSelectMode == SCENARIO_SELECT_MODE_ORIGIN) { if (static_cast(scenario.SourceGame) != selected_tab) { @@ -696,8 +685,6 @@ private: return false; if (selected_tab >= 6) return false; - if (IsTitleEditor()) - return false; return true; } @@ -709,10 +696,8 @@ private: for (size_t i = 0; i < numScenarios; i++) { const ScenarioIndexEntry* scenario = ScenarioRepositoryGetByIndex(i); - if (gConfigGeneral.ScenarioSelectMode == SCENARIO_SELECT_MODE_ORIGIN || IsTitleEditor()) + if (gConfigGeneral.ScenarioSelectMode == SCENARIO_SELECT_MODE_ORIGIN) { - if (IsTitleEditor() && scenario->SourceGame == ScenarioSource::Other) - continue; showPages |= 1 << static_cast(scenario->SourceGame); } else @@ -776,30 +761,22 @@ private: } }; -WindowBase* WindowScenarioselectOpen(scenarioselect_callback callback, bool titleEditor) +WindowBase* WindowScenarioselectOpen(scenarioselect_callback callback) { - return WindowScenarioselectOpen( - [callback](std::string_view scenario) { callback(std::string(scenario).c_str()); }, titleEditor); + return WindowScenarioselectOpen([callback](std::string_view scenario) { callback(std::string(scenario).c_str()); }); } -WindowBase* WindowScenarioselectOpen(std::function callback, bool titleEditor) +WindowBase* WindowScenarioselectOpen(std::function callback) { auto* window = static_cast(WindowBringToFrontByClass(WindowClass::ScenarioSelect)); if (window != nullptr) { - if (window->IsTitleEditor() != titleEditor) - { - WindowCloseByClass(WindowClass::ScenarioSelect); - } - else - { - return window; - } + return window; } int32_t screenWidth = ContextGetWidth(); int32_t screenHeight = ContextGetHeight(); ScreenCoordsXY screenPos = { (screenWidth - WW) / 2, std::max(TOP_TOOLBAR_HEIGHT + 1, (screenHeight - WH) / 2) }; - window = WindowCreate(WindowClass::ScenarioSelect, screenPos, WW, WH, 0, callback, titleEditor); + window = WindowCreate(WindowClass::ScenarioSelect, screenPos, WW, WH, 0, callback); return window; } diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index 6ead14eacc..9a8f966e3a 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -22,12 +22,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include #include @@ -37,7 +37,7 @@ using namespace OpenRCT2; -static constexpr const StringId WINDOW_TITLE = STR_NONE; +static constexpr StringId WINDOW_TITLE = STR_NONE; constexpr int32_t WINDOW_SCENERY_MIN_WIDTH = 634; constexpr int32_t WINDOW_SCENERY_MIN_HEIGHT = 195; constexpr int32_t SCENERY_BUTTON_WIDTH = 66; @@ -216,7 +216,7 @@ public: { SceneryRemoveGhostToolPlacement(); HideGridlines(); - ViewportSetVisibility(0); + ViewportSetVisibility(ViewportVisibility::Default); if (gWindowSceneryScatterEnabled) WindowCloseByClass(WindowClass::SceneryScatter); @@ -304,7 +304,7 @@ public: height = min_height; Invalidate(); // HACK: For some reason invalidate has not been called - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); ContentUpdateScroll(); } @@ -314,9 +314,11 @@ public: height = max_height; Invalidate(); // HACK: For some reason invalidate has not been called - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); ContentUpdateScroll(); } + + ResizeFrameWithPage(); } void OnMouseDown(WidgetIndex widgetIndex) override @@ -486,9 +488,9 @@ public: OpenRCT2::ObjectManager::GetObjectEntry(tabSelectedScenery.EntryIndex)->tool_id); } else if (tabSelectedScenery.SceneryType == SCENERY_TYPE_PATH_ITEM) - { // path bit + { gCurrentToolId = static_cast( - OpenRCT2::ObjectManager::GetObjectEntry(tabSelectedScenery.EntryIndex)->tool_id); + OpenRCT2::ObjectManager::GetObjectEntry(tabSelectedScenery.EntryIndex)->tool_id); } else { // small scenery @@ -739,13 +741,7 @@ public: } } - widgets[WIDX_SCENERY_BACKGROUND].right = windowWidth - 1; - widgets[WIDX_SCENERY_BACKGROUND].bottom = height - 1; - widgets[WIDX_SCENERY_TAB_CONTENT_PANEL].right = windowWidth - 1; - widgets[WIDX_SCENERY_TAB_CONTENT_PANEL].bottom = height - 1; - widgets[WIDX_SCENERY_TITLE].right = windowWidth - 2; - widgets[WIDX_SCENERY_CLOSE].left = windowWidth - 13; - widgets[WIDX_SCENERY_CLOSE].right = widgets[WIDX_SCENERY_CLOSE].left + 10; + ResizeFrameWithPage(); widgets[WIDX_SCENERY_LIST].right = windowWidth - 26; widgets[WIDX_SCENERY_LIST].bottom = height - 14; @@ -932,10 +928,9 @@ public: } } - // path bits for (ObjectEntryIndex sceneryId = 0; sceneryId < MAX_PATH_ADDITION_OBJECTS; sceneryId++) { - const auto* sceneryEntry = OpenRCT2::ObjectManager::GetObjectEntry(sceneryId); + const auto* sceneryEntry = OpenRCT2::ObjectManager::GetObjectEntry(sceneryId); if (sceneryEntry != nullptr) { InitSceneryEntry({ SCENERY_TYPE_PATH_ITEM, sceneryId }, sceneryEntry->scenery_tab_id); @@ -1114,6 +1109,11 @@ private: for (size_t i = 0; i < _tabEntries.size(); i++) { const auto& tabInfo = _tabEntries[i]; + if (tabInfo.IsAll()) + { + // The scenery will be always added here so exclude this one. + continue; + } if (tabInfo.Contains(scenery)) { return i; @@ -1128,8 +1128,12 @@ private: if (IsSceneryAvailableToBuild(selection)) { - // Get current tab - const auto tabIndex = FindTabWithScenery(selection); + // Add scenery to all tab + auto* allTabInfo = GetSceneryTabInfoForAll(); + if (allTabInfo != nullptr) + { + allTabInfo->AddEntryToBack(selection); + } // Add scenery to primary group (usually trees or path additions) if (sceneryGroupIndex != OBJECT_ENTRY_INDEX_NULL) @@ -1142,7 +1146,8 @@ private: } } - // If scenery is no tab, add it to misc + // If scenery has no tab, add it to misc + const auto tabIndex = FindTabWithScenery(selection); if (!tabIndex.has_value()) { auto* tabInfo = GetSceneryTabInfoForMisc(); @@ -1151,13 +1156,6 @@ private: tabInfo->AddEntryToBack(selection); } } - - // Add all scenery to all tab - auto tabInfo = GetSceneryTabInfoForAll(); - if (tabInfo != nullptr) - { - tabInfo->AddEntryToBack(selection); - } } } @@ -1412,7 +1410,7 @@ private: } case SCENERY_TYPE_PATH_ITEM: { - auto* sceneryEntry = OpenRCT2::ObjectManager::GetObjectEntry(selectedScenery.EntryIndex); + auto* sceneryEntry = OpenRCT2::ObjectManager::GetObjectEntry(selectedScenery.EntryIndex); if (sceneryEntry != nullptr) { price = sceneryEntry->price; @@ -1530,8 +1528,8 @@ private: } else if (scenerySelection.SceneryType == SCENERY_TYPE_PATH_ITEM) { - auto* pathBitEntry = OpenRCT2::ObjectManager::GetObjectEntry(scenerySelection.EntryIndex); - auto imageId = ImageId(pathBitEntry->image); + auto* pathAdditionEntry = OpenRCT2::ObjectManager::GetObjectEntry(scenerySelection.EntryIndex); + auto imageId = ImageId(pathAdditionEntry->image); GfxDrawSprite(dpi, imageId, { 11, 16 }); } else diff --git a/src/openrct2-ui/windows/SceneryScatter.cpp b/src/openrct2-ui/windows/SceneryScatter.cpp index c2a8ac206d..4c166c2efc 100644 --- a/src/openrct2-ui/windows/SceneryScatter.cpp +++ b/src/openrct2-ui/windows/SceneryScatter.cpp @@ -35,7 +35,7 @@ uint16_t gWindowSceneryScatterSize; ScatterToolDensity gWindowSceneryScatterDensity; // clang-format off -static Widget window_scenery_scatter_widgets[] = { +static Widget _sceneryScatterWidgets[] = { MakeWidget ({ 0, 0}, {86, 100}, WindowWidgetType::Frame, WindowColour::Secondary ), // panel / background MakeWidget ({ 1, 1}, {84, 14}, WindowWidgetType::Caption, WindowColour::Primary , STR_SCENERY_SCATTER, STR_WINDOW_TITLE_TIP ), // title bar MakeWidget ({73, 2}, {11, 12}, WindowWidgetType::CloseBox, WindowColour::Primary , STR_CLOSE_X, STR_CLOSE_WINDOW_TIP ), // close x button @@ -57,7 +57,7 @@ class SceneryScatterWindow final : public WindowBase public: void OnOpen() override { - widgets = window_scenery_scatter_widgets; + widgets = _sceneryScatterWidgets; hold_down_widgets = (1uLL << WIDX_INCREMENT) | (1uLL << WIDX_DECREMENT); WindowInitScrollWidgets(*this); WindowPushOthersBelow(*this); @@ -190,6 +190,11 @@ public: DrawTextBasic(dpi, screenCoords - ScreenCoordsXY{ 0, 2 }, STR_LAND_TOOL_SIZE_VALUE, ft, { TextAlignment::CENTRE }); } } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowSceneryScatterOpen() diff --git a/src/openrct2-ui/windows/ServerList.cpp b/src/openrct2-ui/windows/ServerList.cpp index c9b334738e..ba1686c40c 100644 --- a/src/openrct2-ui/windows/ServerList.cpp +++ b/src/openrct2-ui/windows/ServerList.cpp @@ -60,7 +60,7 @@ enum }; // clang-format off -static Widget window_server_list_widgets[] = { +static Widget _serverListWidgets[] = { MakeWidget({ 0, 0}, {341, 91}, WindowWidgetType::Frame, WindowColour::Primary ), // panel / background MakeWidget({ 1, 1}, {338, 14}, WindowWidgetType::Caption, WindowColour::Primary, STR_SERVER_LIST, STR_WINDOW_TITLE_TIP), // title bar MakeWidget({327, 2}, { 11, 12}, WindowWidgetType::CloseBox, WindowColour::Primary, STR_CLOSE_X, STR_CLOSE_WINDOW_TIP), // close x button @@ -93,8 +93,8 @@ public: void OnOpen() override { _playerName = gConfigNetwork.PlayerName; - window_server_list_widgets[WIDX_PLAYER_NAME_INPUT].string = const_cast(_playerName.c_str()); - widgets = window_server_list_widgets; + widgets = _serverListWidgets; + _serverListWidgets[WIDX_PLAYER_NAME_INPUT].string = const_cast(_playerName.c_str()); InitScrollWidgets(); no_list_items = 0; selected_list_item = -1; @@ -169,6 +169,10 @@ public: void OnDropdown(WidgetIndex widgetIndex, int32_t selectedIndex) override { + if (selectedIndex == -1) + { + return; + } auto serverIndex = selected_list_item; if (serverIndex >= 0 && serverIndex < static_cast(_serverList.GetCount())) { @@ -279,7 +283,7 @@ public: _playerName = temp; gConfigNetwork.PlayerName = _playerName; - window_server_list_widgets[WIDX_PLAYER_NAME_INPUT].string = const_cast(_playerName.c_str()); + widgets[WIDX_PLAYER_NAME_INPUT].string = const_cast(_playerName.c_str()); InvalidateWidget(WIDX_PLAYER_NAME_INPUT); break; @@ -518,16 +522,16 @@ private: int32_t buttonBottom = buttonTop + buttonHeight; int32_t listBottom = buttonTop - margin; - window_server_list_widgets[WIDX_PLAYER_NAME_INPUT].right = width - 6; - window_server_list_widgets[WIDX_LIST].left = 6; - window_server_list_widgets[WIDX_LIST].right = width - 6; - window_server_list_widgets[WIDX_LIST].bottom = listBottom; - window_server_list_widgets[WIDX_FETCH_SERVERS].top = buttonTop; - window_server_list_widgets[WIDX_FETCH_SERVERS].bottom = buttonBottom; - window_server_list_widgets[WIDX_ADD_SERVER].top = buttonTop; - window_server_list_widgets[WIDX_ADD_SERVER].bottom = buttonBottom; - window_server_list_widgets[WIDX_START_SERVER].top = buttonTop; - window_server_list_widgets[WIDX_START_SERVER].bottom = buttonBottom; + widgets[WIDX_PLAYER_NAME_INPUT].right = width - 6; + widgets[WIDX_LIST].left = 6; + widgets[WIDX_LIST].right = width - 6; + widgets[WIDX_LIST].bottom = listBottom; + widgets[WIDX_FETCH_SERVERS].top = buttonTop; + widgets[WIDX_FETCH_SERVERS].bottom = buttonBottom; + widgets[WIDX_ADD_SERVER].top = buttonTop; + widgets[WIDX_ADD_SERVER].bottom = buttonBottom; + widgets[WIDX_START_SERVER].top = buttonTop; + widgets[WIDX_START_SERVER].bottom = buttonBottom; no_list_items = static_cast(_serverList.GetCount()); } diff --git a/src/openrct2-ui/windows/ServerStart.cpp b/src/openrct2-ui/windows/ServerStart.cpp index bf9d4f934d..a682d0534b 100644 --- a/src/openrct2-ui/windows/ServerStart.cpp +++ b/src/openrct2-ui/windows/ServerStart.cpp @@ -42,8 +42,8 @@ enum { WIDX_LOAD_SERVER }; -static constexpr const int32_t WW = 300; -static constexpr const int32_t WH = 154; +static constexpr int32_t WW = 300; +static constexpr int32_t WH = 154; static Widget _windowServerStartWidgets[] = { MakeWidget({ 0, 0 }, { WW, WH }, WindowWidgetType::Frame, WindowColour::Primary), // panel / background @@ -73,8 +73,6 @@ public: widgets[WIDX_GREETING_INPUT].string = _greeting; widgets[WIDX_PASSWORD_INPUT].string = _password; InitScrollWidgets(); - no_list_items = 0; - selected_list_item = -1; frame_no = 0; min_width = width; min_height = height; @@ -134,7 +132,7 @@ public: break; case WIDX_START_SERVER: NetworkSetPassword(_password); - WindowScenarioselectOpen(ScenarioSelectCallback, false); + WindowScenarioselectOpen(ScenarioSelectCallback); break; case WIDX_LOAD_SERVER: NetworkSetPassword(_password); @@ -248,6 +246,11 @@ public: DrawTextBasic(dpi, windowPos + ScreenCoordsXY{ 6, widgets[WIDX_MAXPLAYERS].top }, STR_MAX_PLAYERS, {}, { colours[1] }); } + void OnResize() override + { + ResizeFrame(); + } + private: char _port[7]; char _name[65]; diff --git a/src/openrct2-ui/windows/ShortcutKeys.cpp b/src/openrct2-ui/windows/ShortcutKeys.cpp index 94a5145b7b..4acae6c45a 100644 --- a/src/openrct2-ui/windows/ShortcutKeys.cpp +++ b/src/openrct2-ui/windows/ShortcutKeys.cpp @@ -21,12 +21,12 @@ using namespace OpenRCT2::Ui; WindowBase* ResetShortcutKeysPromptOpen(); -static constexpr const StringId WINDOW_TITLE = STR_SHORTCUTS_TITLE; -static constexpr const int32_t WW = 420; -static constexpr const int32_t WH = 280; +static constexpr StringId WINDOW_TITLE = STR_SHORTCUTS_TITLE; +static constexpr int32_t WW = 420; +static constexpr int32_t WH = 280; -static constexpr const int32_t WW_SC_MAX = 1200; -static constexpr const int32_t WH_SC_MAX = 800; +static constexpr int32_t WW_SC_MAX = 1200; +static constexpr int32_t WH_SC_MAX = 800; enum WindowShortcutWidgetIdx { @@ -40,7 +40,7 @@ enum WindowShortcutWidgetIdx }; // clang-format off -static Widget window_shortcut_widgets[] = { +static Widget _shortcutWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({0, 43}, {350, 287}, WindowWidgetType::Resize, WindowColour::Secondary), MakeWidget({4, 47}, {412, 215}, WindowWidgetType::Scroll, WindowColour::Primary, SCROLL_VERTICAL, STR_SHORTCUT_LIST_TIP ), @@ -49,9 +49,9 @@ static Widget window_shortcut_widgets[] = { }; // clang-format on -static constexpr const StringId CHANGE_WINDOW_TITLE = STR_SHORTCUT_CHANGE_TITLE; -static constexpr const int32_t CHANGE_WW = 250; -static constexpr const int32_t CHANGE_WH = 80; +static constexpr StringId CHANGE_WINDOW_TITLE = STR_SHORTCUT_CHANGE_TITLE; +static constexpr int32_t CHANGE_WW = 250; +static constexpr int32_t CHANGE_WH = 80; enum { @@ -447,7 +447,7 @@ private: void InitialiseWidgets() { _widgets.clear(); - _widgets.insert(_widgets.begin(), std::begin(window_shortcut_widgets), std::end(window_shortcut_widgets) - 1); + _widgets.insert(_widgets.begin(), std::begin(_shortcutWidgets), std::end(_shortcutWidgets) - 1); int32_t x = 3; for (size_t i = 0; i < _tabs.size(); i++) @@ -562,8 +562,8 @@ WindowBase* WindowShortcutKeysOpen() } #pragma region Reset prompt -static constexpr const int32_t RESET_PROMPT_WW = 200; -static constexpr const int32_t RESET_PROMPT_WH = 80; +static constexpr int32_t RESET_PROMPT_WW = 200; +static constexpr int32_t RESET_PROMPT_WH = 80; enum { diff --git a/src/openrct2-ui/windows/Sign.cpp b/src/openrct2-ui/windows/Sign.cpp index 1676732317..a5f73ccefe 100644 --- a/src/openrct2-ui/windows/Sign.cpp +++ b/src/openrct2-ui/windows/Sign.cpp @@ -27,9 +27,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_SIGN; -static constexpr const int32_t WW = 113; -static constexpr const int32_t WH = 96; +static constexpr StringId WINDOW_TITLE = STR_SIGN; +static constexpr int32_t WW = 113; +static constexpr int32_t WH = 96; // clang-format off enum WindowSignWidgetIdx { @@ -44,7 +44,7 @@ enum WindowSignWidgetIdx { }; // 0x9AEE00 -static Widget window_sign_widgets[] = { +static Widget _signWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({ 3, 17}, {85, 60}, WindowWidgetType::Viewport, WindowColour::Secondary, STR_VIEWPORT ), // Viewport MakeWidget({WW - 25, 19}, {24, 24}, WindowWidgetType::FlatBtn, WindowColour::Secondary, ImageId(SPR_RENAME), STR_CHANGE_SIGN_TEXT_TIP ), // change sign button @@ -82,7 +82,7 @@ private: public: void OnOpen() override { - widgets = window_sign_widgets; + widgets = _signWidgets; WindowInitScrollWidgets(*this); } @@ -132,7 +132,7 @@ public: } // Create viewport - Widget& viewportWidget = window_sign_widgets[WIDX_VIEWPORT]; + Widget& viewportWidget = widgets[WIDX_VIEWPORT]; ViewportCreate( this, windowPos + ScreenCoordsXY{ viewportWidget.left + 1, viewportWidget.top + 1 }, viewportWidget.width() - 1, viewportWidget.height() - 1, Focus(CoordsXYZ{ signViewPosition, viewZ })); @@ -241,8 +241,8 @@ public: void OnPrepareDraw() override { - Widget* main_colour_btn = &window_sign_widgets[WIDX_MAIN_COLOUR]; - Widget* text_colour_btn = &window_sign_widgets[WIDX_TEXT_COLOUR]; + Widget* main_colour_btn = &widgets[WIDX_MAIN_COLOUR]; + Widget* text_colour_btn = &widgets[WIDX_TEXT_COLOUR]; if (_isSmall) { @@ -310,7 +310,7 @@ public: auto signViewPos = CoordsXYZ{ banner->position.ToCoordsXY().ToTileCentre(), frame_no }; // Create viewport - Widget* viewportWidget = &window_sign_widgets[WIDX_VIEWPORT]; + Widget* viewportWidget = &widgets[WIDX_VIEWPORT]; ViewportCreate( this, windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, viewportWidget->width() - 1, viewportWidget->height() - 1, Focus(CoordsXYZ{ signViewPos })); @@ -318,6 +318,11 @@ public: viewport->flags = gConfigGeneral.AlwaysShowGridlines ? VIEWPORT_FLAG_GRIDLINES : 0; Invalidate(); } + + void OnResize() override + { + ResizeFrame(); + } }; /** diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index 652313e13c..7d6249b947 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -34,10 +34,10 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_STRINGID; +static constexpr StringId WINDOW_TITLE = STR_STRINGID; -static constexpr const int32_t WW = 190; -static constexpr const int32_t WH = 180; +static constexpr int32_t WW = 190; +static constexpr int32_t WH = 180; enum WindowStaffPage { @@ -84,7 +84,7 @@ validate_global_widx(WC_STAFF, WIDX_PICKUP); MakeTab ({34, 17}, STR_STAFF_OPTIONS_TIP ), /* Tab 2 */ \ MakeTab ({65, 17}, STR_STAFF_STATS_TIP ) /* Tab 3 */ -static Widget window_staff_overview_widgets[] = { +static Widget _staffOverviewWidgets[] = { MAIN_STAFF_WIDGETS, MakeWidget ({ 3, 47}, {162, 120}, WindowWidgetType::Viewport, WindowColour::Secondary ), // Viewport MakeWidget ({ 3, WH - 13}, {162, 11}, WindowWidgetType::LabelCentred, WindowColour::Secondary ), // Label at bottom of viewport @@ -97,7 +97,7 @@ static Widget window_staff_overview_widgets[] = { }; //0x9AF910 -static Widget window_staff_options_widgets[] = { +static Widget _staffOptionsWidgets[] = { MAIN_STAFF_WIDGETS, MakeWidget ({ 5, 50}, {180, 12}, WindowWidgetType::Checkbox, WindowColour::Secondary ), // Checkbox 1 MakeWidget ({ 5, 67}, {180, 12}, WindowWidgetType::Checkbox, WindowColour::Secondary ), // Checkbox 2 @@ -110,15 +110,15 @@ static Widget window_staff_options_widgets[] = { // clang-format on // 0x9AF9F4 -static Widget window_staff_stats_widgets[] = { +static Widget _staffStatsWidgets[] = { MAIN_STAFF_WIDGETS, WIDGETS_END, }; static Widget* window_staff_page_widgets[] = { - window_staff_overview_widgets, - window_staff_options_widgets, - window_staff_stats_widgets, + _staffOverviewWidgets, + _staffOptionsWidgets, + _staffStatsWidgets, }; class StaffWindow final : public Window @@ -126,6 +126,7 @@ class StaffWindow final : public Window private: EntertainerCostume _availableCostumes[static_cast(EntertainerCostume::Count)]{}; uint16_t _tabAnimationOffset = 0; + int32_t _pickedPeepOldX = LOCATION_NULL; public: void Initialise(EntityId entityId) @@ -361,7 +362,7 @@ private: { case WIDX_PICKUP: { - picked_peep_old_x = staff->x; + _pickedPeepOldX = staff->x; CoordsXYZ nullLoc{}; nullLoc.SetNull(); PeepPickupAction pickupAction{ PeepPickupType::Pickup, EntityId::FromUnderlying(number), nullLoc, @@ -522,7 +523,7 @@ private: if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) { - GfxDrawSprite(dpi, ImageId(SPR_HEARING_VIEWPORT), windowPos + ScreenCoordsXY{ 2, 2 }); + GfxDrawSprite(dpi, ImageId(SPR_HEARING_VIEWPORT), WindowGetViewportSoundIconPos(*this)); } } @@ -633,6 +634,11 @@ private: { _tabAnimationOffset++; _tabAnimationOffset %= 24; + + // Update pickup animation, can only happen in this tab. + picked_peep_frame++; + picked_peep_frame %= 48; + InvalidateWidget(WIDX_TAB_1); } @@ -664,9 +670,6 @@ private: gPickupPeepX = screenCoords.x - 1; gPickupPeepY = screenCoords.y + 16; - picked_peep_frame++; - picked_peep_frame %= 48; - auto staff = GetStaff(); if (staff == nullptr) { @@ -708,7 +711,7 @@ private: return; PeepPickupAction pickupAction{ - PeepPickupType::Cancel, EntityId::FromUnderlying(number), { picked_peep_old_x, 0, 0 }, NetworkGetCurrentPlayerId() + PeepPickupType::Cancel, EntityId::FromUnderlying(number), { _pickedPeepOldX, 0, 0 }, NetworkGetCurrentPlayerId() }; GameActions::Execute(&pickupAction); } @@ -1055,6 +1058,8 @@ private: { SetWidgetDisabled(WIDX_PICKUP, true); } + + SetWidgetDisabled(WIDX_FIRE, staff->State == PeepState::Fixing || staff->State == PeepState::Inspecting); } } @@ -1088,7 +1093,7 @@ private: Invalidate(); WindowEventResizeCall(this); - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); InitScrollWidgets(); ViewportInit(); Invalidate(); @@ -1151,7 +1156,7 @@ private: viewport_flags |= VIEWPORT_FLAG_GRIDLINES; } - WindowEventInvalidateCall(this); + WindowEventOnPrepareDrawCall(this); focus = tempFocus; diff --git a/src/openrct2-ui/windows/StaffFirePrompt.cpp b/src/openrct2-ui/windows/StaffFirePrompt.cpp index ae6157f776..48928ddfb6 100644 --- a/src/openrct2-ui/windows/StaffFirePrompt.cpp +++ b/src/openrct2-ui/windows/StaffFirePrompt.cpp @@ -18,9 +18,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_SACK_STAFF; -static constexpr const int32_t WW = 200; -static constexpr const int32_t WH = 100; +static constexpr StringId WINDOW_TITLE = STR_SACK_STAFF; +static constexpr int32_t WW = 200; +static constexpr int32_t WH = 100; // clang-format off enum WindowStaffFireWidgetIdx { @@ -32,7 +32,7 @@ enum WindowStaffFireWidgetIdx { }; // 0x9AFB4C -static Widget window_staff_fire_widgets[] = { +static Widget _staffFireWidgets[] = { WINDOW_SHIM_WHITE(WINDOW_TITLE, WW, WH), MakeWidget({ 10, WH - 20}, {85, 14}, WindowWidgetType::Button, WindowColour::Primary, STR_YES ), MakeWidget({WW - 95, WH - 20}, {85, 14}, WindowWidgetType::Button, WindowColour::Primary, STR_SAVE_PROMPT_CANCEL), @@ -51,7 +51,7 @@ public: void OnOpen() override { - widgets = window_staff_fire_widgets; + widgets = _staffFireWidgets; WindowInitScrollWidgets(*this); } @@ -83,6 +83,11 @@ public: ScreenCoordsXY textCoords(windowPos + ScreenCoordsXY{ WW / 2, (WH / 2) - 3 }); DrawTextWrapped(dpi, textCoords, WW - 4, STR_FIRE_STAFF_ID, ft, { TextAlignment::CENTRE }); } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowStaffFirePromptOpen(Peep* peep) diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index de9d280e9a..4820cf4d69 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -61,14 +61,14 @@ enum WindowStaffListWidgetIdx WIDX_STAFF_LIST_MAP, }; -static constexpr const StringId WINDOW_TITLE = STR_STAFF; -static constexpr const int32_t WW = 320; -static constexpr const int32_t WH = 270; +static constexpr StringId WINDOW_TITLE = STR_STAFF; +static constexpr int32_t WW = 320; +static constexpr int32_t WH = 270; constexpr int32_t MAX_WW = 500; constexpr int32_t MAX_WH = 450; // clang-format off -static Widget window_staff_list_widgets[] = { +static Widget _staffListWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({ 0, 43}, { WW, WH - 43}, WindowWidgetType::Resize, WindowColour::Secondary ), // tab content panel MakeTab ({ 3, 17}, STR_STAFF_HANDYMEN_TAB_TIP ), // handymen tab @@ -110,7 +110,7 @@ private: public: void OnOpen() override { - widgets = window_staff_list_widgets; + widgets = _staffListWidgets; WindowInitScrollWidgets(*this); widgets[WIDX_STAFF_LIST_UNIFORM_COLOUR_PICKER].type = WindowWidgetType::Empty; @@ -177,6 +177,7 @@ public: height = min_height; Invalidate(); } + ResizeFrameWithPage(); } void OnUpdate() override @@ -237,6 +238,10 @@ public: void OnDropdown(WidgetIndex widgetIndex, int32_t dropdownIndex) override { + if (dropdownIndex == -1) + { + return; + } if (widgetIndex == WIDX_STAFF_LIST_UNIFORM_COLOUR_PICKER) { auto action = StaffSetColourAction(GetSelectedStaffType(), ColourDropDownIndexToColour(dropdownIndex)); @@ -263,13 +268,7 @@ public: } SetWidgetPressed(WIDX_STAFF_LIST_QUICK_FIRE, _quickFireMode); - widgets[WIDX_STAFF_LIST_BACKGROUND].right = width - 1; - widgets[WIDX_STAFF_LIST_BACKGROUND].bottom = height - 1; - widgets[WIDX_STAFF_LIST_TAB_CONTENT_PANEL].right = width - 1; - widgets[WIDX_STAFF_LIST_TAB_CONTENT_PANEL].bottom = height - 1; - widgets[WIDX_STAFF_LIST_TITLE].right = width - 2; - widgets[WIDX_STAFF_LIST_CLOSE].left = width - 2 - 11; - widgets[WIDX_STAFF_LIST_CLOSE].right = width - 2 - 11 + 10; + ResizeFrameWithPage(); widgets[WIDX_STAFF_LIST_LIST].right = width - 4; widgets[WIDX_STAFF_LIST_LIST].bottom = height - 15; widgets[WIDX_STAFF_LIST_QUICK_FIRE].left = width - 77; @@ -547,7 +546,6 @@ private: // If autoposition of staff is disabled, pickup peep and then open the staff window if (staff->State == PeepState::Picked) { - picked_peep_old_x = staff->x; CoordsXYZ nullLoc{}; nullLoc.SetNull(); diff --git a/src/openrct2-ui/windows/TextInput.cpp b/src/openrct2-ui/windows/TextInput.cpp index c7b39945d0..6876ec6087 100644 --- a/src/openrct2-ui/windows/TextInput.cpp +++ b/src/openrct2-ui/windows/TextInput.cpp @@ -20,8 +20,8 @@ #include #include -static constexpr const int32_t WW = 250; -static constexpr const int32_t WH = 90; +static constexpr int32_t WW = 250; +static constexpr int32_t WH = 90; enum WindowTextInputWidgetIdx { @@ -32,7 +32,7 @@ enum WindowTextInputWidgetIdx WIDX_OKAY }; -static Widget window_text_input_widgets[] = { +static Widget _textInputWidgets[] = { WINDOW_SHIM(STR_NONE, WW, WH), MakeWidget({ 170, 68 }, { 71, 14 }, WindowWidgetType::Button, WindowColour::Secondary, STR_CANCEL), MakeWidget({ 10, 68 }, { 71, 14 }, WindowWidgetType::Button, WindowColour::Secondary, STR_OK), @@ -61,7 +61,7 @@ private: public: void OnOpen() override { - widgets = window_text_input_widgets; + widgets = _textInputWidgets; WindowInitScrollWidgets(*this); SetParentWindow(nullptr, 0); } @@ -108,11 +108,8 @@ public: void SetText(std::string_view text, size_t maxLength) { + text = String::UTF8TruncateCodePoints(text, maxLength); _buffer = u8string{ text }; - if (_buffer.size() > maxLength) - { - _buffer.resize(maxLength); - } _maxInputLength = maxLength; gTextInput = ContextStartTextInput(_buffer, maxLength); } @@ -130,7 +127,7 @@ public: ContextStopTextInput(); } - void OnPeriodicUpdate() override + void OnUpdate() override { if (HasParentWindow()) { @@ -313,6 +310,11 @@ public: return numLines * 10 + WH; } + void OnResize() override + { + ResizeFrame(); + } + private: static void DrawIMEComposition(DrawPixelInfo& dpi, int32_t cursorX, int32_t cursorY) { diff --git a/src/openrct2-ui/windows/Themes.cpp b/src/openrct2-ui/windows/Themes.cpp index d24f80b4ce..5e59a115b4 100644 --- a/src/openrct2-ui/windows/Themes.cpp +++ b/src/openrct2-ui/windows/Themes.cpp @@ -66,12 +66,12 @@ enum WindowThemesWidgetIdx WIDX_THEMES_RCT1_BOTTOM_TOOLBAR }; -static constexpr const StringId WINDOW_TITLE = STR_THEMES_TITLE; -static constexpr const int32_t WW = 320; -static constexpr const int32_t WH = 107; +static constexpr StringId WINDOW_TITLE = STR_THEMES_TITLE; +static constexpr int32_t WW = 320; +static constexpr int32_t WH = 107; // clang-format off -static Widget window_themes_widgets[] = { +static Widget _themesWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({ 0, 43}, {320, 64}, WindowWidgetType::Resize, WindowColour::Secondary ), // tab content panel MakeTab ({ 3, 17}, STR_THEMES_TAB_SETTINGS_TIP ), // settings tab @@ -250,7 +250,7 @@ public: void OnOpen() override { - widgets = window_themes_widgets; + widgets = _themesWidgets; WindowThemesInitVars(); @@ -350,6 +350,8 @@ public: Invalidate(); } } + + ResizeFrameWithPage(); } void OnUpdate() override @@ -377,47 +379,41 @@ public: _colour_index_2 = -1; } - window_themes_widgets[WIDX_THEMES_BACKGROUND].right = width - 1; - window_themes_widgets[WIDX_THEMES_BACKGROUND].bottom = height - 1; - window_themes_widgets[WIDX_THEMES_TAB_CONTENT_PANEL].right = width - 1; - window_themes_widgets[WIDX_THEMES_TAB_CONTENT_PANEL].bottom = height - 1; - window_themes_widgets[WIDX_THEMES_TITLE].right = width - 2; - window_themes_widgets[WIDX_THEMES_CLOSE].left = width - 2 - 0x0B; - window_themes_widgets[WIDX_THEMES_CLOSE].right = width - 2 - 0x0B + 0x0A; - window_themes_widgets[WIDX_THEMES_LIST].right = width - 4; - window_themes_widgets[WIDX_THEMES_LIST].bottom = height - 0x0F; + ResizeFrameWithPage(); + widgets[WIDX_THEMES_LIST].right = width - 4; + widgets[WIDX_THEMES_LIST].bottom = height - 0x0F; if (_selected_tab == WINDOW_THEMES_TAB_SETTINGS) { - window_themes_widgets[WIDX_THEMES_HEADER_WINDOW].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_HEADER_PALETTE].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_LIST].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RCT1_RIDE_LIGHTS].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RCT1_PARK_LIGHTS].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RCT1_SCENARIO_FONT].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RCT1_BOTTOM_TOOLBAR].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_DUPLICATE_BUTTON].type = WindowWidgetType::Button; - window_themes_widgets[WIDX_THEMES_DELETE_BUTTON].type = WindowWidgetType::Button; - window_themes_widgets[WIDX_THEMES_RENAME_BUTTON].type = WindowWidgetType::Button; - window_themes_widgets[WIDX_THEMES_PRESETS].type = WindowWidgetType::DropdownMenu; - window_themes_widgets[WIDX_THEMES_PRESETS_DROPDOWN].type = WindowWidgetType::Button; - window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_HEADER_WINDOW].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_HEADER_PALETTE].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_LIST].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RCT1_RIDE_LIGHTS].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RCT1_PARK_LIGHTS].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RCT1_SCENARIO_FONT].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RCT1_BOTTOM_TOOLBAR].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_DUPLICATE_BUTTON].type = WindowWidgetType::Button; + widgets[WIDX_THEMES_DELETE_BUTTON].type = WindowWidgetType::Button; + widgets[WIDX_THEMES_RENAME_BUTTON].type = WindowWidgetType::Button; + widgets[WIDX_THEMES_PRESETS].type = WindowWidgetType::DropdownMenu; + widgets[WIDX_THEMES_PRESETS_DROPDOWN].type = WindowWidgetType::Button; + widgets[WIDX_THEMES_COLOURBTN_MASK].type = WindowWidgetType::Empty; } else if (_selected_tab == WINDOW_THEMES_TAB_FEATURES) { - window_themes_widgets[WIDX_THEMES_HEADER_WINDOW].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_HEADER_PALETTE].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_LIST].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RCT1_RIDE_LIGHTS].type = WindowWidgetType::Checkbox; - window_themes_widgets[WIDX_THEMES_RCT1_PARK_LIGHTS].type = WindowWidgetType::Checkbox; - window_themes_widgets[WIDX_THEMES_RCT1_SCENARIO_FONT].type = WindowWidgetType::Checkbox; - window_themes_widgets[WIDX_THEMES_RCT1_BOTTOM_TOOLBAR].type = WindowWidgetType::Checkbox; - window_themes_widgets[WIDX_THEMES_DUPLICATE_BUTTON].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_DELETE_BUTTON].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RENAME_BUTTON].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_PRESETS].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_PRESETS_DROPDOWN].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_HEADER_WINDOW].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_HEADER_PALETTE].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_LIST].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RCT1_RIDE_LIGHTS].type = WindowWidgetType::Checkbox; + widgets[WIDX_THEMES_RCT1_PARK_LIGHTS].type = WindowWidgetType::Checkbox; + widgets[WIDX_THEMES_RCT1_SCENARIO_FONT].type = WindowWidgetType::Checkbox; + widgets[WIDX_THEMES_RCT1_BOTTOM_TOOLBAR].type = WindowWidgetType::Checkbox; + widgets[WIDX_THEMES_DUPLICATE_BUTTON].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_DELETE_BUTTON].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RENAME_BUTTON].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_PRESETS].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_PRESETS_DROPDOWN].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_COLOURBTN_MASK].type = WindowWidgetType::Empty; WidgetSetCheckboxValue(*this, WIDX_THEMES_RCT1_RIDE_LIGHTS, ThemeGetFlags() & UITHEME_FLAG_USE_LIGHTS_RIDE); WidgetSetCheckboxValue(*this, WIDX_THEMES_RCT1_PARK_LIGHTS, ThemeGetFlags() & UITHEME_FLAG_USE_LIGHTS_PARK); @@ -428,19 +424,19 @@ public: } else { - window_themes_widgets[WIDX_THEMES_HEADER_WINDOW].type = WindowWidgetType::TableHeader; - window_themes_widgets[WIDX_THEMES_HEADER_PALETTE].type = WindowWidgetType::TableHeader; - window_themes_widgets[WIDX_THEMES_LIST].type = WindowWidgetType::Scroll; - window_themes_widgets[WIDX_THEMES_RCT1_RIDE_LIGHTS].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RCT1_PARK_LIGHTS].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RCT1_SCENARIO_FONT].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RCT1_BOTTOM_TOOLBAR].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_DUPLICATE_BUTTON].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_DELETE_BUTTON].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_RENAME_BUTTON].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_PRESETS].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_PRESETS_DROPDOWN].type = WindowWidgetType::Empty; - window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_HEADER_WINDOW].type = WindowWidgetType::TableHeader; + widgets[WIDX_THEMES_HEADER_PALETTE].type = WindowWidgetType::TableHeader; + widgets[WIDX_THEMES_LIST].type = WindowWidgetType::Scroll; + widgets[WIDX_THEMES_RCT1_RIDE_LIGHTS].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RCT1_PARK_LIGHTS].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RCT1_SCENARIO_FONT].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RCT1_BOTTOM_TOOLBAR].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_DUPLICATE_BUTTON].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_DELETE_BUTTON].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_RENAME_BUTTON].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_PRESETS].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_PRESETS_DROPDOWN].type = WindowWidgetType::Empty; + widgets[WIDX_THEMES_COLOURBTN_MASK].type = WindowWidgetType::Empty; } } @@ -453,8 +449,8 @@ public: if (_selected_tab == WINDOW_THEMES_TAB_SETTINGS) { DrawTextBasic( - dpi, windowPos + ScreenCoordsXY{ 10, window_themes_widgets[WIDX_THEMES_PRESETS].top + 1 }, - STR_THEMES_LABEL_CURRENT_THEME, {}, { colours[1] }); + dpi, windowPos + ScreenCoordsXY{ 10, widgets[WIDX_THEMES_PRESETS].top + 1 }, STR_THEMES_LABEL_CURRENT_THEME, {}, + { colours[1] }); size_t activeAvailableThemeIndex = ThemeManagerGetAvailableThemeIndex(); const utf8* activeThemeName = ThemeManagerGetAvailableThemeName(activeAvailableThemeIndex); @@ -462,10 +458,8 @@ public: ft.Add(activeThemeName); auto screenPos = windowPos - + ScreenCoordsXY{ window_themes_widgets[WIDX_THEMES_PRESETS].left + 1, - window_themes_widgets[WIDX_THEMES_PRESETS].top }; - auto newWidth = windowPos.x + window_themes_widgets[WIDX_THEMES_PRESETS_DROPDOWN].left - - window_themes_widgets[WIDX_THEMES_PRESETS].left - 4; + + ScreenCoordsXY{ widgets[WIDX_THEMES_PRESETS].left + 1, widgets[WIDX_THEMES_PRESETS].top }; + auto newWidth = windowPos.x + widgets[WIDX_THEMES_PRESETS_DROPDOWN].left - widgets[WIDX_THEMES_PRESETS].left - 4; DrawTextEllipsised(dpi, screenPos, newWidth, STR_STRING, ft, { colours[1] }); } @@ -677,8 +671,7 @@ public: return {}; int32_t scrollHeight = GetColourSchemeTabCount() * _row_height; - int32_t i = scrollHeight - window_themes_widgets[WIDX_THEMES_LIST].bottom + window_themes_widgets[WIDX_THEMES_LIST].top - + 21; + int32_t i = scrollHeight - widgets[WIDX_THEMES_LIST].bottom + widgets[WIDX_THEMES_LIST].top + 21; if (i < 0) i = 0; if (i < scrolls[0].v_top) @@ -711,23 +704,16 @@ public: } else { - window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK].type = WindowWidgetType::ColourBtn; - window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK].left = _button_offset_x + _colour_index_2 * 12 - + window_themes_widgets[WIDX_THEMES_LIST].left; - window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK].top = _colour_index_1 * _row_height + _button_offset_y - - scrolls[0].v_top + window_themes_widgets[WIDX_THEMES_LIST].top; - window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK].right = window_themes_widgets - [WIDX_THEMES_COLOURBTN_MASK] - .left - + 12; - window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK].bottom = window_themes_widgets - [WIDX_THEMES_COLOURBTN_MASK] - .top - + 12; + widgets[WIDX_THEMES_COLOURBTN_MASK].type = WindowWidgetType::ColourBtn; + widgets[WIDX_THEMES_COLOURBTN_MASK].left = _button_offset_x + _colour_index_2 * 12 + + widgets[WIDX_THEMES_LIST].left; + widgets[WIDX_THEMES_COLOURBTN_MASK].top = _colour_index_1 * _row_height + _button_offset_y + - scrolls[0].v_top + widgets[WIDX_THEMES_LIST].top; + widgets[WIDX_THEMES_COLOURBTN_MASK].right = widgets[WIDX_THEMES_COLOURBTN_MASK].left + 12; + widgets[WIDX_THEMES_COLOURBTN_MASK].bottom = widgets[WIDX_THEMES_COLOURBTN_MASK].top + 12; uint8_t colour = ThemeGetColour(wc, _colour_index_2); - WindowDropdownShowColour( - this, &(window_themes_widgets[WIDX_THEMES_COLOURBTN_MASK]), colours[1], colour); + WindowDropdownShowColour(this, &(widgets[WIDX_THEMES_COLOURBTN_MASK]), colours[1], colour); WidgetInvalidate(*this, WIDX_THEMES_LIST); } } @@ -784,8 +770,7 @@ public: int32_t colour = colours[1]; auto leftTop = ScreenCoordsXY{ 0, screenCoords.y + _row_height - 2 }; - auto rightBottom = ScreenCoordsXY{ window_themes_widgets[WIDX_THEMES_LIST].right, - screenCoords.y + _row_height - 2 }; + auto rightBottom = ScreenCoordsXY{ widgets[WIDX_THEMES_LIST].right, screenCoords.y + _row_height - 2 }; auto yPixelOffset = ScreenCoordsXY{ 0, 1 }; if (colour & COLOUR_FLAG_TRANSLUCENT) diff --git a/src/openrct2-ui/windows/TileInspector.cpp b/src/openrct2-ui/windows/TileInspector.cpp index a5d7889bfd..a8642f5e8f 100644 --- a/src/openrct2-ui/windows/TileInspector.cpp +++ b/src/openrct2-ui/windows/TileInspector.cpp @@ -20,12 +20,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include #include @@ -41,19 +41,19 @@ #include #include -static constexpr const StringId EntranceTypeStringIds[] = { +static constexpr StringId EntranceTypeStringIds[] = { STR_TILE_INSPECTOR_ENTRANCE_TYPE_RIDE_ENTRANCE, STR_TILE_INSPECTOR_ENTRANCE_TYPE_RIDE_EXIT, STR_TILE_INSPECTOR_ENTRANCE_TYPE_PARK_ENTRANC, }; -static constexpr const StringId ParkEntrancePartStringIds[] = { +static constexpr StringId ParkEntrancePartStringIds[] = { STR_TILE_INSPECTOR_ENTRANCE_MIDDLE, STR_TILE_INSPECTOR_ENTRANCE_LEFT, STR_TILE_INSPECTOR_ENTRANCE_RIGHT, }; -static constexpr const StringId WallSlopeStringIds[] = { +static constexpr StringId WallSlopeStringIds[] = { STR_TILE_INSPECTOR_WALL_FLAT, STR_TILE_INSPECTOR_WALL_SLOPED_LEFT, STR_TILE_INSPECTOR_WALL_SLOPED_RIGHT, @@ -185,10 +185,10 @@ static_assert(WC_TILE_INSPECTOR__WIDX_SPINNER_Y_DECREASE == WIDX_SPINNER_Y_DECRE #pragma region MEASUREMENTS -static constexpr const StringId WINDOW_TITLE = STR_TILE_INSPECTOR_TITLE; +static constexpr StringId WINDOW_TITLE = STR_TILE_INSPECTOR_TITLE; // Window sizes -static constexpr const int32_t WW = 400; -static constexpr const int32_t WH = 170; +static constexpr int32_t WW = 400; +static constexpr int32_t WH = 170; constexpr int32_t MIN_WW = WW; constexpr int32_t MAX_WW = WW; @@ -440,10 +440,9 @@ static constexpr TileInspectorGroupboxSettings PageGroupBoxSettings[] = { }; static constexpr int32_t ViewportInteractionFlags = EnumsToFlags( - ViewportInteractionItem::Terrain, ViewportInteractionItem::Entity, ViewportInteractionItem::Ride, - ViewportInteractionItem::Scenery, ViewportInteractionItem::Footpath, ViewportInteractionItem::FootpathItem, - ViewportInteractionItem::ParkEntrance, ViewportInteractionItem::Wall, ViewportInteractionItem::LargeScenery, - ViewportInteractionItem::Banner); + ViewportInteractionItem::Terrain, ViewportInteractionItem::Ride, ViewportInteractionItem::Scenery, + ViewportInteractionItem::Footpath, ViewportInteractionItem::PathAddition, ViewportInteractionItem::ParkEntrance, + ViewportInteractionItem::Wall, ViewportInteractionItem::LargeScenery, ViewportInteractionItem::Banner); // clang-format off static uint64_t PageHoldDownWidgets[] = { @@ -483,6 +482,7 @@ private: bool _applyToAll = false; bool _elementCopied = false; TileElement _copiedElement; + Banner _copiedBanner; public: void OnOpen() override @@ -505,8 +505,9 @@ public: // Check if the mouse is hovering over the list if (!WidgetIsHighlighted(*this, WIDX_LIST)) { + if (_highlightedIndex != -1) + InvalidateWidget(WIDX_LIST); _highlightedIndex = -1; - InvalidateWidget(WIDX_LIST); } if (gCurrentToolWidget.window_classification != WindowClass::TileInspector) Close(); @@ -517,15 +518,12 @@ public: switch (widgetIndex) { case WIDX_CLOSE: - ToolCancel(); Close(); return; case WIDX_BUTTON_REMOVE: { - int32_t nextItemToSelect = windowTileInspectorSelectedIndex - 1; RemoveElement(windowTileInspectorSelectedIndex); - SelectElementFromList(nextItemToSelect); break; } @@ -558,10 +556,7 @@ public: if (tileInspectorPage == TileInspectorPage::Default || windowTileInspectorSelectedIndex == -1) return; - TileElement* const tileElement = GetSelectedElement(); - - // Update selection, can be nullptr. - OpenRCT2::TileInspector::SetSelectedElement(tileElement); + const TileElement* const tileElement = OpenRCT2::TileInspector::GetSelectedElement(); if (tileElement == nullptr) return; @@ -712,7 +707,13 @@ public: void OnClose() override { - OpenRCT2::TileInspector::SetSelectedElement(nullptr); + ToolCancel(); + TileElement* const elem = OpenRCT2::TileInspector::GetSelectedElement(); + if (elem != nullptr) + { + MapInvalidateElement(_toolMap, elem); + } + windowTileInspectorSelectedIndex = -1; } void OnResize() override @@ -727,6 +728,7 @@ public: Invalidate(); height = min_height; } + ResizeFrame(); } void OnMouseDown(WidgetIndex widgetIndex) override @@ -762,7 +764,7 @@ public: if (tileInspectorPage == TileInspectorPage::Default || windowTileInspectorSelectedIndex == -1) return; - const TileElement* tileElement = GetSelectedElement(); + const TileElement* tileElement = OpenRCT2::TileInspector::GetSelectedElement(); if (tileElement == nullptr) return; @@ -921,10 +923,10 @@ public: if (dropdownIndex == -1) return; // Get selected element - TileElement* const tileElement = GetSelectedElement(); + const TileElement* const tileElement = OpenRCT2::TileInspector::GetSelectedElement(); if (tileInspectorPage == TileInspectorPage::Wall) { - openrct2_assert(tileElement->GetType() == TileElementType::Wall, "Element is not a wall"); + Guard::Assert(tileElement->GetType() == TileElementType::Wall, "Element is not a wall"); if (widgetIndex == WIDX_WALL_DROPDOWN_SLOPE_BUTTON) WallSetSlope(windowTileInspectorSelectedIndex, dropdownIndex); } @@ -1042,7 +1044,7 @@ public: + ScreenCoordsXY{ widgets[WIDX_GROUPBOX_DETAILS].left + 7, widgets[WIDX_GROUPBOX_DETAILS].top + 14 }; // Get map element - TileElement* const tileElement = GetSelectedElement(); + const TileElement* const tileElement = OpenRCT2::TileInspector::GetSelectedElement(); if (tileElement == nullptr) return; @@ -1152,9 +1154,9 @@ public: // Path addition if (tileElement->AsPath()->HasAddition()) { - const auto pathBitEntry = tileElement->AsPath()->GetAdditionEntry(); - StringId additionNameId = pathBitEntry != nullptr ? pathBitEntry->name - : static_cast(STR_UNKNOWN_OBJECT_TYPE); + const auto pathAdditionEntry = tileElement->AsPath()->GetAdditionEntry(); + StringId additionNameId = pathAdditionEntry != nullptr ? pathAdditionEntry->name + : static_cast(STR_UNKNOWN_OBJECT_TYPE); auto ft = Formatter(); ft.Add(additionNameId); DrawTextBasic( @@ -1754,10 +1756,15 @@ private: return; } + // Invalidate the previous selection + if (auto* elem = OpenRCT2::TileInspector::GetSelectedElement(); elem != nullptr) + { + MapInvalidateElement(windowTileInspectorTile.ToCoordsXY(), elem); + } + _tileSelected = true; _toolMap = mapCoords; windowTileInspectorTile = TileCoordsXY(mapCoords); - OpenRCT2::TileInspector::SetSelectedElement(clickedElement); LoadTile(clickedElement); } @@ -1766,13 +1773,10 @@ private: if (index < 0 || index >= windowTileInspectorElementCount) { windowTileInspectorSelectedIndex = -1; - OpenRCT2::TileInspector::SetSelectedElement(nullptr); } else { windowTileInspectorSelectedIndex = index; - const TileElement* const tileElement = GetSelectedElement(); - OpenRCT2::TileInspector::SetSelectedElement(tileElement); } Invalidate(); } @@ -1799,14 +1803,14 @@ private: void RemoveElement(int32_t elementIndex) { - openrct2_assert(elementIndex >= 0 && elementIndex < windowTileInspectorElementCount, "elementIndex out of range"); + Guard::Assert(elementIndex >= 0 && elementIndex < windowTileInspectorElementCount, "elementIndex out of range"); auto modifyTile = TileModifyAction(_toolMap, TileModifyType::AnyRemove, elementIndex); GameActions::Execute(&modifyTile); } void RotateElement(int32_t elementIndex) { - openrct2_assert(elementIndex >= 0 && elementIndex < windowTileInspectorElementCount, "elementIndex out of range"); + Guard::Assert(elementIndex >= 0 && elementIndex < windowTileInspectorElementCount, "elementIndex out of range"); auto modifyTile = TileModifyAction(_toolMap, TileModifyType::AnyRotate, elementIndex); GameActions::Execute(&modifyTile); } @@ -1825,22 +1829,32 @@ private: void SortElements() { - openrct2_assert(_tileSelected, "No tile selected"); + Guard::Assert(_tileSelected, "No tile selected"); auto modifyTile = TileModifyAction(_toolMap, TileModifyType::AnySort); GameActions::Execute(&modifyTile); } void CopyElement() { + const TileElement* const tileElement = OpenRCT2::TileInspector::GetSelectedElement(); + Guard::Assert(tileElement != nullptr, "Invalid tile element"); // Copy value, in case the element gets moved - _copiedElement = *GetSelectedElement(); + _copiedElement = *tileElement; + _copiedBanner = {}; + auto bannerIndex = _copiedElement.GetBannerIndex(); + if (bannerIndex != BannerIndex::GetNull()) + { + auto banner = GetBanner(bannerIndex); + if (banner != nullptr) + _copiedBanner = *banner; + } _elementCopied = true; Invalidate(); } void PasteElement() { - auto modifyTile = TileModifyAction(_toolMap, TileModifyType::AnyPaste, 0, 0, _copiedElement); + auto modifyTile = TileModifyAction(_toolMap, TileModifyType::AnyPaste, 0, 0, _copiedElement, _copiedBanner); GameActions::Execute(&modifyTile); } @@ -1889,8 +1903,8 @@ private: void PathToggleEdge(int32_t elementIndex, int32_t cornerIndex) { - openrct2_assert(elementIndex >= 0 && elementIndex < windowTileInspectorElementCount, "elementIndex out of range"); - openrct2_assert(cornerIndex >= 0 && cornerIndex < 8, "cornerIndex out of range"); + Guard::Assert(elementIndex >= 0 && elementIndex < windowTileInspectorElementCount, "elementIndex out of range"); + Guard::Assert(cornerIndex >= 0 && cornerIndex < 8, "cornerIndex out of range"); auto modifyTile = TileModifyAction(_toolMap, TileModifyType::PathToggleEdge, elementIndex, cornerIndex); GameActions::Execute(&modifyTile); } @@ -1905,7 +1919,7 @@ private: void WallSetSlope(int32_t elementIndex, int32_t slopeValue) { // Make sure only the correct bits are set - openrct2_assert((slopeValue & 3) == slopeValue, "slopeValue doesn't match its mask"); + Guard::Assert((slopeValue & 3) == slopeValue, "slopeValue doesn't match its mask"); auto modifyTile = TileModifyAction(_toolMap, TileModifyType::WallSetSlope, elementIndex, slopeValue); GameActions::Execute(&modifyTile); } @@ -1945,7 +1959,7 @@ private: void QuarterTileSet(int32_t elementIndex, const int32_t quarterIndex) { // quarterIndex is widget index relative to WIDX_SCENERY_CHECK_QUARTER_N, so a value from 0-3 - openrct2_assert(quarterIndex >= 0 && quarterIndex < 4, "quarterIndex out of range"); + Guard::Assert(quarterIndex >= 0 && quarterIndex < 4, "quarterIndex out of range"); auto modifyTile = TileModifyAction( _toolMap, TileModifyType::ScenerySetQuarterLocation, elementIndex, (quarterIndex - GetCurrentRotation()) & 3); GameActions::Execute(&modifyTile); @@ -1961,7 +1975,7 @@ private: void BannerToggleBlock(int32_t elementIndex, int32_t edgeIndex) { - openrct2_assert(edgeIndex >= 0 && edgeIndex < 4, "edgeIndex out of range"); + Guard::Assert(edgeIndex >= 0 && edgeIndex < 4, "edgeIndex out of range"); // Make edgeIndex abstract edgeIndex = (edgeIndex - GetCurrentRotation()) & 3; auto modifyTile = TileModifyAction(_toolMap, TileModifyType::BannerToggleBlockingEdge, elementIndex, edgeIndex); @@ -1970,29 +1984,21 @@ private: void ToggleInvisibility(int32_t elementIndex) { - openrct2_assert(elementIndex >= 0 && elementIndex < windowTileInspectorElementCount, "elementIndex out of range"); + Guard::Assert(elementIndex >= 0 && elementIndex < windowTileInspectorElementCount, "elementIndex out of range"); auto modifyTile = TileModifyAction(_toolMap, TileModifyType::AnyToggleInvisilibity, elementIndex); GameActions::Execute(&modifyTile); } - TileElement* GetSelectedElement() - { - openrct2_assert( - windowTileInspectorSelectedIndex >= 0 && windowTileInspectorSelectedIndex < windowTileInspectorElementCount, - "Selected list item out of range"); - return MapGetFirstElementAt(_toolMap) + windowTileInspectorSelectedIndex; - } - void OnPrepareDraw() override { + const TileElement* const tileElement = OpenRCT2::TileInspector::GetSelectedElement(); + // Set the correct page automatically TileInspectorPage p = TileInspectorPage::Default; - if (windowTileInspectorSelectedIndex != -1) + if (tileElement != nullptr) { - const auto element = GetSelectedElement(); - switch (element->GetType()) + switch (tileElement->GetType()) { - default: case TileElementType::Surface: p = TileInspectorPage::Surface; break; @@ -2033,32 +2039,30 @@ private: Invalidate(); } // X and Y spinners - SetWidgetDisabled(WIDX_SPINNER_X_INCREASE, !(_tileSelected && ((_toolMap.x / 32) < MAXIMUM_MAP_SIZE_TECHNICAL - 1))); - SetWidgetDisabled(WIDX_SPINNER_X_DECREASE, !(_tileSelected && ((_toolMap.x / 32) > 0))); - SetWidgetDisabled(WIDX_SPINNER_Y_INCREASE, !(_tileSelected && ((_toolMap.y / 32) < MAXIMUM_MAP_SIZE_TECHNICAL - 1))); - SetWidgetDisabled(WIDX_SPINNER_Y_DECREASE, !(_tileSelected && ((_toolMap.y / 32) > 0))); + SetWidgetDisabledAndInvalidate( + WIDX_SPINNER_X_INCREASE, !(_tileSelected && ((_toolMap.x / 32) < MAXIMUM_MAP_SIZE_TECHNICAL - 1))); + SetWidgetDisabledAndInvalidate(WIDX_SPINNER_X_DECREASE, !(_tileSelected && ((_toolMap.x / 32) > 0))); + SetWidgetDisabledAndInvalidate( + WIDX_SPINNER_Y_INCREASE, !(_tileSelected && ((_toolMap.y / 32) < MAXIMUM_MAP_SIZE_TECHNICAL - 1))); + SetWidgetDisabledAndInvalidate(WIDX_SPINNER_Y_DECREASE, !(_tileSelected && ((_toolMap.y / 32) > 0))); // Sort buttons - SetWidgetDisabled(WIDX_BUTTON_SORT, !(_tileSelected && windowTileInspectorElementCount > 1)); + SetWidgetDisabledAndInvalidate(WIDX_BUTTON_SORT, !(_tileSelected && windowTileInspectorElementCount > 1)); // Move Up button - SetWidgetDisabled( + SetWidgetDisabledAndInvalidate( WIDX_BUTTON_MOVE_UP, !(windowTileInspectorSelectedIndex != -1 && windowTileInspectorSelectedIndex < windowTileInspectorElementCount - 1)); - InvalidateWidget(WIDX_BUTTON_MOVE_UP); // Move Down button - SetWidgetDisabled(WIDX_BUTTON_MOVE_DOWN, !(windowTileInspectorSelectedIndex > 0)); - InvalidateWidget(WIDX_BUTTON_MOVE_DOWN); + SetWidgetDisabledAndInvalidate(WIDX_BUTTON_MOVE_DOWN, !(windowTileInspectorSelectedIndex > 0)); // Copy button - SetWidgetDisabled(WIDX_BUTTON_COPY, !(windowTileInspectorSelectedIndex >= 0)); - InvalidateWidget(WIDX_BUTTON_COPY); + SetWidgetDisabledAndInvalidate(WIDX_BUTTON_COPY, !(windowTileInspectorSelectedIndex >= 0)); // Paste button - SetWidgetDisabled(WIDX_BUTTON_PASTE, !(_tileSelected && _elementCopied)); - InvalidateWidget(WIDX_BUTTON_PASTE); + SetWidgetDisabledAndInvalidate(WIDX_BUTTON_PASTE, !(_tileSelected && _elementCopied)); widgets[WIDX_BACKGROUND].bottom = height - 1; @@ -2088,9 +2092,6 @@ private: // Using a switch, because I don't think giving each page their own callbacks is // needed here, as only the mouseup and invalidate functions are different. const int32_t propertiesAnchor = widgets[WIDX_GROUPBOX_PROPERTIES].top; - const TileElement* const tileElement = GetSelectedElement(); - if (tileElement == nullptr) - return; switch (tileElement->GetType()) { diff --git a/src/openrct2-ui/windows/TitleExit.cpp b/src/openrct2-ui/windows/TitleExit.cpp index dad768100f..81684c4bff 100644 --- a/src/openrct2-ui/windows/TitleExit.cpp +++ b/src/openrct2-ui/windows/TitleExit.cpp @@ -20,7 +20,7 @@ enum WindowTitleExitWidgetIdx { WIDX_EXIT, }; -static Widget window_title_exit_widgets[] = { +static Widget _titleExitWidgets[] = { MakeWidget({0, 0}, {40, 64}, WindowWidgetType::ImgBtn, WindowColour::Tertiary, ImageId(SPR_MENU_EXIT), STR_EXIT), WIDGETS_END, }; @@ -30,7 +30,7 @@ class TitleExitWindow final : public Window { void OnOpen() override { - widgets = window_title_exit_widgets; + widgets = _titleExitWidgets; InitScrollWidgets(); } diff --git a/src/openrct2-ui/windows/TitleLogo.cpp b/src/openrct2-ui/windows/TitleLogo.cpp index 419111286a..99a6597f0e 100644 --- a/src/openrct2-ui/windows/TitleLogo.cpp +++ b/src/openrct2-ui/windows/TitleLogo.cpp @@ -14,15 +14,15 @@ #include #include -static constexpr const int32_t WW = 232; -static constexpr const int32_t WH = 136; +static constexpr int32_t WW = 232; +static constexpr int32_t WH = 136; enum { WIDX_LOGO }; -static Widget window_title_logo_widgets[] = { +static Widget _titleLogoWidgets[] = { MakeWidget({ 0, 0 }, { WW + 1, WH + 1 }, WindowWidgetType::ImgBtn, WindowColour::Primary), WIDGETS_END, }; @@ -36,7 +36,7 @@ public: */ void OnOpen() override { - widgets = window_title_logo_widgets; + widgets = _titleLogoWidgets; WindowInitScrollWidgets(*this); colours[0] = TRANSLUCENT(COLOUR_GREY); colours[1] = TRANSLUCENT(COLOUR_GREY); diff --git a/src/openrct2-ui/windows/TitleMenu.cpp b/src/openrct2-ui/windows/TitleMenu.cpp index 1ad2166da1..750db3a0b0 100644 --- a/src/openrct2-ui/windows/TitleMenu.cpp +++ b/src/openrct2-ui/windows/TitleMenu.cpp @@ -45,7 +45,7 @@ enum static constexpr ScreenSize MenuButtonDims = { 82, 82 }; static constexpr ScreenSize UpdateButtonDims = { MenuButtonDims.width * 4, 28 }; -static Widget window_title_menu_widgets[] = { +static Widget _titleMenuWidgets[] = { MakeWidget({0, UpdateButtonDims.height}, MenuButtonDims, WindowWidgetType::ImgBtn, WindowColour::Tertiary, ImageId(SPR_MENU_NEW_GAME), STR_START_NEW_GAME_TIP), MakeWidget({0, UpdateButtonDims.height}, MenuButtonDims, WindowWidgetType::ImgBtn, WindowColour::Tertiary, ImageId(SPR_MENU_LOAD_GAME), STR_CONTINUE_SAVED_GAME_TIP), MakeWidget({0, UpdateButtonDims.height}, MenuButtonDims, WindowWidgetType::ImgBtn, WindowColour::Tertiary, ImageId(SPR_G2_MENU_MULTIPLAYER), STR_SHOW_MULTIPLAYER_TIP), @@ -91,7 +91,7 @@ private: public: void OnOpen() override { - widgets = window_title_menu_widgets; + widgets = _titleMenuWidgets; #ifdef DISABLE_NETWORK widgets[WIDX_MULTIPLAYER].type = WindowWidgetType::Empty; @@ -132,7 +132,7 @@ public: { WindowCloseByClass(WindowClass::Loadsave); WindowCloseByClass(WindowClass::ServerList); - WindowScenarioselectOpen(WindowTitleMenuScenarioselectCallback, false); + WindowScenarioselectOpen(WindowTitleMenuScenarioselectCallback); } break; case WIDX_CONTINUE_SAVED_GAME: @@ -219,6 +219,10 @@ public: void OnDropdown(WidgetIndex widgetIndex, int32_t selectedIndex) override { + if (selectedIndex == -1) + { + return; + } if (widgetIndex == WIDX_GAME_TOOLS) { switch (selectedIndex) @@ -252,7 +256,7 @@ public: CursorID OnCursor(WidgetIndex, const ScreenCoordsXY&, CursorID cursorId) override { - gTooltipTimeout = 2000; + gTooltipCloseTimeout = gCurrentRealTimeTicks + 2000; return cursorId; } diff --git a/src/openrct2-ui/windows/Tooltip.cpp b/src/openrct2-ui/windows/Tooltip.cpp index bd7ca113a4..15d11e6680 100644 --- a/src/openrct2-ui/windows/Tooltip.cpp +++ b/src/openrct2-ui/windows/Tooltip.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -22,7 +23,7 @@ enum { WIDX_BACKGROUND }; -static Widget window_tooltip_widgets[] = { +static Widget _tooltipWidgets[] = { MakeWidget({0, 0}, {200, 32}, WindowWidgetType::ImgBtn, WindowColour::Primary), WIDGETS_END, }; @@ -42,8 +43,9 @@ public: width = textWidth + 3; height = ((_tooltipNumLines + 1) * FontGetLineHeight(FontStyle::Small)) + 4; - window_tooltip_widgets[WIDX_BACKGROUND].right = width; - window_tooltip_widgets[WIDX_BACKGROUND].bottom = height; + widgets = _tooltipWidgets; + widgets[WIDX_BACKGROUND].right = width; + widgets[WIDX_BACKGROUND].bottom = height; int32_t screenWidth = ContextGetWidth(); int32_t screenHeight = ContextGetHeight(); @@ -65,7 +67,6 @@ public: void OnOpen() override { - widgets = window_tooltip_widgets; ResetTooltipNotShown(); } @@ -126,7 +127,7 @@ private: void WindowTooltipReset(const ScreenCoordsXY& screenCoords) { gTooltipCursor = screenCoords; - gTooltipTimeout = 0; + gTooltipCloseTimeout = 0; gTooltipWidget.window_classification = WindowClass::Null; InputSetState(InputState::Normal); InputSetFlag(INPUT_FLAG_4, false); @@ -151,7 +152,7 @@ void WindowTooltipOpen(WindowBase* widgetWindow, WidgetIndex widgetIndex, const return; auto widget = &widgetWindow->widgets[widgetIndex]; - WindowEventInvalidateCall(widgetWindow); + WindowEventOnPrepareDrawCall(widgetWindow); OpenRCT2String result; if (widget->flags & WIDGET_FLAGS::TOOLTIP_IS_STRING) @@ -188,6 +189,6 @@ void WindowTooltipOpen(WindowBase* widgetWindow, WidgetIndex widgetIndex, const void WindowTooltipClose() { WindowCloseByClass(WindowClass::Tooltip); - gTooltipTimeout = 0; + gTooltipCloseTimeout = 0; gTooltipWidget.window_classification = WindowClass::Null; } diff --git a/src/openrct2-ui/windows/TopToolbar.cpp b/src/openrct2-ui/windows/TopToolbar.cpp index ee0d6092a9..c30a5980fb 100644 --- a/src/openrct2-ui/windows/TopToolbar.cpp +++ b/src/openrct2-ui/windows/TopToolbar.cpp @@ -54,9 +54,9 @@ #include #include #include -#include #include #include +#include #include #include #include @@ -209,7 +209,7 @@ enum // clang-format off // from left to right -static constexpr const int32_t left_aligned_widgets_order[] = { +static constexpr int32_t left_aligned_widgets_order[] = { WIDX_PAUSE, WIDX_FASTFORWARD, WIDX_FILE_MENU, @@ -229,7 +229,7 @@ static constexpr const int32_t left_aligned_widgets_order[] = { }; // from right to left -static constexpr const int32_t right_aligned_widgets_order[] = { +static constexpr int32_t right_aligned_widgets_order[] = { WIDX_NEWS, WIDX_GUESTS, WIDX_STAFF, @@ -250,7 +250,7 @@ static constexpr const int32_t right_aligned_widgets_order[] = { #pragma endregion -static Widget window_top_toolbar_widgets[] = { +static Widget _topToolbarWidgets[] = { MakeRemapWidget({ 0, 0}, {30, TOP_TOOLBAR_HEIGHT + 1}, WindowWidgetType::TrnBtn, WindowColour::Primary , SPR_TOOLBAR_PAUSE, STR_PAUSE_GAME_TIP ), // Pause MakeRemapWidget({ 60, 0}, {30, TOP_TOOLBAR_HEIGHT + 1}, WindowWidgetType::TrnBtn, WindowColour::Primary , SPR_TOOLBAR_FILE, STR_DISC_AND_GAME_OPTIONS_TIP ), // File menu MakeRemapWidget({250, 0}, {30, TOP_TOOLBAR_HEIGHT + 1}, WindowWidgetType::TrnBtn, WindowColour::Primary , SPR_G2_TOOLBAR_MUTE, STR_TOOLBAR_MUTE_TIP ), // Mute @@ -1338,12 +1338,12 @@ private: if (placementData.GroundFlags & ELEMENT_IS_UNDERGROUND) { // Set underground on - ViewportSetVisibility(4); + ViewportSetVisibility(ViewportVisibility::UndergroundViewGhostOn); } else { // Set underground off - ViewportSetVisibility(5); + ViewportSetVisibility(ViewportVisibility::UndergroundViewGhostOff); } gSceneryGhostType |= SCENERY_GHOST_FLAG_0; @@ -1355,7 +1355,7 @@ private: SceneryRemoveGhostToolPlacement(); // 6e265b - auto footpathAdditionPlaceAction = FootpathAdditionPlaceAction(loc, entryIndex + 1); + auto footpathAdditionPlaceAction = FootpathAdditionPlaceAction(loc, entryIndex); footpathAdditionPlaceAction.SetFlags(GAME_COMMAND_FLAG_GHOST | GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED); footpathAdditionPlaceAction.SetCallback([=](const GameAction* ga, const GameActions::Result* result) { if (result->Error != GameActions::Status::Ok) @@ -1420,12 +1420,12 @@ private: if (placementData.GroundFlags & ELEMENT_IS_UNDERGROUND) { // Set underground on - ViewportSetVisibility(4); + ViewportSetVisibility(ViewportVisibility::UndergroundViewGhostOn); } else { // Set underground off - ViewportSetVisibility(5); + ViewportSetVisibility(ViewportVisibility::UndergroundViewGhostOff); } gSceneryGhostType |= SCENERY_GHOST_FLAG_3; @@ -1537,7 +1537,7 @@ private: { auto flag = EnumsToFlags( ViewportInteractionItem::Scenery, ViewportInteractionItem::Wall, ViewportInteractionItem::LargeScenery, - ViewportInteractionItem::Banner, ViewportInteractionItem::FootpathItem); + ViewportInteractionItem::Banner, ViewportInteractionItem::PathAddition); auto info = GetMapCoordinatesFromPos(screenCoords, flag); switch (info.SpriteType) { @@ -1595,11 +1595,11 @@ private: } break; } - case ViewportInteractionItem::FootpathItem: + case ViewportInteractionItem::PathAddition: { auto entryIndex = info.Element->AsPath()->GetAdditionEntryIndex(); - auto* pathBitEntry = OpenRCT2::ObjectManager::GetObjectEntry(entryIndex); - if (pathBitEntry != nullptr) + auto* pathAdditionEntry = OpenRCT2::ObjectManager::GetObjectEntry(entryIndex); + if (pathAdditionEntry != nullptr) { WindowScenerySetSelectedItem( { SCENERY_TYPE_PATH_ITEM, entryIndex }, std::nullopt, std::nullopt, std::nullopt, std::nullopt); @@ -1897,7 +1897,7 @@ private: Sub6E1F34UpdateScreenCoordsAndButtonsPressed(false, screenPos); // Path bits - constexpr auto flag = EnumsToFlags(ViewportInteractionItem::Footpath, ViewportInteractionItem::FootpathItem); + constexpr auto flag = EnumsToFlags(ViewportInteractionItem::Footpath, ViewportInteractionItem::PathAddition); auto info = GetMapCoordinatesFromPos(screenPos, flag); gridPos = info.Loc; @@ -2121,7 +2121,7 @@ private: Sub6E1F34UpdateScreenCoordsAndButtonsPressed(false, screenPos); // Banner - constexpr auto flag = EnumsToFlags(ViewportInteractionItem::Footpath, ViewportInteractionItem::FootpathItem); + constexpr auto flag = EnumsToFlags(ViewportInteractionItem::Footpath, ViewportInteractionItem::PathAddition); auto info = GetMapCoordinatesFromPos(screenPos, flag); gridPos = info.Loc; @@ -2308,7 +2308,7 @@ private: if (gridPos.IsNull()) return; - auto footpathAdditionPlaceAction = FootpathAdditionPlaceAction({ gridPos, z }, selectedScenery + 1); + auto footpathAdditionPlaceAction = FootpathAdditionPlaceAction({ gridPos, z }, selectedScenery); footpathAdditionPlaceAction.SetCallback([](const GameAction* ga, const GameActions::Result* result) { if (result->Error != GameActions::Status::Ok) @@ -2653,6 +2653,10 @@ public: void OnDropdown(WidgetIndex widgetIndex, int32_t selectedIndex) override { + if (selectedIndex == -1) + { + return; + } switch (widgetIndex) { case WIDX_FILE_MENU: @@ -3185,7 +3189,7 @@ public: ScreenCoordsXY screenPos{}; // Draw staff button image (setting masks to the staff colours) - if (window_top_toolbar_widgets[WIDX_STAFF].type != WindowWidgetType::Empty) + if (widgets[WIDX_STAFF].type != WindowWidgetType::Empty) { screenPos = { windowPos.x + widgets[WIDX_STAFF].left, windowPos.y + widgets[WIDX_STAFF].top }; imgId = SPR_TOOLBAR_STAFF; @@ -3195,7 +3199,7 @@ public: } // Draw fast forward button - if (window_top_toolbar_widgets[WIDX_FASTFORWARD].type != WindowWidgetType::Empty) + if (widgets[WIDX_FASTFORWARD].type != WindowWidgetType::Empty) { screenPos = { windowPos.x + widgets[WIDX_FASTFORWARD].left + 0, windowPos.y + widgets[WIDX_FASTFORWARD].top + 0 }; if (WidgetIsPressed(*this, WIDX_FASTFORWARD)) @@ -3213,7 +3217,7 @@ public: } // Draw cheats button - if (window_top_toolbar_widgets[WIDX_CHEATS].type != WindowWidgetType::Empty) + if (widgets[WIDX_CHEATS].type != WindowWidgetType::Empty) { screenPos = windowPos + ScreenCoordsXY{ widgets[WIDX_CHEATS].left - 1, widgets[WIDX_CHEATS].top - 1 }; if (WidgetIsPressed(*this, WIDX_CHEATS)) @@ -3314,7 +3318,7 @@ WindowBase* WindowTopToolbarOpen() WindowClass::TopToolbar, ScreenCoordsXY(0, 0), ContextGetWidth(), TOP_TOOLBAR_HEIGHT + 1, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND); - window->widgets = window_top_toolbar_widgets; + window->widgets = _topToolbarWidgets; WindowInitScrollWidgets(*window); diff --git a/src/openrct2-ui/windows/TrackDesignManage.cpp b/src/openrct2-ui/windows/TrackDesignManage.cpp index aecab10a40..ae44b82db3 100644 --- a/src/openrct2-ui/windows/TrackDesignManage.cpp +++ b/src/openrct2-ui/windows/TrackDesignManage.cpp @@ -17,12 +17,12 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_STRING; -static constexpr const int32_t WH = 44; -static constexpr const int32_t WW = 250; -static constexpr const int32_t WH_DELETE_PROMPT = 74; -static constexpr const int32_t WW_DELETE_PROMPT = 250; -static constexpr const int32_t TrackDesignNameMaxLength = 127; +static constexpr StringId WINDOW_TITLE = STR_STRING; +static constexpr int32_t WH = 44; +static constexpr int32_t WW = 250; +static constexpr int32_t WH_DELETE_PROMPT = 74; +static constexpr int32_t WW_DELETE_PROMPT = 250; +static constexpr int32_t TrackDesignNameMaxLength = 127; #pragma region Widgets @@ -38,14 +38,14 @@ enum { WIDX_PROMPT_CANCEL = 4, }; -static Widget window_track_manage_widgets[] = { +static Widget _trackManageWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({ 10, 24}, {110, 12}, WindowWidgetType::Button, WindowColour::Primary, STR_TRACK_MANAGE_RENAME), MakeWidget({130, 24}, {110, 12}, WindowWidgetType::Button, WindowColour::Primary, STR_TRACK_MANAGE_DELETE), WIDGETS_END, }; -static Widget window_track_delete_prompt_widgets[] = { +static Widget _trackDeletePromptWidgets[] = { WINDOW_SHIM(STR_DELETE_FILE, WW_DELETE_PROMPT, WH_DELETE_PROMPT), MakeWidget({ 10, 54}, {110, 12}, WindowWidgetType::Button, WindowColour::Primary, STR_TRACK_MANAGE_DELETE), MakeWidget({130, 54}, {110, 12}, WindowWidgetType::Button, WindowColour::Primary, STR_CANCEL ), @@ -67,6 +67,11 @@ class TrackDesignManageWindow final : public Window void OnMouseUp(WidgetIndex widgetIndex) override; void OnTextInput(WidgetIndex widgetIndex, std::string_view text) override; void OnDraw(DrawPixelInfo& dpi) override; + + void OnResize() override + { + ResizeFrame(); + } }; class TrackDeletePromptWindow final : public Window @@ -80,10 +85,14 @@ class TrackDeletePromptWindow final : public Window void OnOpen() override; void OnMouseUp(WidgetIndex widgetIndex) override; void OnDraw(DrawPixelInfo& dpi) override; + + void OnResize() override + { + ResizeFrame(); + } }; static void WindowTrackDeletePromptOpen(TrackDesignFileRef* tdFileRef); -static void WindowTrackDesignListReloadTracks(); /** * @@ -102,23 +111,15 @@ WindowBase* WindowTrackManageOpen(TrackDesignFileRef* tdFileRef) void TrackDesignManageWindow::OnOpen() { - widgets = window_track_manage_widgets; + widgets = _trackManageWidgets; WindowInitScrollWidgets(*this); - auto* trackDesignListWindow = WindowFindByClass(WindowClass::TrackDesignList); - if (trackDesignListWindow != nullptr) - { - trackDesignListWindow->track_list.track_list_being_updated = true; - } + WindowTrackDesignListSetBeingUpdated(true); } void TrackDesignManageWindow::OnClose() { - WindowBase* trackDesignListWindow = WindowFindByClass(WindowClass::TrackDesignList); - if (trackDesignListWindow != nullptr) - { - trackDesignListWindow->track_list.track_list_being_updated = false; - } + WindowTrackDesignListSetBeingUpdated(false); } void TrackDesignManageWindow::OnMouseUp(WidgetIndex widgetIndex) @@ -194,7 +195,7 @@ static void WindowTrackDeletePromptOpen(TrackDesignFileRef* tdFileRef) void TrackDeletePromptWindow::OnOpen() { - widgets = window_track_delete_prompt_widgets; + widgets = _trackDeletePromptWidgets; WindowInitScrollWidgets(*this); } @@ -234,11 +235,3 @@ void TrackDeletePromptWindow::OnDraw(DrawPixelInfo& dpi) STR_ARE_YOU_SURE_YOU_WANT_TO_PERMANENTLY_DELETE_TRACK, ft, { TextAlignment::CENTRE }); } -static void WindowTrackDesignListReloadTracks() -{ - WindowBase* trackListWindow = WindowFindByClass(WindowClass::TrackDesignList); - if (trackListWindow != nullptr) - { - trackListWindow->track_list.reload_track_designs = true; - } -} diff --git a/src/openrct2-ui/windows/TrackDesignPlace.cpp b/src/openrct2-ui/windows/TrackDesignPlace.cpp index f64d472a7d..8ddd8318e8 100644 --- a/src/openrct2-ui/windows/TrackDesignPlace.cpp +++ b/src/openrct2-ui/windows/TrackDesignPlace.cpp @@ -36,9 +36,9 @@ using namespace OpenRCT2; using namespace OpenRCT2::TrackMetaData; -static constexpr const StringId WINDOW_TITLE = STR_STRING; -static constexpr const int32_t WH = 124; -static constexpr const int32_t WW = 200; +static constexpr StringId WINDOW_TITLE = STR_STRING; +static constexpr int32_t WH = 124; +static constexpr int32_t WW = 200; constexpr int16_t TRACK_MINI_PREVIEW_WIDTH = 168; constexpr int16_t TRACK_MINI_PREVIEW_HEIGHT = 78; constexpr uint16_t TRACK_MINI_PREVIEW_SIZE = TRACK_MINI_PREVIEW_WIDTH * TRACK_MINI_PREVIEW_HEIGHT; @@ -61,7 +61,7 @@ enum { validate_global_widx(WC_TRACK_DESIGN_PLACE, WIDX_ROTATE); -static Widget window_track_place_widgets[] = { +static Widget _trackPlaceWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({173, 83}, { 24, 24}, WindowWidgetType::FlatBtn, WindowColour::Primary, ImageId(SPR_ROTATE_ARROW), STR_ROTATE_90_TIP ), MakeWidget({173, 59}, { 24, 24}, WindowWidgetType::FlatBtn, WindowColour::Primary, ImageId(SPR_MIRROR_ARROW), STR_MIRROR_IMAGE_TIP ), @@ -77,7 +77,7 @@ class TrackDesignPlaceWindow final : public Window public: void OnOpen() override { - widgets = window_track_place_widgets; + widgets = _trackPlaceWidgets; WindowInitScrollWidgets(*this); ToolSet(*this, WIDX_PRICE, Tool::Crosshair); InputSetFlag(INPUT_FLAG_6, true); @@ -92,7 +92,7 @@ public: void OnClose() override { ClearProvisional(); - ViewportSetVisibility(0); + ViewportSetVisibility(ViewportVisibility::Default); MapInvalidateMapSelectionTiles(); gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_CONSTRUCT; gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_ARROW; @@ -312,6 +312,11 @@ public: } } + void OnResize() override + { + ResizeFrame(); + } + void ClearProvisionalTemporarily() { if (_hasPlacementGhost) diff --git a/src/openrct2-ui/windows/TrackList.cpp b/src/openrct2-ui/windows/TrackList.cpp index 74fa898b11..7c0cf9ae90 100644 --- a/src/openrct2-ui/windows/TrackList.cpp +++ b/src/openrct2-ui/windows/TrackList.cpp @@ -28,12 +28,12 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_SELECT_DESIGN; -static constexpr const int32_t WH = 441; -static constexpr const int32_t WW = 600; -static constexpr const int32_t DEBUG_PATH_HEIGHT = 12; -static constexpr const int32_t ROTATE_AND_SCENERY_BUTTON_SIZE = 24; -static constexpr const int32_t WINDOW_PADDING = 5; +static constexpr StringId WINDOW_TITLE = STR_SELECT_DESIGN; +static constexpr int32_t WH = 441; +static constexpr int32_t WW = 600; +static constexpr int32_t DEBUG_PATH_HEIGHT = 12; +static constexpr int32_t ROTATE_AND_SCENERY_BUTTON_SIZE = 24; +static constexpr int32_t WINDOW_PADDING = 5; // clang-format off enum { @@ -51,7 +51,7 @@ enum { validate_global_widx(WC_TRACK_DESIGN_LIST, WIDX_ROTATE); -static Widget window_track_list_widgets[] = { +static Widget _trackListWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({ 4, 18}, {218, 13}, WindowWidgetType::TableHeader, WindowColour::Primary , STR_SELECT_OTHER_RIDE ), MakeWidget({ 4, 32}, {124, 13}, WindowWidgetType::TextBox, WindowColour::Secondary ), @@ -73,11 +73,13 @@ class TrackListWindow final : public Window { private: std::vector _trackDesigns; - utf8 _filterString[USER_STRING_MAX_LENGTH]; + utf8 _filterString[USER_STRING_MAX_LENGTH]{}; std::vector _filteredTrackIds; uint16_t _loadedTrackDesignIndex; std::unique_ptr _loadedTrackDesign; std::vector _trackDesignPreviewPixels; + bool _selectedItemIsBeingUpdated; + bool _reloadTrackDesigns; void FilterList() { @@ -104,6 +106,12 @@ private: _filteredTrackIds.push_back(i); } } + + // Ensure that the selected item is still in the list. + if (static_cast(selected_list_item) >= _filteredTrackIds.size()) + { + selected_list_item = 0; + } } void SelectFromList(int32_t listIndex) @@ -199,11 +207,18 @@ private: } public: + TrackListWindow(const RideSelection item) + { + _window_track_list_item = item; + } + void OnOpen() override { + LoadDesignsList(_window_track_list_item); + String::Set(_filterString, sizeof(_filterString), ""); - window_track_list_widgets[WIDX_FILTER_STRING].string = _filterString; - widgets = window_track_list_widgets; + _trackListWidgets[WIDX_FILTER_STRING].string = _filterString; + widgets = _trackListWidgets; if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) { @@ -215,8 +230,8 @@ public: } WindowInitScrollWidgets(*this); - track_list.track_list_being_updated = false; - track_list.reload_track_designs = false; + _selectedItemIsBeingUpdated = false; + _reloadTrackDesigns = false; // Start with first track highlighted selected_list_item = 0; if (_trackDesigns.size() != 0 && !(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)) @@ -319,7 +334,7 @@ public: void OnScrollMouseDown(const int32_t scrollIndex, const ScreenCoordsXY& screenCoords) override { - if (!track_list.track_list_being_updated) + if (!_selectedItemIsBeingUpdated) { int32_t i = GetListItemFromPosition(screenCoords); if (i != -1) @@ -331,7 +346,7 @@ public: void OnScrollMouseOver(const int32_t scrollIndex, const ScreenCoordsXY& screenCoords) override { - if (!track_list.track_list_being_updated) + if (!_selectedItemIsBeingUpdated) { int32_t i = GetListItemFromPosition(screenCoords); if (i != -1 && selected_list_item != i) @@ -373,21 +388,21 @@ public: Formatter::Common().Add(stringId); if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) { - window_track_list_widgets[WIDX_TITLE].text = STR_TRACK_DESIGNS; - window_track_list_widgets[WIDX_TRACK_LIST].tooltip = STR_CLICK_ON_DESIGN_TO_RENAME_OR_DELETE_IT; + widgets[WIDX_TITLE].text = STR_TRACK_DESIGNS; + widgets[WIDX_TRACK_LIST].tooltip = STR_CLICK_ON_DESIGN_TO_RENAME_OR_DELETE_IT; } else { - window_track_list_widgets[WIDX_TITLE].text = STR_SELECT_DESIGN; - window_track_list_widgets[WIDX_TRACK_LIST].tooltip = STR_CLICK_ON_DESIGN_TO_BUILD_IT_TIP; + widgets[WIDX_TITLE].text = STR_SELECT_DESIGN; + widgets[WIDX_TRACK_LIST].tooltip = STR_CLICK_ON_DESIGN_TO_BUILD_IT_TIP; } if ((gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) || selected_list_item != 0) { pressed_widgets |= 1uLL << WIDX_TRACK_PREVIEW; disabled_widgets &= ~(1uLL << WIDX_TRACK_PREVIEW); - window_track_list_widgets[WIDX_ROTATE].type = WindowWidgetType::FlatBtn; - window_track_list_widgets[WIDX_TOGGLE_SCENERY].type = WindowWidgetType::FlatBtn; + widgets[WIDX_ROTATE].type = WindowWidgetType::FlatBtn; + widgets[WIDX_TOGGLE_SCENERY].type = WindowWidgetType::FlatBtn; if (gTrackDesignSceneryToggle) { pressed_widgets &= ~(1uLL << WIDX_TOGGLE_SCENERY); @@ -401,19 +416,17 @@ public: { pressed_widgets &= ~(1uLL << WIDX_TRACK_PREVIEW); disabled_widgets |= (1uLL << WIDX_TRACK_PREVIEW); - window_track_list_widgets[WIDX_ROTATE].type = WindowWidgetType::Empty; - window_track_list_widgets[WIDX_TOGGLE_SCENERY].type = WindowWidgetType::Empty; + widgets[WIDX_ROTATE].type = WindowWidgetType::Empty; + widgets[WIDX_TOGGLE_SCENERY].type = WindowWidgetType::Empty; } // When debugging tools are on, shift everything up a bit to make room for displaying the path. const int32_t bottomMargin = gConfigGeneral.DebuggingTools ? (WINDOW_PADDING + DEBUG_PATH_HEIGHT) : WINDOW_PADDING; - window_track_list_widgets[WIDX_TRACK_LIST].bottom = height - bottomMargin; - window_track_list_widgets[WIDX_ROTATE].bottom = height - bottomMargin; - window_track_list_widgets[WIDX_ROTATE].top = window_track_list_widgets[WIDX_ROTATE].bottom - - ROTATE_AND_SCENERY_BUTTON_SIZE; - window_track_list_widgets[WIDX_TOGGLE_SCENERY].bottom = window_track_list_widgets[WIDX_ROTATE].top; - window_track_list_widgets[WIDX_TOGGLE_SCENERY].top = window_track_list_widgets[WIDX_TOGGLE_SCENERY].bottom - - ROTATE_AND_SCENERY_BUTTON_SIZE; + widgets[WIDX_TRACK_LIST].bottom = height - bottomMargin; + widgets[WIDX_ROTATE].bottom = height - bottomMargin; + widgets[WIDX_ROTATE].top = widgets[WIDX_ROTATE].bottom - ROTATE_AND_SCENERY_BUTTON_SIZE; + widgets[WIDX_TOGGLE_SCENERY].bottom = widgets[WIDX_ROTATE].top; + widgets[WIDX_TOGGLE_SCENERY].top = widgets[WIDX_TOGGLE_SCENERY].bottom - ROTATE_AND_SCENERY_BUTTON_SIZE; } void OnUpdate() override @@ -424,12 +437,12 @@ public: WidgetInvalidate(*this, WIDX_FILTER_STRING); // TODO Check this } - if (track_list.reload_track_designs) + if (_reloadTrackDesigns) { LoadDesignsList(_window_track_list_item); selected_list_item = 0; Invalidate(); - track_list.reload_track_designs = false; + _reloadTrackDesigns = false; } } @@ -438,20 +451,15 @@ public: DrawWidgets(dpi); int32_t listItemIndex = selected_list_item; - if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) + if ((gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) == 0) { - if (_trackDesigns.empty() || listItemIndex == -1) - return; - } - else - { - if (listItemIndex == 0) - return; - // Because the first item in the list is "Build a custom design", lower the index by one listItemIndex--; } + if (_filteredTrackIds.empty() || listItemIndex == -1) + return; + int32_t trackIndex = _filteredTrackIds[listItemIndex]; // Track preview @@ -735,11 +743,19 @@ public: } } - bool SetRideSelection(const RideSelection item) + void OnResize() override { - _window_track_list_item = item; - LoadDesignsList(item); - return true; + ResizeFrame(); + } + + void SetIsBeingUpdated(const bool beingUpdated) + { + _selectedItemIsBeingUpdated = beingUpdated; + } + + void ReloadTrackDesigns() + { + _reloadTrackDesigns = true; } }; @@ -757,7 +773,23 @@ WindowBase* WindowTrackListOpen(const RideSelection item) { screenPos = { 0, TOP_TOOLBAR_HEIGHT + 2 }; } - auto* w = WindowCreate(WindowClass::TrackDesignList, WW, WH, 0); - w->SetRideSelection(item); - return w; + return WindowCreate(WindowClass::TrackDesignList, WW, WH, 0, item); +} + +void WindowTrackDesignListReloadTracks() +{ + auto* trackListWindow = static_cast(WindowFindByClass(WindowClass::TrackDesignList)); + if (trackListWindow != nullptr) + { + trackListWindow->ReloadTrackDesigns(); + } +} + +void WindowTrackDesignListSetBeingUpdated(const bool beingUpdated) +{ + auto* trackListWindow = static_cast(WindowFindByClass(WindowClass::TrackDesignList)); + if (trackListWindow != nullptr) + { + trackListWindow->SetIsBeingUpdated(beingUpdated); + } } diff --git a/src/openrct2-ui/windows/Transparency.cpp b/src/openrct2-ui/windows/Transparency.cpp index 1db37999b4..72464969a7 100644 --- a/src/openrct2-ui/windows/Transparency.cpp +++ b/src/openrct2-ui/windows/Transparency.cpp @@ -54,16 +54,16 @@ enum WINDOW_TRANSPARENCY_WIDGET_IDX #pragma region MEASUREMENTS -static constexpr const StringId WINDOW_TITLE = STR_TRANSPARENCY_OPTIONS_TITLE; -static constexpr const int32_t WW = 204; -static constexpr const int32_t WH = 57; +static constexpr StringId WINDOW_TITLE = STR_TRANSPARENCY_OPTIONS_TITLE; +static constexpr int32_t WW = 204; +static constexpr int32_t WH = 57; static constexpr ScreenSize HIDE_SIZE = {24, 24}; static constexpr ScreenSize INVISIBLE_SIZE = {24, 12}; #pragma endregion -static Widget window_transparency_main_widgets[] = +static Widget _transparancyWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({ 2, 17}, HIDE_SIZE, WindowWidgetType::FlatBtn, WindowColour::Secondary, ImageId(SPR_G2_BUTTON_HIDE_VEGETATION), STR_SEE_THROUGH_VEGETATION), @@ -92,7 +92,7 @@ private: public: void OnOpen() override { - widgets = window_transparency_main_widgets; + widgets = _transparancyWidgets; WindowPushOthersBelow(*this); auto* w = WindowGetMain(); @@ -242,6 +242,11 @@ private: gConfigGeneral.InvisibleSupports = wflags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS; ConfigSaveDefault(); } + + void OnResize() override + { + ResizeFrame(); + } }; WindowBase* WindowTransparencyOpen() diff --git a/src/openrct2-ui/windows/ViewClipping.cpp b/src/openrct2-ui/windows/ViewClipping.cpp index 8c6b9fd1c9..8659808130 100644 --- a/src/openrct2-ui/windows/ViewClipping.cpp +++ b/src/openrct2-ui/windows/ViewClipping.cpp @@ -44,11 +44,11 @@ enum class DisplayType { #pragma region Widgets -static constexpr const StringId WINDOW_TITLE = STR_VIEW_CLIPPING_TITLE; -static constexpr const int32_t WW = 180; -static constexpr const int32_t WH = 155; +static constexpr StringId WINDOW_TITLE = STR_VIEW_CLIPPING_TITLE; +static constexpr int32_t WW = 180; +static constexpr int32_t WH = 155; -static Widget window_view_clipping_widgets[] = { +static Widget _viewClippingWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget ({ 11, 19}, { 159, 11}, WindowWidgetType::Checkbox, WindowColour::Primary, STR_VIEW_CLIPPING_HEIGHT_ENABLE, STR_VIEW_CLIPPING_HEIGHT_ENABLE_TIP ), // clip enable/disable check box MakeWidget ({ 5, 36}, {WW - 10, 48}, WindowWidgetType::Groupbox, WindowColour::Primary, STR_VIEW_CLIPPING_VERTICAL_CLIPPING ), @@ -343,7 +343,7 @@ public: void OnOpen() override { - this->widgets = window_view_clipping_widgets; + this->widgets = _viewClippingWidgets; this->hold_down_widgets = (1uLL << WIDX_CLIP_HEIGHT_INCREASE) | (1uL << WIDX_CLIP_HEIGHT_DECREASE); WindowInitScrollWidgets(*this); @@ -365,6 +365,11 @@ public: } } + void OnResize() override + { + ResizeFrame(); + } + private: void OnClose() override { diff --git a/src/openrct2-ui/windows/Viewport.cpp b/src/openrct2-ui/windows/Viewport.cpp index a09cea41c4..98b7ee7acb 100644 --- a/src/openrct2-ui/windows/Viewport.cpp +++ b/src/openrct2-ui/windows/Viewport.cpp @@ -32,15 +32,15 @@ enum WindowViewportWidgetIdx #pragma region MEASUREMENTS -static constexpr const StringId WINDOW_TITLE = STR_VIEWPORT_NO; -static constexpr const int32_t WW = 200; -static constexpr const int32_t WH = 200; +static constexpr StringId WINDOW_TITLE = STR_VIEWPORT_NO; +static constexpr int32_t WW = 200; +static constexpr int32_t WH = 200; static constexpr ScreenSize VIEWPORT_BUTTON = {24, 24}; #pragma endregion -static Widget window_viewport_widgets[] = +static Widget _viewportWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget({ 0, 14}, { WW - 1, WH - 1}, WindowWidgetType::Resize, WindowColour::Secondary ), // resize @@ -73,7 +73,7 @@ public: { GetFreeViewportNumber(); - widgets = window_viewport_widgets; + widgets = _viewportWidgets; // Create viewport ViewportCreate(this, windowPos, width, height, Focus(TileCoordsXYZ(128, 128, 0).ToCoordsXYZ())); @@ -175,7 +175,7 @@ public: void OnPrepareDraw() override { - Widget* viewportWidget = &window_viewport_widgets[WIDX_VIEWPORT]; + Widget* viewportWidget = &widgets[WIDX_VIEWPORT]; ResizeFrameWithPage(); widgets[WIDX_ZOOM_IN].left = width - 27; diff --git a/src/openrct2-ui/windows/Water.cpp b/src/openrct2-ui/windows/Water.cpp index 1fce7975c0..97ef959b66 100644 --- a/src/openrct2-ui/windows/Water.cpp +++ b/src/openrct2-ui/windows/Water.cpp @@ -17,9 +17,9 @@ #include #include -static constexpr const StringId WINDOW_TITLE = STR_WATER; -static constexpr const int32_t WH = 77; -static constexpr const int32_t WW = 76; +static constexpr StringId WINDOW_TITLE = STR_WATER; +static constexpr int32_t WH = 77; +static constexpr int32_t WW = 76; // clang-format off enum WindowWaterWidgetIdx { @@ -31,7 +31,7 @@ enum WindowWaterWidgetIdx { WIDX_INCREMENT }; -static Widget window_water_widgets[] = { +static Widget _waterWidgets[] = { WINDOW_SHIM(WINDOW_TITLE, WW, WH), MakeWidget ({16, 17}, {44, 32}, WindowWidgetType::ImgBtn, WindowColour::Primary , ImageId(SPR_LAND_TOOL_SIZE_0), STR_NONE), // preview box MakeRemapWidget({17, 18}, {16, 16}, WindowWidgetType::TrnBtn, WindowColour::Tertiary, SPR_LAND_TOOL_DECREASE, STR_ADJUST_SMALLER_WATER_TIP), // decrement size @@ -45,7 +45,7 @@ class WaterWindow final : public Window public: void OnOpen() override { - widgets = window_water_widgets; + widgets = _waterWidgets; hold_down_widgets = (1uLL << WIDX_INCREMENT) | (1uLL << WIDX_DECREMENT); WindowInitScrollWidgets(*this); WindowPushOthersBelow(*this); @@ -140,8 +140,8 @@ public: void OnDraw(DrawPixelInfo& dpi) override { - auto screenCoords = ScreenCoordsXY{ windowPos.x + window_water_widgets[WIDX_PREVIEW].midX(), - windowPos.y + window_water_widgets[WIDX_PREVIEW].midY() }; + auto screenCoords = ScreenCoordsXY{ windowPos.x + widgets[WIDX_PREVIEW].midX(), + windowPos.y + widgets[WIDX_PREVIEW].midY() }; DrawWidgets(dpi); // Draw number for tool sizes bigger than 7 @@ -155,8 +155,7 @@ public: if (!(gParkFlags & PARK_FLAGS_NO_MONEY)) { // Draw raise cost amount - screenCoords = { window_water_widgets[WIDX_PREVIEW].midX() + windowPos.x, - window_water_widgets[WIDX_PREVIEW].bottom + windowPos.y + 5 }; + screenCoords = { widgets[WIDX_PREVIEW].midX() + windowPos.x, widgets[WIDX_PREVIEW].bottom + windowPos.y + 5 }; if (gWaterToolRaiseCost != MONEY64_UNDEFINED && gWaterToolRaiseCost != 0) { auto ft = Formatter(); @@ -175,6 +174,11 @@ public: } } + void OnResize() override + { + ResizeFrame(); + } + private: void InputSize() { diff --git a/src/openrct2-ui/windows/Window.h b/src/openrct2-ui/windows/Window.h index fbca14f94b..8922cfcd66 100644 --- a/src/openrct2-ui/windows/Window.h +++ b/src/openrct2-ui/windows/Window.h @@ -101,8 +101,8 @@ void WindowGuestListRefreshList(); WindowBase* WindowGuestListOpen(); WindowBase* WindowGuestListOpenWithFilter(GuestListFilterType type, int32_t index); WindowBase* WindowStaffFirePromptOpen(Peep* peep); -WindowBase* WindowScenarioselectOpen(scenarioselect_callback callback, bool titleEditor); -WindowBase* WindowScenarioselectOpen(std::function callback, bool titleEditor); +WindowBase* WindowScenarioselectOpen(scenarioselect_callback callback); +WindowBase* WindowScenarioselectOpen(std::function callback); WindowBase* WindowErrorOpen(StringId title, StringId message, const class Formatter& formatter); WindowBase* WindowErrorOpen(std::string_view title, std::string_view message); @@ -140,11 +140,15 @@ void WindowRideListRefreshList(WindowBase* w); WindowBase* WindowRideMainOpen(const Ride& ride); WindowBase* WindowRideOpenTrack(TileElement* tileElement); WindowBase* WindowRideOpenVehicle(Vehicle* vehicle); +void WindowRideInvalidateVehicle(const Vehicle& vehicle); +void WindowRidePaintResetVehicle(RideId rideIndex); void WindowRideMeasurementsDesignCancel(); // rct2: 0x00F635EE extern RideSelection _window_track_list_item; WindowBase* WindowTrackListOpen(RideSelection item); +void WindowTrackDesignListReloadTracks(); +void WindowTrackDesignListSetBeingUpdated(bool beingUpdated); void SetMapTooltip(Formatter& ft); const Formatter& GetMapTooltip(); diff --git a/src/openrct2/AssetPackManager.cpp b/src/openrct2/AssetPackManager.cpp index eb4b686d4b..e552a488ae 100644 --- a/src/openrct2/AssetPackManager.cpp +++ b/src/openrct2/AssetPackManager.cpp @@ -15,9 +15,9 @@ #include "config/Config.h" #include "core/Console.hpp" #include "core/FileSystem.hpp" +#include "core/Path.hpp" #include "core/String.hpp" #include "object/AudioSampleTable.h" -#include "platform/Platform.h" #include @@ -72,7 +72,7 @@ void AssetPackManager::Scan() Scan(openrct2Dir); auto userDirectory = fs::u8path(env->GetDirectoryPath(DIRBASE::USER, DIRID::ASSET_PACK)); - Platform::EnsureDirectoryExists(userDirectory.u8string()); + Path::CreateDirectory(userDirectory.u8string()); Scan(userDirectory); } diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 6a1a1f081a..367939c962 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -37,13 +37,6 @@ endif () set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "") SET_CHECK_CXX_FLAGS(${PROJECT_NAME}) -# GCC / Clang likes us to pass the -lstdc++fs flag to link C++17 filesystem implementation. -if (NOT MINGW AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") - if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - target_link_libraries(${PROJECT_NAME} stdc++fs) - endif() -endif() - if (NOT DISABLE_NETWORK OR NOT DISABLE_HTTP) if (WIN32) target_link_libraries(${PROJECT_NAME} bcrypt) diff --git a/src/openrct2/Cheats.cpp b/src/openrct2/Cheats.cpp index e9500a1893..34d4914683 100644 --- a/src/openrct2/Cheats.cpp +++ b/src/openrct2/Cheats.cpp @@ -85,7 +85,7 @@ void CheatsReset() gCheatsMakeAllDestructible = false; } -void CheatsSet(CheatType cheatType, int32_t param1 /* = 0*/, int32_t param2 /* = 0*/) +void CheatsSet(CheatType cheatType, int64_t param1 /* = 0*/, int64_t param2 /* = 0*/) { auto cheatSetAction = CheatSetAction(cheatType, param1, param2); GameActions::Execute(&cheatSetAction); diff --git a/src/openrct2/Cheats.h b/src/openrct2/Cheats.h index ad58eff911..ff6a3a599e 100644 --- a/src/openrct2/Cheats.h +++ b/src/openrct2/Cheats.h @@ -123,5 +123,5 @@ constexpr auto CHEATS_GIVE_GUESTS_MONEY = 1000.00_GBP; void CheatsReset(); const char* CheatsGetName(CheatType cheatType); -void CheatsSet(CheatType cheatType, int32_t param1 = 0, int32_t param2 = 0); +void CheatsSet(CheatType cheatType, int64_t param1 = 0, int64_t param2 = 0); void CheatsSerialise(class DataSerialiser& ds); diff --git a/src/openrct2/CommandLineSprite.cpp b/src/openrct2/CommandLineSprite.cpp index 6a01c3b10c..30b94954d4 100644 --- a/src/openrct2/CommandLineSprite.cpp +++ b/src/openrct2/CommandLineSprite.cpp @@ -15,12 +15,12 @@ #include "core/Imaging.h" #include "core/Json.hpp" #include "core/Path.hpp" +#include "core/String.hpp" #include "drawing/Drawing.h" #include "drawing/ImageImporter.h" #include "object/ObjectLimits.h" #include "object/ObjectManager.h" #include "object/ObjectRepository.h" -#include "platform/Platform.h" #include "util/Util.h" #include @@ -271,7 +271,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) if (argc == 0) return -1; - if (_strcmpi(argv[0], "details") == 0) + if (String::IEquals(argv[0], "details")) { if (argc < 2) { @@ -318,7 +318,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) return 1; } - if (_strcmpi(argv[0], "export") == 0) + if (String::IEquals(argv[0], "export")) { if (argc < 4) { @@ -352,7 +352,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) return 1; } - if (_strcmpi(argv[0], "exportall") == 0) + if (String::IEquals(argv[0], "exportall")) { if (argc < 3) { @@ -370,7 +370,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) return -1; } - if (!Platform::EnsureDirectoryExists(outputPath)) + if (!Path::CreateDirectory(outputPath)) { fprintf(stderr, "Unable to create directory.\n"); return -1; @@ -397,7 +397,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) return 1; } - if (_strcmpi(argv[0], "exportalldat") == 0) + if (String::IEquals(argv[0], "exportalldat")) { if (argc < 3) { @@ -430,7 +430,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) auto& objManager = context->GetObjectManager(); const auto* const metaObject = objManager.GetLoadedObject(objectType, entryIndex); - if (!Platform::EnsureDirectoryExists(outputPath)) + if (!Path::CreateDirectory(outputPath)) { fprintf(stderr, "Unable to create directory.\n"); return -1; @@ -458,7 +458,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) return 1; } - if (_strcmpi(argv[0], "create") == 0) + if (String::IEquals(argv[0], "create")) { if (argc < 2) { @@ -473,7 +473,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) return 1; } - if (_strcmpi(argv[0], "append") == 0) + if (String::IEquals(argv[0], "append")) { if (argc != 3 && argc != 5) { @@ -525,7 +525,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) return 1; } - if (_strcmpi(argv[0], "build") == 0) + if (String::IEquals(argv[0], "build")) { if (argc < 3) { @@ -613,7 +613,7 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc) return 1; } - if (_strcmpi(argv[0], "combine") == 0) + if (String::IEquals(argv[0], "combine")) { return CommandLineForSpriteCombine(argv, argc); } diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 70eaf2c83e..c1f566f367 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -574,7 +574,7 @@ namespace OpenRCT2 try { - if (String::Equals(Path::GetExtension(path), ".sea", true)) + if (String::IEquals(Path::GetExtension(path), ".sea")) { auto data = DecryptSea(fs::u8path(path)); auto ms = MemoryStream(data.data(), data.size(), MEMORY_ACCESS::READ); @@ -1112,12 +1112,12 @@ namespace OpenRCT2 { Tick(); - // Always run this at a fixed rate, Update can cause multiple ticks if the game is speed up. - WindowUpdateAll(); - _ticksAccumulator -= GAME_UPDATE_TIME_MS; } + ContextHandleInput(); + WindowUpdateAll(); + if (ShouldDraw()) { Draw(); @@ -1141,9 +1141,6 @@ namespace OpenRCT2 Tick(); - // Always run this at a fixed rate, Update can cause multiple ticks if the game is speed up. - WindowUpdateAll(); - _ticksAccumulator -= GAME_UPDATE_TIME_MS; // Get the next position of each sprite @@ -1151,6 +1148,9 @@ namespace OpenRCT2 tweener.PostTick(); } + ContextHandleInput(); + WindowUpdateAll(); + if (shouldDraw) { const float alpha = std::min(_ticksAccumulator / GAME_UPDATE_TIME_MS, 1.0f); @@ -1240,7 +1240,7 @@ namespace OpenRCT2 for (const auto& dirId : dirIds) { auto path = _env->GetDirectoryPath(dirBase, dirId); - if (!Platform::EnsureDirectoryExists(path.c_str())) + if (!Path::CreateDirectory(path)) LOG_ERROR("Unable to create directory '%s'.", path.c_str()); } } @@ -1274,14 +1274,10 @@ namespace OpenRCT2 auto dstDirectory = Path::GetDirectory(dst); // Create the directory if necessary - if (!Path::DirectoryExists(dstDirectory.c_str())) + if (!Path::CreateDirectory(dstDirectory)) { - Console::WriteLine("Creating directory '%s'", dstDirectory.c_str()); - if (!Platform::EnsureDirectoryExists(dstDirectory.c_str())) - { - Console::Error::WriteLine("Could not create directory %s.", dstDirectory.c_str()); - break; - } + Console::Error::WriteLine("Could not create directory %s.", dstDirectory.c_str()); + break; } // Only copy the file if it doesn't already exist diff --git a/src/openrct2/Editor.cpp b/src/openrct2/Editor.cpp index 734ac5914f..5d1e8072a9 100644 --- a/src/openrct2/Editor.cpp +++ b/src/openrct2/Editor.cpp @@ -21,6 +21,7 @@ #include "actions/ResultWithMessage.h" #include "audio/audio.h" #include "core/Path.hpp" +#include "core/String.hpp" #include "entity/EntityList.h" #include "entity/EntityRegistry.h" #include "entity/Guest.h" @@ -263,7 +264,7 @@ namespace Editor if (!loadSuccess) return false; - if (_stricmp(extension, ".sv4") == 0 || _stricmp(extension, ".sv6") == 0 || _stricmp(extension, ".sv7") == 0) + if (String::IEquals(extension, ".sv4") || String::IEquals(extension, ".sv6") || String::IEquals(extension, ".sv7") == 0) { loadedFromSave = true; } diff --git a/src/openrct2/EditorObjectSelectionSession.cpp b/src/openrct2/EditorObjectSelectionSession.cpp index 4cbd84ddc8..e00d02cfee 100644 --- a/src/openrct2/EditorObjectSelectionSession.cpp +++ b/src/openrct2/EditorObjectSelectionSession.cpp @@ -46,9 +46,7 @@ static void SelectDesignerObjects(); static void ReplaceSelectedWaterPalette(const ObjectRepositoryItem* item); /** - * Master objects are objects that are not - * optional / required dependants of an - * object. + * Master objects are objects that are not optional / required dependants of an object. */ static constexpr ResultWithMessage ObjectSelectionError(bool isMasterObject, StringId message) { @@ -179,7 +177,7 @@ void SetupInUseSelectionFlags() if (footpathEl->HasAddition()) { auto pathAdditionEntryIndex = footpathEl->GetAdditionEntryIndex(); - Editor::SetSelectedObject(ObjectType::PathBits, pathAdditionEntryIndex, ObjectSelectionFlags::InUse); + Editor::SetSelectedObject(ObjectType::PathAdditions, pathAdditionEntryIndex, ObjectSelectionFlags::InUse); } break; } diff --git a/src/openrct2/FileClassifier.cpp b/src/openrct2/FileClassifier.cpp index 7a36c865ed..2be3bdd2b1 100644 --- a/src/openrct2/FileClassifier.cpp +++ b/src/openrct2/FileClassifier.cpp @@ -197,25 +197,25 @@ static bool TryClassifyAsTD4_TD6(OpenRCT2::IStream* stream, ClassifiedFileInfo* FileExtension GetFileExtensionType(u8string_view path) { auto extension = Path::GetExtension(path); - if (String::Equals(extension, ".dat", true) || String::Equals(extension, ".pob", true)) + if (String::IEquals(extension, ".dat") || String::IEquals(extension, ".pob")) return FileExtension::DAT; - if (String::Equals(extension, ".sc4", true)) + if (String::IEquals(extension, ".sc4")) return FileExtension::SC4; - if (String::Equals(extension, ".sv4", true)) + if (String::IEquals(extension, ".sv4")) return FileExtension::SV4; - if (String::Equals(extension, ".td4", true)) + if (String::IEquals(extension, ".td4")) return FileExtension::TD4; - if (String::Equals(extension, ".sc6", true)) + if (String::IEquals(extension, ".sc6")) return FileExtension::SC6; - if (String::Equals(extension, ".sea", true)) + if (String::IEquals(extension, ".sea")) return FileExtension::SC6; - if (String::Equals(extension, ".sv6", true)) + if (String::IEquals(extension, ".sv6")) return FileExtension::SV6; - if (String::Equals(extension, ".sv7", true)) + if (String::IEquals(extension, ".sv7")) return FileExtension::SV6; - if (String::Equals(extension, ".td6", true)) + if (String::IEquals(extension, ".td6")) return FileExtension::TD6; - if (String::Equals(extension, ".park", true)) + if (String::IEquals(extension, ".park")) return FileExtension::PARK; return FileExtension::Unknown; } diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index 1c08e50f03..3743405a1b 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -495,7 +495,6 @@ void GameLoadInit() { intent = Intent(INTENT_ACTION_CLEAR_TILE_INSPECTOR_CLIPBOARD); ContextBroadcastIntent(&intent); - WindowUpdateAll(); } OpenRCT2::Audio::StopTitleMusic(); @@ -704,7 +703,7 @@ void GameAutosave() auto env = GetContext()->GetPlatformEnvironment(); auto autosaveDir = Path::Combine(env->GetDirectoryPath(DIRBASE::USER, subDirectory), u8"autosave"); - Platform::EnsureDirectoryExists(autosaveDir.c_str()); + Path::CreateDirectory(autosaveDir); auto path = Path::Combine(autosaveDir, timeName); auto backupFileName = u8string(u8"autosave") + fileExtension + u8".bak"; diff --git a/src/openrct2/GameState.cpp b/src/openrct2/GameState.cpp index e42246cc45..9a96c5cca0 100644 --- a/src/openrct2/GameState.cpp +++ b/src/openrct2/GameState.cpp @@ -22,6 +22,7 @@ #include "actions/GameAction.h" #include "config/Config.h" #include "entity/EntityRegistry.h" +#include "entity/EntityTweener.h" #include "entity/PatrolArea.h" #include "entity/Staff.h" #include "interface/Screenshot.h" @@ -94,6 +95,8 @@ void GameState::InitAll(const TileCoordsXY& mapSize) auto& scriptEngine = GetContext()->GetScriptEngine(); scriptEngine.ClearParkStorage(); #endif + + EntityTweener::Get().Reset(); } /** @@ -106,8 +109,6 @@ void GameState::Tick() { PROFILED_FUNCTION(); - gInUpdateCode = true; - // Normal game play will update only once every GAME_UPDATE_TIME_MS uint32_t numUpdates = 1; @@ -230,8 +231,6 @@ void GameState::Tick() gWindowMapFlashingFlags &= ~MapFlashingFlags::StaffListOpen; ContextUpdateMapTooltip(); - - ContextHandleInput(); } // Always perform autosave check, even when paused @@ -249,21 +248,13 @@ void GameState::Tick() } gDoSingleUpdate = false; - gInUpdateCode = false; } -void GameState::UpdateLogic(LogicTimings* timings) +void GameState::UpdateLogic() { PROFILED_FUNCTION(); - auto start_time = std::chrono::high_resolution_clock::now(); - - auto report_time = [timings, start_time](LogicTimePart part) { - if (timings != nullptr) - { - timings->TimingInfo[part][timings->CurrentIdx] = std::chrono::high_resolution_clock::now() - start_time; - } - }; + gInUpdateCode = true; gScreenAge++; if (gScreenAge == 0) @@ -272,7 +263,6 @@ void GameState::UpdateLogic(LogicTimings* timings) GetContext()->GetReplayManager()->Update(); NetworkUpdate(); - report_time(LogicTimePart::NetworkUpdate); if (NetworkGetMode() == NETWORK_MODE_SERVER) { @@ -289,6 +279,7 @@ void GameState::UpdateLogic(LogicTimings* timings) // Don't run past the server, this condition can happen during map changes. if (NetworkGetServerTick() == gCurrentTicks) { + gInUpdateCode = false; return; } @@ -315,51 +306,33 @@ void GameState::UpdateLogic(LogicTimings* timings) #endif _date.Update(); - report_time(LogicTimePart::Date); ScenarioUpdate(); - report_time(LogicTimePart::Scenario); ClimateUpdate(); - report_time(LogicTimePart::Climate); MapUpdateTiles(); - report_time(LogicTimePart::MapTiles); // Temporarily remove provisional paths to prevent peep from interacting with them MapRemoveProvisionalElements(); - report_time(LogicTimePart::MapStashProvisionalElements); MapUpdatePathWideFlags(); - report_time(LogicTimePart::MapPathWideFlags); PeepUpdateAll(); - report_time(LogicTimePart::Peep); MapRestoreProvisionalElements(); - report_time(LogicTimePart::MapRestoreProvisionalElements); VehicleUpdateAll(); - report_time(LogicTimePart::Vehicle); UpdateAllMiscEntities(); - report_time(LogicTimePart::Misc); Ride::UpdateAll(); - report_time(LogicTimePart::Ride); if (!(gScreenFlags & SCREEN_FLAGS_EDITOR)) { _park->Update(_date); } - report_time(LogicTimePart::Park); ResearchUpdate(); - report_time(LogicTimePart::Research); RideRatingsUpdateAll(); - report_time(LogicTimePart::RideRatings); RideMeasurementsUpdate(); - report_time(LogicTimePart::RideMeasurments); News::UpdateCurrentItem(); - report_time(LogicTimePart::News); MapAnimationInvalidateAll(); - report_time(LogicTimePart::MapAnimation); VehicleSoundsUpdate(); PeepUpdateCrowdNoise(); ClimateUpdateSound(); - report_time(LogicTimePart::Sounds); EditorOpenWindowsForCurrentStep(); // Update windows @@ -372,11 +345,9 @@ void GameState::UpdateLogic(LogicTimings* timings) } GameActions::ProcessQueue(); - report_time(LogicTimePart::GameActions); NetworkProcessPending(); NetworkFlush(); - report_time(LogicTimePart::NetworkFlush); gCurrentTicks++; gSavedAge++; @@ -389,13 +360,9 @@ void GameState::UpdateLogic(LogicTimings* timings) { hookEngine.Call(HOOK_TYPE::INTERVAL_DAY, true); } - report_time(LogicTimePart::Scripts); #endif - if (timings != nullptr) - { - timings->CurrentIdx = (timings->CurrentIdx + 1) % LOGIC_UPDATE_MEASUREMENTS_COUNT; - } + gInUpdateCode = false; } void GameState::CreateStateSnapshot() diff --git a/src/openrct2/GameState.h b/src/openrct2/GameState.h index 3cc2d29b40..7ac9da61a2 100644 --- a/src/openrct2/GameState.h +++ b/src/openrct2/GameState.h @@ -21,46 +21,6 @@ namespace OpenRCT2 { class Park; - // Information regarding various pieces of logic update - enum class LogicTimePart - { - NetworkUpdate, - Date, - Scenario, - Climate, - MapTiles, - MapStashProvisionalElements, - MapPathWideFlags, - Peep, - MapRestoreProvisionalElements, - Vehicle, - Misc, - Ride, - Park, - Research, - RideRatings, - RideMeasurments, - News, - MapAnimation, - Sounds, - GameActions, - NetworkFlush, - Scripts, - }; - - // ~6.5s at 40Hz - constexpr size_t LOGIC_UPDATE_MEASUREMENTS_COUNT = 256; - - // In order not to cause allocations, collect multiple samples into single pre-allocated struct - using LogicTimingInfo = std::unordered_map< - LogicTimePart, std::array, LOGIC_UPDATE_MEASUREMENTS_COUNT>>; - - struct LogicTimings - { - LogicTimingInfo TimingInfo; - size_t CurrentIdx{}; - }; - /** * Class to update the state of the map and park. */ @@ -85,7 +45,7 @@ namespace OpenRCT2 void InitAll(const TileCoordsXY& mapSize); void Tick(); - void UpdateLogic(LogicTimings* timings = nullptr); + void UpdateLogic(); void SetDate(Date newDate); void ResetDate(); diff --git a/src/openrct2/Input.cpp b/src/openrct2/Input.cpp index 9dce973aa2..5de5422b4c 100644 --- a/src/openrct2/Input.cpp +++ b/src/openrct2/Input.cpp @@ -10,6 +10,7 @@ #include "Input.h" #include "Context.h" +#include "Game.h" InputState _inputState; uint8_t _inputFlags; @@ -18,7 +19,7 @@ uint8_t gInputPlaceObjectModifier; WidgetRef gHoverWidget; WidgetRef gPressedWidget; -uint16_t _tooltipNotShownTicks; +uint32_t _tooltipNotShownTimeout; Tool gCurrentToolId; WidgetRef gCurrentToolWidget; @@ -75,7 +76,7 @@ InputState InputGetState() void ResetTooltipNotShown() { - _tooltipNotShownTicks = 0; + _tooltipNotShownTimeout = gCurrentRealTimeTicks + 50; } void InputResetPlaceObjModifier() diff --git a/src/openrct2/Input.h b/src/openrct2/Input.h index ccd5134bb4..248c9f1f49 100644 --- a/src/openrct2/Input.h +++ b/src/openrct2/Input.h @@ -80,7 +80,7 @@ extern ScreenCoordsXY gInputDragLast; extern WidgetRef gHoverWidget; extern WidgetRef gPressedWidget; -extern uint16_t gTooltipTimeout; +extern uint32_t gTooltipCloseTimeout; extern WidgetRef gTooltipWidget; extern ScreenCoordsXY gTooltipCursor; @@ -90,7 +90,7 @@ extern WidgetRef gCurrentToolWidget; // TODO: Move to openrct2-ui and make static again extern InputState _inputState; extern uint8_t _inputFlags; -extern uint16_t _tooltipNotShownTicks; +extern uint32_t _tooltipNotShownTimeout; void InputWindowPositionBegin(WindowBase& w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords); diff --git a/src/openrct2/Limits.h b/src/openrct2/Limits.h index d3bc948b4e..37a52be30a 100644 --- a/src/openrct2/Limits.h +++ b/src/openrct2/Limits.h @@ -12,21 +12,21 @@ namespace OpenRCT2::Limits { - constexpr const uint16_t MaxRidesInPark = 1000; - constexpr const uint16_t MaxStationsPerRide = 255; - constexpr const uint8_t CustomerHistorySize = RCT12::Limits::CustomerHistorySize; - constexpr const uint16_t MaxGolfHoles = RCT12::Limits::MaxGolfHoles; - constexpr const uint16_t MaxHelices = RCT12::Limits::MaxHelices; - constexpr const uint16_t MaxInversions = RCT12::Limits::MaxInversions; - constexpr const uint16_t MaxTrainsPerRide = 255; - constexpr const uint16_t MaxCarsPerTrain = 255; + constexpr uint16_t MaxRidesInPark = 1000; + constexpr uint16_t MaxStationsPerRide = 255; + constexpr uint8_t CustomerHistorySize = RCT12::Limits::CustomerHistorySize; + constexpr uint16_t MaxGolfHoles = RCT12::Limits::MaxGolfHoles; + constexpr uint16_t MaxHelices = RCT12::Limits::MaxHelices; + constexpr uint16_t MaxInversions = RCT12::Limits::MaxInversions; + constexpr uint16_t MaxTrainsPerRide = 255; + constexpr uint16_t MaxCarsPerTrain = 255; constexpr const uint16_t MaxVehicleColours = MaxTrainsPerRide; // this should really be MaxTrainsPerRide * MaxCarsPerTrain - constexpr const uint8_t MaxCircuitsPerRide = 20; - constexpr const uint8_t MaxAwards = RCT12::Limits::MaxAwards; - constexpr const uint8_t NumColourSchemes = RCT12::Limits::NumColourSchemes; - constexpr const uint8_t DowntimeHistorySize = RCT2::Limits::DowntimeHistorySize; - constexpr const uint16_t MaxPeepSpawns = 256; - constexpr const uint16_t MaxParkEntrances = 256; - constexpr const uint8_t MaxWaitingTime = RCT12::Limits::MaxWaitingTime; - constexpr const uint8_t CheatsMaxOperatingLimit = 255; + constexpr uint8_t MaxCircuitsPerRide = 20; + constexpr uint8_t MaxAwards = RCT12::Limits::MaxAwards; + constexpr uint8_t NumColourSchemes = RCT12::Limits::NumColourSchemes; + constexpr uint8_t DowntimeHistorySize = RCT2::Limits::DowntimeHistorySize; + constexpr uint16_t MaxPeepSpawns = 256; + constexpr uint16_t MaxParkEntrances = 256; + constexpr uint8_t MaxWaitingTime = RCT12::Limits::MaxWaitingTime; + constexpr uint8_t CheatsMaxOperatingLimit = 255; } // namespace OpenRCT2::Limits diff --git a/src/openrct2/ParkImporter.cpp b/src/openrct2/ParkImporter.cpp index d5719ceeea..91aba4b4ea 100644 --- a/src/openrct2/ParkImporter.cpp +++ b/src/openrct2/ParkImporter.cpp @@ -41,17 +41,16 @@ namespace ParkImporter bool ExtensionIsOpenRCT2ParkFile(std::string_view extension) { - return String::Equals(extension, ".park", true); + return String::IEquals(extension, ".park"); } bool ExtensionIsRCT1(std::string_view extension) { - return String::Equals(extension, ".sc4", true) || String::Equals(extension, ".sv4", true); + return String::IEquals(extension, ".sc4") || String::IEquals(extension, ".sv4"); } bool ExtensionIsScenario(std::string_view extension) { - return String::Equals(extension, ".sc4", true) || String::Equals(extension, ".sc6", true) - || String::Equals(extension, ".sea", true); + return String::IEquals(extension, ".sc4") || String::IEquals(extension, ".sc6") || String::IEquals(extension, ".sea"); } } // namespace ParkImporter diff --git a/src/openrct2/TrackImporter.cpp b/src/openrct2/TrackImporter.cpp index 3b0fc28a6e..3a3e02c8f5 100644 --- a/src/openrct2/TrackImporter.cpp +++ b/src/openrct2/TrackImporter.cpp @@ -33,6 +33,6 @@ namespace TrackImporter bool ExtensionIsRCT1(const std::string& extension) { - return String::Equals(extension, ".td4", true); + return String::IEquals(extension, ".td4"); } } // namespace TrackImporter diff --git a/src/openrct2/actions/BannerPlaceAction.cpp b/src/openrct2/actions/BannerPlaceAction.cpp index d0d7a8d53a..f81d598993 100644 --- a/src/openrct2/actions/BannerPlaceAction.cpp +++ b/src/openrct2/actions/BannerPlaceAction.cpp @@ -99,7 +99,8 @@ GameActions::Result BannerPlaceAction::Query() const if (bannerEntry == nullptr) { LOG_ERROR("Invalid banner object type. bannerType = ", _bannerType); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } res.Cost = bannerEntry->price; @@ -126,7 +127,8 @@ GameActions::Result BannerPlaceAction::Execute() const if (bannerEntry == nullptr) { LOG_ERROR("Invalid banner object type. bannerType = ", _bannerType); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } auto banner = CreateBanner(); diff --git a/src/openrct2/actions/CheatSetAction.cpp b/src/openrct2/actions/CheatSetAction.cpp index 259615b1c0..371b4dff4f 100644 --- a/src/openrct2/actions/CheatSetAction.cpp +++ b/src/openrct2/actions/CheatSetAction.cpp @@ -21,7 +21,7 @@ #include "../localisation/Localisation.h" #include "../localisation/StringIds.h" #include "../network/network.h" -#include "../object/FootpathItemEntry.h" +#include "../object/PathAdditionEntry.h" #include "../ride/Ride.h" #include "../ride/Vehicle.h" #include "../scenario/Scenario.h" @@ -39,9 +39,9 @@ #include "ParkSetLoanAction.h" #include "ParkSetParameterAction.h" -using ParametersRange = std::pair, std::pair>; +using ParametersRange = std::pair, std::pair>; -CheatSetAction::CheatSetAction(CheatType cheatType, int32_t param1, int32_t param2) +CheatSetAction::CheatSetAction(CheatType cheatType, int64_t param1, int64_t param2) : _cheatType(static_cast(cheatType)) , _param1(param1) , _param2(param2) @@ -70,18 +70,18 @@ GameActions::Result CheatSetAction::Query() const { if (static_cast(_cheatType) >= static_cast(CheatType::Count)) { - GameActions::Result(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE); + return GameActions::Result(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE); } ParametersRange validRange = GetParameterRange(static_cast(_cheatType.id)); if (_param1 < validRange.first.first || _param1 > validRange.first.second) { - GameActions::Result(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE); + return GameActions::Result(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE); } if (_param2 < validRange.second.first || _param2 > validRange.second.second) { - GameActions::Result(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE); + return GameActions::Result(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE); } return GameActions::Result(); @@ -315,12 +315,20 @@ ParametersRange CheatSetAction::GetParameterRange(CheatType cheatType) const [[fallthrough]]; case CheatType::AllowRegularPathAsQueue: [[fallthrough]]; + case CheatType::UnlockAllPrices: + [[fallthrough]]; + case CheatType::MakeDestructible: + [[fallthrough]]; + case CheatType::AllowSpecialColourSchemes: + [[fallthrough]]; + case CheatType::AllowTrackPlaceInvalidHeights: + [[fallthrough]]; case CheatType::OpenClosePark: return { { 0, 1 }, { 0, 0 } }; case CheatType::AddMoney: [[fallthrough]]; case CheatType::SetMoney: - return { { std::numeric_limits::min(), std::numeric_limits::max() }, { 0, 0 } }; + return { { std::numeric_limits::min(), std::numeric_limits::max() }, { 0, 0 } }; case CheatType::SetGuestParameter: switch (_param1) { @@ -357,12 +365,45 @@ ParametersRange CheatSetAction::GetParameterRange(CheatType cheatType) const case CheatType::ForceWeather: return { { 0, EnumValue(WeatherType::Count) - 1 }, { 0, 0 } }; case CheatType::SetForcedParkRating: - return { { 0, 999 }, { 0, 0 } }; + return { { -1, 999 }, { 0, 0 } }; case CheatType::CreateDucks: return { { 0, 100 }, { 0, 0 } }; - default: + case CheatType::RemoveDucks: + [[fallthrough]]; + case CheatType::ClearLoan: + [[fallthrough]]; + case CheatType::RemoveAllGuests: + [[fallthrough]]; + case CheatType::OwnAllLand: + [[fallthrough]]; + case CheatType::WinScenario: + [[fallthrough]]; + case CheatType::HaveFun: + [[fallthrough]]; + case CheatType::FixVandalism: + [[fallthrough]]; + case CheatType::WaterPlants: + [[fallthrough]]; + case CheatType::FixRides: + [[fallthrough]]; + case CheatType::RenewRides: + [[fallthrough]]; + case CheatType::TenMinuteInspections: + [[fallthrough]]; + case CheatType::ResetCrashStatus: + [[fallthrough]]; + case CheatType::NoCapOnQueueLengthDummy: + [[fallthrough]]; + case CheatType::RemoveLitter: return { { 0, 0 }, { 0, 0 } }; + case CheatType::Count: + break; } + + // Should be unreachable unless new cheats are added, still have to return something + // to avoid compiler warnings. + Guard::Assert(false, "Missing validation parameter for cheat: %d", _cheatType.id); + return { { 0, 0 }, { 0, 0 } }; } void CheatSetAction::SetGrassLength(int32_t length) const @@ -439,8 +480,8 @@ void CheatSetAction::RemoveLitter() const if (!path->HasAddition()) continue; - auto* pathBitEntry = path->GetAdditionEntry(); - if (pathBitEntry != nullptr && pathBitEntry->flags & PATH_BIT_FLAG_IS_BIN) + auto* pathAdditionEntry = path->GetAdditionEntry(); + if (pathAdditionEntry != nullptr && pathAdditionEntry->flags & PATH_ADDITION_FLAG_IS_BIN) path->SetAdditionStatus(0xFF); } while (TileElementIteratorNext(&it)); diff --git a/src/openrct2/actions/CheatSetAction.h b/src/openrct2/actions/CheatSetAction.h index 5a5a3b35db..fb94cbdaab 100644 --- a/src/openrct2/actions/CheatSetAction.h +++ b/src/openrct2/actions/CheatSetAction.h @@ -13,16 +13,16 @@ class CheatSetAction final : public GameActionBase { - using ParametersRange = std::pair, std::pair>; + using ParametersRange = std::pair, std::pair>; private: NetworkCheatType_t _cheatType{ EnumValue(CheatType::Count) }; - int32_t _param1{}; - int32_t _param2{}; + int64_t _param1{}; + int64_t _param2{}; public: CheatSetAction() = default; - CheatSetAction(CheatType cheatType, int32_t param1 = 0, int32_t param2 = 0); + CheatSetAction(CheatType cheatType, int64_t param1 = 0, int64_t param2 = 0); void AcceptParameters(GameActionParameterVisitor& visitor) override; diff --git a/src/openrct2/actions/CustomAction.cpp b/src/openrct2/actions/CustomAction.cpp index b573f7c45c..61c800ec56 100644 --- a/src/openrct2/actions/CustomAction.cpp +++ b/src/openrct2/actions/CustomAction.cpp @@ -13,9 +13,10 @@ # include "../Context.h" # include "../scripting/ScriptEngine.h" -CustomAction::CustomAction(const std::string& id, const std::string& json) +CustomAction::CustomAction(const std::string& id, const std::string& json, const std::string& pluginName) : _id(id) , _json(json) + , _pluginName(pluginName) { } @@ -29,6 +30,11 @@ std::string CustomAction::GetJson() const return _json; } +std::string CustomAction::GetPluginName() const +{ + return _pluginName; +} + uint16_t CustomAction::GetActionFlags() const { return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused; diff --git a/src/openrct2/actions/CustomAction.h b/src/openrct2/actions/CustomAction.h index 94ed5877a3..26ebe971fe 100644 --- a/src/openrct2/actions/CustomAction.h +++ b/src/openrct2/actions/CustomAction.h @@ -18,13 +18,15 @@ class CustomAction final : public GameActionBase private: std::string _id; std::string _json; + std::string _pluginName; public: CustomAction() = default; - CustomAction(const std::string& id, const std::string& json); + CustomAction(const std::string& id, const std::string& json, const std::string& pluginName); std::string GetId() const; std::string GetJson() const; + std::string GetPluginName() const; uint16_t GetActionFlags() const override; diff --git a/src/openrct2/actions/FootpathAdditionPlaceAction.cpp b/src/openrct2/actions/FootpathAdditionPlaceAction.cpp index d22eb3a30a..1664456bf0 100644 --- a/src/openrct2/actions/FootpathAdditionPlaceAction.cpp +++ b/src/openrct2/actions/FootpathAdditionPlaceAction.cpp @@ -15,8 +15,8 @@ #include "../interface/Window.h" #include "../localisation/StringIds.h" #include "../management/Finance.h" -#include "../object/FootpathItemEntry.h" #include "../object/ObjectEntryManager.h" +#include "../object/PathAdditionEntry.h" #include "../world/Footpath.h" #include "../world/Location.hpp" #include "../world/Park.h" @@ -25,14 +25,14 @@ FootpathAdditionPlaceAction::FootpathAdditionPlaceAction(const CoordsXYZ& loc, ObjectEntryIndex pathItemType) : _loc(loc) - , _pathItemType(pathItemType) + , _entryIndex(pathItemType) { } void FootpathAdditionPlaceAction::AcceptParameters(GameActionParameterVisitor& visitor) { visitor.Visit(_loc); - visitor.Visit("object", _pathItemType); + visitor.Visit("object", _entryIndex); } uint16_t FootpathAdditionPlaceAction::GetActionFlags() const @@ -44,7 +44,7 @@ void FootpathAdditionPlaceAction::Serialise(DataSerialiser& stream) { GameAction::Serialise(stream); - stream << DS_TAG(_loc) << DS_TAG(_pathItemType); + stream << DS_TAG(_loc) << DS_TAG(_entryIndex); } GameActions::Result FootpathAdditionPlaceAction::Query() const @@ -88,46 +88,45 @@ GameActions::Result FootpathAdditionPlaceAction::Query() const } // No change - if (!(GetFlags() & GAME_COMMAND_FLAG_GHOST) && pathElement->GetAddition() == _pathItemType && !(pathElement->IsBroken())) + if (!(GetFlags() & GAME_COMMAND_FLAG_GHOST) && pathElement->GetAdditionEntryIndex() == _entryIndex + && !(pathElement->IsBroken())) { return res; } - if (_pathItemType != 0) + auto* pathAdditionEntry = OpenRCT2::ObjectManager::GetObjectEntry(_entryIndex); + if (pathAdditionEntry == nullptr) { - auto* pathBitEntry = OpenRCT2::ObjectManager::GetObjectEntry(_pathItemType - 1); - if (pathBitEntry == nullptr) - { - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); - } - uint16_t sceneryFlags = pathBitEntry->flags; - - if ((sceneryFlags & PATH_BIT_FLAG_DONT_ALLOW_ON_SLOPE) && pathElement->IsSloped()) - { - return GameActions::Result( - GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CANT_BUILD_THIS_ON_SLOPED_FOOTPATH); - } - - if ((sceneryFlags & PATH_BIT_FLAG_DONT_ALLOW_ON_QUEUE) && pathElement->IsQueue()) - { - return GameActions::Result( - GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CANNOT_PLACE_THESE_ON_QUEUE_LINE_AREA); - } - - if (!(sceneryFlags & (PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER | PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW)) - && (pathElement->GetEdges()) == 0x0F) - { - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); - } - - if ((sceneryFlags & PATH_BIT_FLAG_IS_QUEUE_SCREEN) && !pathElement->IsQueue()) - { - return GameActions::Result( - GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CAN_ONLY_PLACE_THESE_ON_QUEUE_AREA); - } - - res.Cost = pathBitEntry->price; + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } + uint16_t sceneryFlags = pathAdditionEntry->flags; + + if ((sceneryFlags & PATH_ADDITION_FLAG_DONT_ALLOW_ON_SLOPE) && pathElement->IsSloped()) + { + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CANT_BUILD_THIS_ON_SLOPED_FOOTPATH); + } + + if ((sceneryFlags & PATH_ADDITION_FLAG_DONT_ALLOW_ON_QUEUE) && pathElement->IsQueue()) + { + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CANNOT_PLACE_THESE_ON_QUEUE_LINE_AREA); + } + + if (!(sceneryFlags & (PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER | PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW)) + && (pathElement->GetEdges()) == 0x0F) + { + return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); + } + + if ((sceneryFlags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN) && !pathElement->IsQueue()) + { + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CAN_ONLY_PLACE_THESE_ON_QUEUE_AREA); + } + + res.Cost = pathAdditionEntry->price; // Should place a ghost? if (GetFlags() & GAME_COMMAND_FLAG_GHOST) @@ -157,23 +156,21 @@ GameActions::Result FootpathAdditionPlaceAction::Execute() const } // No change - if (!(GetFlags() & GAME_COMMAND_FLAG_GHOST) && pathElement->GetAddition() == _pathItemType && !(pathElement->IsBroken()) - && !pathElement->AdditionIsGhost()) + if (!(GetFlags() & GAME_COMMAND_FLAG_GHOST) && pathElement->GetAdditionEntryIndex() == _entryIndex + && !(pathElement->IsBroken()) && !pathElement->AdditionIsGhost()) { return res; } - if (_pathItemType != 0) + auto* pathAdditionEntry = OpenRCT2::ObjectManager::GetObjectEntry(_entryIndex); + if (pathAdditionEntry == nullptr) { - auto* pathBitEntry = OpenRCT2::ObjectManager::GetObjectEntry(_pathItemType - 1); - if (pathBitEntry == nullptr) - { - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); - } - - res.Cost = pathBitEntry->price; + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } + res.Cost = pathAdditionEntry->price; + if (GetFlags() & GAME_COMMAND_FLAG_GHOST) { pathElement->SetAdditionIsGhost(true); @@ -181,23 +178,14 @@ GameActions::Result FootpathAdditionPlaceAction::Execute() const else { FootpathInterruptPeeps(_loc); - } - - if ((_pathItemType != 0 && !(GetFlags() & GAME_COMMAND_FLAG_GHOST)) - || (_pathItemType == 0 && pathElement->AdditionIsGhost())) - { pathElement->SetAdditionIsGhost(false); } - pathElement->SetAddition(_pathItemType); + pathElement->SetAdditionEntryIndex(_entryIndex); pathElement->SetIsBroken(false); - if (_pathItemType != 0) + if (pathAdditionEntry->flags & PATH_ADDITION_FLAG_IS_BIN) { - auto* pathBitEntry = OpenRCT2::ObjectManager::GetObjectEntry(_pathItemType - 1); - if (pathBitEntry != nullptr && pathBitEntry->flags & PATH_BIT_FLAG_IS_BIN) - { - pathElement->SetAdditionStatus(255); - } + pathElement->SetAdditionStatus(255); } MapInvalidateTileFull(_loc); return res; diff --git a/src/openrct2/actions/FootpathAdditionPlaceAction.h b/src/openrct2/actions/FootpathAdditionPlaceAction.h index eb3f5dcde3..bb1631e3aa 100644 --- a/src/openrct2/actions/FootpathAdditionPlaceAction.h +++ b/src/openrct2/actions/FootpathAdditionPlaceAction.h @@ -15,7 +15,7 @@ class FootpathAdditionPlaceAction final : public GameActionBaseAsPath(); - + auto* pathElement = MapGetFootpathElement(_loc); if (!(GetFlags() & GAME_COMMAND_FLAG_GHOST)) { FootpathInterruptPeeps(_loc); diff --git a/src/openrct2/actions/FootpathPlaceAction.cpp b/src/openrct2/actions/FootpathPlaceAction.cpp index 93f7f319c4..85e3943825 100644 --- a/src/openrct2/actions/FootpathPlaceAction.cpp +++ b/src/openrct2/actions/FootpathPlaceAction.cpp @@ -15,7 +15,7 @@ #include "../interface/Window.h" #include "../localisation/StringIds.h" #include "../management/Finance.h" -#include "../object/FootpathItemEntry.h" +#include "../object/PathAdditionEntry.h" #include "../ride/RideConstruction.h" #include "../world/ConstructionClearance.h" #include "../world/Footpath.h" @@ -244,7 +244,7 @@ GameActions::Result FootpathPlaceAction::ElementUpdateExecute(PathElement* pathE if (_constructFlags & PathConstructFlag::IsQueue) { // remove any addition that isn't a TV or a lamp - if ((elem->flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN) == 0 && (elem->flags & PATH_BIT_FLAG_LAMP) == 0) + if ((elem->flags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN) == 0 && (elem->flags & PATH_ADDITION_FLAG_LAMP) == 0) { pathElement->SetIsBroken(false); pathElement->SetAddition(0); @@ -253,7 +253,7 @@ GameActions::Result FootpathPlaceAction::ElementUpdateExecute(PathElement* pathE else { // remove all TVs - if ((elem->flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN) != 0) + if ((elem->flags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN) != 0) { pathElement->SetIsBroken(false); pathElement->SetAddition(0); @@ -493,13 +493,12 @@ void FootpathPlaceAction::RemoveIntersectingWalls(PathElement* pathElement) cons WallRemoveIntersectingWalls({ _loc, z, z + (6 * COORDS_Z_STEP) }, DirectionReverse(direction)); WallRemoveIntersectingWalls({ _loc, z, z + (6 * COORDS_Z_STEP) }, direction); // Removing walls may have made the pointer invalid, so find it again - auto tileElement = MapGetFootpathElement(CoordsXYZ(_loc, z)); - if (tileElement == nullptr) + pathElement = MapGetFootpathElement(CoordsXYZ(_loc, z)); + if (pathElement == nullptr) { LOG_ERROR("Something went wrong. Could not refind footpath."); return; } - pathElement = tileElement->AsPath(); } if (!(GetFlags() & GAME_COMMAND_FLAG_TRACK_DESIGN)) diff --git a/src/openrct2/actions/FootpathRemoveAction.cpp b/src/openrct2/actions/FootpathRemoveAction.cpp index bb8cada8eb..47cf11d79f 100644 --- a/src/openrct2/actions/FootpathRemoveAction.cpp +++ b/src/openrct2/actions/FootpathRemoveAction.cpp @@ -125,7 +125,8 @@ TileElement* FootpathRemoveAction::GetFootpathElement() const { bool getGhostPath = GetFlags() & GAME_COMMAND_FLAG_GHOST; - TileElement* tileElement = MapGetFootpathElement(_loc); + // FIXME: This is a hack to get the footpath element. It should be done in a better way. + TileElement* tileElement = MapGetFootpathElement(_loc)->as(); TileElement* footpathElement = nullptr; if (tileElement != nullptr) { diff --git a/src/openrct2/actions/GameAction.cpp b/src/openrct2/actions/GameAction.cpp index c4cda77ac6..637a61520f 100644 --- a/src/openrct2/actions/GameAction.cpp +++ b/src/openrct2/actions/GameAction.cpp @@ -334,10 +334,11 @@ namespace GameActions return result; } } - else if (NetworkGetMode() == NETWORK_MODE_SERVER) + else if (NetworkGetMode() == NETWORK_MODE_SERVER || !gInUpdateCode) { // If player is the server it would execute right away as where clients execute the commands // at the beginning of the frame, so we have to put them into the queue. + // This is also the case when its executed from the UI update. if (!(actionFlags & GameActions::Flags::ClientOnly) && !(flags & GAME_COMMAND_FLAG_NETWORKED)) { LOG_VERBOSE("[%s] GameAction::Execute %s (Queue)", GetRealm(), action->GetName()); diff --git a/src/openrct2/actions/GameActionResult.h b/src/openrct2/actions/GameActionResult.h index ae64d34eda..4cf49a6326 100644 --- a/src/openrct2/actions/GameActionResult.h +++ b/src/openrct2/actions/GameActionResult.h @@ -49,12 +49,6 @@ namespace GameActions Unknown = std::numeric_limits>::max(), }; -#ifdef __WARN_SUGGEST_FINAL_METHODS__ -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wsuggest-final-methods" -# pragma GCC diagnostic ignored "-Wsuggest-final-types" -#endif - /** * Represents the result of a game action query or execution. */ @@ -109,8 +103,4 @@ namespace GameActions } }; -#ifdef __WARN_SUGGEST_FINAL_METHODS__ -# pragma GCC diagnostic pop -#endif - } // namespace GameActions diff --git a/src/openrct2/actions/LandLowerAction.cpp b/src/openrct2/actions/LandLowerAction.cpp index 4c0e7c1ec0..b8dab1c564 100644 --- a/src/openrct2/actions/LandLowerAction.cpp +++ b/src/openrct2/actions/LandLowerAction.cpp @@ -23,6 +23,7 @@ #include "../world/Park.h" #include "../world/Scenery.h" #include "../world/Surface.h" +#include "../world/SurfaceData.h" LandLowerAction::LandLowerAction(const CoordsXY& coords, MapRange range, uint8_t selectionType) : _coords(coords) @@ -112,7 +113,7 @@ GameActions::Result LandLowerAction::QueryExecute(bool isExecuting) const height = surfaceElement->BaseHeight; uint8_t currentSlope = surfaceElement->GetSlope(); - uint8_t newSlope = tile_element_lower_styles[tableRow][currentSlope]; + uint8_t newSlope = LowerSurfaceCornerFlags(tableRow, currentSlope); if (newSlope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) height -= 2; diff --git a/src/openrct2/actions/LandRaiseAction.cpp b/src/openrct2/actions/LandRaiseAction.cpp index 2fdd40e293..a07d3323d2 100644 --- a/src/openrct2/actions/LandRaiseAction.cpp +++ b/src/openrct2/actions/LandRaiseAction.cpp @@ -24,6 +24,7 @@ #include "../world/Park.h" #include "../world/Scenery.h" #include "../world/Surface.h" +#include "../world/SurfaceData.h" LandRaiseAction::LandRaiseAction(const CoordsXY& coords, MapRange range, uint8_t selectionType) : _coords(coords) @@ -108,7 +109,7 @@ GameActions::Result LandRaiseAction::QueryExecute(bool isExecuting) const continue; uint8_t currentSlope = surfaceElement->GetSlope(); - uint8_t newSlope = tile_element_raise_styles[tableRow][currentSlope]; + uint8_t newSlope = RaiseSurfaceCornerFlags(tableRow, currentSlope); if (newSlope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) { if (height + 2 > UINT8_MAX) diff --git a/src/openrct2/actions/LandSetHeightAction.cpp b/src/openrct2/actions/LandSetHeightAction.cpp index 54f79054a2..63bdb6db0d 100644 --- a/src/openrct2/actions/LandSetHeightAction.cpp +++ b/src/openrct2/actions/LandSetHeightAction.cpp @@ -177,13 +177,7 @@ GameActions::Result LandSetHeightAction::Execute() const StringId LandSetHeightAction::CheckParameters() const { - if (!LocationValid(_coords)) - { - return STR_OFF_EDGE_OF_MAP; - } - - auto mapSizeMax = GetMapSizeMaxXY(); - if (_coords.x > mapSizeMax.x || _coords.y > mapSizeMax.y) + if (!LocationValid(_coords) || MapIsEdge(_coords)) { return STR_OFF_EDGE_OF_MAP; } diff --git a/src/openrct2/actions/LandSmoothAction.cpp b/src/openrct2/actions/LandSmoothAction.cpp index bc14870ff5..5d03033a37 100644 --- a/src/openrct2/actions/LandSmoothAction.cpp +++ b/src/openrct2/actions/LandSmoothAction.cpp @@ -24,6 +24,7 @@ #include "../world/Park.h" #include "../world/Scenery.h" #include "../world/Surface.h" +#include "../world/SurfaceData.h" LandSmoothAction::LandSmoothAction(const CoordsXY& coords, MapRange range, uint8_t selectionType, bool isLowering) : _coords(coords) @@ -70,7 +71,7 @@ GameActions::Result LandSmoothAction::SmoothLandTile( int32_t slope = surfaceElement->GetSlope(); if (_isLowering) { - slope = tile_element_lower_styles[direction][slope]; + slope = LowerSurfaceCornerFlags(direction, slope); if (slope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) { targetBaseZ -= 2; @@ -79,7 +80,7 @@ GameActions::Result LandSmoothAction::SmoothLandTile( } else { - slope = tile_element_raise_styles[direction][slope]; + slope = RaiseSurfaceCornerFlags(direction, slope); if (slope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) { targetBaseZ += 2; @@ -184,7 +185,7 @@ money64 LandSmoothAction::SmoothLandRowByEdge( { if (shouldContinue & 0x4) { - slope = tile_element_lower_styles[direction1][slope]; + slope = LowerSurfaceCornerFlags(direction1, slope); if (slope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) { targetBaseZ -= 2; @@ -195,7 +196,7 @@ money64 LandSmoothAction::SmoothLandRowByEdge( && MapGetCornerHeight(surfaceElement->BaseHeight, oldSlope, direction2) == MapGetCornerHeight(targetBaseZ, slope, direction2)) { - slope = tile_element_lower_styles[direction2][slope]; + slope = LowerSurfaceCornerFlags(direction2, slope); if (slope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) { targetBaseZ -= 2; @@ -207,7 +208,7 @@ money64 LandSmoothAction::SmoothLandRowByEdge( { if (shouldContinue & 0x4) { - slope = tile_element_raise_styles[direction1][slope]; + slope = RaiseSurfaceCornerFlags(direction1, slope); if (slope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) { targetBaseZ += 2; @@ -218,7 +219,7 @@ money64 LandSmoothAction::SmoothLandRowByEdge( && MapGetCornerHeight(surfaceElement->BaseHeight, oldSlope, direction2) == MapGetCornerHeight(targetBaseZ, slope, direction2)) { - slope = tile_element_raise_styles[direction2][slope]; + slope = RaiseSurfaceCornerFlags(direction2, slope); if (slope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) { targetBaseZ += 2; @@ -448,11 +449,11 @@ GameActions::Result LandSmoothAction::SmoothLand(bool isExecuting) const if (raiseLand) { - newSlope = tile_element_raise_styles[selectionType][newSlope]; + newSlope = RaiseSurfaceCornerFlags(selectionType, newSlope); } else { - newSlope = tile_element_lower_styles[selectionType][newSlope]; + newSlope = LowerSurfaceCornerFlags(selectionType, newSlope); } if (newSlope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT) @@ -542,8 +543,8 @@ GameActions::Result LandSmoothAction::SmoothLand(bool isExecuting) const uint8_t newBaseZ = surfaceElement->BaseHeight; uint8_t oldSlope = surfaceElement->GetSlope(); int32_t rowIndex = selectionType - (MAP_SELECT_TYPE_EDGE_0 - MAP_SELECT_TYPE_FULL - 1); - uint8_t newSlope = raiseLand ? tile_element_raise_styles[rowIndex][oldSlope] - : tile_element_lower_styles[rowIndex][oldSlope]; + uint8_t newSlope = raiseLand ? RaiseSurfaceCornerFlags(rowIndex, oldSlope) + : LowerSurfaceCornerFlags(rowIndex, oldSlope); const bool changeBaseHeight = newSlope & SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT; if (changeBaseHeight) diff --git a/src/openrct2/actions/LargeSceneryPlaceAction.cpp b/src/openrct2/actions/LargeSceneryPlaceAction.cpp index f20732993d..c196d2e397 100644 --- a/src/openrct2/actions/LargeSceneryPlaceAction.cpp +++ b/src/openrct2/actions/LargeSceneryPlaceAction.cpp @@ -85,7 +85,8 @@ GameActions::Result LargeSceneryPlaceAction::Query() const if (sceneryEntry == nullptr) { LOG_ERROR("Invalid game command for scenery placement, sceneryType = %u", _sceneryType); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } uint32_t totalNumTiles = GetTotalNumTiles(sceneryEntry->tiles); @@ -197,7 +198,8 @@ GameActions::Result LargeSceneryPlaceAction::Execute() const if (sceneryEntry == nullptr) { LOG_ERROR("Invalid game command for scenery placement, sceneryType = %u", _sceneryType); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } if (sceneryEntry->tiles == nullptr) diff --git a/src/openrct2/actions/LargeSceneryRemoveAction.cpp b/src/openrct2/actions/LargeSceneryRemoveAction.cpp index 3d0edbe080..1e230e6a7b 100644 --- a/src/openrct2/actions/LargeSceneryRemoveAction.cpp +++ b/src/openrct2/actions/LargeSceneryRemoveAction.cpp @@ -72,7 +72,7 @@ GameActions::Result LargeSceneryRemoveAction::Query() const auto* sceneryEntry = tileElement->AsLargeScenery()->GetEntry(); // If we have a bugged scenery entry, do not touch the tile element. if (sceneryEntry == nullptr) - return GameActions::Result(GameActions::Status::Unknown, STR_CANT_REMOVE_THIS, STR_NONE); + return GameActions::Result(GameActions::Status::Unknown, STR_CANT_REMOVE_THIS, STR_UNKNOWN_OBJECT_TYPE); auto rotatedOffsets = CoordsXYZ{ CoordsXY{ sceneryEntry->tiles[_tileIndex].x_offset, sceneryEntry->tiles[_tileIndex].y_offset }.Rotate(_loc.direction), diff --git a/src/openrct2/actions/MazeSetTrackAction.cpp b/src/openrct2/actions/MazeSetTrackAction.cpp index 907cdad5c6..af317a030f 100644 --- a/src/openrct2/actions/MazeSetTrackAction.cpp +++ b/src/openrct2/actions/MazeSetTrackAction.cpp @@ -27,7 +27,7 @@ using namespace OpenRCT2::TrackMetaData; // clang-format off /** rct2: 0x00993CE9 */ -static constexpr const uint8_t Byte993CE9[] = { +static constexpr uint8_t Byte993CE9[] = { 0xFF, 0xE0, 0xFF, 14, 0, 1, 2, 6, 2, 4, 5, @@ -36,7 +36,7 @@ static constexpr const uint8_t Byte993CE9[] = { }; /** rct2: 0x00993CFC */ -static constexpr const uint8_t Byte993CFC[] = { +static constexpr uint8_t Byte993CFC[] = { 5, 12, 0xFF, 0xFF, 9, 0, 0xFF, 0xFF, 13, 4, 0xFF, 0xFF, @@ -44,7 +44,7 @@ static constexpr const uint8_t Byte993CFC[] = { }; /** rct2: 0x00993D0C */ -static constexpr const uint8_t Byte993D0C[] = { +static constexpr uint8_t Byte993D0C[] = { 3, 0, 0xFF, 0xFF, 0, 1, 0xFF, 0xFF, 1, 2, 0xFF, 0xFF, diff --git a/src/openrct2/actions/RideCreateAction.cpp b/src/openrct2/actions/RideCreateAction.cpp index eff9a6507a..b3ec046f05 100644 --- a/src/openrct2/actions/RideCreateAction.cpp +++ b/src/openrct2/actions/RideCreateAction.cpp @@ -100,7 +100,8 @@ GameActions::Result RideCreateAction::Query() const const auto* rideEntry = GetRideEntryByIndex(rideEntryIndex); if (rideEntry == nullptr) { - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_CREATE_NEW_RIDE_ATTRACTION, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_CREATE_NEW_RIDE_ATTRACTION, STR_UNKNOWN_OBJECT_TYPE); } const auto* presetList = rideEntry->vehicle_preset_list; diff --git a/src/openrct2/actions/RideDemolishAction.cpp b/src/openrct2/actions/RideDemolishAction.cpp index 4ee92b40ce..2f1a764bbc 100644 --- a/src/openrct2/actions/RideDemolishAction.cpp +++ b/src/openrct2/actions/RideDemolishAction.cpp @@ -239,7 +239,7 @@ money64 RideDemolishAction::DemolishTracks() const } else { - static constexpr const CoordsXY DirOffsets[] = { + static constexpr CoordsXY DirOffsets[] = { { 0, 0 }, { 0, 16 }, { 16, 16 }, diff --git a/src/openrct2/actions/SmallSceneryPlaceAction.cpp b/src/openrct2/actions/SmallSceneryPlaceAction.cpp index fc41ed17f0..3f084cfdd0 100644 --- a/src/openrct2/actions/SmallSceneryPlaceAction.cpp +++ b/src/openrct2/actions/SmallSceneryPlaceAction.cpp @@ -116,7 +116,8 @@ GameActions::Result SmallSceneryPlaceAction::Query() const auto* sceneryEntry = OpenRCT2::ObjectManager::GetObjectEntry(_sceneryType); if (sceneryEntry == nullptr) { - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } auto quadrant = _quadrant; @@ -308,7 +309,8 @@ GameActions::Result SmallSceneryPlaceAction::Execute() const auto* sceneryEntry = OpenRCT2::ObjectManager::GetObjectEntry(_sceneryType); if (sceneryEntry == nullptr) { - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } auto quadrant = _quadrant; diff --git a/src/openrct2/actions/StaffFireAction.cpp b/src/openrct2/actions/StaffFireAction.cpp index 2bc1623ac5..0ab237c0ad 100644 --- a/src/openrct2/actions/StaffFireAction.cpp +++ b/src/openrct2/actions/StaffFireAction.cpp @@ -49,6 +49,15 @@ GameActions::Result StaffFireAction::Query() const return GameActions::Result(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE); } + if (staff->State == PeepState::Fixing) + { + return GameActions::Result(GameActions::Status::Disallowed, STR_CANT_FIRE_STAFF_FIXING, STR_NONE); + } + else if (staff->State == PeepState::Inspecting) + { + return GameActions::Result(GameActions::Status::Disallowed, STR_CANT_FIRE_STAFF_INSPECTING, STR_NONE); + } + return GameActions::Result(); } diff --git a/src/openrct2/actions/StaffHireNewAction.cpp b/src/openrct2/actions/StaffHireNewAction.cpp index c958311209..3e2e8b1dc4 100644 --- a/src/openrct2/actions/StaffHireNewAction.cpp +++ b/src/openrct2/actions/StaffHireNewAction.cpp @@ -29,7 +29,7 @@ #include /* rct2: 0x009929FC */ -static constexpr const PeepSpriteType spriteTypes[] = { +static constexpr PeepSpriteType spriteTypes[] = { PeepSpriteType::Handyman, PeepSpriteType::Mechanic, PeepSpriteType::Security, diff --git a/src/openrct2/actions/StaffSetCostumeAction.cpp b/src/openrct2/actions/StaffSetCostumeAction.cpp index 4e9b213f40..a8ba910f69 100644 --- a/src/openrct2/actions/StaffSetCostumeAction.cpp +++ b/src/openrct2/actions/StaffSetCostumeAction.cpp @@ -17,7 +17,7 @@ #include "../windows/Intent.h" /** rct2: 0x00982134 */ -constexpr const bool peep_slow_walking_types[] = { +constexpr bool peep_slow_walking_types[] = { false, // PeepSpriteType::Normal false, // PeepSpriteType::Handyman false, // PeepSpriteType::Mechanic diff --git a/src/openrct2/actions/SurfaceSetStyleAction.cpp b/src/openrct2/actions/SurfaceSetStyleAction.cpp index 47e67d0a31..217667c29e 100644 --- a/src/openrct2/actions/SurfaceSetStyleAction.cpp +++ b/src/openrct2/actions/SurfaceSetStyleAction.cpp @@ -50,36 +50,26 @@ GameActions::Result SurfaceSetStyleAction::Query() const auto& objManager = OpenRCT2::GetContext()->GetObjectManager(); if (_surfaceStyle != OBJECT_ENTRY_INDEX_NULL) { - if (_surfaceStyle > 0x1F) - { - LOG_ERROR("Invalid surface style."); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_LAND_TYPE, STR_NONE); - } - const auto surfaceObj = static_cast( objManager.GetLoadedObject(ObjectType::TerrainSurface, _surfaceStyle)); if (surfaceObj == nullptr) { LOG_ERROR("Invalid surface style."); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_LAND_TYPE, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_CHANGE_LAND_TYPE, STR_UNKNOWN_OBJECT_TYPE); } } if (_edgeStyle != OBJECT_ENTRY_INDEX_NULL) { - if (_edgeStyle > 0xF) - { - LOG_ERROR("Invalid edge style."); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_LAND_TYPE, STR_NONE); - } - const auto edgeObj = static_cast(objManager.GetLoadedObject(ObjectType::TerrainEdge, _edgeStyle)); if (edgeObj == nullptr) { LOG_ERROR("Invalid edge style."); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_LAND_TYPE, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_CANT_CHANGE_LAND_TYPE, STR_UNKNOWN_OBJECT_TYPE); } } diff --git a/src/openrct2/actions/TileModifyAction.cpp b/src/openrct2/actions/TileModifyAction.cpp index 72bf7d7acb..1ec57b0bab 100644 --- a/src/openrct2/actions/TileModifyAction.cpp +++ b/src/openrct2/actions/TileModifyAction.cpp @@ -9,17 +9,20 @@ #include "TileModifyAction.h" +#include "../Context.h" +#include "../windows/Intent.h" #include "../world/TileInspector.h" using namespace OpenRCT2; TileModifyAction::TileModifyAction( - CoordsXY loc, TileModifyType setting, uint32_t value1, uint32_t value2, TileElement pasteElement) + CoordsXY loc, TileModifyType setting, uint32_t value1, uint32_t value2, TileElement pasteElement, Banner pasteBanner) : _loc(loc) , _setting(setting) , _value1(value1) , _value2(value2) , _pasteElement(pasteElement) + , _pasteBanner(pasteBanner) { } @@ -40,7 +43,8 @@ void TileModifyAction::Serialise(DataSerialiser& stream) { GameAction::Serialise(stream); - stream << DS_TAG(_loc) << DS_TAG(_setting) << DS_TAG(_value1) << DS_TAG(_value2) << DS_TAG(_pasteElement); + stream << DS_TAG(_loc) << DS_TAG(_setting) << DS_TAG(_value1) << DS_TAG(_value2) << DS_TAG(_pasteElement) + << DS_TAG(_pasteBanner); } GameActions::Result TileModifyAction::Query() const @@ -89,7 +93,7 @@ GameActions::Result TileModifyAction::QueryExecute(bool isExecuting) const } case TileModifyType::AnyPaste: { - res = TileInspector::PasteElementAt(_loc, _pasteElement, isExecuting); + res = TileInspector::PasteElementAt(_loc, _pasteElement, _pasteBanner, isExecuting); break; } case TileModifyType::AnySort: @@ -234,5 +238,12 @@ GameActions::Result TileModifyAction::QueryExecute(bool isExecuting) const res.Position.y = _loc.y; res.Position.z = TileElementHeight(_loc); + if (isExecuting) + { + MapInvalidateTileFull(_loc); + auto intent = Intent(INTENT_ACTION_TILE_MODIFY); + ContextBroadcastIntent(&intent); + } + return res; } diff --git a/src/openrct2/actions/TileModifyAction.h b/src/openrct2/actions/TileModifyAction.h index c4c218fc76..6af9559bc0 100644 --- a/src/openrct2/actions/TileModifyAction.h +++ b/src/openrct2/actions/TileModifyAction.h @@ -49,11 +49,13 @@ private: uint32_t _value1{}; uint32_t _value2{}; TileElement _pasteElement{}; + Banner _pasteBanner{}; public: TileModifyAction() = default; TileModifyAction( - CoordsXY loc, TileModifyType setting, uint32_t value1 = 0, uint32_t value2 = 0, TileElement pasteElement = {}); + CoordsXY loc, TileModifyType setting, uint32_t value1 = 0, uint32_t value2 = 0, TileElement pasteElement = {}, + Banner _pasteBanner = {}); void AcceptParameters(GameActionParameterVisitor& visitor) override; diff --git a/src/openrct2/actions/TrackPlaceAction.cpp b/src/openrct2/actions/TrackPlaceAction.cpp index f333d66724..9b67536538 100644 --- a/src/openrct2/actions/TrackPlaceAction.cpp +++ b/src/openrct2/actions/TrackPlaceAction.cpp @@ -79,7 +79,7 @@ GameActions::Result TrackPlaceAction::Query() const { LOG_WARNING("Invalid ride subtype for track placement, rideIndex = %d", _rideIndex.ToUnderlying()); return GameActions::Result( - GameActions::Status::InvalidParameters, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, STR_NONE); + GameActions::Status::InvalidParameters, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } if (!DirectionValid(_origin.direction)) @@ -258,16 +258,6 @@ GameActions::Result TrackPlaceAction::Query() const } costs += canBuild.Cost; - // When building a level crossing, remove any pre-existing path furniture. - if (crossingMode == CREATE_CROSSING_MODE_TRACK_OVER_PATH) - { - auto footpathElement = MapGetFootpathElement(mapLoc); - if (footpathElement != nullptr && footpathElement->AsPath()->HasAddition()) - { - footpathElement->AsPath()->SetAddition(0); - } - } - const auto clearanceData = canBuild.GetData(); uint8_t mapGroundFlags = clearanceData.GroundFlags & (ELEMENT_IS_ABOVE_GROUND | ELEMENT_IS_UNDERGROUND); if (resultData.GroundFlags != 0 && (resultData.GroundFlags & mapGroundFlags) == 0) @@ -422,7 +412,7 @@ GameActions::Result TrackPlaceAction::Execute() const { LOG_WARNING("Invalid ride subtype for track placement, rideIndex = %d", _rideIndex.ToUnderlying()); return GameActions::Result( - GameActions::Status::InvalidParameters, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, STR_NONE); + GameActions::Status::InvalidParameters, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } auto res = GameActions::Result(); @@ -478,6 +468,16 @@ GameActions::Result TrackPlaceAction::Execute() const } costs += canBuild.Cost; + // When building a level crossing, remove any pre-existing path furniture. + if (crossingMode == CREATE_CROSSING_MODE_TRACK_OVER_PATH && !(GetFlags() & GAME_COMMAND_FLAG_GHOST)) + { + auto footpathElement = MapGetFootpathElement(mapLoc); + if (footpathElement != nullptr && footpathElement->HasAddition()) + { + footpathElement->SetAddition(0); + } + } + if (!(GetFlags() & GAME_COMMAND_FLAG_GHOST) && !gCheatsDisableClearanceChecks) { FootpathRemoveLitter(mapLoc); diff --git a/src/openrct2/actions/WallPlaceAction.cpp b/src/openrct2/actions/WallPlaceAction.cpp index 4dd23dcb79..6e59bc6155 100644 --- a/src/openrct2/actions/WallPlaceAction.cpp +++ b/src/openrct2/actions/WallPlaceAction.cpp @@ -222,7 +222,7 @@ GameActions::Result WallPlaceAction::Query() const if (wallEntry == nullptr) { LOG_ERROR("Wall Type not found %d", _wallType); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_NONE); + return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } if (wallEntry->scrolling_mode != SCROLLING_MODE_NONE) @@ -312,7 +312,7 @@ GameActions::Result WallPlaceAction::Execute() const if (wallEntry == nullptr) { LOG_ERROR("Wall Type not found %d", _wallType); - return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_NONE); + return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_BUILD_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } uint8_t clearanceHeight = targetHeight / COORDS_Z_STEP; diff --git a/src/openrct2/audio/Audio.cpp b/src/openrct2/audio/Audio.cpp index e9ef18924c..8859059652 100644 --- a/src/openrct2/audio/Audio.cpp +++ b/src/openrct2/audio/Audio.cpp @@ -269,21 +269,44 @@ namespace OpenRCT2::Audio } } - static ObjectEntryDescriptor GetTitleMusicDescriptor() + static bool IsRCT1TitleMusicAvailable() { - switch (gConfigSound.TitleMusic) + auto env = GetContext()->GetPlatformEnvironment(); + auto rct1path = env->GetDirectoryPath(DIRBASE::RCT1); + return !rct1path.empty(); + } + + static std::map GetAvailableMusicMap() + { + auto musicMap = std::map{ + { TitleMusicKind::OpenRCT2, AudioObjectIdentifiers::OpenRCT2Title }, + { TitleMusicKind::RCT2, AudioObjectIdentifiers::RCT2Title }, + }; + + if (IsRCT1TitleMusicAvailable()) { - default: - return {}; - case TitleMusicKind::RCT1: - return ObjectEntryDescriptor(ObjectType::Audio, AudioObjectIdentifiers::RCT1Title); - case TitleMusicKind::RCT2: - return ObjectEntryDescriptor(ObjectType::Audio, AudioObjectIdentifiers::RCT2Title); - case TitleMusicKind::Random: - return ObjectEntryDescriptor( - ObjectType::Audio, - (UtilRand() & 1) ? AudioObjectIdentifiers::RCT1Title : AudioObjectIdentifiers::RCT2Title); + musicMap.emplace(TitleMusicKind::RCT1, AudioObjectIdentifiers::RCT1Title); } + + return musicMap; + } + + static ObjectEntryDescriptor GetTitleMusicDescriptor(TitleMusicKind musicKind) + { + auto musicMap = GetAvailableMusicMap(); + auto it = musicMap.find(musicKind); + if (musicKind == TitleMusicKind::Random) + { + it = std::next(musicMap.begin(), UtilRand() % musicMap.size()); + } + + if (it != musicMap.end()) + { + return ObjectEntryDescriptor(ObjectType::Audio, it->second); + } + + // No music descriptor for the current setting, intentional for TitleMusicKind::None + return {}; } void PlayTitleMusic() @@ -300,7 +323,7 @@ namespace OpenRCT2::Audio } // Load title sequence audio object - auto descriptor = GetTitleMusicDescriptor(); + auto descriptor = GetTitleMusicDescriptor(gConfigSound.TitleMusic); auto& objManager = GetContext()->GetObjectManager(); auto* audioObject = static_cast(objManager.LoadObject(descriptor)); if (audioObject != nullptr) diff --git a/src/openrct2/audio/audio.h b/src/openrct2/audio/audio.h index 34849ad5f2..583d6019ff 100644 --- a/src/openrct2/audio/audio.h +++ b/src/openrct2/audio/audio.h @@ -142,6 +142,7 @@ namespace OpenRCT2::Audio constexpr std::string_view RCT2Base = "rct2.audio.base"; constexpr std::string_view RCTCBase = "rct2.audio.base.rctc"; constexpr std::string_view RCT2Title = "rct2.audio.title"; + constexpr std::string_view OpenRCT2Title = "openrct2.audio.title"; constexpr std::string_view RCT2Circus = "rct2.audio.circus"; constexpr std::string_view OpenRCT2Additional = "openrct2.audio.additional"; } // namespace AudioObjectIdentifiers diff --git a/src/openrct2/command_line/BenchGfxCommmands.cpp b/src/openrct2/command_line/BenchGfxCommmands.cpp deleted file mode 100644 index 439e6fbd58..0000000000 --- a/src/openrct2/command_line/BenchGfxCommmands.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014-2023 OpenRCT2 developers - * - * For a complete list of all authors, please refer to contributors.md - * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 - * - * OpenRCT2 is licensed under the GNU General Public License version 3. - *****************************************************************************/ - -#include "../interface/Screenshot.h" -#include "CommandLine.hpp" - -static exitcode_t HandleBenchGfx(CommandLineArgEnumerator* argEnumerator); - -const CommandLineCommand CommandLine::BenchGfxCommands[]{ - // Main commands - DefineCommand("", " [iterations count]", nullptr, HandleBenchGfx), CommandTableEnd -}; - -static exitcode_t HandleBenchGfx(CommandLineArgEnumerator* argEnumerator) -{ - const char** argv = const_cast(argEnumerator->GetArguments()) + argEnumerator->GetIndex(); - int32_t argc = argEnumerator->GetCount() - argEnumerator->GetIndex(); - int32_t result = CommandLineForGfxbench(argv, argc); - if (result < 0) - { - return EXITCODE_FAIL; - } - return EXITCODE_OK; -} diff --git a/src/openrct2/command_line/BenchSpriteSort.cpp b/src/openrct2/command_line/BenchSpriteSort.cpp deleted file mode 100644 index 3b360a6c5d..0000000000 --- a/src/openrct2/command_line/BenchSpriteSort.cpp +++ /dev/null @@ -1,236 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014-2023 OpenRCT2 developers - * - * For a complete list of all authors, please refer to contributors.md - * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 - * - * OpenRCT2 is licensed under the GNU General Public License version 3. - *****************************************************************************/ - -#include "CommandLine.hpp" - -#ifdef USE_BENCHMARK - -# include "../Context.h" -# include "../Game.h" -# include "../Intro.h" -# include "../OpenRCT2.h" -# include "../audio/audio.h" -# include "../core/Console.hpp" -# include "../core/File.h" -# include "../core/Imaging.h" -# include "../drawing/Drawing.h" -# include "../interface/Viewport.h" -# include "../localisation/Localisation.h" -# include "../paint/Paint.h" -# include "../platform/Platform.h" -# include "../util/Util.h" -# include "../world/Climate.h" -# include "../world/Map.h" -# include "../world/Park.h" -# include "../world/Surface.h" - -# include -# include -# include -# include - -static void fixup_pointers(std::vector& s) -{ - for (size_t i = 0; i < s.size(); i++) - { - auto& entries = s[i].Entries; - auto& quadrants = s[i].Session.Quadrants; - for (size_t j = 0; j < entries.size(); j++) - { - if (entries[j].AsBasic()->NextQuadrantEntry == reinterpret_cast(-1)) - { - entries[j].AsBasic()->NextQuadrantEntry = nullptr; - } - else - { - auto nextQuadrantPs = reinterpret_cast(entries[j].AsBasic()->NextQuadrantEntry) / sizeof(PaintEntry); - entries[j].AsBasic()->NextQuadrantEntry = s[i].Entries[nextQuadrantPs].AsBasic(); - } - } - for (size_t j = 0; j < std::size(quadrants); j++) - { - if (quadrants[j] == reinterpret_cast(-1)) - { - quadrants[j] = nullptr; - } - else - { - auto ps = reinterpret_cast(quadrants[j]) / sizeof(PaintEntry); - quadrants[j] = entries[ps].AsBasic(); - } - } - } -} - -static std::vector extract_paint_session(std::string_view parkFileName) -{ - Platform::CoreInit(); - gOpenRCT2Headless = true; - auto context = OpenRCT2::CreateContext(); - std::vector sessions; - LOG_INFO("Starting..."); - if (context->Initialise()) - { - DrawingEngineInit(); - if (!context->LoadParkFromFile(std::string(parkFileName))) - { - LOG_ERROR("Failed to load park!"); - return {}; - } - - gIntroState = IntroState::None; - gScreenFlags = SCREEN_FLAGS_PLAYING; - - int32_t resolutionWidth = (gMapSize.x * COORDS_XY_STEP * 2); - int32_t resolutionHeight = (gMapSize.y * COORDS_XY_STEP * 1); - - resolutionWidth += 8; - resolutionHeight += 128; - - Viewport viewport; - viewport.pos = { 0, 0 }; - viewport.width = resolutionWidth; - viewport.height = resolutionHeight; - viewport.view_width = viewport.width; - viewport.view_height = viewport.height; - viewport.var_11 = 0; - viewport.flags = 0; - - auto customXY = TileCoordsXY(gMapSize.x / 2, gMapSize.y / 2).ToCoordsXY().ToTileCentre(); - auto customXYZ = CoordsXYZ(customXY, TileElementHeight(customXY)); - auto screenXY = Translate3DTo2DWithZ(0, customXYZ); - - viewport.viewPos = { screenXY.x - (viewport.view_width / 2), screenXY.y - (viewport.view_height / 2) }; - viewport.zoom = ZoomLevel{ 0 }; - gCurrentRotation = 0; - - // Ensure sprites appear regardless of rotation - ResetAllSpriteQuadrantPlacements(); - - DrawPixelInfo dpi; - dpi.x = 0; - dpi.y = 0; - dpi.width = resolutionWidth; - dpi.height = resolutionHeight; - dpi.pitch = 0; - dpi.bits = static_cast(malloc(dpi.width * dpi.height)); - - LOG_INFO("Obtaining sprite data..."); - ViewportRender(dpi, &viewport, { { 0, 0 }, { viewport.width, viewport.height } }, &sessions); - - free(dpi.bits); - DrawingEngineDispose(); - } - LOG_INFO("Got %u paint sessions.", std::size(sessions)); - return sessions; -} - -// This function is based on BenchgfxRenderScreenshots -static void BM_paint_session_arrange(benchmark::State& state, const std::vector inputSessions) -{ - auto sessions = inputSessions; - // Fixing up the pointers continuously is wasteful. Fix it up once for `sessions` and store a copy. - // Keep in mind we need bit-exact copy, as the lists use pointers. - // Once sorted, just restore the copy with the original fixed-up version. - RecordedPaintSession* local_s = new RecordedPaintSession[std::size(sessions)]; - fixup_pointers(sessions); - std::copy_n(sessions.cbegin(), std::size(sessions), local_s); - for (auto _ : state) - { - state.PauseTiming(); - std::copy_n(local_s, std::size(sessions), sessions.begin()); - state.ResumeTiming(); - PaintSessionArrange(sessions[0].Session); - benchmark::DoNotOptimize(sessions); - } - state.SetItemsProcessed(state.iterations() * std::size(sessions)); - delete[] local_s; -} - -static int command_line_for_bench_sprite_sort(int argc, const char** argv) -{ - { - // Register some basic "baseline" benchmark - std::vector sessions(1); - for (auto& ps : sessions[0].Entries) - { - ps.AsBasic()->NextQuadrantEntry = reinterpret_cast(-1); - } - for (auto& quad : sessions[0].Session.Quadrants) - { - quad = reinterpret_cast(-1); - } - benchmark::RegisterBenchmark("baseline", BM_paint_session_arrange, sessions); - } - - // Google benchmark does stuff to argv. It doesn't modify the pointees, - // but it wants to reorder the pointers, so present a copy of them. - std::vector argv_for_benchmark; - - // argv[0] is expected to contain the binary name. It's only for logging purposes, don't bother. - argv_for_benchmark.push_back(nullptr); - - // Extract file names from argument list. If there is no such file, consider it benchmark option. - for (int i = 0; i < argc; i++) - { - if (File::Exists(argv[i])) - { - // Register benchmark for sv6 if valid - std::vector sessions = extract_paint_session(argv[i]); - if (!sessions.empty()) - benchmark::RegisterBenchmark(argv[i], BM_paint_session_arrange, sessions); - } - else - { - argv_for_benchmark.push_back(const_cast(argv[i])); - } - } - // Update argc with all the changes made - argc = static_cast(argv_for_benchmark.size()); - ::benchmark::Initialize(&argc, &argv_for_benchmark[0]); - if (::benchmark::ReportUnrecognizedArguments(argc, &argv_for_benchmark[0])) - return -1; - ::benchmark::RunSpecifiedBenchmarks(); - return 0; -} - -static exitcode_t HandleBenchSpriteSort(CommandLineArgEnumerator* argEnumerator) -{ - const char** argv = const_cast(argEnumerator->GetArguments()) + argEnumerator->GetIndex(); - int32_t argc = argEnumerator->GetCount() - argEnumerator->GetIndex(); - int32_t result = command_line_for_bench_sprite_sort(argc, argv); - if (result < 0) - { - return EXITCODE_FAIL; - } - return EXITCODE_OK; -} - -#else -static exitcode_t HandleBenchSpriteSort(CommandLineArgEnumerator* argEnumerator) -{ - LOG_ERROR("Sorry, Google benchmark not enabled in this build"); - return EXITCODE_FAIL; -} -#endif // USE_BENCHMARK - -const CommandLineCommand CommandLine::BenchSpriteSortCommands[]{ -#ifdef USE_BENCHMARK - DefineCommand( - "", - "[]... [--benchmark_list_tests={true|false}] [--benchmark_filter=] [--benchmark_min_time=] " - "[--benchmark_repetitions=] [--benchmark_report_aggregates_only={true|false}] " - "[--benchmark_format=] [--benchmark_out=] [--benchmark_out_format=] " - "[--benchmark_color={auto|true|false}] [--benchmark_counters_tabular={true|false}] [--v=]", - nullptr, HandleBenchSpriteSort), - CommandTableEnd -#else - DefineCommand("", "*** SORRY NOT ENABLED IN THIS BUILD ***", nullptr, HandleBenchSpriteSort), CommandTableEnd -#endif // USE_BENCHMARK -}; diff --git a/src/openrct2/command_line/BenchUpdate.cpp b/src/openrct2/command_line/BenchUpdate.cpp deleted file mode 100644 index ec1b628197..0000000000 --- a/src/openrct2/command_line/BenchUpdate.cpp +++ /dev/null @@ -1,161 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014-2023 OpenRCT2 developers - * - * For a complete list of all authors, please refer to contributors.md - * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 - * - * OpenRCT2 is licensed under the GNU General Public License version 3. - *****************************************************************************/ - -#include "CommandLine.hpp" - -#ifdef USE_BENCHMARK - -# include "../Context.h" -# include "../GameState.h" -# include "../OpenRCT2.h" -# include "../core/File.h" -# include "../platform/Platform.h" - -# include -# include -# include -# include -# include - -using namespace OpenRCT2; - -static void BM_update(benchmark::State& state, const std::string& filename) -{ - std::unique_ptr context(CreateContext()); - if (context->Initialise()) - { - if (!filename.empty() && !context->LoadParkFromFile(filename)) - { - state.SkipWithError("Failed to load file!"); - } - - std::vector timings(1); - timings.reserve(100); - int currentTimingIdx = 0; - for (auto _ : state) - { - if (timings[currentTimingIdx].CurrentIdx == (LOGIC_UPDATE_MEASUREMENTS_COUNT - 1)) - { - timings.resize(timings.size() + 1); - currentTimingIdx++; - } - LogicTimings* timingToUse = &timings[currentTimingIdx]; - context->GetGameState()->UpdateLogic(timingToUse); - } - state.SetItemsProcessed(state.iterations()); - auto accumulator = [timings](LogicTimePart part) -> double { - std::chrono::duration timesum; - for (const auto& timing : timings) - { - timesum = std::accumulate( - timing.TimingInfo.at(part).begin(), timing.TimingInfo.at(part).end(), std::chrono::duration()); - } - return std::chrono::duration_cast(timesum).count(); - }; - state.counters["NetworkUpdateAcc_ms"] = accumulator(LogicTimePart::NetworkUpdate); - state.counters["DateAcc_ms"] = accumulator(LogicTimePart::Date); - state.counters["ScenarioAcc_ms"] = accumulator(LogicTimePart::Scenario); - state.counters["ClimateAcc_ms"] = accumulator(LogicTimePart::Climate); - state.counters["MapTilesAcc_ms"] = accumulator(LogicTimePart::MapTiles); - state.counters["MapStashProvisionalElementsAcc_ms"] = accumulator(LogicTimePart::MapStashProvisionalElements); - state.counters["MapPathWideFlagsAcc_ms"] = accumulator(LogicTimePart::MapPathWideFlags); - state.counters["PeepAcc_ms"] = accumulator(LogicTimePart::Peep); - state.counters["MapRestoreProvisionalElementsAcc_ms"] = accumulator(LogicTimePart::MapRestoreProvisionalElements); - state.counters["VehicleAcc_ms"] = accumulator(LogicTimePart::Vehicle); - state.counters["MiscAcc_ms"] = accumulator(LogicTimePart::Misc); - state.counters["RideAcc_ms"] = accumulator(LogicTimePart::Ride); - state.counters["ParkAcc_ms"] = accumulator(LogicTimePart::Park); - state.counters["ResearchAcc_ms"] = accumulator(LogicTimePart::Research); - state.counters["RideRatingsAcc_ms"] = accumulator(LogicTimePart::RideRatings); - state.counters["RideMeasurmentsAcc_ms"] = accumulator(LogicTimePart::RideMeasurments); - state.counters["NewsAcc_ms"] = accumulator(LogicTimePart::News); - state.counters["MapAnimationAcc_ms"] = accumulator(LogicTimePart::MapAnimation); - state.counters["SoundsAcc_ms"] = accumulator(LogicTimePart::Sounds); - state.counters["GameActionsAcc_ms"] = accumulator(LogicTimePart::GameActions); - state.counters["NetworkFlushAcc_ms"] = accumulator(LogicTimePart::NetworkFlush); - state.counters["ScriptsAcc_ms"] = accumulator(LogicTimePart::Scripts); - } - else - { - state.SkipWithError("Context initialization failed."); - } -} - -static int CommandLineForBenchSpriteSort(int argc, const char* const* argv) -{ - // Add a baseline test on an empty park - benchmark::RegisterBenchmark("baseline", BM_update, std::string{}); - - // Google benchmark does stuff to argv. It doesn't modify the pointees, - // but it wants to reorder the pointers, so present a copy of them. - std::vector argv_for_benchmark; - - // argv[0] is expected to contain the binary name. It's only for logging purposes, don't bother. - argv_for_benchmark.push_back(nullptr); - - // Extract file names from argument list. If there is no such file, consider it benchmark option. - for (int i = 0; i < argc; i++) - { - if (File::Exists(argv[i])) - { - // Register benchmark for sv6 if valid - benchmark::RegisterBenchmark(argv[i], BM_update, argv[i]); - } - else - { - argv_for_benchmark.push_back(const_cast(argv[i])); - } - } - // Update argc with all the changes made - argc = static_cast(argv_for_benchmark.size()); - ::benchmark::Initialize(&argc, &argv_for_benchmark[0]); - if (::benchmark::ReportUnrecognizedArguments(argc, &argv_for_benchmark[0])) - return -1; - - Platform::CoreInit(); - gOpenRCT2Headless = true; - - ::benchmark::RunSpecifiedBenchmarks(); - return 0; -} - -static exitcode_t HandleBenchUpdate(CommandLineArgEnumerator* argEnumerator) -{ - const char* const* argv = static_cast(argEnumerator->GetArguments()) + argEnumerator->GetIndex(); - int32_t argc = argEnumerator->GetCount() - argEnumerator->GetIndex(); - int32_t result = CommandLineForBenchSpriteSort(argc, argv); - if (result < 0) - { - return EXITCODE_FAIL; - } - return EXITCODE_OK; -} - -#else -static exitcode_t HandleBenchUpdate(CommandLineArgEnumerator* argEnumerator) -{ - LOG_ERROR("Sorry, Google benchmark not enabled in this build"); - return EXITCODE_FAIL; -} -#endif // USE_BENCHMARK - -const CommandLineCommand CommandLine::BenchUpdateCommands[]{ -#ifdef USE_BENCHMARK - DefineCommand( - "", - "... [--benchmark_list_tests={true|false}] [--benchmark_filter=] [--benchmark_min_time=] " - "[--benchmark_repetitions=] [--benchmark_report_aggregates_only={true|false}] " - "[--benchmark_format=] [--benchmark_out=] [--benchmark_out_format=] " - "[--benchmark_color={auto|true|false}] [--benchmark_counters_tabular={true|false}] [--v=]", - nullptr, HandleBenchUpdate), - CommandTableEnd -#else - DefineCommand("", "*** SORRY NOT ENABLED IN THIS BUILD ***", nullptr, HandleBenchUpdate), CommandTableEnd -#endif // USE_BENCHMARK -}; diff --git a/src/openrct2/command_line/CommandLine.hpp b/src/openrct2/command_line/CommandLine.hpp index 3f2f6aa161..f8d0d7f489 100644 --- a/src/openrct2/command_line/CommandLine.hpp +++ b/src/openrct2/command_line/CommandLine.hpp @@ -116,9 +116,6 @@ namespace CommandLine extern const CommandLineCommand RootCommands[]; extern const CommandLineCommand ScreenshotCommands[]; extern const CommandLineCommand SpriteCommands[]; - extern const CommandLineCommand BenchGfxCommands[]; - extern const CommandLineCommand BenchSpriteSortCommands[]; - extern const CommandLineCommand BenchUpdateCommands[]; extern const CommandLineCommand SimulateCommands[]; extern const CommandLineCommand ParkInfoCommands[]; diff --git a/src/openrct2/command_line/ParkInfoCommands.cpp b/src/openrct2/command_line/ParkInfoCommands.cpp index b03c003bd6..84f41efc0d 100644 --- a/src/openrct2/command_line/ParkInfoCommands.cpp +++ b/src/openrct2/command_line/ParkInfoCommands.cpp @@ -17,7 +17,7 @@ #include "CommandLine.hpp" // clang-format off -static constexpr const CommandLineOptionDefinition NoOptions[] +static constexpr CommandLineOptionDefinition NoOptions[] { OptionTableEnd }; @@ -104,7 +104,7 @@ static exitcode_t HandleObjectsInfo(CommandLineArgEnumerator* argEnumerator) ObjectType::Walls, ObjectType::Banners, ObjectType::Paths, - ObjectType::PathBits, + ObjectType::PathAdditions, ObjectType::SceneryGroup, ObjectType::ParkEntrance, ObjectType::Water, diff --git a/src/openrct2/command_line/RootCommands.cpp b/src/openrct2/command_line/RootCommands.cpp index ae28980fd6..d2d6335505 100644 --- a/src/openrct2/command_line/RootCommands.cpp +++ b/src/openrct2/command_line/RootCommands.cpp @@ -62,7 +62,7 @@ static u8string _rct2DataPath = {}; static bool _silentBreakpad = false; // clang-format off -static constexpr const CommandLineOptionDefinition StandardOptions[] +static constexpr CommandLineOptionDefinition StandardOptions[] { { CMDLINE_TYPE_SWITCH, &_help, 'h', "help", "show this help message and exit" }, { CMDLINE_TYPE_SWITCH, &_version, 'v', "version", "show version information and exit" }, @@ -100,7 +100,7 @@ static exitcode_t HandleCommandScanObjects(CommandLineArgEnumerator * enumerator static bool _removeShell = false; -static constexpr const CommandLineOptionDefinition RegisterShellOptions[] +static constexpr CommandLineOptionDefinition RegisterShellOptions[] { { CMDLINE_TYPE_SWITCH, &_removeShell, 'd', "remove", "remove shell integration" }, }; @@ -140,9 +140,6 @@ const CommandLineCommand CommandLine::RootCommands[] // Sub-commands DefineSubCommand("screenshot", CommandLine::ScreenshotCommands ), DefineSubCommand("sprite", CommandLine::SpriteCommands ), - DefineSubCommand("benchgfx", CommandLine::BenchGfxCommands ), - DefineSubCommand("benchspritesort", CommandLine::BenchSpriteSortCommands ), - DefineSubCommand("benchsimulate", CommandLine::BenchUpdateCommands ), DefineSubCommand("simulate", CommandLine::SimulateCommands ), DefineSubCommand("parkinfo", CommandLine::ParkInfoCommands ), CommandTableEnd diff --git a/src/openrct2/command_line/ScreenshotCommands.cpp b/src/openrct2/command_line/ScreenshotCommands.cpp index 2a2ce066e4..3dfa78fc94 100644 --- a/src/openrct2/command_line/ScreenshotCommands.cpp +++ b/src/openrct2/command_line/ScreenshotCommands.cpp @@ -13,7 +13,7 @@ static ScreenshotOptions _options; // clang-format off -static constexpr const CommandLineOptionDefinition ScreenshotOptionsDef[] +static constexpr CommandLineOptionDefinition ScreenshotOptionsDef[] { { CMDLINE_TYPE_INTEGER, &_options.weather, NAC, "weather", "weather to be used (0 = default, 1 = sunny, ..., 6 = thunder)." }, { CMDLINE_TYPE_SWITCH, &_options.hide_guests, NAC, "no-peeps", "hide peeps" }, diff --git a/src/openrct2/command_line/SimulateCommands.cpp b/src/openrct2/command_line/SimulateCommands.cpp index 1dfc7526dc..22fdca0712 100644 --- a/src/openrct2/command_line/SimulateCommands.cpp +++ b/src/openrct2/command_line/SimulateCommands.cpp @@ -39,8 +39,6 @@ static exitcode_t HandleSimulate(CommandLineArgEnumerator* argEnumerator) return EXITCODE_FAIL; } - Platform::CoreInit(); - const char* inputPath = argv[0]; uint32_t ticks = atol(argv[1]); diff --git a/src/openrct2/command_line/SpriteCommands.cpp b/src/openrct2/command_line/SpriteCommands.cpp index d3cdc75460..61a964fa6e 100644 --- a/src/openrct2/command_line/SpriteCommands.cpp +++ b/src/openrct2/command_line/SpriteCommands.cpp @@ -23,7 +23,7 @@ ImportMode gSpriteMode = ImportMode::Default; static const char* _mode; // clang-format off -static constexpr const CommandLineOptionDefinition SpriteOptions[] +static constexpr CommandLineOptionDefinition SpriteOptions[] { { CMDLINE_TYPE_STRING, &_mode, 'm', "mode", "the type of sprite conversion <" SZ_DEFAULT "|" SZ_CLOSEST "|" SZ_DITHERING ">" }, OptionTableEnd @@ -49,9 +49,9 @@ const CommandLineCommand CommandLine::SpriteCommands[] static exitcode_t HandleSprite(CommandLineArgEnumerator* argEnumerator) { - if (String::Equals(_mode, SZ_CLOSEST, true)) + if (String::IEquals(_mode, SZ_CLOSEST)) gSpriteMode = ImportMode::Closest; - else if (String::Equals(_mode, SZ_DITHERING, true)) + else if (String::IEquals(_mode, SZ_DITHERING)) gSpriteMode = ImportMode::Dithering; Memory::Free(_mode); diff --git a/src/openrct2/common.h b/src/openrct2/common.h index b9ecf06a39..74a5eccd37 100644 --- a/src/openrct2/common.h +++ b/src/openrct2/common.h @@ -37,40 +37,12 @@ using colour_t = uint8_t; // Gets the name of a symbol as a C string #define nameof(symbol) #symbol -#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) -# include -# define STUB() LOG_WARNING("Function %s at %s:%d is a stub.", __PRETTY_FUNCTION__, __FILE__, __LINE__) -# define _strcmpi _stricmp -# define _stricmp(x, y) strcasecmp((x), (y)) -# define _strnicmp(x, y, n) strncasecmp((x), (y), (n)) - -# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -# define RCT2_ENDIANNESS __ORDER_LITTLE_ENDIAN__ -# define LOBYTE(w) (static_cast(w)) -# define HIBYTE(w) (static_cast((static_cast(w) >> 8) & 0xFF)) -# endif // __BYTE_ORDER__ - -# ifndef RCT2_ENDIANNESS -# error Unknown endianness! -# endif // RCT2_ENDIANNESS - -#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) - -#ifdef _WIN32 -char* strndup(const char* src, size_t size); -#endif - -// BSD and macOS have MAP_ANON instead of MAP_ANONYMOUS -#ifndef MAP_ANONYMOUS -# define MAP_ANONYMOUS MAP_ANON -#endif - #define OPENRCT2_MASTER_SERVER_URL "https://servers.openrct2.io" // Time (represented as number of 100-nanosecond intervals since 0001-01-01T00:00:00Z) using datetime64 = uint64_t; -constexpr const datetime64 DATETIME64_MIN = 0; +constexpr datetime64 DATETIME64_MIN = 0; // Represent fixed point numbers. dp = decimal point using fixed8_1dp = uint8_t; @@ -149,26 +121,6 @@ constexpr int32_t operator"" _mph(long double speedMph) using StringId = uint16_t; -#define SafeFree(x) \ - do \ - { \ - free(x); \ - (x) = nullptr; \ - } while (false) - -#define SafeDelete(x) \ - do \ - { \ - delete (x); \ - (x) = nullptr; \ - } while (false) -#define SafeDeleteArray(x) \ - do \ - { \ - delete[](x); \ - (x) = nullptr; \ - } while (false) - #define abstract = 0 #if defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__)) diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index d6caff1787..50906ef786 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -38,6 +38,12 @@ using namespace OpenRCT2; using namespace OpenRCT2::Ui; +#ifdef __APPLE__ +static constexpr bool WindowButtonsOnTheLeftDefault = true; +#else +static constexpr bool WindowButtonsOnTheLeftDefault = false; +#endif + namespace Config { #pragma region Enums @@ -195,7 +201,12 @@ namespace Config model->SteamOverlayPause = reader->GetBoolean("steam_overlay_pause", true); model->WindowScale = reader->GetFloat("window_scale", Platform::GetDefaultScale()); model->ShowFPS = reader->GetBoolean("show_fps", false); - model->MultiThreading = reader->GetBoolean("multi_threading", false); +#ifdef _DEBUG + // Always have multi-threading disabled in debug builds, this makes things slower. + model->MultiThreading = false; +#else + model->MultiThreading = reader->GetBoolean("multithreading", true); +#endif // _DEBUG model->TrapCursor = reader->GetBoolean("trap_cursor", false); model->AutoOpenShops = reader->GetBoolean("auto_open_shops", false); model->ScenarioSelectMode = reader->GetInt32("scenario_select_mode", SCENARIO_SELECT_MODE_ORIGIN); @@ -280,7 +291,7 @@ namespace Config writer->WriteBoolean("steam_overlay_pause", model->SteamOverlayPause); writer->WriteFloat("window_scale", model->WindowScale); writer->WriteBoolean("show_fps", model->ShowFPS); - writer->WriteBoolean("multi_threading", model->MultiThreading); + writer->WriteBoolean("multithreading", model->MultiThreading); writer->WriteBoolean("trap_cursor", model->TrapCursor); writer->WriteBoolean("auto_open_shops", model->AutoOpenShops); writer->WriteInt32("scenario_select_mode", model->ScenarioSelectMode); @@ -331,6 +342,7 @@ namespace Config model->ObjectSelectionFilterFlags = reader->GetInt32("object_selection_filter_flags", 0x3FFF); model->ScenarioselectLastTab = reader->GetInt32("scenarioselect_last_tab", 0); model->ListRideVehiclesSeparately = reader->GetBoolean("list_ride_vehicles_separately", false); + model->WindowButtonsOnTheLeft = reader->GetBoolean("window_buttons_on_the_left", WindowButtonsOnTheLeftDefault); } } @@ -352,6 +364,7 @@ namespace Config writer->WriteInt32("object_selection_filter_flags", model->ObjectSelectionFilterFlags); writer->WriteInt32("scenarioselect_last_tab", model->ScenarioselectLastTab); writer->WriteBoolean("list_ride_vehicles_separately", model->ListRideVehiclesSeparately); + writer->WriteBoolean("window_buttons_on_the_left", model->WindowButtonsOnTheLeft); } static void ReadSound(IIniReader* reader) @@ -362,7 +375,8 @@ namespace Config model->Device = reader->GetString("audio_device", ""); model->MasterSoundEnabled = reader->GetBoolean("master_sound", true); model->MasterVolume = reader->GetInt32("master_volume", 100); - model->TitleMusic = static_cast(reader->GetInt32("title_music", EnumValue(TitleMusicKind::RCT2))); + model->TitleMusic = static_cast( + reader->GetInt32("title_theme", EnumValue(TitleMusicKind::OpenRCT2))); model->SoundEnabled = reader->GetBoolean("sound", true); model->SoundVolume = reader->GetInt32("sound_volume", 100); model->RideMusicEnabled = reader->GetBoolean("ride_music", true); @@ -378,7 +392,7 @@ namespace Config writer->WriteString("audio_device", model->Device); writer->WriteBoolean("master_sound", model->MasterSoundEnabled); writer->WriteInt32("master_volume", model->MasterVolume); - writer->WriteInt32("title_music", EnumValue(model->TitleMusic)); + writer->WriteInt32("title_theme", EnumValue(model->TitleMusic)); writer->WriteBoolean("sound", model->SoundEnabled); writer->WriteInt32("sound_volume", model->SoundVolume); writer->WriteBoolean("ride_music", model->RideMusicEnabled); diff --git a/src/openrct2/config/Config.h b/src/openrct2/config/Config.h index 9992cf0f49..c3555fd8ad 100644 --- a/src/openrct2/config/Config.h +++ b/src/openrct2/config/Config.h @@ -135,6 +135,7 @@ struct InterfaceConfiguration int32_t ObjectSelectionFilterFlags; int32_t ScenarioselectLastTab; bool ListRideVehiclesSeparately; + bool WindowButtonsOnTheLeft; }; struct SoundConfiguration @@ -251,9 +252,10 @@ enum class MeasurementFormat : int32_t enum class TitleMusicKind : int32_t { None, + Random, + OpenRCT2, RCT1, RCT2, - Random }; extern GeneralConfiguration gConfigGeneral; diff --git a/src/openrct2/config/ConfigEnum.hpp b/src/openrct2/config/ConfigEnum.hpp index 302626ac48..39cd501857 100644 --- a/src/openrct2/config/ConfigEnum.hpp +++ b/src/openrct2/config/ConfigEnum.hpp @@ -61,7 +61,7 @@ public: { for (const auto& entry : _entries) { - if (String::Equals(entry.Key, key, true)) + if (String::IEquals(entry.Key, key)) { return entry.Value; } diff --git a/src/openrct2/config/IniReader.cpp b/src/openrct2/config/IniReader.cpp index 46fbbc783d..025e054ac9 100644 --- a/src/openrct2/config/IniReader.cpp +++ b/src/openrct2/config/IniReader.cpp @@ -133,7 +133,7 @@ public: std::string value; if (TryGetString(name, &value)) { - result = String::Equals(value, "true", true); + result = String::IEquals(value, "true"); } return result; } diff --git a/src/openrct2/core/DataSerialiserTraits.h b/src/openrct2/core/DataSerialiserTraits.h index 017d7a6792..ee1663b239 100644 --- a/src/openrct2/core/DataSerialiserTraits.h +++ b/src/openrct2/core/DataSerialiserTraits.h @@ -890,3 +890,38 @@ template struct DataSerializerTraitsTWrite(msg, strlen(msg)); } }; + +template<> struct DataSerializerTraitsT +{ + static void encode(OpenRCT2::IStream* stream, const Banner& banner) + { + DataSerializerTraits().encode(stream, banner.id); + DataSerializerTraits().encode(stream, banner.type); + stream->WriteValue(banner.flags); + stream->WriteString(banner.text); + stream->WriteValue(banner.colour); + DataSerializerTraits().encode(stream, banner.ride_index); + stream->WriteValue(banner.text_colour); + DataSerializerTraits().encode(stream, banner.position); + } + + static void decode(OpenRCT2::IStream* stream, Banner& banner) + { + DataSerializerTraits().decode(stream, banner.id); + DataSerializerTraits().decode(stream, banner.type); + stream->Read(&banner.flags); + banner.text = stream->ReadStdString(); + stream->Read(&banner.colour); + DataSerializerTraits().decode(stream, banner.ride_index); + stream->Read(&banner.text_colour); + DataSerializerTraits().decode(stream, banner.position); + } + + static void log(OpenRCT2::IStream* stream, const Banner& banner) + { + char msg[128] = {}; + snprintf( + msg, sizeof(msg), "Banner(x = %d, y = %d, text = %s)", banner.position.x, banner.position.y, banner.text.c_str()); + stream->Write(msg, strlen(msg)); + } +}; \ No newline at end of file diff --git a/src/openrct2/core/FileIndex.hpp b/src/openrct2/core/FileIndex.hpp index 7fa6b9e759..2196b2b01c 100644 --- a/src/openrct2/core/FileIndex.hpp +++ b/src/openrct2/core/FileIndex.hpp @@ -149,13 +149,13 @@ private: auto scanner = Path::ScanDirectory(pattern, true); while (scanner->Next()) { - auto fileInfo = scanner->GetFileInfo(); - auto path = std::string(scanner->GetPath()); + const auto& fileInfo = scanner->GetFileInfo(); + auto path = scanner->GetPath(); stats.TotalFiles++; - stats.TotalFileSize += fileInfo->Size; - stats.FileDateModifiedChecksum ^= static_cast(fileInfo->LastModified >> 32) - ^ static_cast(fileInfo->LastModified & 0xFFFFFFFF); + stats.TotalFileSize += fileInfo.Size; + stats.FileDateModifiedChecksum ^= static_cast(fileInfo.LastModified >> 32) + ^ static_cast(fileInfo.LastModified & 0xFFFFFFFF); stats.FileDateModifiedChecksum = Numerics::ror32(stats.FileDateModifiedChecksum, 5); stats.PathChecksum += GetPathChecksum(path); diff --git a/src/openrct2/core/FileScanner.cpp b/src/openrct2/core/FileScanner.cpp index 2394cad7a1..f8ff579227 100644 --- a/src/openrct2/core/FileScanner.cpp +++ b/src/openrct2/core/FileScanner.cpp @@ -50,7 +50,7 @@ struct DirectoryChild uint64_t LastModified = 0; }; -static uint32_t GetPathChecksum(const utf8* path); +static uint32_t GetPathChecksum(u8string_view path); static bool MatchWildcard(const utf8* fileName, const utf8* pattern); class FileScannerBase : public IFileScanner @@ -58,64 +58,54 @@ class FileScannerBase : public IFileScanner private: struct DirectoryState { - std::string Path; + u8string Path; std::vector Listing; int32_t Index = 0; }; // Options - std::string _rootPath; - std::vector _patterns; - bool _recurse; + const u8string _rootPath; + const std::vector _patterns; + const bool _recurse; // State bool _started = false; std::stack _directoryStack; // Current - FileScanner::FileInfo* _currentFileInfo; - utf8* _currentPath; + FileScanner::FileInfo _currentFileInfo; + u8string _currentPath; public: - FileScannerBase(const std::string& pattern, bool recurse) + FileScannerBase(u8string_view pattern, bool recurse) + : _rootPath(Path::GetDirectory(pattern)) + , _patterns(GetPatterns(Path::GetFileName(pattern))) + , _recurse(recurse) { - _rootPath = Path::GetDirectory(pattern); - _recurse = recurse; - _patterns = GetPatterns(Path::GetFileName(pattern)); - - _currentPath = Memory::Allocate(MAX_PATH); - _currentFileInfo = Memory::Allocate(); - - Reset(); } - ~FileScannerBase() override - { - Memory::Free(_currentPath); - Memory::Free(_currentFileInfo); - } + ~FileScannerBase() override = default; - const FileScanner::FileInfo* GetFileInfo() const override + const FileScanner::FileInfo& GetFileInfo() const override { return _currentFileInfo; } - const utf8* GetPath() const override + const u8string& GetPath() const override { return _currentPath; } - const utf8* GetPathRelative() const override + u8string GetPathRelative() const override { - // +1 to remove the path separator - return _currentPath + _rootPath.size() + 1; + return Path::GetRelative(_currentPath, _rootPath); } void Reset() override { _started = false; - _directoryStack = std::stack(); - _currentPath[0] = 0; + _directoryStack = {}; + _currentPath.clear(); } bool Next() override @@ -147,12 +137,11 @@ public: } else if (PatternMatch(child->Name)) { - auto path = Path::Combine(state->Path, child->Name); - String::Set(_currentPath, MAX_PATH, path.c_str()); + _currentPath = Path::Combine(state->Path, child->Name); - _currentFileInfo->Name = child->Name.c_str(); - _currentFileInfo->Size = child->Size; - _currentFileInfo->LastModified = child->LastModified; + _currentFileInfo.Name = child->Name; + _currentFileInfo.Size = child->Size; + _currentFileInfo.LastModified = child->LastModified; return true; } } @@ -216,7 +205,7 @@ private: class FileScannerWindows final : public FileScannerBase { public: - FileScannerWindows(const std::string& pattern, bool recurse) + FileScannerWindows(u8string_view pattern, bool recurse) : FileScannerBase(pattern, recurse) { } @@ -269,7 +258,7 @@ private: class FileScannerUnix final : public FileScannerBase { public: - FileScannerUnix(const std::string& pattern, bool recurse) + FileScannerUnix(u8string_view pattern, bool recurse) : FileScannerBase(pattern, recurse) { } @@ -349,13 +338,13 @@ void Path::QueryDirectory(QueryDirectoryResult* result, const std::string& patte auto scanner = Path::ScanDirectory(pattern, true); while (scanner->Next()) { - const FileScanner::FileInfo* fileInfo = scanner->GetFileInfo(); - const utf8* path = scanner->GetPath(); + const FileScanner::FileInfo& fileInfo = scanner->GetFileInfo(); + const u8string& path = scanner->GetPath(); result->TotalFiles++; - result->TotalFileSize += fileInfo->Size; - result->FileDateModifiedChecksum ^= static_cast(fileInfo->LastModified >> 32) - ^ static_cast(fileInfo->LastModified & 0xFFFFFFFF); + result->TotalFileSize += fileInfo.Size; + result->FileDateModifiedChecksum ^= static_cast(fileInfo.LastModified >> 32) + ^ static_cast(fileInfo.LastModified & 0xFFFFFFFF); result->FileDateModifiedChecksum = Numerics::ror32(result->FileDateModifiedChecksum, 5); result->PathChecksum += GetPathChecksum(path); } @@ -380,12 +369,12 @@ std::vector Path::GetDirectories(const std::string& path) return subDirectories; } -static uint32_t GetPathChecksum(const utf8* path) +static uint32_t GetPathChecksum(u8string_view path) { uint32_t hash = 0xD8430DED; - for (const utf8* ch = path; *ch != '\0'; ch++) + for (const utf8 ch : path) { - hash += (*ch); + hash += ch; hash += (hash << 10); hash ^= (hash >> 6); } diff --git a/src/openrct2/core/FileScanner.h b/src/openrct2/core/FileScanner.h index da319d3fbd..f4b343598a 100644 --- a/src/openrct2/core/FileScanner.h +++ b/src/openrct2/core/FileScanner.h @@ -20,7 +20,7 @@ namespace FileScanner { struct FileInfo { - const utf8* Name; + u8string Name; uint64_t Size; uint64_t LastModified; }; @@ -30,9 +30,9 @@ struct IFileScanner { virtual ~IFileScanner() = default; - virtual const FileScanner::FileInfo* GetFileInfo() const abstract; - virtual const utf8* GetPath() const abstract; - virtual const utf8* GetPathRelative() const abstract; + virtual const FileScanner::FileInfo& GetFileInfo() const abstract; + virtual const u8string& GetPath() const abstract; + virtual u8string GetPathRelative() const abstract; virtual void Reset() abstract; virtual bool Next() abstract; diff --git a/src/openrct2/core/Guard.cpp b/src/openrct2/core/Guard.cpp index 72433fc238..6855092868 100644 --- a/src/openrct2/core/Guard.cpp +++ b/src/openrct2/core/Guard.cpp @@ -24,14 +24,6 @@ #include #include -void openrct2_assert_fwd(bool expression, const char* message, ...) -{ - va_list va; - va_start(va, message); - Guard::Assert_VA(expression, message, va); - va_end(va); -} - namespace Guard { constexpr const utf8* ASSERTION_MESSAGE = "An assertion failed, please report this to the OpenRCT2 developers."; diff --git a/src/openrct2/core/Guard.hpp b/src/openrct2/core/Guard.hpp index 58d4b3d690..5e9432a903 100644 --- a/src/openrct2/core/Guard.hpp +++ b/src/openrct2/core/Guard.hpp @@ -15,14 +15,6 @@ #include #include -void openrct2_assert_fwd(bool expression, const char* message, ...); - -#define openrct2_assert(expr, msg, ...) \ - if (!(expr)) \ - { \ - openrct2_assert_fwd((expr), msg, ##__VA_ARGS__); \ - } - enum class ASSERT_BEHAVIOUR { ABORT, diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 894a097224..4f99f95055 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -53,9 +53,12 @@ namespace Path return fs::u8path(path).parent_path().u8string(); } - void CreateDirectory(u8string_view path) + bool CreateDirectory(u8string_view path) { - Platform::EnsureDirectoryExists(u8string(path).c_str()); + std::error_code ec; + fs::create_directories(fs::u8path(path), ec); + // create_directories returns false if the directory already exists, but the error code is zero. + return ec.value() == 0; } bool DirectoryExists(u8string_view path) @@ -97,9 +100,15 @@ namespace Path return fs::absolute(fs::u8path(relative), ec).u8string(); } + u8string GetRelative(u8string_view path, u8string_view base) + { + std::error_code ec; + return fs::relative(fs::u8path(path), fs::u8path(base), ec).u8string(); + } + bool Equals(u8string_view a, u8string_view b) { - return String::Equals(a, b, Platform::ShouldIgnoreCase()); + return Platform::ShouldIgnoreCase() ? String::IEquals(a, b) : String::Equals(a, b); } u8string ResolveCasing(u8string_view path) diff --git a/src/openrct2/core/Path.hpp b/src/openrct2/core/Path.hpp index 8ccf2aea39..5653116e5d 100644 --- a/src/openrct2/core/Path.hpp +++ b/src/openrct2/core/Path.hpp @@ -24,7 +24,7 @@ namespace Path } u8string GetDirectory(u8string_view path); - void CreateDirectory(u8string_view path); + bool CreateDirectory(u8string_view path); bool DirectoryExists(u8string_view path); bool DeleteDirectory(u8string_view path); u8string GetFileName(u8string_view origPath); @@ -33,6 +33,7 @@ namespace Path u8string WithExtension(u8string_view path, u8string_view newExtension); bool IsAbsolute(u8string_view path); u8string GetAbsolute(u8string_view relative); + u8string GetRelative(u8string_view path, u8string_view base); bool Equals(u8string_view a, u8string_view b); /** diff --git a/src/openrct2/core/RTL.FriBidi.cpp b/src/openrct2/core/RTL.FriBidi.cpp index 3b398a5e08..fa87920b10 100644 --- a/src/openrct2/core/RTL.FriBidi.cpp +++ b/src/openrct2/core/RTL.FriBidi.cpp @@ -19,7 +19,7 @@ extern "C" { # include } -static constexpr const uint16_t BufferLength = 1024; +static constexpr uint16_t BufferLength = 1024; std::string FixRTL(std::string& input) { diff --git a/src/openrct2/core/String.cpp b/src/openrct2/core/String.cpp index ccdd7d0fbf..321514997c 100644 --- a/src/openrct2/core/String.cpp +++ b/src/openrct2/core/String.cpp @@ -33,6 +33,11 @@ #include "String.hpp" #include "StringBuilder.h" +#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) +# include +# define _stricmp(x, y) strcasecmp((x), (y)) +#endif + namespace String { std::string ToStd(const utf8* str) @@ -145,66 +150,28 @@ namespace String return strcmp(a, b); } - bool Equals(std::string_view a, std::string_view b, bool ignoreCase) + template static bool EqualsImpl(TString&& lhs, TString&& rhs, bool ignoreCase) { - if (ignoreCase) - { - if (a.size() == b.size()) + return std::equal(lhs.begin(), lhs.end(), rhs.begin(), rhs.end(), [ignoreCase](auto a, auto b) { + const auto first = static_cast(a); + const auto second = static_cast(b); + if (((first | second) & 0x80) != 0) { - for (size_t i = 0; i < a.size(); i++) - { - if (tolower(static_cast(a[i])) != tolower(static_cast(b[i]))) - { - return false; - } - } - return true; + // Only do case insensitive comparison on ASCII characters + return first == second; } - - return false; - } - - return a == b; + return ignoreCase ? (tolower(first) == tolower(second)) : (first == second); + }); } - bool Equals(const std::string& a, const std::string& b, bool ignoreCase) + bool Equals(u8string_view a, u8string_view b) { - if (a.size() != b.size()) - return false; + return EqualsImpl(a, b, false); + } - if (ignoreCase) - { - for (size_t i = 0; i < a.size(); i++) - { - auto ai = a[i]; - auto bi = b[i]; - - // Only do case insensitive comparison on ASCII characters - if ((ai & 0x80) != 0 || (bi & 0x80) != 0) - { - if (a[i] != b[i]) - { - return false; - } - } - else if (tolower(static_cast(ai)) != tolower(static_cast(bi))) - { - return false; - } - } - } - else - { - for (size_t i = 0; i < a.size(); i++) - { - if (a[i] != b[i]) - { - return false; - } - } - } - - return true; + bool Equals(const u8string& a, const u8string& b) + { + return EqualsImpl(a, b, false); } bool Equals(const utf8* a, const utf8* b, bool ignoreCase) @@ -222,12 +189,31 @@ namespace String return strcmp(a, b) == 0; } + bool IEquals(u8string_view a, u8string_view b) + { + return EqualsImpl(a, b, true); + } + + bool IEquals(const u8string& a, const u8string& b) + { + return EqualsImpl(a, b, true); + } + + bool IEquals(const utf8* a, const utf8* b) + { + if (a == b) + return true; + if (a == nullptr || b == nullptr) + return false; + return _stricmp(a, b) == 0; + } + bool StartsWith(std::string_view str, std::string_view match, bool ignoreCase) { if (str.size() >= match.size()) { auto view = str.substr(0, match.size()); - return Equals(view, match, ignoreCase); + return EqualsImpl(view, match, ignoreCase); } return false; } @@ -237,7 +223,7 @@ namespace String if (str.size() >= match.size()) { auto view = str.substr(str.size() - match.size()); - return Equals(view, match, ignoreCase); + return EqualsImpl(view, match, ignoreCase); } return false; } @@ -254,7 +240,7 @@ namespace String for (size_t start = 0; start <= end; start++) { auto sub = haystack.substr(start, needle.size()); - if (Equals(sub, needle, ignoreCase)) + if (EqualsImpl(sub, needle, ignoreCase)) { return true; } @@ -698,6 +684,23 @@ namespace String return trunc; } + std::string_view UTF8TruncateCodePoints(std::string_view v, size_t size) + { + size_t i = 0; + while (i < v.size() && size > 0) + { + auto length = UTF8GetCodePointSize(v.substr(i, v.size())); + if (!length.has_value()) + { + return v.substr(0, i); + } + i += length.value(); + size--; + } + + return v.substr(0, i); + } + std::string URLEncode(std::string_view value) { std::ostringstream escaped; diff --git a/src/openrct2/core/String.hpp b/src/openrct2/core/String.hpp index 49389b0804..6486795a29 100644 --- a/src/openrct2/core/String.hpp +++ b/src/openrct2/core/String.hpp @@ -56,9 +56,14 @@ namespace String bool IsNullOrEmpty(const utf8* str); int32_t Compare(const std::string& a, const std::string& b, bool ignoreCase = false); int32_t Compare(const utf8* a, const utf8* b, bool ignoreCase = false); - bool Equals(std::string_view a, std::string_view b, bool ignoreCase = false); - bool Equals(const std::string& a, const std::string& b, bool ignoreCase = false); + + bool Equals(u8string_view a, u8string_view b); + bool Equals(const u8string& a, const u8string& b); bool Equals(const utf8* a, const utf8* b, bool ignoreCase = false); + bool IEquals(u8string_view a, u8string_view b); + bool IEquals(const u8string& a, const u8string& b); + bool IEquals(const utf8* a, const utf8* b); + bool StartsWith(std::string_view str, std::string_view match, bool ignoreCase = false); bool EndsWith(std::string_view str, std::string_view match, bool ignoreCase = false); bool Contains(std::string_view haystack, std::string_view needle, bool ignoreCase = false); @@ -174,6 +179,12 @@ namespace String */ std::string_view UTF8Truncate(std::string_view v, size_t size); + /** + * Truncates a string to at most `size` codepoints, + * making sure not to cut in the middle of a sequence. + */ + std::string_view UTF8TruncateCodePoints(std::string_view v, size_t size); + // Escapes special characters in a string to the percentage equivalent that can be used in URLs. std::string URLEncode(std::string_view value); } // namespace String @@ -215,7 +226,7 @@ public: { const utf8* nextch; GetNextCodepoint(&_str[_index], &nextch); - _index = nextch - _str.data(); + _index = std::min(nextch - _str.data(), _str.size()); } return *this; } @@ -226,7 +237,7 @@ public: { const utf8* nextch; GetNextCodepoint(&_str[_index], &nextch); - _index = nextch - _str.data(); + _index = std::min(nextch - _str.data(), _str.size()); } return result; } @@ -240,7 +251,7 @@ public: }; CodepointView(std::string_view str) - : _str(str) + : _str(String::UTF8Truncate(str, str.size())) { } diff --git a/src/openrct2/core/ZipAndroid.cpp b/src/openrct2/core/ZipAndroid.cpp index 6b1083fa9a..13cf768e4f 100644 --- a/src/openrct2/core/ZipAndroid.cpp +++ b/src/openrct2/core/ZipAndroid.cpp @@ -121,17 +121,17 @@ public: void SetFileData(std::string_view path, std::vector&& data) override { - STUB(); + LOG_WARNING("Function %s at %s:%d is a stub.", __PRETTY_FUNCTION__, __FILE__, __LINE__); } void DeleteFile(std::string_view) override { - STUB(); + LOG_WARNING("Function %s at %s:%d is a stub.", __PRETTY_FUNCTION__, __FILE__, __LINE__); } void RenameFile(std::string_view, std::string_view) override { - STUB(); + LOG_WARNING("Function %s at %s:%d is a stub.", __PRETTY_FUNCTION__, __FILE__, __LINE__); } }; diff --git a/src/openrct2/drawing/AVX2Drawing.cpp b/src/openrct2/drawing/AVX2Drawing.cpp index f83a210494..ded3d4a36a 100644 --- a/src/openrct2/drawing/AVX2Drawing.cpp +++ b/src/openrct2/drawing/AVX2Drawing.cpp @@ -52,7 +52,7 @@ void MaskAvx2( int32_t width, int32_t height, const uint8_t* RESTRICT maskSrc, const uint8_t* RESTRICT colourSrc, uint8_t* RESTRICT dst, int32_t maskWrap, int32_t colourWrap, int32_t dstWrap) { - openrct2_assert(false, "AVX2 function called on a CPU that doesn't support AVX2"); + Guard::Fail("AVX2 function called on a CPU that doesn't support AVX2"); } #endif // __AVX2__ diff --git a/src/openrct2/drawing/Drawing.Sprite.cpp b/src/openrct2/drawing/Drawing.Sprite.cpp index d98fed7f14..1f325e52f3 100644 --- a/src/openrct2/drawing/Drawing.Sprite.cpp +++ b/src/openrct2/drawing/Drawing.Sprite.cpp @@ -699,7 +699,7 @@ const G1Element* GfxGetG1Element(const ImageId imageId) const G1Element* GfxGetG1Element(ImageIndex image_id) { - openrct2_assert(!gOpenRCT2NoGraphics, "GfxGetG1Element called on headless instance"); + Guard::Assert(!gOpenRCT2NoGraphics, "GfxGetG1Element called on headless instance"); auto offset = static_cast(image_id); if (offset == 0x7FFFF || offset == ImageIndexUndefined) @@ -768,9 +768,9 @@ void GfxSetG1Element(ImageIndex imageId, const G1Element* g1) || (imageId >= SPR_SCROLLING_TEXT_START && imageId < SPR_SCROLLING_TEXT_END); #ifdef DEBUG - openrct2_assert(!gOpenRCT2NoGraphics, "GfxSetG1Element called on headless instance"); - openrct2_assert(isValid || isTemp, "GfxSetG1Element called with unexpected image id"); - openrct2_assert(g1 != nullptr, "g1 was nullptr"); + Guard::Assert(!gOpenRCT2NoGraphics, "GfxSetG1Element called on headless instance"); + Guard::Assert(isValid || isTemp, "GfxSetG1Element called with unexpected image id"); + Guard::Assert(g1 != nullptr, "g1 was nullptr"); #endif if (g1 != nullptr) diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index dbdbe752a8..649271c30f 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -709,30 +709,34 @@ ImageCatalogue ImageId::GetCatalogue() const return ImageCatalogue::UNKNOWN; } -void (*MaskFn)( - int32_t width, int32_t height, const uint8_t* RESTRICT maskSrc, const uint8_t* RESTRICT colourSrc, uint8_t* RESTRICT dst, - int32_t maskWrap, int32_t colourWrap, int32_t dstWrap) - = nullptr; - -void MaskInit() +static auto GetMaskFunction() { if (AVX2Available()) { LOG_VERBOSE("registering AVX2 mask function"); - MaskFn = MaskAvx2; + return MaskAvx2; } else if (SSE41Available()) { LOG_VERBOSE("registering SSE4.1 mask function"); - MaskFn = MaskSse4_1; + return MaskSse4_1; } else { LOG_VERBOSE("registering scalar mask function"); - MaskFn = MaskScalar; + return MaskScalar; } } +static const auto MaskFunc = GetMaskFunction(); + +void MaskFn( + int32_t width, int32_t height, const uint8_t* RESTRICT maskSrc, const uint8_t* RESTRICT colourSrc, uint8_t* RESTRICT dst, + int32_t maskWrap, int32_t colourWrap, int32_t dstWrap) +{ + MaskFunc(width, height, maskSrc, colourSrc, dst, maskWrap, colourWrap, dstWrap); +} + void GfxFilterPixel(DrawPixelInfo& dpi, const ScreenCoordsXY& coords, FilterPaletteID palette) { GfxFilterRect(dpi, { coords, coords }, palette); @@ -783,7 +787,7 @@ void LoadPalette() if (water_type != nullptr) { - openrct2_assert(water_type->image_id != 0xFFFFFFFF, "Failed to load water palette"); + Guard::Assert(water_type->image_id != 0xFFFFFFFF, "Failed to load water palette"); palette = water_type->image_id; } diff --git a/src/openrct2/drawing/Drawing.h b/src/openrct2/drawing/Drawing.h index 4959e8e592..35da0cfd23 100644 --- a/src/openrct2/drawing/Drawing.h +++ b/src/openrct2/drawing/Drawing.h @@ -44,7 +44,7 @@ struct PaletteBGRA uint8_t Alpha{}; }; -constexpr const auto PALETTE_SIZE = 256; +constexpr auto PALETTE_SIZE = 256; struct GamePalette { @@ -597,9 +597,8 @@ void MaskSse4_1( void MaskAvx2( int32_t width, int32_t height, const uint8_t* RESTRICT maskSrc, const uint8_t* RESTRICT colourSrc, uint8_t* RESTRICT dst, int32_t maskWrap, int32_t colourWrap, int32_t dstWrap); -void MaskInit(); -extern void (*MaskFn)( +void MaskFn( int32_t width, int32_t height, const uint8_t* RESTRICT maskSrc, const uint8_t* RESTRICT colourSrc, uint8_t* RESTRICT dst, int32_t maskWrap, int32_t colourWrap, int32_t dstWrap); diff --git a/src/openrct2/drawing/Font.cpp b/src/openrct2/drawing/Font.cpp index 98b72bc3da..e1bf06091f 100644 --- a/src/openrct2/drawing/Font.cpp +++ b/src/openrct2/drawing/Font.cpp @@ -21,7 +21,7 @@ #include #include -static constexpr const int32_t SpriteFontLineHeight[FontStyleCount] = { +static constexpr int32_t SpriteFontLineHeight[FontStyleCount] = { 10, 10, 6, @@ -117,6 +117,11 @@ static const std::unordered_map codepointOffsetMap = { // Cyrillic alphabet { UnicodeChar::cyrillic_io_uc, 203 - CS_SPRITE_FONT_OFFSET }, // Looks just like Ë + { UnicodeChar::cyrillic_ukrainian_ie_uc, SPR_G2_CYRILLIC_UKRAINIAN_IE_UPPER - SPR_CHAR_START }, + { UnicodeChar::cyrillic_dze_uc, 'S' - CS_SPRITE_FONT_OFFSET }, + { UnicodeChar::cyrillic_dotted_i_uc, 'I' - CS_SPRITE_FONT_OFFSET }, + { UnicodeChar::cyrillic_yi_uc, 207 - CS_SPRITE_FONT_OFFSET }, // Looks just like Ï + { UnicodeChar::cyrillic_je_uc, 'J' - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::cyrillic_a_uc, 'A' - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::cyrillic_be_uc, SPR_G2_CYRILLIC_BE_UPPER - SPR_CHAR_START }, { UnicodeChar::cyrillic_ve_uc, 'B' - CS_SPRITE_FONT_OFFSET }, @@ -182,7 +187,14 @@ static const std::unordered_map codepointOffsetMap = { { UnicodeChar::cyrillic_e, SPR_G2_CYRILLIC_E_LOWER - SPR_CHAR_START }, { UnicodeChar::cyrillic_yu, SPR_G2_CYRILLIC_YU_LOWER - SPR_CHAR_START }, { UnicodeChar::cyrillic_ya, SPR_G2_CYRILLIC_YA_LOWER - SPR_CHAR_START }, - { UnicodeChar::cyrillic_io, 235 - CS_SPRITE_FONT_OFFSET }, // Looks just like ë + { UnicodeChar::cyrillic_io, 235 - CS_SPRITE_FONT_OFFSET }, // Looks just like ë + { UnicodeChar::cyrillic_ukrainian_ie, SPR_G2_CYRILLIC_UKRAINIAN_IE_LOWER - SPR_CHAR_START }, // Looks just like ë + { UnicodeChar::cyrillic_dze, 's' - CS_SPRITE_FONT_OFFSET }, + { UnicodeChar::cyrillic_dotted_i, 'i' - CS_SPRITE_FONT_OFFSET }, + { UnicodeChar::cyrillic_yi, 239 - CS_SPRITE_FONT_OFFSET }, // Looks just like ï + { UnicodeChar::cyrillic_je, 'j' - CS_SPRITE_FONT_OFFSET }, + { UnicodeChar::cyrillic_ghe_upturn_uc, SPR_G2_CYRILLIC_GHE_UPTURN_UPPER - SPR_CHAR_START }, + { UnicodeChar::cyrillic_ghe_upturn, SPR_G2_CYRILLIC_GHE_UPTURN_LOWER - SPR_CHAR_START }, // Punctuation { UnicodeChar::left_brace, SPR_G2_LEFT_BRACE - SPR_CHAR_START }, diff --git a/src/openrct2/drawing/Font.h b/src/openrct2/drawing/Font.h index 4f8440aef6..ecd74b5749 100644 --- a/src/openrct2/drawing/Font.h +++ b/src/openrct2/drawing/Font.h @@ -15,7 +15,7 @@ #include -constexpr const uint16_t FONT_SPRITE_GLYPH_COUNT = 224; +constexpr uint16_t FONT_SPRITE_GLYPH_COUNT = 224; enum class FontStyle : uint8_t { @@ -24,8 +24,8 @@ enum class FontStyle : uint8_t Tiny = 2, }; -constexpr const uint8_t FontStyleCount = 3; -constexpr const std::array FontStyles = { FontStyle::Small, FontStyle::Medium, FontStyle::Tiny }; +constexpr uint8_t FontStyleCount = 3; +constexpr std::array FontStyles = { FontStyle::Small, FontStyle::Medium, FontStyle::Tiny }; #ifndef NO_TTF diff --git a/src/openrct2/drawing/ImageImporter.h b/src/openrct2/drawing/ImageImporter.h index 35c43f7126..9ae7ad843e 100644 --- a/src/openrct2/drawing/ImageImporter.h +++ b/src/openrct2/drawing/ImageImporter.h @@ -85,7 +85,7 @@ namespace OpenRCT2::Drawing }; } // namespace OpenRCT2::Drawing -constexpr const GamePalette StandardPalette = { { +constexpr GamePalette StandardPalette = { { // 0 (Unused/Transparent) { 0, 0, 0, 255 }, diff --git a/src/openrct2/drawing/LightFX.cpp b/src/openrct2/drawing/LightFX.cpp index 3033fbb88a..939ef9907e 100644 --- a/src/openrct2/drawing/LightFX.cpp +++ b/src/openrct2/drawing/LightFX.cpp @@ -695,7 +695,7 @@ uint32_t LightFXGetLightPolution() return _lightPolution_front; } -static constexpr const int16_t offsetLookup[] = { +static constexpr int16_t offsetLookup[] = { 10, 10, 9, 8, 7, 6, 4, 2, 0, -2, -4, -6, -7, -8, -9, -10, -10, -10, -9, -8, -7, -6, -4, -2, 0, 2, 4, 6, 7, 8, 9, 10, }; void LightFxAddLightsMagicVehicle_ObservationTower(const Vehicle* vehicle) diff --git a/src/openrct2/drawing/SSE41Drawing.cpp b/src/openrct2/drawing/SSE41Drawing.cpp index 8e24a80e2b..6d5204780c 100644 --- a/src/openrct2/drawing/SSE41Drawing.cpp +++ b/src/openrct2/drawing/SSE41Drawing.cpp @@ -66,7 +66,7 @@ void MaskSse4_1( int32_t width, int32_t height, const uint8_t* RESTRICT maskSrc, const uint8_t* RESTRICT colourSrc, uint8_t* RESTRICT dst, int32_t maskWrap, int32_t colourWrap, int32_t dstWrap) { - openrct2_assert(false, "SSE 4.1 function called on a CPU that doesn't support SSE 4.1"); + Guard::Fail("SSE 4.1 function called on a CPU that doesn't support SSE 4.1"); } #endif // __SSE4_1__ diff --git a/src/openrct2/drawing/ScrollingText.cpp b/src/openrct2/drawing/ScrollingText.cpp index 45b32a2105..a07c344575 100644 --- a/src/openrct2/drawing/ScrollingText.cpp +++ b/src/openrct2/drawing/ScrollingText.cpp @@ -163,7 +163,7 @@ extern bool TempForScrollText; #define SCROLL_POS(x, y) (((y)*64) + (x)) // clang-format off -static constexpr const int16_t _scrollpos0[] = { +static constexpr int16_t _scrollpos0[] = { SCROLL_POS( 35, 12 ), SCROLL_POS( 36, 12 ), SCROLL_POS( 37, 11 ), @@ -190,7 +190,7 @@ static constexpr const int16_t _scrollpos0[] = { SCROLL_POS( 58, 1 ), -1, }; -static constexpr const int16_t _scrollpos1[] = { +static constexpr int16_t _scrollpos1[] = { SCROLL_POS( 5, 1 ), SCROLL_POS( 6, 1 ), SCROLL_POS( 7, 2 ), @@ -217,7 +217,7 @@ static constexpr const int16_t _scrollpos1[] = { SCROLL_POS( 28, 12 ), -1, }; -static constexpr const int16_t _scrollpos2[] = { +static constexpr int16_t _scrollpos2[] = { SCROLL_POS( 12, 1 ), SCROLL_POS( 13, 1 ), SCROLL_POS( 14, 2 ), @@ -259,7 +259,7 @@ static constexpr const int16_t _scrollpos2[] = { SCROLL_POS( 50, 1 ), -1, }; -static constexpr const int16_t _scrollpos3[] = { +static constexpr int16_t _scrollpos3[] = { SCROLL_POS( 16, 0 ), SCROLL_POS( 17, 1 ), SCROLL_POS( 18, 1 ), @@ -295,7 +295,7 @@ static constexpr const int16_t _scrollpos3[] = { SCROLL_POS( 48, 16 ), -1, }; -static constexpr const int16_t _scrollpos4[] = { +static constexpr int16_t _scrollpos4[] = { SCROLL_POS( 15, 17 ), SCROLL_POS( 16, 17 ), SCROLL_POS( 17, 16 ), @@ -332,7 +332,7 @@ static constexpr const int16_t _scrollpos4[] = { SCROLL_POS( 48, 0 ), -1, }; -static constexpr const int16_t _scrollpos5[] = { +static constexpr int16_t _scrollpos5[] = { SCROLL_POS( 4, 12 ), SCROLL_POS( 5, 12 ), SCROLL_POS( 6, 11 ), @@ -359,7 +359,7 @@ static constexpr const int16_t _scrollpos5[] = { SCROLL_POS( 27, 1 ), -1, }; -static constexpr const int16_t _scrollpos6[] = { +static constexpr int16_t _scrollpos6[] = { SCROLL_POS( 36, 1 ), SCROLL_POS( 37, 1 ), SCROLL_POS( 38, 2 ), @@ -386,7 +386,7 @@ static constexpr const int16_t _scrollpos6[] = { SCROLL_POS( 59, 12 ), -1, }; -static constexpr const int16_t _scrollpos7[] = { +static constexpr int16_t _scrollpos7[] = { SCROLL_POS( 8, 11 ), SCROLL_POS( 9, 11 ), SCROLL_POS( 10, 10 ), @@ -411,7 +411,7 @@ static constexpr const int16_t _scrollpos7[] = { SCROLL_POS( 29, 1 ), -1, }; -static constexpr const int16_t _scrollpos8[] = { +static constexpr int16_t _scrollpos8[] = { SCROLL_POS( 36, 2 ), SCROLL_POS( 37, 2 ), SCROLL_POS( 38, 3 ), @@ -434,7 +434,7 @@ static constexpr const int16_t _scrollpos8[] = { SCROLL_POS( 55, 11 ), -1, }; -static constexpr const int16_t _scrollpos9[] = { +static constexpr int16_t _scrollpos9[] = { SCROLL_POS( 11, 9 ), SCROLL_POS( 12, 9 ), SCROLL_POS( 13, 9 ), @@ -456,7 +456,7 @@ static constexpr const int16_t _scrollpos9[] = { SCROLL_POS( 29, 1 ), -1, }; -static constexpr const int16_t _scrollpos10[] = { +static constexpr int16_t _scrollpos10[] = { SCROLL_POS( 34, 1 ), SCROLL_POS( 35, 2 ), SCROLL_POS( 36, 3 ), @@ -478,7 +478,7 @@ static constexpr const int16_t _scrollpos10[] = { SCROLL_POS( 52, 9 ), -1, }; -static constexpr const int16_t _scrollpos11[] = { +static constexpr int16_t _scrollpos11[] = { SCROLL_POS( 14, 10 ), SCROLL_POS( 15, 9 ), SCROLL_POS( 16, 9 ), @@ -502,7 +502,7 @@ static constexpr const int16_t _scrollpos11[] = { SCROLL_POS( 34, 0 ), -1, }; -static constexpr const int16_t _scrollpos12[] = { +static constexpr int16_t _scrollpos12[] = { SCROLL_POS( 33, 1 ), SCROLL_POS( 34, 2 ), SCROLL_POS( 35, 2 ), @@ -526,7 +526,7 @@ static constexpr const int16_t _scrollpos12[] = { SCROLL_POS( 53, 11 ), -1, }; -static constexpr const int16_t _scrollpos13[] = { +static constexpr int16_t _scrollpos13[] = { SCROLL_POS( 12, 11 ), SCROLL_POS( 13, 10 ), SCROLL_POS( 14, 10 ), @@ -549,7 +549,7 @@ static constexpr const int16_t _scrollpos13[] = { SCROLL_POS( 31, 1 ), -1, }; -static constexpr const int16_t _scrollpos14[] = { +static constexpr int16_t _scrollpos14[] = { SCROLL_POS( 33, 1 ), SCROLL_POS( 34, 2 ), SCROLL_POS( 35, 2 ), @@ -573,7 +573,7 @@ static constexpr const int16_t _scrollpos14[] = { SCROLL_POS( 53, 11 ), -1, }; -static constexpr const int16_t _scrollpos15[] = { +static constexpr int16_t _scrollpos15[] = { SCROLL_POS( 10, 10 ), SCROLL_POS( 11, 10 ), SCROLL_POS( 12, 9 ), @@ -598,7 +598,7 @@ static constexpr const int16_t _scrollpos15[] = { SCROLL_POS( 31, 0 ), -1, }; -static constexpr const int16_t _scrollpos16[] = { +static constexpr int16_t _scrollpos16[] = { SCROLL_POS( 33, 0 ), SCROLL_POS( 34, 0 ), SCROLL_POS( 35, 1 ), @@ -623,7 +623,7 @@ static constexpr const int16_t _scrollpos16[] = { SCROLL_POS( 54, 10 ), -1, }; -static constexpr const int16_t _scrollpos17[] = { +static constexpr int16_t _scrollpos17[] = { SCROLL_POS( 6, 11 ), SCROLL_POS( 7, 11 ), SCROLL_POS( 8, 10 ), @@ -650,7 +650,7 @@ static constexpr const int16_t _scrollpos17[] = { SCROLL_POS( 29, 0 ), -1, }; -static constexpr const int16_t _scrollpos18[] = { +static constexpr int16_t _scrollpos18[] = { SCROLL_POS( 34, 0 ), SCROLL_POS( 35, 0 ), SCROLL_POS( 36, 1 ), @@ -677,7 +677,7 @@ static constexpr const int16_t _scrollpos18[] = { SCROLL_POS( 57, 11 ), -1, }; -static constexpr const int16_t _scrollpos19[] = { +static constexpr int16_t _scrollpos19[] = { SCROLL_POS( 13, 1 ), SCROLL_POS( 14, 1 ), SCROLL_POS( 15, 2 ), @@ -719,7 +719,7 @@ static constexpr const int16_t _scrollpos19[] = { SCROLL_POS( 51, 1 ), -1, }; -static constexpr const int16_t _scrollpos20[] = { +static constexpr int16_t _scrollpos20[] = { SCROLL_POS( 12, 1 ), SCROLL_POS( 13, 3 ), SCROLL_POS( 14, 4 ), @@ -760,7 +760,7 @@ static constexpr const int16_t _scrollpos20[] = { SCROLL_POS( 49, 3 ), -1, }; -static constexpr const int16_t _scrollpos21[] = { +static constexpr int16_t _scrollpos21[] = { SCROLL_POS( 12, 1 ), SCROLL_POS( 13, 1 ), SCROLL_POS( 14, 2 ), @@ -801,7 +801,7 @@ static constexpr const int16_t _scrollpos21[] = { SCROLL_POS( 49, 1 ), -1, }; -static constexpr const int16_t _scrollpos22[] = { +static constexpr int16_t _scrollpos22[] = { SCROLL_POS( 16, 1 ), SCROLL_POS( 17, 1 ), SCROLL_POS( 18, 2 ), @@ -837,7 +837,7 @@ static constexpr const int16_t _scrollpos22[] = { SCROLL_POS( 48, 1 ), -1, }; -static constexpr const int16_t _scrollpos23[] = { +static constexpr int16_t _scrollpos23[] = { SCROLL_POS( 15, 1 ), SCROLL_POS( 16, 2 ), SCROLL_POS( 17, 2 ), @@ -874,7 +874,7 @@ static constexpr const int16_t _scrollpos23[] = { SCROLL_POS( 48, 1 ), -1, }; -static constexpr const int16_t _scrollpos24[] = { +static constexpr int16_t _scrollpos24[] = { SCROLL_POS( 8, 9 ), SCROLL_POS( 9, 9 ), SCROLL_POS( 10, 8 ), @@ -897,7 +897,7 @@ static constexpr const int16_t _scrollpos24[] = { SCROLL_POS( 27, 0 ), -1, }; -static constexpr const int16_t _scrollpos25[] = { +static constexpr int16_t _scrollpos25[] = { SCROLL_POS( 36, 0 ), SCROLL_POS( 37, 0 ), SCROLL_POS( 38, 1 ), @@ -920,7 +920,7 @@ static constexpr const int16_t _scrollpos25[] = { SCROLL_POS( 55, 9 ), -1, }; -static constexpr const int16_t _scrollpos26[] = { +static constexpr int16_t _scrollpos26[] = { SCROLL_POS( 4, 13 ), SCROLL_POS( 5, 13 ), SCROLL_POS( 6, 12 ), @@ -951,7 +951,7 @@ static constexpr const int16_t _scrollpos26[] = { SCROLL_POS( 31, 0 ), -1, }; -static constexpr const int16_t _scrollpos27[] = { +static constexpr int16_t _scrollpos27[] = { SCROLL_POS( 32, 0 ), SCROLL_POS( 33, 0 ), SCROLL_POS( 34, 1 ), @@ -982,7 +982,7 @@ static constexpr const int16_t _scrollpos27[] = { SCROLL_POS( 59, 13 ), -1, }; -static constexpr const int16_t _scrollpos28[] = { +static constexpr int16_t _scrollpos28[] = { SCROLL_POS( 6, 13 ), SCROLL_POS( 7, 13 ), SCROLL_POS( 8, 12 ), @@ -1013,7 +1013,7 @@ static constexpr const int16_t _scrollpos28[] = { SCROLL_POS( 33, 0 ), -1, }; -static constexpr const int16_t _scrollpos29[] = { +static constexpr int16_t _scrollpos29[] = { SCROLL_POS( 30, 0 ), SCROLL_POS( 31, 0 ), SCROLL_POS( 32, 1 ), @@ -1044,7 +1044,7 @@ static constexpr const int16_t _scrollpos29[] = { SCROLL_POS( 57, 13 ), -1, }; -static constexpr const int16_t _scrollpos30[] = { +static constexpr int16_t _scrollpos30[] = { SCROLL_POS( 2, 30 ), SCROLL_POS( 3, 30 ), SCROLL_POS( 4, 29 ), @@ -1108,7 +1108,7 @@ static constexpr const int16_t _scrollpos30[] = { SCROLL_POS( 62, 0 ), -1, }; -static constexpr const int16_t _scrollpos31[] = { +static constexpr int16_t _scrollpos31[] = { SCROLL_POS( 1, 0 ), SCROLL_POS( 2, 1 ), SCROLL_POS( 3, 1 ), @@ -1172,7 +1172,7 @@ static constexpr const int16_t _scrollpos31[] = { SCROLL_POS( 61, 30 ), -1, }; -static constexpr const int16_t _scrollpos32[] = { +static constexpr int16_t _scrollpos32[] = { SCROLL_POS( 12, 0 ), SCROLL_POS( 13, 1 ), SCROLL_POS( 14, 1 ), @@ -1214,7 +1214,7 @@ static constexpr const int16_t _scrollpos32[] = { SCROLL_POS( 50, 19 ), -1, }; -static constexpr const int16_t _scrollpos33[] = { +static constexpr int16_t _scrollpos33[] = { SCROLL_POS( 12, 20 ), SCROLL_POS( 13, 20 ), SCROLL_POS( 14, 19 ), @@ -1257,7 +1257,7 @@ static constexpr const int16_t _scrollpos33[] = { SCROLL_POS( 51, 1 ), -1, }; -static constexpr const int16_t _scrollpos34[] = { +static constexpr int16_t _scrollpos34[] = { SCROLL_POS( 2, 14 ), SCROLL_POS( 3, 14 ), SCROLL_POS( 4, 13 ), @@ -1289,7 +1289,7 @@ static constexpr const int16_t _scrollpos34[] = { SCROLL_POS( 30, 0 ), -1, }; -static constexpr const int16_t _scrollpos35[] = { +static constexpr int16_t _scrollpos35[] = { SCROLL_POS( 33, 0 ), SCROLL_POS( 34, 0 ), SCROLL_POS( 35, 1 ), @@ -1321,7 +1321,7 @@ static constexpr const int16_t _scrollpos35[] = { SCROLL_POS( 61, 14 ), -1, }; -static constexpr const int16_t _scrollpos36[] = { +static constexpr int16_t _scrollpos36[] = { SCROLL_POS( 4, 0 ), SCROLL_POS( 5, 1 ), SCROLL_POS( 6, 2 ), @@ -1351,7 +1351,7 @@ static constexpr const int16_t _scrollpos36[] = { SCROLL_POS( 30, 12 ), -1, }; -static constexpr const int16_t _scrollpos37[] = { +static constexpr int16_t _scrollpos37[] = { SCROLL_POS( 32, 13 ), SCROLL_POS( 33, 12 ), SCROLL_POS( 34, 12 ), diff --git a/src/openrct2/drawing/TTF.cpp b/src/openrct2/drawing/TTF.cpp index b551f6a3b8..e1749579a7 100644 --- a/src/openrct2/drawing/TTF.cpp +++ b/src/openrct2/drawing/TTF.cpp @@ -35,7 +35,7 @@ struct ttf_cache_entry { TTFSurface* surface; TTF_Font* font; - utf8* text; + u8string text; uint32_t lastUseTick; }; @@ -43,7 +43,7 @@ struct ttf_getwidth_cache_entry { uint32_t width; TTF_Font* font; - utf8* text; + u8string text; uint32_t lastUseTick; }; @@ -197,11 +197,9 @@ static void TTFSurfaceCacheDispose(ttf_cache_entry* entry) if (entry->surface != nullptr) { TTFFreeSurface(entry->surface); - free(entry->text); - + entry->text.clear(); entry->surface = nullptr; entry->font = nullptr; - entry->text = nullptr; } } @@ -270,21 +268,19 @@ TTFSurface* TTFSurfaceCacheGetOrAdd(TTF_Font* font, std::string_view text) _ttfSurfaceCacheCount++; entry->surface = surface; entry->font = font; - entry->text = strndup(text.data(), text.size()); + entry->text = text; entry->lastUseTick = gCurrentDrawCount; return entry->surface; } static void TTFGetWidthCacheDispose(ttf_getwidth_cache_entry* entry) { - if (entry->text != nullptr) - { - free(entry->text); + if (entry->text.empty()) + return; - entry->width = 0; - entry->font = nullptr; - entry->text = nullptr; - } + entry->text.clear(); + entry->width = 0; + entry->font = nullptr; } static void TTFGetWidthCacheDisposeAll() @@ -310,7 +306,7 @@ uint32_t TTFGetWidthCacheGetOrAdd(TTF_Font* font, std::string_view text) entry = &_ttfGetWidthCache[index]; // Check if entry is a hit - if (entry->text == nullptr) + if (entry->text.empty()) break; if (entry->font == font && String::Equals(entry->text, text)) { @@ -342,7 +338,7 @@ uint32_t TTFGetWidthCacheGetOrAdd(TTF_Font* font, std::string_view text) _ttfGetWidthCacheCount++; entry->width = width; entry->font = font; - entry->text = strndup(text.data(), text.size()); + entry->text = text; entry->lastUseTick = gCurrentDrawCount; return entry->width; } diff --git a/src/openrct2/drawing/Weather.h b/src/openrct2/drawing/Weather.h index 5c98e2a00b..555c69b6ce 100644 --- a/src/openrct2/drawing/Weather.h +++ b/src/openrct2/drawing/Weather.h @@ -19,7 +19,7 @@ namespace OpenRCT2::Drawing } // clang-format off -static constexpr const uint8_t RainPattern[] = +static constexpr uint8_t RainPattern[] = { 32, 32, 0, 12, 0, 14, 0, 16, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, @@ -27,7 +27,7 @@ static constexpr const uint8_t RainPattern[] = 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 0, 0 }; -static constexpr const uint8_t SnowPattern[] = +static constexpr uint8_t SnowPattern[] = { 32, 32, 0, 32, 0, 32, 0, 16, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, diff --git a/src/openrct2/drawing/X8DrawingEngine.cpp b/src/openrct2/drawing/X8DrawingEngine.cpp index 3c483493a3..49cb9ecb1d 100644 --- a/src/openrct2/drawing/X8DrawingEngine.cpp +++ b/src/openrct2/drawing/X8DrawingEngine.cpp @@ -475,7 +475,7 @@ void X8DrawingContext::Clear(DrawPixelInfo* dpi, uint8_t paletteIndex) /** rct2: 0x0097FF04 */ // clang-format off -static constexpr const uint16_t Pattern[] = { +static constexpr uint16_t Pattern[] = { 0b0111111110000000, 0b0011111111000000, 0b0001111111100000, @@ -495,7 +495,7 @@ static constexpr const uint16_t Pattern[] = { }; /** rct2: 0x0097FF14 */ -static constexpr const uint16_t PatternInverse[] = { +static constexpr uint16_t PatternInverse[] = { 0b1000000001111111, 0b1100000000111111, 0b1110000000011111, diff --git a/src/openrct2/entity/Duck.cpp b/src/openrct2/entity/Duck.cpp index 25537895ea..6962e1f49a 100644 --- a/src/openrct2/entity/Duck.cpp +++ b/src/openrct2/entity/Duck.cpp @@ -23,10 +23,10 @@ #include #include -constexpr const int32_t DUCK_MAX_STATES = 5; +constexpr int32_t DUCK_MAX_STATES = 5; // clang-format off -static constexpr const CoordsXY DuckMoveOffset[] = +static constexpr CoordsXY DuckMoveOffset[] = { { -1, 0 }, { 0, 1 }, @@ -34,28 +34,28 @@ static constexpr const CoordsXY DuckMoveOffset[] = { 0, -1 }, }; -static constexpr const uint8_t DuckAnimationFlyToWater[] = +static constexpr uint8_t DuckAnimationFlyToWater[] = { 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t DuckAnimationSwim[] = +static constexpr uint8_t DuckAnimationSwim[] = { 0 }; -static constexpr const uint8_t DuckAnimationDrink[] = +static constexpr uint8_t DuckAnimationDrink[] = { 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0xFF }; -static constexpr const uint8_t DuckAnimationDoubleDrink[] = +static constexpr uint8_t DuckAnimationDoubleDrink[] = { 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 0, 0, 0, 0, 0xFF }; -static constexpr const uint8_t DuckAnimationFlyAway[] = +static constexpr uint8_t DuckAnimationFlyAway[] = { 8, 9, 10, 11, 12, 13 }; diff --git a/src/openrct2/entity/EntityRegistry.cpp b/src/openrct2/entity/EntityRegistry.cpp index b123f222f1..c8af092eb1 100644 --- a/src/openrct2/entity/EntityRegistry.cpp +++ b/src/openrct2/entity/EntityRegistry.cpp @@ -53,7 +53,7 @@ static std::vector _freeIdList; static bool _entityFlashingList[MAX_ENTITIES]; constexpr const uint32_t SPATIAL_INDEX_SIZE = (MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL) + 1; -constexpr const uint32_t SPATIAL_INDEX_LOCATION_NULL = SPATIAL_INDEX_SIZE - 1; +constexpr uint32_t SPATIAL_INDEX_LOCATION_NULL = SPATIAL_INDEX_SIZE - 1; static std::array, SPATIAL_INDEX_SIZE> gEntitySpatialIndex; @@ -130,7 +130,7 @@ EntityBase* GetEntity(EntityId entityIndex) { return nullptr; } - openrct2_assert(entityIndex.ToUnderlying() < MAX_ENTITIES, "Tried getting entity %u", entityIndex.ToUnderlying()); + Guard::Assert(entityIndex.ToUnderlying() < MAX_ENTITIES, "Tried getting entity %u", entityIndex.ToUnderlying()); return TryGetEntity(entityIndex); } diff --git a/src/openrct2/entity/EntityTweener.cpp b/src/openrct2/entity/EntityTweener.cpp index 64d7bec49b..8f724fe2ca 100644 --- a/src/openrct2/entity/EntityTweener.cpp +++ b/src/openrct2/entity/EntityTweener.cpp @@ -15,22 +15,26 @@ #include "EntityRegistry.h" #include + +void EntityTweener::AddEntity(EntityBase* entity) +{ + Entities.push_back(entity); + PrePos.emplace_back(entity->GetLocation()); +} + void EntityTweener::PopulateEntities() { for (auto ent : EntityList()) { - Entities.push_back(ent); - PrePos.emplace_back(ent->GetLocation()); + AddEntity(ent); } for (auto ent : EntityList()) { - Entities.push_back(ent); - PrePos.emplace_back(ent->GetLocation()); + AddEntity(ent); } for (auto ent : EntityList()) { - Entities.push_back(ent); - PrePos.emplace_back(ent->GetLocation()); + AddEntity(ent); } } @@ -57,9 +61,16 @@ void EntityTweener::PostTick() } } +static bool CanTweenEntity(EntityBase* ent) +{ + if (ent->Is() || ent->Is() || ent->Is()) + return true; + return false; +} + void EntityTweener::RemoveEntity(EntityBase* entity) { - if (!entity->Is() && !entity->Is()) + if (!CanTweenEntity(entity)) { // Only peeps and vehicles are tweened, bail if type is incorrect. return; diff --git a/src/openrct2/entity/EntityTweener.h b/src/openrct2/entity/EntityTweener.h index 1759370b37..441e033117 100644 --- a/src/openrct2/entity/EntityTweener.h +++ b/src/openrct2/entity/EntityTweener.h @@ -21,6 +21,7 @@ class EntityTweener private: void PopulateEntities(); + void AddEntity(EntityBase* entity); public: static EntityTweener& Get(); diff --git a/src/openrct2/entity/Fountain.cpp b/src/openrct2/entity/Fountain.cpp index 813f627d17..5705420de8 100644 --- a/src/openrct2/entity/Fountain.cpp +++ b/src/openrct2/entity/Fountain.cpp @@ -11,7 +11,7 @@ #include "../Game.h" #include "../core/DataSerialiser.h" -#include "../object/FootpathItemEntry.h" +#include "../object/PathAdditionEntry.h" #include "../paint/Paint.h" #include "../profiling/Profiling.h" #include "../scenario/Scenario.h" @@ -33,7 +33,7 @@ enum class PATTERN FAST_RANDOM_CHASERS, }; -static constexpr const std::array _fountainDirectionsNegative = { +static constexpr std::array _fountainDirectionsNegative = { CoordsXY{ -COORDS_XY_STEP, 0 }, CoordsXY{ -COORDS_XY_STEP, -COORDS_XY_STEP }, CoordsXY{ 0, 0 }, @@ -44,7 +44,7 @@ static constexpr const std::array _fountainDirectionsNegative = { CoordsXY{ -COORDS_XY_STEP, -COORDS_XY_STEP }, }; -static constexpr const std::array _fountainDirectionsPositive = { +static constexpr std::array _fountainDirectionsPositive = { CoordsXY{ COORDS_XY_STEP, 0 }, CoordsXY{ 0, 0 }, CoordsXY{ 0, COORDS_XY_STEP }, @@ -249,8 +249,8 @@ void JumpingFountain::AdvanceAnimation() bool JumpingFountain::IsJumpingFountain(const JumpingFountainType newType, const CoordsXYZ& newLoc) { - const int32_t pathBitFlagMask = newType == JumpingFountainType::Snow ? PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW - : PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER; + const int32_t pathAdditionFlagMask = newType == JumpingFountainType::Snow ? PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW + : PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER; TileElement* tileElement = MapGetFirstElementAt(newLoc); if (tileElement == nullptr) @@ -266,8 +266,8 @@ bool JumpingFountain::IsJumpingFountain(const JumpingFountainType newType, const if (!tileElement->AsPath()->HasAddition()) continue; - auto* pathBitEntry = tileElement->AsPath()->GetAdditionEntry(); - if (pathBitEntry != nullptr && pathBitEntry->flags & pathBitFlagMask) + auto* pathAdditionEntry = tileElement->AsPath()->GetAdditionEntry(); + if (pathAdditionEntry != nullptr && pathAdditionEntry->flags & pathAdditionFlagMask) { return true; } diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index a53e996631..f41c2152ec 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -17,6 +17,7 @@ #include "../core/DataSerialiser.h" #include "../core/Guard.hpp" #include "../core/Numerics.hpp" +#include "../core/String.hpp" #include "../entity/Balloon.h" #include "../entity/EntityRegistry.h" #include "../entity/MoneyEffect.h" @@ -29,9 +30,9 @@ #include "../management/Marketing.h" #include "../management/NewsItem.h" #include "../network/network.h" -#include "../object/FootpathItemEntry.h" #include "../object/LargeSceneryEntry.h" #include "../object/MusicObject.h" +#include "../object/PathAdditionEntry.h" #include "../object/WallSceneryEntry.h" #include "../peep/GuestPathfinding.h" #include "../peep/RideUseSystem.h" @@ -68,7 +69,7 @@ using namespace OpenRCT2; // entrance of the slide. Up to 4 waypoints for each 4 sides that an ride entrance can be located // and 4 different rotations of the ride. 4 * 4 * 4 = 64 locations. // clang-format off -static constexpr const CoordsXY SpiralSlideWalkingPath[64] = { +static constexpr CoordsXY SpiralSlideWalkingPath[64] = { { 56, 8 }, { 8, 8 }, { 8, 32 }, @@ -136,7 +137,7 @@ static constexpr const CoordsXY SpiralSlideWalkingPath[64] = { }; /** rct2: 0x00981F4C, 0x00981F4E */ -static constexpr const CoordsXY _WatchingPositionOffsets[] = { +static constexpr CoordsXY _WatchingPositionOffsets[] = { { 7, 5 }, { 5, 25 }, { 25, 5 }, @@ -171,7 +172,7 @@ static constexpr const CoordsXY _WatchingPositionOffsets[] = { { 0, 7 }, }; -static constexpr const ride_rating NauseaMaximumThresholds[] = { +static constexpr ride_rating NauseaMaximumThresholds[] = { 300, 600, 800, @@ -179,7 +180,7 @@ static constexpr const ride_rating NauseaMaximumThresholds[] = { }; /** rct2: 009823AC */ -static constexpr const PeepThoughtType crowded_thoughts[] = { +static constexpr PeepThoughtType crowded_thoughts[] = { PeepThoughtType::Lost, PeepThoughtType::Tired, PeepThoughtType::BadLitter, @@ -418,7 +419,7 @@ static struct }; // These arrays contain the base minimum and maximum nausea ratings for peeps, based on their nausea tolerance level. -static constexpr const ride_rating NauseaMinimumThresholds[] = { +static constexpr ride_rating NauseaMinimumThresholds[] = { 0, 0, 200, @@ -587,8 +588,10 @@ int32_t Guest::GetEasterEggNameId() const FormatStringLegacy(buffer, sizeof(buffer), STR_STRINGID, ft.Data()); for (uint32_t i = 0; i < std::size(gPeepEasterEggNames); i++) - if (_stricmp(buffer, gPeepEasterEggNames[i]) == 0) + { + if (String::IEquals(buffer, gPeepEasterEggNames[i])) return static_cast(i); + } return -1; } @@ -733,7 +736,7 @@ int32_t Guest::CheckEasterEggName(int32_t index) const FormatNameTo(ft); FormatStringLegacy(buffer, sizeof(buffer), STR_STRINGID, ft.Data()); - return _stricmp(buffer, gPeepEasterEggNames[index]) == 0; + return String::IEquals(buffer, gPeepEasterEggNames[index]); } void Guest::Loc68F9F3() @@ -1169,7 +1172,7 @@ void Guest::Tick128UpdateGuest(int32_t index) if (pathElement->HasAddition() && !pathElement->AdditionIsGhost()) { auto* pathAddEntry = pathElement->GetAdditionEntry(); - if (pathAddEntry != nullptr && (pathAddEntry->flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN)) + if (pathAddEntry != nullptr && (pathAddEntry->flags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN)) { found = true; } @@ -1300,7 +1303,7 @@ void Guest::UpdateSitting() if (HasFoodOrDrink()) { - if ((ScenarioRand() & 0xFFFF) > 1310) + if ((ScenarioRand() & 0xFFFFU) > 1310U) { TryGetUpFromSitting(); return; @@ -1312,8 +1315,8 @@ void Guest::UpdateSitting() return; } - int32_t rand = ScenarioRand(); - if ((rand & 0xFFFF) > 131) + const auto rand = ScenarioRand(); + if ((rand & 0xFFFFU) > 131U) { TryGetUpFromSitting(); return; @@ -1325,12 +1328,12 @@ void Guest::UpdateSitting() } Action = PeepActionType::SittingLookAroundLeft; - if (rand & 0x80000000) + if (rand & 0x80000000U) { Action = PeepActionType::SittingLookAroundRight; } - if (rand & 0x40000000) + if (rand & 0x40000000U) { Action = PeepActionType::SittingCheckWatch; } @@ -1426,7 +1429,7 @@ void Guest::CheckCantFindRide() if (w != nullptr) { - WindowEventInvalidateCall(w); + WindowEventOnPrepareDrawCall(w); } WindowInvalidateByNumber(WindowClass::Peep, Id); @@ -1466,7 +1469,7 @@ void Guest::CheckCantFindExit() * * rct2: 0x0069AF1E */ -bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) +bool Guest::DecideAndBuyItem(Ride& ride, const ShopItem shopItem, money64 price) { money64 itemValue; @@ -1485,7 +1488,8 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) return false; } - if (GetShopItemDescriptor(shopItem).IsFoodOrDrink()) + const auto& shopItemDescriptor = GetShopItemDescriptor(shopItem); + if (shopItemDescriptor.IsFoodOrDrink()) { int32_t food = UtilBitScanForward(GetFoodOrDrinkFlags()); if (food != -1) @@ -1510,19 +1514,19 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) return false; } - if (GetShopItemDescriptor(shopItem).IsFood() && (Hunger > 75)) + if (shopItemDescriptor.IsFood() && (Hunger > 75)) { InsertNewThought(PeepThoughtType::NotHungry); return false; } - if (GetShopItemDescriptor(shopItem).IsDrink() && (Thirst > 75)) + if (shopItemDescriptor.IsDrink() && (Thirst > 75)) { InsertNewThought(PeepThoughtType::NotThirsty); return false; } - if (!isRainingAndUmbrella && (shopItem != ShopItem::Map) && GetShopItemDescriptor(shopItem).IsSouvenir() && !hasVoucher) + if (!isRainingAndUmbrella && (shopItem != ShopItem::Map) && shopItemDescriptor.IsSouvenir() && !hasVoucher) { if (((ScenarioRand() & 0x7F) + 0x73) > Happiness || GuestNumRides < 3) return false; @@ -1545,11 +1549,11 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) } if (gClimateCurrent.Temperature >= 21) - itemValue = GetShopItemDescriptor(shopItem).HotValue; + itemValue = shopItemDescriptor.HotValue; else if (gClimateCurrent.Temperature <= 11) - itemValue = GetShopItemDescriptor(shopItem).ColdValue; + itemValue = shopItemDescriptor.ColdValue; else - itemValue = GetShopItemDescriptor(shopItem).BaseValue; + itemValue = shopItemDescriptor.BaseValue; if (itemValue < price) { @@ -1567,7 +1571,7 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) if (itemValue > (static_cast(ScenarioRand() & 0x07))) { // "I'm not paying that much for x" - InsertNewThought(GetShopItemDescriptor(shopItem).TooMuchThought, ride.id); + InsertNewThought(shopItemDescriptor.TooMuchThought, ride.id); return false; } } @@ -1582,7 +1586,7 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) if (itemValue >= static_cast(ScenarioRand() & 0x07)) { // "This x is a really good value" - InsertNewThought(GetShopItemDescriptor(shopItem).GoodValueThought, ride.id); + InsertNewThought(shopItemDescriptor.GoodValueThought, ride.id); } } @@ -1593,11 +1597,11 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) // reset itemValue for satisfaction calculation if (gClimateCurrent.Temperature >= 21) - itemValue = GetShopItemDescriptor(shopItem).HotValue; + itemValue = shopItemDescriptor.HotValue; else if (gClimateCurrent.Temperature <= 11) - itemValue = GetShopItemDescriptor(shopItem).ColdValue; + itemValue = shopItemDescriptor.ColdValue; else - itemValue = GetShopItemDescriptor(shopItem).BaseValue; + itemValue = shopItemDescriptor.BaseValue; itemValue -= price; uint8_t satisfaction = 0; if (itemValue > -8) @@ -1633,7 +1637,7 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) if (shopItem == ShopItem::Map) ResetPathfindGoal(); - uint16_t consumptionTime = GetShopItemDescriptor(shopItem).ConsumptionTime; + uint16_t consumptionTime = shopItemDescriptor.ConsumptionTime; TimeToConsume = std::min((TimeToConsume + consumptionTime), 255); if (shopItem == ShopItem::Photo) @@ -1654,39 +1658,39 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) { auto ft = Formatter(); FormatNameTo(ft); - ft.Add(GetShopItemDescriptor(shopItem).Naming.Indefinite); + ft.Add(shopItemDescriptor.Naming.Indefinite); if (gConfigNotifications.GuestBoughtItem) { News::AddItemToQueue(News::ItemType::PeepOnRide, STR_PEEP_TRACKING_NOTIFICATION_BOUGHT_X, Id, ft); } } - if (GetShopItemDescriptor(shopItem).IsFood()) + if (shopItemDescriptor.IsFood()) AmountOfFood++; - if (GetShopItemDescriptor(shopItem).IsDrink()) + if (shopItemDescriptor.IsDrink()) AmountOfDrinks++; - if (GetShopItemDescriptor(shopItem).IsSouvenir()) + if (shopItemDescriptor.IsSouvenir()) AmountOfSouvenirs++; money64* expend_type = &PaidOnSouvenirs; ExpenditureType expenditure = ExpenditureType::ShopStock; - if (GetShopItemDescriptor(shopItem).IsFood()) + if (shopItemDescriptor.IsFood()) { expend_type = &PaidOnFood; expenditure = ExpenditureType::FoodDrinkStock; } - if (GetShopItemDescriptor(shopItem).IsDrink()) + if (shopItemDescriptor.IsDrink()) { expend_type = &PaidOnDrink; expenditure = ExpenditureType::FoodDrinkStock; } if (!(gParkFlags & PARK_FLAGS_NO_MONEY)) - FinancePayment(GetShopItemDescriptor(shopItem).Cost, expenditure); + FinancePayment(shopItemDescriptor.Cost, expenditure); // Sets the expenditure type to *_FOODDRINK_SALES or *_SHOP_SALES appropriately. expenditure = static_cast(static_cast(expenditure) - 1); @@ -1699,7 +1703,7 @@ bool Guest::DecideAndBuyItem(Ride& ride, ShopItem shopItem, money64 price) { SpendMoney(*expend_type, price, expenditure); } - ride.total_profit += (price - GetShopItemDescriptor(shopItem).Cost); + ride.total_profit += (price - shopItemDescriptor.Cost); ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; ride.cur_num_customers++; ride.total_customers++; @@ -2939,7 +2943,8 @@ static PeepThoughtType PeepAssessSurroundings(int16_t centre_x, int16_t centre_y if (tileElement->AsPath()->AdditionIsGhost()) break; - if (pathAddEntry->flags & (PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER | PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW)) + if (pathAddEntry->flags + & (PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER | PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW)) { num_fountains++; break; @@ -3107,7 +3112,7 @@ static void PeepLeavePark(Guest* peep) WindowBase* w = WindowFindByNumber(WindowClass::Peep, peep->Id); if (w != nullptr) - WindowEventInvalidateCall(w); + WindowEventOnPrepareDrawCall(w); WindowInvalidateByNumber(WindowClass::Peep, peep->Id); } @@ -3496,7 +3501,7 @@ void Guest::UpdateRideAtEntrance() } /** rct2: 0x00981FD4, 0x00981FD6 */ -static constexpr const CoordsXY _MazeEntranceStart[] = { +static constexpr CoordsXY _MazeEntranceStart[] = { { 8, 8 }, { 8, 24 }, { 24, 24 }, @@ -4685,7 +4690,7 @@ void Guest::UpdateRideApproachSpiralSlide() } /** rct2: 0x00981F0C, 0x00981F0E */ -static constexpr const CoordsXY _SpiralSlideEnd[] = { +static constexpr CoordsXY _SpiralSlideEnd[] = { { 25, 56 }, { 56, 7 }, { 7, -24 }, @@ -4693,7 +4698,7 @@ static constexpr const CoordsXY _SpiralSlideEnd[] = { }; /** rct2: 0x00981F1C, 0x00981F1E */ -static constexpr const CoordsXY _SpiralSlideEndWaypoint[] = { +static constexpr CoordsXY _SpiralSlideEndWaypoint[] = { { 8, 56 }, { 56, 24 }, { 24, -24 }, @@ -4844,7 +4849,7 @@ void Guest::UpdateRideLeaveSpiralSlide() } /** rct2: 0x00981FE4 */ -static constexpr const uint8_t _MazeGetNewDirectionFromEdge[][4] = { +static constexpr uint8_t _MazeGetNewDirectionFromEdge[][4] = { { 15, 7, 15, 7 }, { 11, 3, 11, 3 }, { 7, 15, 7, 15 }, @@ -4852,7 +4857,7 @@ static constexpr const uint8_t _MazeGetNewDirectionFromEdge[][4] = { }; /** rct2: 0x00981FF4 */ -static constexpr const uint8_t _MazeCurrentDirectionToOpenHedge[][4] = { +static constexpr uint8_t _MazeCurrentDirectionToOpenHedge[][4] = { { 1, 2, 14, 0 }, { 4, 5, 6, 2 }, { 6, 8, 9, 10 }, @@ -5312,7 +5317,7 @@ void Guest::UpdateWalking() { if ((0xFFFF & ScenarioRand()) <= 4096) { - static constexpr const Litter::Type litter_types[] = { + static constexpr Litter::Type litter_types[] = { Litter::Type::EmptyCan, Litter::Type::Rubbish, Litter::Type::BurgerBox, @@ -5448,7 +5453,7 @@ void Guest::UpdateWalking() return; } - if (!(pathAddEntry->flags & PATH_BIT_FLAG_IS_BENCH)) + if (!(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BENCH)) positions_free = 9; } } @@ -5872,7 +5877,7 @@ void Guest::UpdateUsingBin() break; auto* pathAddEntry = pathElement->GetAdditionEntry(); - if (!(pathAddEntry->flags & PATH_BIT_FLAG_IS_BIN)) + if (!(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BIN)) break; if (pathElement->IsBroken()) @@ -5984,7 +5989,7 @@ static PathElement* FindBench(const CoordsXYZ& loc) continue; auto* pathAddEntry = pathElement->GetAdditionEntry(); - if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_BIT_FLAG_IS_BENCH)) + if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BENCH)) continue; if (pathElement->IsBroken()) @@ -6073,7 +6078,7 @@ static PathElement* FindBin(const CoordsXYZ& loc) continue; auto* pathAddEntry = pathElement->GetAdditionEntry(); - if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_BIT_FLAG_IS_BIN)) + if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BIN)) continue; if (pathElement->IsBroken()) @@ -6151,7 +6156,7 @@ static PathElement* FindBreakableElement(const CoordsXYZ& loc) continue; auto* pathAddEntry = pathElement->GetAdditionEntry(); - if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_BIT_FLAG_BREAKABLE)) + if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_ADDITION_FLAG_BREAKABLE)) continue; if (pathElement->IsBroken()) @@ -6977,7 +6982,7 @@ void Guest::InsertNewThought(PeepThoughtType thoughtType, uint16_t thoughtArgume // clang-format off /** rct2: 0x009823A0 */ -static constexpr const PeepNauseaTolerance nausea_tolerance_distribution[] = { +static constexpr PeepNauseaTolerance nausea_tolerance_distribution[] = { PeepNauseaTolerance::None, PeepNauseaTolerance::Low, PeepNauseaTolerance::Low, PeepNauseaTolerance::Average, PeepNauseaTolerance::Average, PeepNauseaTolerance::Average, @@ -6985,7 +6990,7 @@ static constexpr const PeepNauseaTolerance nausea_tolerance_distribution[] = { }; /** rct2: 0x009823BC */ -static constexpr const uint8_t trouser_colours[] = { +static constexpr uint8_t trouser_colours[] = { COLOUR_BLACK, COLOUR_GREY, COLOUR_LIGHT_BROWN, @@ -7014,7 +7019,7 @@ static constexpr const uint8_t trouser_colours[] = { }; /** rct2: 0x009823D5 */ -static constexpr const uint8_t tshirt_colours[] = { +static constexpr uint8_t tshirt_colours[] = { COLOUR_BLACK, COLOUR_GREY, COLOUR_LIGHT_BROWN, @@ -7255,7 +7260,7 @@ enum PEEP_FACE_OFFSET_VERY_VERY_HAPPY, }; -static constexpr const int32_t face_sprite_small[] = { +static constexpr int32_t face_sprite_small[] = { SPR_PEEP_SMALL_FACE_ANGRY, SPR_PEEP_SMALL_FACE_VERY_VERY_SICK, SPR_PEEP_SMALL_FACE_VERY_SICK, @@ -7271,7 +7276,7 @@ static constexpr const int32_t face_sprite_small[] = { SPR_PEEP_SMALL_FACE_VERY_VERY_HAPPY, }; -static constexpr const int32_t face_sprite_large[] = { +static constexpr int32_t face_sprite_large[] = { SPR_PEEP_LARGE_FACE_ANGRY_0, SPR_PEEP_LARGE_FACE_VERY_VERY_SICK_0, SPR_PEEP_LARGE_FACE_VERY_SICK_0, diff --git a/src/openrct2/entity/Litter.cpp b/src/openrct2/entity/Litter.cpp index 995bfa6af7..8653b7a546 100644 --- a/src/openrct2/entity/Litter.cpp +++ b/src/openrct2/entity/Litter.cpp @@ -155,7 +155,7 @@ struct LitterSprite }; /** rct2: 0x0097EF6C */ -static constexpr const LitterSprite _litterSprites[] = { +static constexpr LitterSprite _litterSprites[] = { { SPR_LITTER_SICK, 0x1 }, { SPR_LITTER_SICK_ALT, 0x1 }, { SPR_LITTER_EMPTY_CAN, 0x1 }, diff --git a/src/openrct2/entity/MoneyEffect.cpp b/src/openrct2/entity/MoneyEffect.cpp index 81eafcbc9a..2a3b0a06c9 100644 --- a/src/openrct2/entity/MoneyEffect.cpp +++ b/src/openrct2/entity/MoneyEffect.cpp @@ -22,7 +22,7 @@ #include "../world/Map.h" #include "EntityRegistry.h" -static constexpr const CoordsXY _moneyEffectMoveOffset[] = { +static constexpr CoordsXY _moneyEffectMoveOffset[] = { { 1, -1 }, { 1, 1 }, { -1, 1 }, @@ -192,7 +192,7 @@ void MoneyEffect::Paint(PaintSession& session, int32_t imageDirection) const } /** rct2: 0x0097EDA4 */ - static constexpr const int8_t waveOffset[] = { + static constexpr int8_t waveOffset[] = { 0, 1, 2, 2, 3, 3, 3, 3, 2, 2, 1, 0, -1, -2, -2, -3, -3, -3, -3, -2, -2, -1, 0, 1, 2, 2, 3, 3, 3, 3, 2, 2, 1, 0, -1, -2, -2, -3, -3, -3, -3, -2, -2, -1, }; diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index 7b3cda8106..7099288f74 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -362,7 +362,7 @@ PeepActionSpriteType Peep::GetActionSpriteType() return PeepActionToSpriteTypeMap[EnumValue(Action)]; } - openrct2_assert( + Guard::Assert( EnumValue(Action) >= std::size(PeepActionToSpriteTypeMap) && Action < PeepActionType::Idle, "Invalid peep action %u", EnumValue(Action)); return PeepActionSpriteType::None; @@ -416,7 +416,7 @@ void Peep::StateReset() } /** rct2: 0x00981D7C, 0x00981D7E */ -static constexpr const CoordsXY word_981D7C[4] = { +static constexpr CoordsXY word_981D7C[4] = { { -2, 0 }, { 0, 2 }, { 2, 0 }, @@ -564,7 +564,7 @@ void PeepWindowStateUpdate(Peep* peep) { WindowBase* w = WindowFindByNumber(WindowClass::Peep, peep->Id.ToUnderlying()); if (w != nullptr) - WindowEventInvalidateCall(w); + WindowEventOnPrepareDrawCall(w); if (peep->Is()) { @@ -1551,7 +1551,7 @@ void Peep::FormatActionTo(Formatter& ft) const } } -static constexpr const StringId _staffNames[] = { +static constexpr StringId _staffNames[] = { STR_HANDYMAN_X, STR_MECHANIC_X, STR_SECURITY_GUARD_X, @@ -2640,7 +2640,7 @@ void IncrementGuestsInPark() } else { - openrct2_assert(false, "Attempt to increment guests in park above max value (65535)."); + Guard::Fail("Attempt to increment guests in park above max value (65535)."); } } @@ -2652,7 +2652,7 @@ void IncrementGuestsHeadingForPark() } else { - openrct2_assert(false, "Attempt to increment guests heading for park above max value (65535)."); + Guard::Fail("Attempt to increment guests heading for park above max value (65535)."); } } diff --git a/src/openrct2/entity/Staff.cpp b/src/openrct2/entity/Staff.cpp index a281f4c528..15d2360cec 100644 --- a/src/openrct2/entity/Staff.cpp +++ b/src/openrct2/entity/Staff.cpp @@ -23,10 +23,10 @@ #include "../localisation/StringIds.h" #include "../management/Finance.h" #include "../network/network.h" -#include "../object/FootpathItemEntry.h" #include "../object/ObjectEntryManager.h" #include "../object/ObjectList.h" #include "../object/ObjectManager.h" +#include "../object/PathAdditionEntry.h" #include "../object/SceneryGroupEntry.h" #include "../object/SmallSceneryEntry.h" #include "../object/TerrainSurfaceObject.h" @@ -1063,7 +1063,7 @@ int32_t StaffGetAvailableEntertainerCostumeList(EntertainerCostume* costumeList) } /** rct2: 0x009929C8 */ -static constexpr const CoordsXY _MowingWaypoints[] = { +static constexpr CoordsXY _MowingWaypoints[] = { { 28, 28 }, { 28, 4 }, { 20, 4 }, { 20, 28 }, { 12, 28 }, { 12, 4 }, { 4, 4 }, { 4, 28 }, }; @@ -1243,7 +1243,7 @@ void Staff::UpdateEmptyingBin() } auto* pathAddEntry = tile_element->AsPath()->GetAdditionEntry(); - if (!(pathAddEntry->flags & PATH_BIT_FLAG_IS_BIN) || tile_element->AsPath()->IsBroken() + if (!(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BIN) || tile_element->AsPath()->IsBroken() || tile_element->AsPath()->AdditionIsGhost()) { StateReset(); @@ -1510,7 +1510,7 @@ void Staff::UpdateAnswering() } /** rct2: 0x00992A5C */ -static constexpr const CoordsXY _WateringUseOffsets[] = { +static constexpr CoordsXY _WateringUseOffsets[] = { { 3, 16 }, { 16, 29 }, { 29, 16 }, { 16, 3 }, { 3, 29 }, { 29, 29 }, { 29, 3 }, { 3, 3 }, }; @@ -1616,7 +1616,7 @@ bool Staff::UpdatePatrollingFindBin() if (pathAddEntry == nullptr) return false; - if (!(pathAddEntry->flags & PATH_BIT_FLAG_IS_BIN)) + if (!(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BIN)) return false; if (tileElement->AsPath()->IsBroken()) @@ -1853,7 +1853,7 @@ enum * - index 8 is for inspecting a ride. */ // clang-format off -static constexpr const uint32_t FixingSubstatesForBreakdown[9] = { +static constexpr uint32_t FixingSubstatesForBreakdown[9] = { ( // BREAKDOWN_SAFETY_CUT_OUT (1 << PEEP_FIXING_MOVE_TO_STATION_END) | (1 << PEEP_FIXING_FIX_STATION_END) | @@ -2185,7 +2185,7 @@ bool Staff::UpdateFixingFixVehicleMalfunction(bool firstRun, const Ride& ride) } /** rct2: 0x00992A3C */ -static constexpr const CoordsXY _StationFixingOffsets[] = { +static constexpr CoordsXY _StationFixingOffsets[] = { { -12, 0 }, { 0, 12 }, { 12, 0 }, @@ -2202,7 +2202,8 @@ bool Staff::UpdateFixingMoveToStationEnd(bool firstRun, const Ride& ride) { if (!firstRun) { - if (ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION) + || !ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) { return true; } @@ -2288,7 +2289,8 @@ bool Staff::UpdateFixingMoveToStationStart(bool firstRun, const Ride& ride) { if (!firstRun) { - if (ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION) + || !ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) { return true; } @@ -2364,7 +2366,8 @@ bool Staff::UpdateFixingFixStationStart(bool firstRun, const Ride& ride) { if (!firstRun) { - if (ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION) + || !ride.GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) { return true; } diff --git a/src/openrct2/entity/Yaw.hpp b/src/openrct2/entity/Yaw.hpp index aac3bf5537..49329febbb 100644 --- a/src/openrct2/entity/Yaw.hpp +++ b/src/openrct2/entity/Yaw.hpp @@ -27,10 +27,10 @@ namespace OpenRCT2::Entity::Yaw // Sprites32 represents the precision of the base rotation precision. Base rotation is the precision of // EntityBase.sprite_direction - constexpr const int32_t BaseRotation = 32; + constexpr int32_t BaseRotation = 32; // The first value represents None, the last value represents 64 which has not yet been implemented - constexpr const uint8_t PrecisionOffset[] = { 5, 5, 4, 3, 2, 1, 0, 0 }; + constexpr uint8_t PrecisionOffset[] = { 5, 5, 4, 3, 2, 1, 0, 0 }; [[nodiscard]] constexpr int32_t Add(int32_t yaw1, int32_t yaw2) { diff --git a/src/openrct2/interface/Colour.h b/src/openrct2/interface/Colour.h index ca5b24914d..57eb414a70 100644 --- a/src/openrct2/interface/Colour.h +++ b/src/openrct2/interface/Colour.h @@ -21,64 +21,64 @@ using PaletteIndex = uint8_t; enum : colour_t { // Original Colours - COLOUR_BLACK, - COLOUR_GREY, - COLOUR_WHITE, - COLOUR_DARK_PURPLE, - COLOUR_LIGHT_PURPLE, - COLOUR_BRIGHT_PURPLE, - COLOUR_DARK_BLUE, - COLOUR_LIGHT_BLUE, - COLOUR_ICY_BLUE, - COLOUR_TEAL, - COLOUR_AQUAMARINE, - COLOUR_SATURATED_GREEN, - COLOUR_DARK_GREEN, - COLOUR_MOSS_GREEN, - COLOUR_BRIGHT_GREEN, - COLOUR_OLIVE_GREEN, - COLOUR_DARK_OLIVE_GREEN, - COLOUR_BRIGHT_YELLOW, - COLOUR_YELLOW, - COLOUR_DARK_YELLOW, - COLOUR_LIGHT_ORANGE, - COLOUR_DARK_ORANGE, - COLOUR_LIGHT_BROWN, - COLOUR_SATURATED_BROWN, - COLOUR_DARK_BROWN, - COLOUR_SALMON_PINK, - COLOUR_BORDEAUX_RED, - COLOUR_SATURATED_RED, - COLOUR_BRIGHT_RED, - COLOUR_DARK_PINK, - COLOUR_BRIGHT_PINK, - COLOUR_LIGHT_PINK, + COLOUR_BLACK, // Black + COLOUR_GREY, // Grey + COLOUR_WHITE, // White + COLOUR_DARK_PURPLE, // Dark purple + COLOUR_LIGHT_PURPLE, // Light purple + COLOUR_BRIGHT_PURPLE, // Bright purple + COLOUR_DARK_BLUE, // Dark blue + COLOUR_LIGHT_BLUE, // Light blue + COLOUR_ICY_BLUE, // Icy blue + COLOUR_TEAL, // Dark water + COLOUR_AQUAMARINE, // Light water + COLOUR_SATURATED_GREEN, // Saturated green + COLOUR_DARK_GREEN, // Dark green + COLOUR_MOSS_GREEN, // Moss green + COLOUR_BRIGHT_GREEN, // Bright green + COLOUR_OLIVE_GREEN, // Olive green + COLOUR_DARK_OLIVE_GREEN, // Dark olive green + COLOUR_BRIGHT_YELLOW, // Bright yellow + COLOUR_YELLOW, // Yellow + COLOUR_DARK_YELLOW, // Dark yellow + COLOUR_LIGHT_ORANGE, // Light orange + COLOUR_DARK_ORANGE, // Dark orange + COLOUR_LIGHT_BROWN, // Light brown + COLOUR_SATURATED_BROWN, // Saturated brown + COLOUR_DARK_BROWN, // Dark brown + COLOUR_SALMON_PINK, // Salmon pink + COLOUR_BORDEAUX_RED, // Bordeaux red + COLOUR_SATURATED_RED, // Saturated red + COLOUR_BRIGHT_RED, // Bright red + COLOUR_DARK_PINK, // Dark pink + COLOUR_BRIGHT_PINK, // Bright pink + COLOUR_LIGHT_PINK, // Light pink // Extended Colour Set - COLOUR_DARK_OLIVE_DARK, - COLOUR_DARK_OLIVE_LIGHT, - COLOUR_SATURATED_BROWN_LIGHT, - COLOUR_BORDEAUX_RED_DARK, - COLOUR_BORDEAUX_RED_LIGHT, - COLOUR_GRASS_GREEN_DARK, - COLOUR_GRASS_GREEN_LIGHT, - COLOUR_OLIVE_DARK, - COLOUR_OLIVE_LIGHT, - COLOUR_SATURATED_GREEN_LIGHT, - COLOUR_TAN_DARK, - COLOUR_TAN_LIGHT, - COLOUR_DULL_PURPLE_LIGHT, - COLOUR_DULL_GREEN_DARK, - COLOUR_DULL_GREEN_LIGHT, - COLOUR_SATURATED_PURPLE_DARK, - COLOUR_SATURATED_PURPLE_LIGHT, - COLOUR_ORANGE_LIGHT, - COLOUR_AQUA_DARK, - COLOUR_MAGENTA_LIGHT, - COLOUR_DULL_BROWN_DARK, - COLOUR_DULL_BROWN_LIGHT, - COLOUR_INVISIBLE, - COLOUR_VOID, + COLOUR_DARK_OLIVE_DARK, // Army green + COLOUR_DARK_OLIVE_LIGHT, // Honeydew + COLOUR_SATURATED_BROWN_LIGHT, // Tan + COLOUR_BORDEAUX_RED_DARK, // Maroon + COLOUR_BORDEAUX_RED_LIGHT, // Coral pink + COLOUR_GRASS_GREEN_DARK, // Forest green + COLOUR_GRASS_GREEN_LIGHT, // Chartreuse + COLOUR_OLIVE_DARK, // Hunter green + COLOUR_OLIVE_LIGHT, // Celadon + COLOUR_SATURATED_GREEN_LIGHT, // Lime green + COLOUR_TAN_DARK, // Sepia + COLOUR_TAN_LIGHT, // Peach + COLOUR_DULL_PURPLE_LIGHT, // Periwinkle + COLOUR_DULL_GREEN_DARK, // Viridian + COLOUR_DULL_GREEN_LIGHT, // Seafoam green + COLOUR_SATURATED_PURPLE_DARK, // Violet + COLOUR_SATURATED_PURPLE_LIGHT, // Lavender + COLOUR_ORANGE_LIGHT, // Pastel orange + COLOUR_AQUA_DARK, // Deep water + COLOUR_MAGENTA_LIGHT, // Pastel pink + COLOUR_DULL_BROWN_DARK, // Umber + COLOUR_DULL_BROWN_LIGHT, // Beige + COLOUR_INVISIBLE, // Invisible + COLOUR_VOID, // Void COLOUR_COUNT, diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index 289d2be8b9..2be242fa70 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -1984,7 +1984,7 @@ static constexpr const utf8* console_window_table[] = { }; // clang-format on -static constexpr const ConsoleCommand console_command_table[] = { +static constexpr ConsoleCommand console_command_table[] = { { "abort", ConsoleCommandAbort, "Calls std::abort(), for testing purposes only.", "abort" }, { "add_news_item", ConsoleCommandAddNewsItem, "Inserts a news item", "add_news_item [ ]" }, { "assert", ConsoleCommandAssert, "Triggers assertion failure, for testing purposes only", "assert" }, diff --git a/src/openrct2/interface/Screenshot.cpp b/src/openrct2/interface/Screenshot.cpp index d4665e5950..b83295d5fb 100644 --- a/src/openrct2/interface/Screenshot.cpp +++ b/src/openrct2/interface/Screenshot.cpp @@ -21,6 +21,7 @@ #include "../core/File.h" #include "../core/Imaging.h" #include "../core/Path.hpp" +#include "../core/String.hpp" #include "../drawing/Drawing.h" #include "../drawing/X8DrawingEngine.h" #include "../localisation/Formatter.h" @@ -134,7 +135,7 @@ static std::string ScreenshotGetFormattedDateTime() static std::optional ScreenshotGetNextPath() { auto screenshotDirectory = ScreenshotGetDirectory(); - if (!Platform::EnsureDirectoryExists(screenshotDirectory.c_str())) + if (!Path::CreateDirectory(screenshotDirectory)) { LOG_ERROR("Unable to save screenshots in OpenRCT2 screenshot directory."); return std::nullopt; @@ -390,130 +391,6 @@ void ScreenshotGiant() ReleaseDPI(dpi); } -// TODO: Move this at some point into a more appropriate place. -template static inline double MeasureFunctionTime(const FN& fn) -{ - const auto startTime = std::chrono::high_resolution_clock::now(); - fn(); - const auto endTime = std::chrono::high_resolution_clock::now(); - return std::chrono::duration(endTime - startTime).count(); -} - -static void BenchgfxRenderScreenshots(const char* inputPath, std::unique_ptr& context, uint32_t iterationCount) -{ - if (!context->LoadParkFromFile(inputPath)) - { - return; - } - - gIntroState = IntroState::None; - gScreenFlags = SCREEN_FLAGS_PLAYING; - - // Create Viewport and DPI for every rotation and zoom. - // We iterate from the default zoom level to the max zoomed out zoom level, then run GetGiantViewport once for each - // rotation. - constexpr int32_t NUM_ROTATIONS = 4; - constexpr auto NUM_ZOOM_LEVELS = static_cast(ZoomLevel::max()); - std::array dpis; - std::array viewports; - - for (ZoomLevel zoom{ 0 }; zoom < ZoomLevel::max(); zoom++) - { - int32_t zoomIndex{ static_cast(zoom) }; - for (int32_t rotation = 0; rotation < NUM_ROTATIONS; rotation++) - { - auto& viewport = viewports[zoomIndex * NUM_ZOOM_LEVELS + rotation]; - auto& dpi = dpis[zoomIndex * NUM_ZOOM_LEVELS + rotation]; - viewport = GetGiantViewport(rotation, zoom); - dpi = CreateDPI(viewport); - } - } - - const uint32_t totalRenderCount = iterationCount * NUM_ROTATIONS * NUM_ZOOM_LEVELS; - - try - { - double totalTime = 0.0; - - std::array zoomAverages; - - // Render at every zoom. - for (int32_t zoom = 0; zoom < NUM_ZOOM_LEVELS; zoom++) - { - double zoomLevelTime = 0.0; - - // Render at every rotation. - for (int32_t rotation = 0; rotation < NUM_ROTATIONS; rotation++) - { - // N iterations. - for (uint32_t i = 0; i < iterationCount; i++) - { - auto& dpi = dpis[zoom * NUM_ZOOM_LEVELS + rotation]; - auto& viewport = viewports[zoom * NUM_ZOOM_LEVELS + rotation]; - double elapsed = MeasureFunctionTime([&viewport, &dpi]() { RenderViewport(nullptr, viewport, dpi); }); - totalTime += elapsed; - zoomLevelTime += elapsed; - } - } - - zoomAverages[zoom] = zoomLevelTime / static_cast(NUM_ROTATIONS * iterationCount); - } - - const double average = totalTime / static_cast(totalRenderCount); - const auto engineStringId = DrawingEngineStringIds[EnumValue(DrawingEngine::Software)]; - const auto engineName = FormatStringID(engineStringId, nullptr); - std::printf("Engine: %s\n", engineName.c_str()); - std::printf("Render Count: %u\n", totalRenderCount); - for (ZoomLevel zoom{ 0 }; zoom < ZoomLevel::max(); zoom++) - { - int32_t zoomIndex{ static_cast(zoom) }; - const auto zoomAverage = zoomAverages[zoomIndex]; - std::printf("Zoom[%d] average: %.06fs, %.f FPS\n", zoomIndex, zoomAverage, 1.0 / zoomAverage); - } - std::printf("Total average: %.06fs, %.f FPS\n", average, 1.0 / average); - std::printf("Time: %.05fs\n", totalTime); - } - catch (const std::exception& e) - { - Console::Error::WriteLine("%s", e.what()); - } - - for (auto& dpi : dpis) - ReleaseDPI(dpi); -} - -int32_t CommandLineForGfxbench(const char** argv, int32_t argc) -{ - if (argc != 1 && argc != 2) - { - printf("Usage: openrct2 benchgfx []\n"); - return -1; - } - - Platform::CoreInit(); - int32_t iterationCount = 5; - if (argc == 2) - { - iterationCount = atoi(argv[1]); - } - - const char* inputPath = argv[0]; - - gOpenRCT2Headless = true; - - std::unique_ptr context(CreateContext()); - if (context->Initialise()) - { - DrawingEngineInit(); - - BenchgfxRenderScreenshots(inputPath, context, iterationCount); - - DrawingEngineDispose(); - } - - return 1; -} - static void ApplyOptions(const ScreenshotOptions* options, Viewport& viewport) { if (options->weather != WeatherType::Sunny && options->weather != WeatherType::Count) @@ -575,7 +452,7 @@ int32_t CommandLineForScreenshot(const char** argv, int32_t argc, ScreenshotOpti } } - bool giantScreenshot = (argc == 5) && _stricmp(argv[2], "giant") == 0; + bool giantScreenshot = (argc == 5) && String::IEquals(argv[2], "giant"); if (argc != 4 && argc != 8 && !giantScreenshot) { std::printf("Usage: openrct2 screenshot [ ]\n"); @@ -587,7 +464,6 @@ int32_t CommandLineForScreenshot(const char** argv, int32_t argc, ScreenshotOpti DrawPixelInfo dpi; try { - Platform::CoreInit(); bool customLocation = false; bool centreMapX = false; bool centreMapY = false; diff --git a/src/openrct2/interface/Screenshot.h b/src/openrct2/interface/Screenshot.h index 30eacdcded..ba6ab28de9 100644 --- a/src/openrct2/interface/Screenshot.h +++ b/src/openrct2/interface/Screenshot.h @@ -59,6 +59,5 @@ std::string ScreenshotDumpPNG32bpp(int32_t width, int32_t height, const void* pi void ScreenshotGiant(); int32_t CommandLineForScreenshot(const char** argv, int32_t argc, ScreenshotOptions* options); -int32_t CommandLineForGfxbench(const char** argv, int32_t argc); void CaptureImage(const CaptureOptions& options); diff --git a/src/openrct2/interface/Viewport.cpp b/src/openrct2/interface/Viewport.cpp index 3b257b9545..b04bbfd43a 100644 --- a/src/openrct2/interface/Viewport.cpp +++ b/src/openrct2/interface/Viewport.cpp @@ -806,8 +806,7 @@ void ViewportUpdateSmartFollowVehicle(WindowBase* window) * edi: dpi * ebp: bottom */ -void ViewportRender( - DrawPixelInfo& dpi, const Viewport* viewport, const ScreenRect& screenRect, std::vector* sessions) +void ViewportRender(DrawPixelInfo& dpi, const Viewport* viewport, const ScreenRect& screenRect) { auto [topLeft, bottomRight] = screenRect; @@ -837,7 +836,7 @@ void ViewportRender( viewport->zoom.ApplyTo(std::min(bottomRight.y, viewport->height)), } + viewport->viewPos; - ViewportPaint(viewport, dpi, { topLeft, bottomRight }, sessions); + ViewportPaint(viewport, dpi, { topLeft, bottomRight }); #ifdef DEBUG_SHOW_DIRTY_BOX // FIXME g_viewport_list doesn't exist anymore @@ -846,75 +845,11 @@ void ViewportRender( #endif } -static void RecordSession( - const PaintSession& session, std::vector* recorded_sessions, size_t record_index) -{ - // Perform a deep copy of the paint session, use relative offsets. - // This is done to extract the session for benchmark. - // Place the copied session at provided record_index, so the caller can decide which columns/paint sessions to copy; - // there is no column information embedded in the session itself. - auto& recordedSession = recorded_sessions->at(record_index); - recordedSession.Session = session; - recordedSession.Entries.resize(session.PaintEntryChain.GetCount()); - - // Mind the offset needs to be calculated against the original `session`, not `session_copy` - std::unordered_map entryRemap; - - // Copy all entries - auto paintIndex = 0; - auto chain = session.PaintEntryChain.Head; - while (chain != nullptr) - { - for (size_t i = 0; i < chain->Count; i++) - { - auto& src = chain->PaintStructs[i]; - auto& dst = recordedSession.Entries[paintIndex++]; - dst = src; - entryRemap[src.AsBasic()] = reinterpret_cast(i * sizeof(PaintEntry)); - } - chain = chain->Next; - } - entryRemap[nullptr] = reinterpret_cast(-1); - - // Remap all entries - for (auto& ps : recordedSession.Entries) - { - auto& ptr = ps.AsBasic()->NextQuadrantEntry; - auto it = entryRemap.find(ptr); - if (it == entryRemap.end()) - { - assert(false); - ptr = nullptr; - } - else - { - ptr = it->second; - } - } - for (auto& ptr : recordedSession.Session.Quadrants) - { - auto it = entryRemap.find(ptr); - if (it == entryRemap.end()) - { - assert(false); - ptr = nullptr; - } - else - { - ptr = it->second; - } - } -} - -static void ViewportFillColumn(PaintSession& session, std::vector* recorded_sessions, size_t record_index) +static void ViewportFillColumn(PaintSession& session) { PROFILED_FUNCTION(); PaintSessionGenerate(session); - if (recorded_sessions != nullptr) - { - RecordSession(session, recorded_sessions, record_index); - } PaintSessionArrange(session); } @@ -959,9 +894,7 @@ static void ViewportPaintColumn(PaintSession& session) * edi: dpi * ebp: bottom */ -void ViewportPaint( - const Viewport* viewport, DrawPixelInfo& dpi, const ScreenRect& screenRect, - std::vector* recorded_sessions) +void ViewportPaint(const Viewport* viewport, DrawPixelInfo& dpi, const ScreenRect& screenRect) { PROFILED_FUNCTION(); @@ -1019,17 +952,8 @@ void ViewportPaint( useParallelDrawing = true; } - // Create space to record sessions and keep track which index is being drawn - size_t index = 0; - if (recorded_sessions != nullptr) - { - auto columnSize = rightBorder - alignedX; - auto columnCount = (columnSize + 31) / 32; - recorded_sessions->resize(columnCount); - } - // Generate and sort columns. - for (x = alignedX; x < rightBorder; x += 32, index++) + for (x = alignedX; x < rightBorder; x += 32) { PaintSession* session = PaintSessionAlloc(dpi1, viewFlags); _paintColumns.push_back(session); @@ -1055,12 +979,11 @@ void ViewportPaint( if (useMultithreading) { - _paintJobs->AddTask( - [session, recorded_sessions, index]() -> void { ViewportFillColumn(*session, recorded_sessions, index); }); + _paintJobs->AddTask([session]() -> void { ViewportFillColumn(*session); }); } else { - ViewportFillColumn(*session, recorded_sessions, index); + ViewportFillColumn(*session); } } @@ -1315,7 +1238,7 @@ void HideConstructionRights() * * rct2: 0x006CB70A */ -void ViewportSetVisibility(uint8_t mode) +void ViewportSetVisibility(ViewportVisibility mode) { WindowBase* window = WindowGetMain(); @@ -1326,7 +1249,7 @@ void ViewportSetVisibility(uint8_t mode) switch (mode) { - case 0: + case ViewportVisibility::Default: { // Set all these flags to 0, and invalidate if any were active uint32_t mask = VIEWPORT_FLAG_UNDERGROUND_INSIDE | VIEWPORT_FLAG_HIDE_RIDES | VIEWPORT_FLAG_HIDE_SCENERY | VIEWPORT_FLAG_HIDE_PATHS | VIEWPORT_FLAG_LAND_HEIGHTS | VIEWPORT_FLAG_TRACK_HEIGHTS @@ -1338,19 +1261,19 @@ void ViewportSetVisibility(uint8_t mode) vp->flags &= ~mask; break; } - case 1: // 6CB79D - case 4: // 6CB7C4 + case ViewportVisibility::UndergroundViewOn: // 6CB79D + case ViewportVisibility::UndergroundViewGhostOn: // 6CB7C4 // Set underground on, invalidate if it was off invalidate += !(vp->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE); vp->flags |= VIEWPORT_FLAG_UNDERGROUND_INSIDE; break; - case 2: // 6CB7EB + case ViewportVisibility::TrackHeights: // 6CB7EB // Set track heights on, invalidate if off invalidate += !(vp->flags & VIEWPORT_FLAG_TRACK_HEIGHTS); vp->flags |= VIEWPORT_FLAG_TRACK_HEIGHTS; break; - case 3: // 6CB7B1 - case 5: // 6CB7D8 + case ViewportVisibility::UndergroundViewOff: // 6CB7B1 + case ViewportVisibility::UndergroundViewGhostOff: // 6CB7D8 // Set underground off, invalidate if it was on invalidate += vp->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE; vp->flags &= ~(static_cast(VIEWPORT_FLAG_UNDERGROUND_INSIDE)); @@ -1439,7 +1362,7 @@ VisibilityKind GetPaintStructVisibility(const PaintStruct* ps, uint32_t viewFlag break; auto ride = vehicle->GetRide(); - if (ride != nullptr && ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (ride != nullptr && !ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) { return (viewFlags & VIEWPORT_FLAG_INVISIBLE_RIDES) ? VisibilityKind::Hidden : VisibilityKind::Partial; @@ -1471,7 +1394,7 @@ VisibilityKind GetPaintStructVisibility(const PaintStruct* ps, uint32_t viewFlag } break; case ViewportInteractionItem::Footpath: - case ViewportInteractionItem::FootpathItem: + case ViewportInteractionItem::PathAddition: case ViewportInteractionItem::Banner: if (viewFlags & VIEWPORT_FLAG_HIDE_PATHS) { diff --git a/src/openrct2/interface/Viewport.h b/src/openrct2/interface/Viewport.h index 084314cc6e..47be0146af 100644 --- a/src/openrct2/interface/Viewport.h +++ b/src/openrct2/interface/Viewport.h @@ -17,7 +17,6 @@ #include struct PaintSession; -struct RecordedPaintSession; struct PaintStruct; struct DrawPixelInfo; struct TileElement; @@ -81,7 +80,7 @@ enum class ViewportInteractionItem : uint8_t Water, Scenery, Footpath, - FootpathItem, + PathAddition, ParkEntrance, Wall, LargeScenery, @@ -89,6 +88,16 @@ enum class ViewportInteractionItem : uint8_t Banner }; +enum class ViewportVisibility : uint8_t +{ + Default = 0, + UndergroundViewOn = 1, + TrackHeights = 2, + UndergroundViewOff = 3, + UndergroundViewGhostOn = 4, + UndergroundViewGhostOff = 5, +}; + constexpr uint16_t ViewportInteractionItemAll = std::numeric_limits::max(); struct InteractionInfo @@ -130,12 +139,8 @@ void ViewportUpdateSmartFollowEntity(WindowBase* window); void ViewportUpdateSmartFollowGuest(WindowBase* window, const Guest* peep); void ViewportUpdateSmartFollowStaff(WindowBase* window, const Staff* peep); void ViewportUpdateSmartFollowVehicle(WindowBase* window); -void ViewportRender( - DrawPixelInfo& dpi, const Viewport* viewport, const ScreenRect& screenRect, - std::vector* sessions = nullptr); -void ViewportPaint( - const Viewport* viewport, DrawPixelInfo& dpi, const ScreenRect& screenRect, - std::vector* sessions = nullptr); +void ViewportRender(DrawPixelInfo& dpi, const Viewport* viewport, const ScreenRect& screenRect); +void ViewportPaint(const Viewport* viewport, DrawPixelInfo& dpi, const ScreenRect& screenRect); CoordsXYZ ViewportAdjustForMapHeight(const ScreenCoordsXY& startCoords); @@ -148,7 +153,7 @@ void ShowLandRights(); void HideLandRights(); void ShowConstructionRights(); void HideConstructionRights(); -void ViewportSetVisibility(uint8_t mode); +void ViewportSetVisibility(ViewportVisibility mode); InteractionInfo GetMapCoordinatesFromPos(const ScreenCoordsXY& screenCoords, int32_t flags); InteractionInfo GetMapCoordinatesFromPosWindow(WindowBase* window, const ScreenCoordsXY& screenCoords, int32_t flags); diff --git a/src/openrct2/interface/Widget.h b/src/openrct2/interface/Widget.h index 629318cade..7a7c0d8a0a 100644 --- a/src/openrct2/interface/Widget.h +++ b/src/openrct2/interface/Widget.h @@ -41,7 +41,7 @@ enum class WindowWidgetType : uint8_t Last = 26, }; -constexpr const auto WIDGETS_END = Widget{ WindowWidgetType::Last, 0, 0, 0, 0, 0, 0, 0 }; +constexpr auto WIDGETS_END = Widget{ WindowWidgetType::Last, 0, 0, 0, 0, 0, 0, 0 }; #define BAR_BLINK (1u << 31) enum @@ -61,7 +61,7 @@ enum class WindowColour : uint8_t constexpr uint8_t SCROLLBAR_WIDTH = 10; -constexpr const ScreenSize TAB_SIZE = { 31, 27 }; +constexpr ScreenSize TAB_SIZE = { 31, 27 }; constexpr Widget MakeWidget( const ScreenCoordsXY& origin, const ScreenSize& size, WindowWidgetType type, WindowColour colour, diff --git a/src/openrct2/interface/Window.cpp b/src/openrct2/interface/Window.cpp index 06e447366b..3ef1cca9bb 100644 --- a/src/openrct2/interface/Window.cpp +++ b/src/openrct2/interface/Window.cpp @@ -56,7 +56,7 @@ colour_t gCurrentWindowColours[4]; // converted from uint16_t values at 0x009A41EC - 0x009A4230 // these are percentage coordinates of the viewport to centre to, if a window is obscuring a location, the next is tried // clang-format off -static constexpr const float window_scroll_locations[][2] = { +static constexpr float window_scroll_locations[][2] = { { 0.5f, 0.5f }, { 0.75f, 0.5f }, { 0.25f, 0.5f }, @@ -80,8 +80,7 @@ static constexpr const float window_scroll_locations[][2] = { namespace WindowCloseFlags { static constexpr uint32_t None = 0; - static constexpr uint32_t IterateReverse = (1 << 0); - static constexpr uint32_t CloseSingle = (1 << 1); + static constexpr uint32_t CloseSingle = (1 << 0); } // namespace WindowCloseFlags static void WindowDrawCore(DrawPixelInfo& dpi, WindowBase& w, int32_t left, int32_t top, int32_t right, int32_t bottom); @@ -99,6 +98,8 @@ void WindowVisitEach(std::function func) auto windowList = g_window_list; for (auto& w : windowList) { + if (w->flags & WF_DEAD) + continue; func(w.get()); } } @@ -129,13 +130,12 @@ void WindowUpdateAllViewports() */ void WindowUpdateAll() { - // WindowUpdateAllViewports(); + WindowFlushDead(); - // 1000 tick update - gWindowUpdateTicks += gCurrentDeltaTime; - if (gWindowUpdateTicks >= 1000) + // Periodic update happens every second so 40 ticks. + if (gCurrentRealTimeTicks >= gWindowUpdateTicks) { - gWindowUpdateTicks = 0; + gWindowUpdateTicks = gCurrentRealTimeTicks + GAME_UPDATE_FPS; WindowVisitEach([](WindowBase* w) { WindowEventPeriodicUpdateCall(w); }); } @@ -168,6 +168,8 @@ static void WindowCloseSurplus(int32_t cap, WindowClass avoid_classification) WindowBase* foundW{}; for (auto& w : g_window_list) { + if (w->flags & WF_DEAD) + continue; if (!(w->flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT | WF_NO_AUTO_CLOSE))) { foundW = w.get(); @@ -208,76 +210,40 @@ void WindowSetWindowLimit(int32_t value) */ void WindowClose(WindowBase& w) { - auto itWindow = WindowGetIterator(&w); - if (itWindow == g_window_list.end()) - return; - - // Explicit copy of the shared ptr to keep the memory valid. - std::shared_ptr window = *itWindow; - - WindowEventCloseCall(window.get()); + WindowEventCloseCall(&w); // Remove viewport - window->RemoveViewport(); + w.RemoveViewport(); // Invalidate the window (area) - window->Invalidate(); + w.Invalidate(); - // The window list may have been modified in the close event - itWindow = WindowGetIterator(&w); - if (itWindow != g_window_list.end()) - g_window_list.erase(itWindow); + w.flags |= WF_DEAD; +} + +void WindowFlushDead() +{ + // Remove all windows in g_window_list that have the WF_DEAD flag + g_window_list.remove_if([](auto&& w) -> bool { return w->flags & WF_DEAD; }); } template static void WindowCloseByCondition(TPred pred, uint32_t flags = WindowCloseFlags::None) { - bool listUpdated; - do + for (auto it = g_window_list.rbegin(); it != g_window_list.rend(); ++it) { - listUpdated = false; + auto& wnd = *(*it); + if (wnd.flags & WF_DEAD) + continue; - auto closeSingle = [&](std::shared_ptr window) -> bool { - if (!pred(window.get())) + if (pred(&wnd)) + { + WindowClose(wnd); + if (flags & WindowCloseFlags::CloseSingle) { - return false; + return; } - - // Keep track of current amount, if a new window is created upon closing - // we need to break this current iteration and restart. - size_t previousCount = g_window_list.size(); - - WindowClose(*window.get()); - - if ((flags & WindowCloseFlags::CloseSingle) != 0) - { - // Only close a single one. - return true; - } - - if (previousCount >= g_window_list.size()) - { - // A new window was created during the close event. - return true; - } - - // Keep closing windows. - return false; - }; - - // The closest to something like for_each_if is using find_if in order to avoid duplicate code - // to change the loop direction. - auto windowList = g_window_list; - if ((flags & WindowCloseFlags::IterateReverse) != 0) - listUpdated = std::find_if(windowList.rbegin(), windowList.rend(), closeSingle) != windowList.rend(); - else - listUpdated = std::find_if(windowList.begin(), windowList.end(), closeSingle) != windowList.end(); - - // If requested to close only a single window and a new window was created during close - // we ignore it. - if ((flags & WindowCloseFlags::CloseSingle) != 0) - break; - - } while (listUpdated); + } + } } /** @@ -317,6 +283,8 @@ WindowBase* WindowFindByClass(WindowClass cls) { for (auto& w : g_window_list) { + if (w->flags & WF_DEAD) + continue; if (w->classification == cls) { return w.get(); @@ -336,6 +304,8 @@ WindowBase* WindowFindByNumber(WindowClass cls, rct_windownumber number) { for (auto& w : g_window_list) { + if (w->flags & WF_DEAD) + continue; if (w->classification == cls && w->number == number) { return w.get(); @@ -366,7 +336,7 @@ void WindowCloseTop() } auto pred = [](WindowBase* w) -> bool { return !(w->flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT)); }; - WindowCloseByCondition(pred, WindowCloseFlags::CloseSingle | WindowCloseFlags::IterateReverse); + WindowCloseByCondition(pred, WindowCloseFlags::CloseSingle); } /** @@ -383,7 +353,6 @@ void WindowCloseAll() void WindowCloseAllExceptClass(WindowClass cls) { WindowCloseByClass(WindowClass::Dropdown); - WindowCloseByCondition([cls](WindowBase* w) -> bool { return w->classification != cls && !(w->flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT)); }); @@ -419,6 +388,9 @@ WindowBase* WindowFindFromPoint(const ScreenCoordsXY& screenCoords) for (auto it = g_window_list.rbegin(); it != g_window_list.rend(); it++) { auto& w = *it; + if (w->flags & WF_DEAD) + continue; + if (screenCoords.x < w->windowPos.x || screenCoords.x >= w->windowPos.x + w->width || screenCoords.y < w->windowPos.y || screenCoords.y >= w->windowPos.y + w->height) continue; @@ -447,7 +419,7 @@ WindowBase* WindowFindFromPoint(const ScreenCoordsXY& screenCoords) WidgetIndex WindowFindWidgetFromPoint(WindowBase& w, const ScreenCoordsXY& screenCoords) { // Invalidate the window - WindowEventInvalidateCall(&w); + WindowEventOnPrepareDrawCall(&w); // Find the widget at point x, y WidgetIndex widget_index = -1; @@ -814,6 +786,8 @@ WindowBase* WindowGetMain() { for (auto& w : g_window_list) { + if (w->flags & WF_DEAD) + continue; if (w->classification == WindowClass::MainWindow) { return w.get(); @@ -1201,6 +1175,8 @@ static void WindowDrawCore(DrawPixelInfo& dpi, WindowBase& w, int32_t left, int3 for (auto it = WindowGetIterator(&w); it != g_window_list.end(); it++) { auto* v = (*it).get(); + if (v->flags & WF_DEAD) + continue; if ((&w == v || (v->flags & WF_TRANSPARENT)) && WindowIsVisible(*v)) { WindowDrawSingle(dpi, *v, left, top, right, bottom); @@ -1257,7 +1233,7 @@ static void WindowDrawSingle(DrawPixelInfo& dpi, WindowBase& w, int32_t left, in // Invalidate modifies the window colours so first get the correct // colour before setting the global variables for the string painting - WindowEventInvalidateCall(&w); + WindowEventOnPrepareDrawCall(&w); // Text colouring gCurrentWindowColours[0] = NOT_TRANSLUCENT(w.colours[0]); @@ -1265,7 +1241,7 @@ static void WindowDrawSingle(DrawPixelInfo& dpi, WindowBase& w, int32_t left, in gCurrentWindowColours[2] = NOT_TRANSLUCENT(w.colours[2]); gCurrentWindowColours[3] = NOT_TRANSLUCENT(w.colours[3]); - WindowEventPaintCall(&w, copy); + WindowEventOnDrawCall(&w, copy); } /** @@ -1317,7 +1293,7 @@ void WindowResize(WindowBase& w, int32_t dw, int32_t dh) w.height = std::clamp(w.height + dh, w.min_height, w.max_height); WindowEventResizeCall(&w); - WindowEventInvalidateCall(&w); + WindowEventOnPrepareDrawCall(&w); // Update scroll widgets for (auto& scroll : w.scrolls) @@ -1416,250 +1392,134 @@ void ToolCancel() void WindowEventCloseCall(WindowBase* w) { - if (w->event_handlers == nullptr) - w->OnClose(); - else if (w->event_handlers->close != nullptr) - w->event_handlers->close(w); + w->OnClose(); } void WindowEventMouseUpCall(WindowBase* w, WidgetIndex widgetIndex) { - if (w->event_handlers == nullptr) - w->OnMouseUp(widgetIndex); - else if (w->event_handlers->mouse_up != nullptr) - w->event_handlers->mouse_up(w, widgetIndex); + w->OnMouseUp(widgetIndex); } void WindowEventResizeCall(WindowBase* w) { - if (w->event_handlers == nullptr) - w->OnResize(); - else if (w->event_handlers->resize != nullptr) - w->event_handlers->resize(w); + w->OnResize(); } void WindowEventMouseDownCall(WindowBase* w, WidgetIndex widgetIndex) { - if (w->event_handlers == nullptr) - w->OnMouseDown(widgetIndex); - else if (w->event_handlers->mouse_down != nullptr) - w->event_handlers->mouse_down(w, widgetIndex, &w->widgets[widgetIndex]); + w->OnMouseDown(widgetIndex); } void WindowEventDropdownCall(WindowBase* w, WidgetIndex widgetIndex, int32_t dropdownIndex) { - if (w->event_handlers == nullptr) - { - if (dropdownIndex != -1) - { - w->OnDropdown(widgetIndex, dropdownIndex); - } - } - else if (w->event_handlers->dropdown != nullptr) - { - w->event_handlers->dropdown(w, widgetIndex, dropdownIndex); - } -} - -void WindowEventUnknown05Call(WindowBase* w) -{ - if (w->event_handlers == nullptr) - { - w->OnUnknown5(); - } - else if (w->event_handlers->unknown_05 != nullptr) - { - w->event_handlers->unknown_05(w); - } + w->OnDropdown(widgetIndex, dropdownIndex); } void WindowEventUpdateCall(WindowBase* w) { - if (w->event_handlers == nullptr) - w->OnUpdate(); - else if (w->event_handlers->update != nullptr) - w->event_handlers->update(w); + w->OnUpdate(); } void WindowEventPeriodicUpdateCall(WindowBase* w) { - if (w->event_handlers == nullptr) - w->OnPeriodicUpdate(); - else if (w->event_handlers->periodic_update != nullptr) - w->event_handlers->periodic_update(w); + w->OnPeriodicUpdate(); } void WindowEventToolUpdateCall(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) { - if (w->event_handlers == nullptr) - w->OnToolUpdate(widgetIndex, screenCoords); - else if (w->event_handlers->tool_update != nullptr) - w->event_handlers->tool_update(w, widgetIndex, screenCoords); + w->OnToolUpdate(widgetIndex, screenCoords); } void WindowEventToolDownCall(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) { - if (w->event_handlers == nullptr) - w->OnToolDown(widgetIndex, screenCoords); - else if (w->event_handlers->tool_down != nullptr) - w->event_handlers->tool_down(w, widgetIndex, screenCoords); + w->OnToolDown(widgetIndex, screenCoords); } void WindowEventToolDragCall(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) { - if (w->event_handlers == nullptr) - w->OnToolDrag(widgetIndex, screenCoords); - else if (w->event_handlers->tool_drag != nullptr) - w->event_handlers->tool_drag(w, widgetIndex, screenCoords); + w->OnToolDrag(widgetIndex, screenCoords); } void WindowEventToolUpCall(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) { - if (w->event_handlers == nullptr) - w->OnToolUp(widgetIndex, screenCoords); - else if (w->event_handlers->tool_up != nullptr) - w->event_handlers->tool_up(w, widgetIndex, screenCoords); + w->OnToolUp(widgetIndex, screenCoords); } void WindowEventToolAbortCall(WindowBase* w, WidgetIndex widgetIndex) { - if (w->event_handlers == nullptr) - w->OnToolAbort(widgetIndex); - else if (w->event_handlers->tool_abort != nullptr) - w->event_handlers->tool_abort(w, widgetIndex); + w->OnToolAbort(widgetIndex); } void WindowGetScrollSize(WindowBase* w, int32_t scrollIndex, int32_t* width, int32_t* height) { - if (w->event_handlers == nullptr) - { - auto size = w->OnScrollGetSize(scrollIndex); - if (width != nullptr) - *width = size.width; - if (height != nullptr) - *height = size.height; - } - else if (w->event_handlers->get_scroll_size != nullptr) - { - w->event_handlers->get_scroll_size(w, scrollIndex, width, height); - } + auto size = w->OnScrollGetSize(scrollIndex); + if (width != nullptr) + *width = size.width; + if (height != nullptr) + *height = size.height; } void WindowEventScrollMousedownCall(WindowBase* w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords) { - if (w->event_handlers == nullptr) - w->OnScrollMouseDown(scrollIndex, screenCoords); - else if (w->event_handlers->scroll_mousedown != nullptr) - w->event_handlers->scroll_mousedown(w, scrollIndex, screenCoords); + w->OnScrollMouseDown(scrollIndex, screenCoords); } void WindowEventScrollMousedragCall(WindowBase* w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords) { - if (w->event_handlers == nullptr) - w->OnScrollMouseDrag(scrollIndex, screenCoords); - else if (w->event_handlers->scroll_mousedrag != nullptr) - w->event_handlers->scroll_mousedrag(w, scrollIndex, screenCoords); + w->OnScrollMouseDrag(scrollIndex, screenCoords); } void WindowEventScrollMouseoverCall(WindowBase* w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords) { - if (w->event_handlers == nullptr) - w->OnScrollMouseOver(scrollIndex, screenCoords); - else if (w->event_handlers->scroll_mouseover != nullptr) - w->event_handlers->scroll_mouseover(w, scrollIndex, screenCoords); + w->OnScrollMouseOver(scrollIndex, screenCoords); } void WindowEventTextinputCall(WindowBase* w, WidgetIndex widgetIndex, const char* text) { - if (w->event_handlers == nullptr) + if (text != nullptr) { - if (text != nullptr) - { - w->OnTextInput(widgetIndex, text); - } - } - else if (w->event_handlers->text_input != nullptr) - { - w->event_handlers->text_input(w, widgetIndex, text); + w->OnTextInput(widgetIndex, text); } } void WindowEventViewportRotateCall(WindowBase* w) { - if (w->event_handlers == nullptr) - w->OnViewportRotate(); - else if (w->event_handlers != nullptr) - if (w->event_handlers->viewport_rotate != nullptr) - w->event_handlers->viewport_rotate(w); + w->OnViewportRotate(); } void WindowEventScrollSelectCall(WindowBase* w, int32_t scrollIndex, int32_t scrollAreaType) { - if (w->event_handlers == nullptr) - w->OnScrollSelect(scrollIndex, scrollAreaType); - else if (w->event_handlers->scroll_select != nullptr) - w->event_handlers->scroll_select(w, scrollIndex, scrollAreaType); + w->OnScrollSelect(scrollIndex, scrollAreaType); } OpenRCT2String WindowEventTooltipCall(WindowBase* w, const WidgetIndex widgetIndex, const StringId fallback) { - if (w->event_handlers == nullptr) - { - return w->OnTooltip(widgetIndex, fallback); - } - - if (w->event_handlers->tooltip != nullptr) - { - return w->event_handlers->tooltip(w, widgetIndex, fallback); - } - - return { fallback, {} }; + return w->OnTooltip(widgetIndex, fallback); } CursorID WindowEventCursorCall(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) { - CursorID cursorId = CursorID::Arrow; - if (w->event_handlers == nullptr) - { - cursorId = w->OnCursor(widgetIndex, screenCoords, cursorId); - } - else if (w->event_handlers->cursor != nullptr) - w->event_handlers->cursor(w, widgetIndex, screenCoords, &cursorId); - return cursorId; + return w->OnCursor(widgetIndex, screenCoords, CursorID::Arrow); } void WindowEventMovedCall(WindowBase* w, const ScreenCoordsXY& screenCoords) { - if (w->event_handlers == nullptr) - { - w->OnMoved(screenCoords); - } - else if (w->event_handlers->moved != nullptr) - w->event_handlers->moved(w, screenCoords); + w->OnMoved(screenCoords); } -void WindowEventInvalidateCall(WindowBase* w) +void WindowEventOnPrepareDrawCall(WindowBase* w) { - if (w->event_handlers == nullptr) - w->OnPrepareDraw(); - else if (w->event_handlers->invalidate != nullptr) - w->event_handlers->invalidate(w); + w->OnPrepareDraw(); } -void WindowEventPaintCall(WindowBase* w, DrawPixelInfo& dpi) +void WindowEventOnDrawCall(WindowBase* w, DrawPixelInfo& dpi) { - if (w->event_handlers == nullptr) - w->OnDraw(dpi); - else if (w->event_handlers->paint != nullptr) - w->event_handlers->paint(w, dpi); + w->OnDraw(dpi); } -void WindowEventScrollPaintCall(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex) +void WindowEventScrollDrawCall(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex) { - if (w->event_handlers == nullptr) - w->OnScrollDraw(scrollIndex, dpi); - else if (w->event_handlers->scroll_paint != nullptr) - w->event_handlers->scroll_paint(w, dpi, scrollIndex); + w->OnScrollDraw(scrollIndex, dpi); } /** @@ -2062,6 +1922,8 @@ bool WindowIsVisible(WindowBase& w) for (auto it = std::next(itPos); it != g_window_list.end(); it++) { auto& w_other = *(*it); + if (w_other.flags & WF_DEAD) + continue; // if covered by a higher window, no rendering needed if (w_other.windowPos.x <= w.windowPos.x && w_other.windowPos.y <= w.windowPos.y @@ -2108,6 +1970,8 @@ Viewport* WindowGetPreviousViewport(Viewport* current) for (auto it = g_window_list.rbegin(); it != g_window_list.rend(); it++) { auto& w = **it; + if (w.flags & WF_DEAD) + continue; if (w.viewport != nullptr) { if (foundPrevious) @@ -2169,6 +2033,9 @@ WindowBase* WindowGetListening() for (auto it = g_window_list.rbegin(); it != g_window_list.rend(); it++) { auto& w = **it; + if (w.flags & WF_DEAD) + continue; + auto viewport = w.viewport; if (viewport != nullptr) { @@ -2262,8 +2129,16 @@ void WindowBase::ResizeFrame() // Title widgets[1].right = width - 2; // Close button - widgets[2].left = width - 13; - widgets[2].right = width - 3; + if (gConfigInterface.WindowButtonsOnTheLeft) + { + widgets[2].left = 2; + widgets[2].right = 2 + CloseButtonWidth; + } + else + { + widgets[2].left = width - 3 - CloseButtonWidth; + widgets[2].right = width - 3; + } } void WindowBase::ResizeFrameWithPage() @@ -2273,3 +2148,38 @@ void WindowBase::ResizeFrameWithPage() widgets[3].right = width - 1; widgets[3].bottom = height - 1; } + +void WindowBase::ResizeSpinner(WidgetIndex widgetIndex, const ScreenCoordsXY& origin, const ScreenSize& size) +{ + auto right = origin.x + size.width - 1; + auto bottom = origin.y + size.height - 1; + widgets[widgetIndex].left = origin.x; + widgets[widgetIndex].top = origin.y; + widgets[widgetIndex].right = right; + widgets[widgetIndex].bottom = bottom; + + widgets[widgetIndex + 1].left = right - size.height; // subtract height to maintain aspect ratio + widgets[widgetIndex + 1].top = origin.y + 1; + widgets[widgetIndex + 1].right = right - 1; + widgets[widgetIndex + 1].bottom = bottom - 1; + + widgets[widgetIndex + 2].left = right - size.height * 2; + widgets[widgetIndex + 2].top = origin.y + 1; + widgets[widgetIndex + 2].right = right - size.height - 1; + widgets[widgetIndex + 2].bottom = bottom - 1; +} + +void WindowBase::ResizeDropdown(WidgetIndex widgetIndex, const ScreenCoordsXY& origin, const ScreenSize& size) +{ + auto right = origin.x + size.width - 1; + auto bottom = origin.y + size.height - 1; + widgets[widgetIndex].left = origin.x; + widgets[widgetIndex].top = origin.y; + widgets[widgetIndex].right = right; + widgets[widgetIndex].bottom = bottom; + + widgets[widgetIndex + 1].left = right - size.height + 1; // subtract height to maintain aspect ratio + widgets[widgetIndex + 1].top = origin.y + 1; + widgets[widgetIndex + 1].right = right - 1; + widgets[widgetIndex + 1].bottom = bottom - 1; +} diff --git a/src/openrct2/interface/Window.h b/src/openrct2/interface/Window.h index f274acbf35..95d38b9046 100644 --- a/src/openrct2/interface/Window.h +++ b/src/openrct2/interface/Window.h @@ -38,10 +38,14 @@ enum class CursorID : uint8_t; enum class RideConstructionState : uint8_t; enum class CloseWindowModifier : uint8_t; +constexpr uint8_t CloseButtonWidth = 10; + #define SCROLLABLE_ROW_HEIGHT 12 #define LIST_ROW_HEIGHT 12 #define TABLE_CELL_HEIGHT 12 #define BUTTON_FACE_HEIGHT 12 +#define SPINNER_HEIGHT 12 +#define DROPDOWN_HEIGHT 12 #define TEXT_INPUT_SIZE 1024 #define TOP_TOOLBAR_HEIGHT 27 @@ -221,81 +225,6 @@ struct Focus } }; -struct WindowEventList -{ - void (*close)(struct WindowBase*){}; - void (*mouse_up)(struct WindowBase*, WidgetIndex){}; - void (*resize)(struct WindowBase*){}; - void (*mouse_down)(struct WindowBase*, WidgetIndex, Widget*){}; - void (*dropdown)(struct WindowBase*, WidgetIndex, int32_t){}; - void (*unknown_05)(struct WindowBase*){}; - void (*update)(struct WindowBase*){}; - void (*periodic_update)(struct WindowBase*){}; - void (*tool_update)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&){}; - void (*tool_down)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&){}; - void (*tool_drag)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&){}; - void (*tool_up)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&){}; - void (*tool_abort)(struct WindowBase*, WidgetIndex){}; - void (*get_scroll_size)(struct WindowBase*, int32_t, int32_t*, int32_t*){}; - void (*scroll_mousedown)(struct WindowBase*, int32_t, const ScreenCoordsXY&){}; - void (*scroll_mousedrag)(struct WindowBase*, int32_t, const ScreenCoordsXY&){}; - void (*scroll_mouseover)(struct WindowBase*, int32_t, const ScreenCoordsXY&){}; - void (*text_input)(struct WindowBase*, WidgetIndex, const char*){}; - void (*viewport_rotate)(struct WindowBase*){}; - void (*scroll_select)(struct WindowBase*, int32_t, int32_t){}; - OpenRCT2String (*tooltip)(struct WindowBase*, const WidgetIndex, const StringId){}; - void (*cursor)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&, CursorID*){}; - void (*moved)(struct WindowBase*, const ScreenCoordsXY&){}; - void (*invalidate)(struct WindowBase*){}; - void (*paint)(struct WindowBase*, DrawPixelInfo&){}; - void (*scroll_paint)(struct WindowBase*, DrawPixelInfo&, int32_t){}; - - typedef void (*fnEventInitializer)(WindowEventList&); - WindowEventList(fnEventInitializer fn) - { - fn(*this); - } -}; - -struct CampaignVariables -{ - int16_t campaign_type; - int16_t no_weeks; // 0x482 - union - { - ::RideId RideId; - ObjectEntryIndex ShopItemId; - }; - uint32_t Pad486; -}; - -struct NewRideVariables -{ - RideSelection SelectedRide; // 0x480 - RideSelection HighlightedRide; // 0x482 - uint16_t Pad484; - uint16_t Pad486; - uint16_t selected_ride_countdown; // 488 -}; - -struct RideVariables -{ - int16_t view; - int32_t var_482; - int32_t var_486; -}; - -struct TrackListVariables -{ - bool track_list_being_updated; - bool reload_track_designs; -}; - -struct ErrorVariables -{ - uint16_t var_480; -}; - struct WindowCloseModifier { WindowIdentifier window; @@ -325,6 +254,7 @@ enum WINDOW_FLAGS WF_SCROLLING_TO_LOCATION = (1 << 3), WF_TRANSPARENT = (1 << 4), WF_NO_BACKGROUND = (1 << 5), // Instead of half transparency, completely remove the window background + WF_DEAD = (1U << 6), // Window is closed and will be deleted in the next update. WF_7 = (1 << 7), WF_RESIZABLE = (1 << 8), WF_NO_AUTO_CLOSE = (1 << 9), // Don't auto close this window if too many windows are open @@ -614,14 +544,8 @@ T* WindowFocusOrCreate(WindowClass cls, int32_t width, int32_t height, uint32_t return static_cast(w); } -WindowBase* WindowCreate( - const ScreenCoordsXY& pos, int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags); -WindowBase* WindowCreateAutoPos( - int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags); -WindowBase* WindowCreateCentred( - int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags); - void WindowClose(WindowBase& window); +void WindowFlushDead(); void WindowCloseByClass(WindowClass cls); void WindowCloseByNumber(WindowClass cls, rct_windownumber number); void WindowCloseByNumber(WindowClass cls, EntityId number); @@ -712,9 +636,9 @@ void WindowEventScrollSelectCall(WindowBase* w, int32_t scrollIndex, int32_t scr OpenRCT2String WindowEventTooltipCall(WindowBase* w, const WidgetIndex widgetIndex, const StringId fallback); CursorID WindowEventCursorCall(WindowBase* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords); void WindowEventMovedCall(WindowBase* w, const ScreenCoordsXY& screenCoords); -void WindowEventInvalidateCall(WindowBase* w); -void WindowEventPaintCall(WindowBase* w, DrawPixelInfo& dpi); -void WindowEventScrollPaintCall(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex); +void WindowEventOnPrepareDrawCall(WindowBase* w); +void WindowEventOnDrawCall(WindowBase* w, DrawPixelInfo& dpi); +void WindowEventScrollDrawCall(WindowBase* w, DrawPixelInfo& dpi, int32_t scrollIndex); void InvalidateAllWindowsAfterInput(); void TextinputCancel(); diff --git a/src/openrct2/interface/Window_internal.h b/src/openrct2/interface/Window_internal.h index 92d8827a27..f2b43bd02a 100644 --- a/src/openrct2/interface/Window_internal.h +++ b/src/openrct2/interface/Window_internal.h @@ -31,7 +31,6 @@ struct RCTObjectEntry; */ struct WindowBase { - WindowEventList* event_handlers{}; Viewport* viewport{}; uint64_t disabled_widgets{}; uint64_t pressed_widgets{}; @@ -51,44 +50,18 @@ struct WindowBase }; uint16_t flags{}; ScrollBar scrolls[3]; - uint32_t list_item_positions[1024]{}; uint16_t no_list_items{}; // 0 for no items int16_t selected_list_item{}; // -1 for none selected std::optional focus; union { - CampaignVariables campaign; - NewRideVariables new_ride; - RideVariables ride; - TrackListVariables track_list; - ErrorVariables error; - void* custom_info; - }; - union - { - int16_t page; + int16_t page{}; TileInspectorPage tileInspectorPage; }; - union - { - int16_t picked_peep_old_x; // staff window: peep x gets set to 0x8000 on pickup, this is the old value - int16_t vehicleIndex; // Ride window: selected car when setting vehicle colours - int16_t var_48C; - }; uint16_t frame_no{}; // updated every tic for motion in windows sprites uint16_t list_information_type{}; // 0 for none - union - { - int16_t picked_peep_frame; // Animation frame of picked peep in staff window and guest window - int16_t var_492; - }; - union - { - uint16_t ride_colour; - const ScenarioIndexEntry* highlighted_scenario; - }; + int16_t picked_peep_frame; // Animation frame of picked peep in staff window and guest window int16_t selected_tab{}; - int16_t var_4AE{}; EntityId viewport_target_sprite{ EntityId::GetNull() }; ScreenCoordsXY savedViewPos{}; WindowClass classification{}; @@ -194,12 +167,12 @@ struct WindowBase { } virtual CursorID OnCursor(WidgetIndex, const ScreenCoordsXY&, CursorID); - virtual void OnUnknown5() - { - } void ResizeFrame(); void ResizeFrameWithPage(); + + void ResizeSpinner(WidgetIndex widgetIndex, const ScreenCoordsXY& origin, const ScreenSize& size); + void ResizeDropdown(WidgetIndex widgetIndex, const ScreenCoordsXY& origin, const ScreenSize& size); }; #ifdef __WARN_SUGGEST_FINAL_METHODS__ diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index 90fe33c23f..49134f082c 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -51,7 +51,7 @@ - __ENABLE_DISCORD__;USE_BENCHMARK;%(PreprocessorDefinitions) + __ENABLE_DISCORD__;%(PreprocessorDefinitions) USE_BREAKPAD;%(PreprocessorDefinitions) USE_FRIBIDI;%(PreprocessorDefinitions) Use @@ -316,8 +316,8 @@ - - + + @@ -351,13 +351,14 @@ - + + @@ -513,6 +514,8 @@ + + @@ -582,6 +585,7 @@ + @@ -686,9 +690,6 @@ - - - @@ -819,7 +820,7 @@ - + @@ -856,6 +857,7 @@ + @@ -870,10 +872,10 @@ + - @@ -993,6 +995,7 @@ + @@ -1041,13 +1044,15 @@ + NotUsing - + + TurnOffAllWarnings diff --git a/src/openrct2/localisation/Currency.cpp b/src/openrct2/localisation/Currency.cpp index a6b63c6ae2..9eb01131bb 100644 --- a/src/openrct2/localisation/Currency.cpp +++ b/src/openrct2/localisation/Currency.cpp @@ -23,7 +23,7 @@ CurrencyDescriptor CurrencyDescriptors[EnumValue(CurrencyType::Count)] = { { "ESP", 10, CurrencyAffix::Suffix, "Pts", CurrencyAffix::Suffix, "Pts", STR_PESETA }, // Spanish Peseta { "ITL", 1000, CurrencyAffix::Prefix, "L", CurrencyAffix::Prefix, "L", STR_LIRA }, // Italian Lira { "NLG", 10, CurrencyAffix::Prefix, "\xC6\x92 ", CurrencyAffix::Prefix, "fl.", STR_GUILDERS }, // Dutch Guilder - { "SEK", 10, CurrencyAffix::Suffix, " kr", CurrencyAffix::Suffix, " kr", STR_KRONA }, // Swedish Krona + { "SEK", 100, CurrencyAffix::Suffix, " kr", CurrencyAffix::Suffix, " kr", STR_KRONA }, // Swedish Krona { "EUR", 10, CurrencyAffix::Prefix, "\xE2\x82\xAC", CurrencyAffix::Suffix, "EUR", STR_EUROS }, // Euro { "KRW", 10000, CurrencyAffix::Prefix, "\xE2\x82\xA9", CurrencyAffix::Prefix, "W", STR_WON }, // South Korean Won { "RUB", 1000, CurrencyAffix::Suffix, "\xE2\x82\xBD", CurrencyAffix::Prefix, "R ", STR_ROUBLE }, // Russian Rouble diff --git a/src/openrct2/localisation/FormatCodes.cpp b/src/openrct2/localisation/FormatCodes.cpp index 491a61d6c8..0464c131eb 100644 --- a/src/openrct2/localisation/FormatCodes.cpp +++ b/src/openrct2/localisation/FormatCodes.cpp @@ -194,7 +194,7 @@ size_t FormatTokenGetTextColourIndex(FormatToken token) FormatToken FormatTokenFromTextColour(size_t textColour) { - static constexpr const FormatToken tokens[] = { + static constexpr FormatToken tokens[] = { FormatToken::ColourBlack, FormatToken::ColourGrey, FormatToken::ColourWhite, FormatToken::ColourRed, FormatToken::ColourGreen, FormatToken::ColourYellow, FormatToken::ColourTopaz, FormatToken::ColourCeladon, FormatToken::ColourBabyBlue, diff --git a/src/openrct2/localisation/FormatCodes.h b/src/openrct2/localisation/FormatCodes.h index 3ee79d1aac..79f3cea190 100644 --- a/src/openrct2/localisation/FormatCodes.h +++ b/src/openrct2/localisation/FormatCodes.h @@ -213,6 +213,11 @@ namespace UnicodeChar // Cyrillic alphabet constexpr char32_t cyrillic_io_uc = 0x401; + constexpr char32_t cyrillic_ukrainian_ie_uc = 0x404; + constexpr char32_t cyrillic_dze_uc = 0x0405; + constexpr char32_t cyrillic_dotted_i_uc = 0x0406; + constexpr char32_t cyrillic_yi_uc = 0x0407; + constexpr char32_t cyrillic_je_uc = 0x0408; constexpr char32_t cyrillic_a_uc = 0x410; constexpr char32_t cyrillic_be_uc = 0x411; constexpr char32_t cyrillic_ve_uc = 0x412; @@ -280,6 +285,14 @@ namespace UnicodeChar constexpr char32_t cyrillic_ya = 0x44F; constexpr char32_t cyrillic_io = 0x451; + constexpr char32_t cyrillic_ukrainian_ie = 0x454; + constexpr char32_t cyrillic_dze = 0x0455; + constexpr char32_t cyrillic_dotted_i = 0x0456; + constexpr char32_t cyrillic_yi = 0x0457; + constexpr char32_t cyrillic_je = 0x0458; + + constexpr char32_t cyrillic_ghe_upturn_uc = 0x490; + constexpr char32_t cyrillic_ghe_upturn = 0x491; // Punctuation constexpr char32_t left_brace = 0x7B; diff --git a/src/openrct2/localisation/Formatting.cpp b/src/openrct2/localisation/Formatting.cpp index 83f41b7b10..fc214a775a 100644 --- a/src/openrct2/localisation/Formatting.cpp +++ b/src/openrct2/localisation/Formatting.cpp @@ -438,7 +438,7 @@ namespace OpenRCT2 template static void FormatMinutesSeconds(FormatBuffer& ss, T value) { - static constexpr const StringId Formats[][2] = { + static constexpr StringId Formats[][2] = { { STR_DURATION_SEC, STR_DURATION_SECS }, { STR_DURATION_MIN_SEC, STR_DURATION_MIN_SECS }, { STR_DURATION_MINS_SEC, STR_DURATION_MINS_SECS }, @@ -460,7 +460,7 @@ namespace OpenRCT2 template static void FormatHoursMinutes(FormatBuffer& ss, T value) { - static constexpr const StringId Formats[][2] = { + static constexpr StringId Formats[][2] = { { STR_REALTIME_MIN, STR_REALTIME_MINS }, { STR_REALTIME_HOUR_MIN, STR_REALTIME_HOUR_MINS }, { STR_REALTIME_HOURS_MIN, STR_REALTIME_HOURS_MINS }, diff --git a/src/openrct2/localisation/LanguagePack.cpp b/src/openrct2/localisation/LanguagePack.cpp index 51efc6209c..6038c655c3 100644 --- a/src/openrct2/localisation/LanguagePack.cpp +++ b/src/openrct2/localisation/LanguagePack.cpp @@ -28,21 +28,11 @@ // Don't try to load more than language files that exceed 64 MiB constexpr uint64_t MAX_LANGUAGE_SIZE = 64 * 1024 * 1024; -constexpr uint64_t MAX_OBJECT_OVERRIDES = 4096; constexpr uint64_t MAX_SCENARIO_OVERRIDES = 4096; -constexpr StringId ObjectOverrideBase = 0x6000; -constexpr int32_t ObjectOverrideMaxStringCount = 3; - constexpr StringId ScenarioOverrideBase = 0x7000; constexpr int32_t ScenarioOverrideMaxStringCount = 3; -struct ObjectOverride -{ - char name[8] = { 0 }; - std::string strings[ObjectOverrideMaxStringCount]; -}; - struct ScenarioOverride { std::string filename; @@ -54,14 +44,12 @@ class LanguagePack final : public ILanguagePack private: uint16_t const _id; std::vector _strings; - std::vector _objectOverrides; std::vector _scenarioOverrides; /////////////////////////////////////////////////////////////////////////// // Parsing work data /////////////////////////////////////////////////////////////////////////// std::string _currentGroup; - ObjectOverride* _currentObjectOverride = nullptr; ScenarioOverride* _currentScenarioOverride = nullptr; public: @@ -112,7 +100,6 @@ public: // Clean up the parsing work data _currentGroup.clear(); - _currentObjectOverride = nullptr; _currentScenarioOverride = nullptr; } @@ -159,21 +146,6 @@ public: return nullptr; } - if (stringId >= ObjectOverrideBase) - { - int32_t offset = stringId - ObjectOverrideBase; - int32_t ooIndex = offset / ObjectOverrideMaxStringCount; - int32_t ooStringIndex = offset % ObjectOverrideMaxStringCount; - - if (_objectOverrides.size() > static_cast(ooIndex) - && !_objectOverrides[ooIndex].strings[ooStringIndex].empty()) - { - return _objectOverrides[ooIndex].strings[ooStringIndex].c_str(); - } - - return nullptr; - } - if ((_strings.size() > static_cast(stringId)) && !_strings[stringId].empty()) { return _strings[stringId].c_str(); @@ -182,27 +154,6 @@ public: return nullptr; } - StringId GetObjectOverrideStringId(std::string_view legacyIdentifier, uint8_t index) override - { - Guard::Assert(index < ObjectOverrideMaxStringCount); - - int32_t ooIndex = 0; - for (const ObjectOverride& objectOverride : _objectOverrides) - { - if (std::string_view(objectOverride.name, 8) == legacyIdentifier) - { - if (objectOverride.strings[index].empty()) - { - return STR_NONE; - } - return ObjectOverrideBase + (ooIndex * ObjectOverrideMaxStringCount) + index; - } - ooIndex++; - } - - return STR_NONE; - } - StringId GetScenarioOverrideStringId(const utf8* scenarioFilename, uint8_t index) override { Guard::ArgumentNotNull(scenarioFilename); @@ -211,7 +162,7 @@ public: int32_t ooIndex = 0; for (const ScenarioOverride& scenarioOverride : _scenarioOverrides) { - if (String::Equals(scenarioOverride.filename.c_str(), scenarioFilename, true)) + if (String::IEquals(scenarioOverride.filename, scenarioFilename)) { if (scenarioOverride.strings[index].empty()) { @@ -226,23 +177,11 @@ public: } private: - ObjectOverride* GetObjectOverride(const std::string& objectIdentifier) - { - for (auto& oo : _objectOverrides) - { - if (strncmp(oo.name, objectIdentifier.c_str(), 8) == 0) - { - return &oo; - } - } - return nullptr; - } - ScenarioOverride* GetScenarioOverride(const std::string& scenarioIdentifier) { for (auto& so : _scenarioOverrides) { - if (String::Equals(so.strings[0], scenarioIdentifier.c_str(), true)) + if (String::IEquals(so.strings[0], scenarioIdentifier)) { return &so; } @@ -355,14 +294,13 @@ private: void ParseGroupObject(IStringReader* reader) { - auto sb = StringBuilder(); + // THIS IS NO LONGER USED SO WE ARE JUST SKIPPING OVER codepoint_t codepoint; // Should have already deduced that the next codepoint is a [ reader->Skip(); // Read string up to ] or line end - bool closedCorrectly = false; while (reader->TryPeek(&codepoint)) { if (IsNewLine(codepoint)) @@ -371,36 +309,10 @@ private: reader->Skip(); if (codepoint == ']') { - closedCorrectly = true; break; } - sb.Append(codepoint); - } - - if (closedCorrectly) - { - while (sb.GetLength() < 8) - { - sb.Append(' '); - } - if (sb.GetLength() == 8) - { - _currentGroup = sb.GetStdString(); - _currentObjectOverride = GetObjectOverride(_currentGroup); - _currentScenarioOverride = nullptr; - if (_currentObjectOverride == nullptr) - { - if (_objectOverrides.size() == MAX_OBJECT_OVERRIDES) - { - LOG_WARNING("Maximum number of localised object strings exceeded."); - } - - _objectOverrides.emplace_back(); - _currentObjectOverride = &_objectOverrides[_objectOverrides.size() - 1]; - std::copy_n(_currentGroup.c_str(), 8, _currentObjectOverride->name); - } - } } + _currentGroup.clear(); } void ParseGroupScenario(IStringReader* reader) @@ -430,7 +342,6 @@ private: if (closedCorrectly) { _currentGroup = sb.GetStdString(); - _currentObjectOverride = nullptr; _currentScenarioOverride = GetScenarioOverride(_currentGroup); if (_currentScenarioOverride == nullptr) { @@ -557,11 +468,7 @@ private: } else { - if (_currentObjectOverride != nullptr) - { - _currentObjectOverride->strings[stringId] = s; - } - else + if (_currentScenarioOverride != nullptr) { _currentScenarioOverride->strings[stringId] = std::move(s); } diff --git a/src/openrct2/localisation/LanguagePack.h b/src/openrct2/localisation/LanguagePack.h index f5b8b9e8be..45ba2b7ef2 100644 --- a/src/openrct2/localisation/LanguagePack.h +++ b/src/openrct2/localisation/LanguagePack.h @@ -26,7 +26,6 @@ struct ILanguagePack virtual void RemoveString(StringId stringId) abstract; virtual void SetString(StringId stringId, const std::string& str) abstract; virtual const utf8* GetString(StringId stringId) const abstract; - virtual StringId GetObjectOverrideStringId(std::string_view legacyIdentifier, uint8_t index) abstract; virtual StringId GetScenarioOverrideStringId(const utf8* scenarioFilename, uint8_t index) abstract; }; diff --git a/src/openrct2/localisation/Localisation.cpp b/src/openrct2/localisation/Localisation.cpp index 46dd4e1a1a..cfe3a0ffa2 100644 --- a/src/openrct2/localisation/Localisation.cpp +++ b/src/openrct2/localisation/Localisation.cpp @@ -414,14 +414,10 @@ money64 StringToMoney(const char* string_to_monetise) if (numNumbers == 0) return MONEY64_UNDEFINED; - int64_t sign = 1; - if (hasMinus) + if (hasMinus && processedString[0] != '-') { // If there is a minus sign, it has to be at position 0 in order to be valid. - if (processedString[0] == '-') - sign = -1; - else - return MONEY64_UNDEFINED; + return MONEY64_UNDEFINED; } // Due to the nature of strstr and strtok, decimals at the very beginning will be ignored, causing @@ -436,7 +432,7 @@ money64 StringToMoney(const char* string_to_monetise) auto number = std::stod(processedString, nullptr); number /= (currencyDesc->rate / 10.0); - return ToMoney64FromGBP(number) * sign; + return ToMoney64FromGBP(number); } /** diff --git a/src/openrct2/localisation/Localisation.h b/src/openrct2/localisation/Localisation.h index 9f8be0b0a0..78c5e99e96 100644 --- a/src/openrct2/localisation/Localisation.h +++ b/src/openrct2/localisation/Localisation.h @@ -20,7 +20,6 @@ std::string FormatStringID(StringId format, const void* args); void FormatStringToUpper(char* dest, size_t size, StringId format, const void* args); -void generate_string_file(); /** * Formats sizeBytes into buf as a human readable text, e.x.: "1024 MB" @@ -40,8 +39,6 @@ size_t GetStringSize(const utf8* text); money64 StringToMoney(const char* string_to_monetise); void MoneyToString(money64 amount, char* buffer_to_put_value_to, size_t buffer_len, bool forceDecimals); -bool IsUserStringID(StringId stringId); - #define MAX_USER_STRINGS 1024 #define USER_STRING_MAX_LENGTH 32 @@ -49,7 +46,7 @@ bool IsUserStringID(StringId stringId); #define REAL_NAME_START 0xA000 #define REAL_NAME_END 0xDFFF -constexpr const size_t CommonTextBufferSize = 512; +constexpr size_t CommonTextBufferSize = 512; // Real name data extern const char real_name_initials[16]; diff --git a/src/openrct2/localisation/LocalisationService.cpp b/src/openrct2/localisation/LocalisationService.cpp index 6716223312..a8985a5232 100644 --- a/src/openrct2/localisation/LocalisationService.cpp +++ b/src/openrct2/localisation/LocalisationService.cpp @@ -153,15 +153,6 @@ std::tuple LocalisationService::GetLocalisedScenar return std::make_tuple(result0, result1, result2); } -StringId LocalisationService::GetObjectOverrideStringId(std::string_view legacyIdentifier, uint8_t index) const -{ - if (_loadedLanguages.empty()) - { - return STR_NONE; - } - return _loadedLanguages[0]->GetObjectOverrideStringId(legacyIdentifier, index); -} - StringId LocalisationService::AllocateObjectString(const std::string& target) { if (_availableObjectStringIds.empty()) diff --git a/src/openrct2/localisation/LocalisationService.h b/src/openrct2/localisation/LocalisationService.h index d7b76b4c52..0bd2661299 100644 --- a/src/openrct2/localisation/LocalisationService.h +++ b/src/openrct2/localisation/LocalisationService.h @@ -59,7 +59,6 @@ namespace OpenRCT2::Localisation const char* GetString(StringId id) const; std::tuple GetLocalisedScenarioStrings(const std::string& scenarioFilename) const; - StringId GetObjectOverrideStringId(std::string_view legacyIdentifier, uint8_t index) const; std::string GetLanguagePath(uint32_t languageId) const; void OpenLanguage(int32_t id); diff --git a/src/openrct2/localisation/StringIds.h b/src/openrct2/localisation/StringIds.h index 5ae21eff8b..22c03f3711 100644 --- a/src/openrct2/localisation/StringIds.h +++ b/src/openrct2/localisation/StringIds.h @@ -11,8 +11,8 @@ #include "../common.h" -constexpr const StringId STR_NONE = 0xFFFF; -constexpr const StringId STR_VIEWPORT = 0xFFFE; +constexpr StringId STR_NONE = 0xFFFF; +constexpr StringId STR_VIEWPORT = 0xFFFE; enum : uint16_t { @@ -3990,6 +3990,16 @@ enum : uint16_t STR_OPTION_REVERSE_TRAINS_TIP = 6584, STR_RIDE_SET_VEHICLE_REVERSED_FAIL = 6585, + STR_OPENRCT2_DROPDOWN = 6586, + STR_ABOUT_OPENRCT2_TITLE = 6587, + STR_ABOUT_FAIRGROUND_ORGAN = 6588, + + STR_WINDOW_BUTTONS_ON_THE_LEFT = 6589, + STR_WINDOW_BUTTONS_ON_THE_LEFT_TIP = 6590, + + STR_CANT_FIRE_STAFF_FIXING = 6591, + STR_CANT_FIRE_STAFF_INSPECTING = 6592, + // Have to include resource strings (from scenarios and objects) for the time being now that language is partially working /* MAX_STR_COUNT = 32768 */ // MAX_STR_COUNT - upper limit for number of strings, not the current count strings }; diff --git a/src/openrct2/management/Award.cpp b/src/openrct2/management/Award.cpp index 020265d48d..f8f336dace 100644 --- a/src/openrct2/management/Award.cpp +++ b/src/openrct2/management/Award.cpp @@ -26,7 +26,7 @@ constexpr uint8_t NEGATIVE = 0; constexpr uint8_t POSITIVE = 1; -static constexpr const uint8_t AwardPositiveMap[] = { +static constexpr uint8_t AwardPositiveMap[] = { NEGATIVE, // AwardType::MostUntidy POSITIVE, // AwardType::MostTidy POSITIVE, // AwardType::BestRollerCoasters @@ -46,7 +46,7 @@ static constexpr const uint8_t AwardPositiveMap[] = { POSITIVE, // AwardType::BestGentleRides }; -static constexpr const StringId AwardNewsStrings[] = { +static constexpr StringId AwardNewsStrings[] = { STR_NEWS_ITEM_AWARD_MOST_UNTIDY, STR_NEWS_ITEM_MOST_TIDY, STR_NEWS_ITEM_BEST_ROLLERCOASTERS, @@ -484,7 +484,7 @@ static bool AwardIsDeservedBestCustomDesignedRides(int32_t activeAwardTypes) static bool AwardIsDeservedMostDazzlingRideColours(int32_t activeAwardTypes) { /** At least 5 colourful rides and more than half of the rides are colourful. */ - static constexpr const colour_t dazzling_ride_colours[] = { + static constexpr colour_t dazzling_ride_colours[] = { COLOUR_BRIGHT_PURPLE, COLOUR_BRIGHT_GREEN, COLOUR_LIGHT_ORANGE, @@ -566,7 +566,7 @@ static bool AwardIsDeservedBestGentleRides([[maybe_unused]] int32_t activeAwardT using award_deserved_check = bool (*)(int32_t); -static constexpr const award_deserved_check _awardChecks[] = { +static constexpr award_deserved_check _awardChecks[] = { AwardIsDeservedMostUntidy, AwardIsDeservedMostTidy, AwardIsDeservedBestRollercoasters, diff --git a/src/openrct2/management/Finance.cpp b/src/openrct2/management/Finance.cpp index a66f9bd8b8..9bd3ed4bca 100644 --- a/src/openrct2/management/Finance.cpp +++ b/src/openrct2/management/Finance.cpp @@ -32,7 +32,7 @@ const money64 research_cost_table[RESEARCH_FUNDING_COUNT] = { 400.00_GBP, // Maximum funding }; -static constexpr const int32_t dword_988E60[static_cast(ExpenditureType::Count)] = { +static constexpr int32_t dword_988E60[static_cast(ExpenditureType::Count)] = { 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, }; diff --git a/src/openrct2/management/Finance.h b/src/openrct2/management/Finance.h index 1473c35846..293e9b43d5 100644 --- a/src/openrct2/management/Finance.h +++ b/src/openrct2/management/Finance.h @@ -34,7 +34,7 @@ enum class ExpenditureType : int32_t #define EXPENDITURE_TABLE_MONTH_COUNT 16 #define FINANCE_GRAPH_SIZE 128 -constexpr const uint8_t MaxBankLoanInterestRate = 255; +constexpr uint8_t MaxBankLoanInterestRate = 255; extern const money64 research_cost_table[RESEARCH_FUNDING_COUNT]; diff --git a/src/openrct2/management/Marketing.cpp b/src/openrct2/management/Marketing.cpp index 19dbfe4af9..606ec7932f 100644 --- a/src/openrct2/management/Marketing.cpp +++ b/src/openrct2/management/Marketing.cpp @@ -33,7 +33,7 @@ const money64 AdvertisingCampaignPricePerWeek[] = { 200.00_GBP, // RIDE }; -static constexpr const uint16_t AdvertisingCampaignGuestGenerationProbabilities[] = { +static constexpr uint16_t AdvertisingCampaignGuestGenerationProbabilities[] = { 400, 300, 200, 200, 250, 200, }; @@ -93,7 +93,7 @@ static void MarketingRaiseFinishedNotification(const MarketingCampaign& campaign } /** - * Update status of marketing campaigns and send produce a news item when they have finished. + * Update status of marketing campaigns and produce a news item when they have finished. * rct2: 0x0069E0C1 */ void MarketingUpdate() @@ -231,7 +231,7 @@ MarketingCampaign* MarketingGetCampaign(int32_t campaignType) void MarketingNewCampaign(const MarketingCampaign& campaign) { - // Do not allow same campaign twice, just overwrite + // Do not allow the same campaign twice, just overwrite auto currentCampaign = MarketingGetCampaign(campaign.Type); if (currentCampaign != nullptr) { diff --git a/src/openrct2/management/Research.cpp b/src/openrct2/management/Research.cpp index 8177c9bcd8..4e9acc2bd4 100644 --- a/src/openrct2/management/Research.cpp +++ b/src/openrct2/management/Research.cpp @@ -43,7 +43,7 @@ using namespace OpenRCT2; -static constexpr const int32_t _researchRate[] = { +static constexpr int32_t _researchRate[] = { 0, 160, 250, @@ -537,11 +537,15 @@ bool ResearchIsInvented(ObjectType objectType, ObjectEntryIndex index) case ObjectType::SceneryGroup: return SceneryGroupIsInvented(index); case ObjectType::SmallScenery: + return SceneryIsInvented({ SCENERY_TYPE_SMALL, index }); case ObjectType::LargeScenery: + return SceneryIsInvented({ SCENERY_TYPE_LARGE, index }); case ObjectType::Walls: + return SceneryIsInvented({ SCENERY_TYPE_WALL, index }); case ObjectType::Banners: - case ObjectType::PathBits: - return SceneryIsInvented({ static_cast(objectType), index }); + return SceneryIsInvented({ SCENERY_TYPE_BANNER, index }); + case ObjectType::PathAdditions: + return SceneryIsInvented({ SCENERY_TYPE_PATH_ITEM, index }); default: return true; } @@ -908,7 +912,7 @@ bool ResearchItem::Exists() const } // clang-format off -static constexpr const StringId _editorInventionsResearchCategories[] = { +static constexpr StringId _editorInventionsResearchCategories[] = { STR_RESEARCH_NEW_TRANSPORT_RIDES, STR_RESEARCH_NEW_GENTLE_RIDES, STR_RESEARCH_NEW_ROLLER_COASTERS, @@ -927,7 +931,7 @@ StringId ResearchItem::GetCategoryInventionString() const } // clang-format off -static constexpr const StringId _researchCategoryNames[] = { +static constexpr StringId _researchCategoryNames[] = { STR_RESEARCH_CATEGORY_TRANSPORT, STR_RESEARCH_CATEGORY_GENTLE, STR_RESEARCH_CATEGORY_ROLLERCOASTER, diff --git a/src/openrct2/network/DiscordService.cpp b/src/openrct2/network/DiscordService.cpp index dcb19f4d5b..9adeebc2cb 100644 --- a/src/openrct2/network/DiscordService.cpp +++ b/src/openrct2/network/DiscordService.cpp @@ -29,7 +29,7 @@ namespace constexpr const char* APPLICATION_ID = "378612438200877056"; constexpr const char* STEAM_APP_ID = nullptr; - constexpr const auto REFRESH_INTERVAL = 5.0s; + constexpr auto REFRESH_INTERVAL = 5.0s; } // namespace static void OnReady([[maybe_unused]] const DiscordUser* request) diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index 2649d94272..b81ed684b5 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -43,7 +43,7 @@ // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "0" +#define NETWORK_STREAM_VERSION "17" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION @@ -292,7 +292,7 @@ bool NetworkBase::BeginClient(const std::string& host, uint16_t port) Console::WriteLine("Key generated, saving private bits as %s", keyPath.c_str()); const auto keysDirectory = NetworkGetKeysDirectory(); - if (!Platform::EnsureDirectoryExists(keysDirectory.c_str())) + if (!Path::CreateDirectory(keysDirectory)) { LOG_ERROR("Unable to create directory %s.", keysDirectory.c_str()); return false; @@ -1071,8 +1071,9 @@ std::string NetworkBase::BeginLog(const std::string& directory, const std::strin throw std::runtime_error("strftime failed"); } - Platform::EnsureDirectoryExists(Path::Combine(directory, midName).c_str()); - return Path::Combine(directory, midName, filename); + auto directoryMidName = Path::Combine(directory, midName); + Path::CreateDirectory(directoryMidName); + return Path::Combine(directoryMidName, filename); } void NetworkBase::AppendLog(std::ostream& fs, std::string_view s) @@ -2112,7 +2113,7 @@ std::string NetworkBase::MakePlayerNameUnique(const std::string& name) // Check if there is already a player with this name in the server for (const auto& player : player_list) { - if (String::Equals(player->Name.c_str(), new_name.c_str(), true)) + if (String::IEquals(player->Name, new_name)) { unique = false; break; @@ -2495,7 +2496,7 @@ void NetworkBase::Client_Handle_GAMESTATE(NetworkConnection& connection, Network std::string outputPath = GetContext().GetPlatformEnvironment()->GetDirectoryPath(DIRBASE::USER, DIRID::LOG_DESYNCS); - Platform::EnsureDirectoryExists(outputPath.c_str()); + Path::CreateDirectory(outputPath); char uniqueFileName[128] = {}; snprintf( diff --git a/src/openrct2/network/NetworkServerAdvertiser.cpp b/src/openrct2/network/NetworkServerAdvertiser.cpp index ed18f6752a..8f976a154b 100644 --- a/src/openrct2/network/NetworkServerAdvertiser.cpp +++ b/src/openrct2/network/NetworkServerAdvertiser.cpp @@ -284,6 +284,7 @@ private: else if (status == MasterServerStatus::InvalidToken) { _status = ADVERTISE_STATUS::UNREGISTERED; + _lastAdvertiseTime = 0; Console::Error::WriteLine("Master server heartbeat failed: Invalid Token"); } } diff --git a/src/openrct2/network/NetworkUser.cpp b/src/openrct2/network/NetworkUser.cpp index 2ce300f5f3..c7b4cd80d2 100644 --- a/src/openrct2/network/NetworkUser.cpp +++ b/src/openrct2/network/NetworkUser.cpp @@ -186,7 +186,7 @@ const NetworkUser* NetworkUserManager::GetUserByName(const std::string& name) co for (const auto& kvp : _usersByHash) { const auto& networkUser = kvp.second; - if (String::Equals(name.c_str(), networkUser->Name.c_str(), true)) + if (String::IEquals(name, networkUser->Name)) { return networkUser.get(); } diff --git a/src/openrct2/network/ServerList.cpp b/src/openrct2/network/ServerList.cpp index c50d418d93..ff9726b8c2 100644 --- a/src/openrct2/network/ServerList.cpp +++ b/src/openrct2/network/ServerList.cpp @@ -118,7 +118,7 @@ void ServerList::Sort() [](const ServerListEntry& a, const ServerListEntry& b) { if (a.Favourite == b.Favourite) { - return String::Equals(a.Address, b.Address, true); + return String::IEquals(a.Address, b.Address); } return false; }), diff --git a/src/openrct2/network/Socket.cpp b/src/openrct2/network/Socket.cpp index 0446594d25..29fc1bb6b4 100644 --- a/src/openrct2/network/Socket.cpp +++ b/src/openrct2/network/Socket.cpp @@ -49,8 +49,10 @@ #include #include #include + #include #include #include + #include #include "../common.h" using SOCKET = int32_t; #define SOCKET_ERROR -1 diff --git a/src/openrct2/object/BannerObject.cpp b/src/openrct2/object/BannerObject.cpp index 2f591f6146..a375091f91 100644 --- a/src/openrct2/object/BannerObject.cpp +++ b/src/openrct2/object/BannerObject.cpp @@ -41,10 +41,9 @@ void BannerObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* st // Add banners to 'Signs and items for footpaths' group, rather than lumping them in the Miscellaneous tab. // Since this is already done the other way round for original items, avoid adding those to prevent duplicates. - auto identifier = GetLegacyIdentifier(); auto& objectRepository = context->GetObjectRepository(); - auto item = objectRepository.FindObjectLegacy(identifier); + auto item = objectRepository.FindObject(GetDescriptor()); if (item != nullptr) { auto sourceGame = item->GetFirstSourceGame(); diff --git a/src/openrct2/object/DefaultObjects.cpp b/src/openrct2/object/DefaultObjects.cpp index 90c8567f9d..a70a485d0a 100644 --- a/src/openrct2/object/DefaultObjects.cpp +++ b/src/openrct2/object/DefaultObjects.cpp @@ -113,6 +113,14 @@ const std::string_view DefaultSelectedObjects[] = { "rct2.music.pirate", "rct2.music.rock3", "rct2.music.candy", + "openrct2.music.galaxy", + "openrct2.music.acid", + "openrct2.music.dodgems", + "openrct2.music.blizzard", + "openrct2.music.extraterrestrial", + "openrct2.music.fairground2", + "openrct2.music.ragtime2", + "openrct2.music.prehistoric", // Footpath surfaces "rct2.footpath_surface.tarmac", diff --git a/src/openrct2/object/DefaultObjects.h b/src/openrct2/object/DefaultObjects.h index ca8f8af7ec..8f8c7f9b4c 100644 --- a/src/openrct2/object/DefaultObjects.h +++ b/src/openrct2/object/DefaultObjects.h @@ -12,5 +12,5 @@ #include "Object.h" extern const std::string_view MinimumRequiredObjects[2]; -extern const std::string_view DefaultSelectedObjects[103]; +extern const std::string_view DefaultSelectedObjects[111]; extern const std::string_view DesignerSelectedObjects[39]; diff --git a/src/openrct2/object/ImageTable.cpp b/src/openrct2/object/ImageTable.cpp index 794ca748be..7de80fa092 100644 --- a/src/openrct2/object/ImageTable.cpp +++ b/src/openrct2/object/ImageTable.cpp @@ -416,7 +416,7 @@ std::string ImageTable::FindLegacyObject(const std::string& name) while (scanner->Next()) { auto currentName = Path::GetFileName(scanner->GetPathRelative()); - if (String::Equals(currentName, name, true) || String::Equals(currentName, altName, true)) + if (String::IEquals(currentName, name) || String::IEquals(currentName, altName)) { objectPath = scanner->GetPath(); break; diff --git a/src/openrct2/object/Object.cpp b/src/openrct2/object/Object.cpp index 94a3aff0e9..28b7af9bc7 100644 --- a/src/openrct2/object/Object.cpp +++ b/src/openrct2/object/Object.cpp @@ -80,6 +80,47 @@ std::string_view ObjectEntryDescriptor::GetName() const return Generation == ObjectGeneration::JSON ? Identifier : Entry.GetName(); } +std::string ObjectEntryDescriptor::ToString() const +{ + if (Generation == ObjectGeneration::DAT) + { + char buffer[32]; + std::snprintf(&buffer[0], 9, "%08X", Entry.flags); + buffer[8] = '|'; + std::memcpy(&buffer[9], Entry.name, 8); + buffer[17] = '|'; + std::snprintf(&buffer[18], 9, "%8X", Entry.checksum); + return std::string(buffer); + } + else + { + return std::string(GetName()); + } +} + +static uint32_t ParseHex(std::string_view x) +{ + assert(x.size() != 8); + char buffer[9]; + std::memcpy(buffer, x.data(), 8); + buffer[8] = 0; + char* endp{}; + return static_cast(std::strtol(buffer, &endp, 16)); +} + +ObjectEntryDescriptor ObjectEntryDescriptor::Parse(std::string_view identifier) +{ + if (identifier.size() == 26 && identifier[8] == '|' && identifier[17] == '|') + { + RCTObjectEntry entry{}; + entry.flags = ParseHex(identifier.substr(0, 8)); + entry.SetName(identifier.substr(9, 8)); + entry.checksum = ParseHex(identifier.substr(18)); + return ObjectEntryDescriptor(entry); + } + return ObjectEntryDescriptor(identifier); +} + bool ObjectEntryDescriptor::operator==(const ObjectEntryDescriptor& rhs) const { if (Generation != rhs.Generation) @@ -115,28 +156,9 @@ void Object::PopulateTablesFromJson(IReadObjectContext* context, json_t& root) _usesFallbackImages = _imageTable.ReadJson(context, root); } -std::string Object::GetOverrideString(uint8_t index) const -{ - auto legacyIdentifier = GetLegacyIdentifier(); - const auto& localisationService = OpenRCT2::GetContext()->GetLocalisationService(); - auto stringId = localisationService.GetObjectOverrideStringId(legacyIdentifier, index); - - const utf8* result = nullptr; - if (stringId != STR_NONE) - { - result = LanguageGetString(stringId); - } - return String::ToStd(result); -} - std::string Object::GetString(ObjectStringID index) const { - auto sz = GetOverrideString(static_cast(index)); - if (sz.empty()) - { - sz = GetStringTable().GetString(index); - } - return sz; + return GetStringTable().GetString(index); } std::string Object::GetString(int32_t language, ObjectStringID index) const diff --git a/src/openrct2/object/Object.h b/src/openrct2/object/Object.h index 71bda63dc3..7c3f6a8302 100644 --- a/src/openrct2/object/Object.h +++ b/src/openrct2/object/Object.h @@ -26,7 +26,7 @@ struct ObjectRepositoryItem; using ride_type_t = uint16_t; -constexpr const size_t VersionNumFields = 3; +constexpr size_t VersionNumFields = 3; using ObjectVersion = std::tuple; static_assert(std::tuple_size{} == VersionNumFields); @@ -139,9 +139,12 @@ struct ObjectEntryDescriptor bool HasValue() const; ObjectType GetType() const; std::string_view GetName() const; + std::string ToString() const; bool operator==(const ObjectEntryDescriptor& rhs) const; bool operator!=(const ObjectEntryDescriptor& rhs) const; + + static ObjectEntryDescriptor Parse(std::string_view identifier); }; struct IObjectRepository; @@ -220,7 +223,6 @@ protected: */ void PopulateTablesFromJson(IReadObjectContext* context, json_t& root); - std::string GetOverrideString(uint8_t index) const; std::string GetString(ObjectStringID index) const; std::string GetString(int32_t language, ObjectStringID index) const; @@ -265,7 +267,7 @@ public: return _usesFallbackImages; } - // Legacy data structures + // DONOT USE THIS CAN LEAD TO OBJECT COLLISIONS std::string_view GetLegacyIdentifier() const { return _descriptor.GetName(); diff --git a/src/openrct2/object/ObjectFactory.cpp b/src/openrct2/object/ObjectFactory.cpp index d48fd9289a..7e13fb56ed 100644 --- a/src/openrct2/object/ObjectFactory.cpp +++ b/src/openrct2/object/ObjectFactory.cpp @@ -24,7 +24,6 @@ #include "AudioObject.h" #include "BannerObject.h" #include "EntranceObject.h" -#include "FootpathItemObject.h" #include "FootpathObject.h" #include "FootpathRailingsObject.h" #include "FootpathSurfaceObject.h" @@ -33,6 +32,7 @@ #include "Object.h" #include "ObjectLimits.h" #include "ObjectList.h" +#include "PathAdditionObject.h" #include "RideObject.h" #include "SceneryGroupObject.h" #include "SmallSceneryObject.h" @@ -345,8 +345,8 @@ namespace ObjectFactory case ObjectType::Paths: result = std::make_unique(); break; - case ObjectType::PathBits: - result = std::make_unique(); + case ObjectType::PathAdditions: + result = std::make_unique(); break; case ObjectType::SceneryGroup: result = std::make_unique(); @@ -393,7 +393,7 @@ namespace ObjectFactory if (s == "footpath_banner") return ObjectType::Banners; if (s == "footpath_item") - return ObjectType::PathBits; + return ObjectType::PathAdditions; if (s == "scenery_small") return ObjectType::SmallScenery; if (s == "scenery_large") @@ -531,10 +531,20 @@ namespace ObjectFactory RCTObjectEntry entry = {}; entry.flags = std::stoul(originalId.substr(0, 8), nullptr, 16); entry.checksum = std::stoul(originalId.substr(18, 8), nullptr, 16); - entry.SetType(objectType); auto minLength = std::min(8, originalName.length()); std::memcpy(entry.name, originalName.c_str(), minLength); - descriptor = ObjectEntryDescriptor(entry); + + // Some bad objects try to override different types + if (entry.GetType() != objectType) + { + LOG_ERROR( + "Object \"%s\" has invalid originalId set \"%s\". Ignoring override.", id.c_str(), originalId.c_str()); + descriptor = ObjectEntryDescriptor(objectType, id); + } + else + { + descriptor = ObjectEntryDescriptor(entry); + } } else { diff --git a/src/openrct2/object/ObjectLimits.h b/src/openrct2/object/ObjectLimits.h index e36c29e145..c54ecc933e 100644 --- a/src/openrct2/object/ObjectLimits.h +++ b/src/openrct2/object/ObjectLimits.h @@ -13,23 +13,23 @@ // Maximums based on number of values that can be represented in bit group. // Subtract 1 to reserve the NULL entry identifier. -constexpr const uint16_t MAX_RIDE_OBJECTS = 2047; -constexpr const uint16_t MAX_SMALL_SCENERY_OBJECTS = 2047; -constexpr const uint16_t MAX_LARGE_SCENERY_OBJECTS = 2047; -constexpr const uint16_t MAX_WALL_SCENERY_OBJECTS = 2047; -constexpr const uint16_t MAX_BANNER_OBJECTS = 255; -constexpr const uint16_t MAX_PATH_OBJECTS = 255; -constexpr const uint16_t MAX_PATH_ADDITION_OBJECTS = 255; -constexpr const uint16_t MAX_SCENERY_GROUP_OBJECTS = 255; -constexpr const uint16_t MAX_PARK_ENTRANCE_OBJECTS = 1; -constexpr const uint16_t MAX_WATER_OBJECTS = 1; -constexpr const uint16_t MAX_SCENARIO_TEXT_OBJECTS = 0; -constexpr const uint16_t MAX_TERRAIN_SURFACE_OBJECTS = 255; -constexpr const uint16_t MAX_TERRAIN_EDGE_OBJECTS = 255; -constexpr const uint16_t MAX_STATION_OBJECTS = 255; -constexpr const uint16_t MAX_MUSIC_OBJECTS = 255; -constexpr const uint16_t MAX_FOOTPATH_SURFACE_OBJECTS = 255; -constexpr const uint16_t MAX_FOOTPATH_RAILINGS_OBJECTS = 255; -constexpr const uint16_t MAX_AUDIO_OBJECTS = 255; +constexpr uint16_t MAX_RIDE_OBJECTS = 2047; +constexpr uint16_t MAX_SMALL_SCENERY_OBJECTS = 2047; +constexpr uint16_t MAX_LARGE_SCENERY_OBJECTS = 2047; +constexpr uint16_t MAX_WALL_SCENERY_OBJECTS = 2047; +constexpr uint16_t MAX_BANNER_OBJECTS = 255; +constexpr uint16_t MAX_PATH_OBJECTS = 255; +constexpr uint16_t MAX_PATH_ADDITION_OBJECTS = 255; +constexpr uint16_t MAX_SCENERY_GROUP_OBJECTS = 255; +constexpr uint16_t MAX_PARK_ENTRANCE_OBJECTS = 1; +constexpr uint16_t MAX_WATER_OBJECTS = 1; +constexpr uint16_t MAX_SCENARIO_TEXT_OBJECTS = 0; +constexpr uint16_t MAX_TERRAIN_SURFACE_OBJECTS = 255; +constexpr uint16_t MAX_TERRAIN_EDGE_OBJECTS = 255; +constexpr uint16_t MAX_STATION_OBJECTS = 255; +constexpr uint16_t MAX_MUSIC_OBJECTS = 255; +constexpr uint16_t MAX_FOOTPATH_SURFACE_OBJECTS = 255; +constexpr uint16_t MAX_FOOTPATH_RAILINGS_OBJECTS = 255; +constexpr uint16_t MAX_AUDIO_OBJECTS = 255; -constexpr const uint8_t DAT_NAME_LENGTH = 8; +constexpr uint8_t DAT_NAME_LENGTH = 8; diff --git a/src/openrct2/object/ObjectList.cpp b/src/openrct2/object/ObjectList.cpp index 11559f9c7b..1def7d83c0 100644 --- a/src/openrct2/object/ObjectList.cpp +++ b/src/openrct2/object/ObjectList.cpp @@ -29,7 +29,7 @@ int32_t object_entry_group_counts[] = { MAX_WALL_SCENERY_OBJECTS, // walls MAX_BANNER_OBJECTS, // banners MAX_PATH_OBJECTS, // paths - MAX_PATH_ADDITION_OBJECTS, // path bits + MAX_PATH_ADDITION_OBJECTS, // path additions MAX_SCENERY_GROUP_OBJECTS, // scenery sets MAX_PARK_ENTRANCE_OBJECTS, // park entrance MAX_WATER_OBJECTS, // water diff --git a/src/openrct2/object/ObjectManager.cpp b/src/openrct2/object/ObjectManager.cpp index fd79b209a7..b680b8ee25 100644 --- a/src/openrct2/object/ObjectManager.cpp +++ b/src/openrct2/object/ObjectManager.cpp @@ -19,11 +19,11 @@ #include "../ride/RideAudio.h" #include "../util/Util.h" #include "BannerSceneryEntry.h" -#include "FootpathItemObject.h" #include "LargeSceneryObject.h" #include "Object.h" #include "ObjectList.h" #include "ObjectRepository.h" +#include "PathAdditionObject.h" #include "RideObject.h" #include "SceneryGroupObject.h" #include "SmallSceneryObject.h" @@ -175,6 +175,12 @@ public: return RepositoryItemToObject(ori); } + Object* LoadObject(const ObjectEntryDescriptor& descriptor, ObjectEntryIndex slot) override + { + const ObjectRepositoryItem* ori = _objectRepository.FindObject(descriptor); + return RepositoryItemToObject(ori, slot); + } + void LoadObjects(const ObjectList& objectList) override { // Find all the required objects @@ -479,7 +485,7 @@ private: UpdateSceneryGroupIndexes(ObjectType::LargeScenery); UpdateSceneryGroupIndexes(ObjectType::Walls); UpdateSceneryGroupIndexes(ObjectType::Banners); - UpdateSceneryGroupIndexes(ObjectType::PathBits); + UpdateSceneryGroupIndexes(ObjectType::PathAdditions); auto& list = GetObjectList(ObjectType::SceneryGroup); for (auto* loadedObject : list) diff --git a/src/openrct2/object/ObjectManager.h b/src/openrct2/object/ObjectManager.h index 51b6b96757..ffa3c1e79a 100644 --- a/src/openrct2/object/ObjectManager.h +++ b/src/openrct2/object/ObjectManager.h @@ -36,6 +36,7 @@ struct IObjectManager virtual Object* LoadObject(std::string_view identifier) abstract; virtual Object* LoadObject(const RCTObjectEntry* entry) abstract; virtual Object* LoadObject(const ObjectEntryDescriptor& descriptor) abstract; + virtual Object* LoadObject(const ObjectEntryDescriptor& descriptor, ObjectEntryIndex slot) abstract; virtual void LoadObjects(const ObjectList& entries) abstract; virtual void UnloadObjects(const std::vector& entries) abstract; virtual void UnloadAllTransient() abstract; diff --git a/src/openrct2/object/ObjectRepository.cpp b/src/openrct2/object/ObjectRepository.cpp index 9c3147e6b2..d0c7aa9dfb 100644 --- a/src/openrct2/object/ObjectRepository.cpp +++ b/src/openrct2/object/ObjectRepository.cpp @@ -101,11 +101,11 @@ public: { std::unique_ptr object; auto extension = Path::GetExtension(path); - if (String::Equals(extension, ".json", true)) + if (String::IEquals(extension, ".json")) { object = ObjectFactory::CreateObjectFromJsonFile(_objectRepository, path, false); } - else if (String::Equals(extension, ".parkobj", true)) + else if (String::IEquals(extension, ".parkobj")) { object = ObjectFactory::CreateObjectFromZipFile(_objectRepository, path, false); } @@ -267,11 +267,11 @@ public: Guard::ArgumentNotNull(ori, GUARD_LINE); auto extension = Path::GetExtension(ori->Path); - if (String::Equals(extension, ".json", true)) + if (String::IEquals(extension, ".json")) { return ObjectFactory::CreateObjectFromJsonFile(*this, ori->Path, !gOpenRCT2NoGraphics); } - if (String::Equals(extension, ".parkobj", true)) + if (String::IEquals(extension, ".parkobj")) { return ObjectFactory::CreateObjectFromZipFile(*this, ori->Path, !gOpenRCT2NoGraphics); } @@ -690,22 +690,6 @@ std::unique_ptr ObjectRepositoryLoadObject(const RCTObjectEntry* objectE return object; } -void ScenarioTranslate(ScenarioIndexEntry* scenarioEntry) -{ - StringId localisedStringIds[3]; - if (LanguageGetLocalisedScenarioStrings(scenarioEntry->Name, localisedStringIds)) - { - if (localisedStringIds[0] != STR_NONE) - { - String::Set(scenarioEntry->Name, sizeof(scenarioEntry->Name), LanguageGetString(localisedStringIds[0])); - } - if (localisedStringIds[2] != STR_NONE) - { - String::Set(scenarioEntry->Details, sizeof(scenarioEntry->Details), LanguageGetString(localisedStringIds[2])); - } - } -} - size_t ObjectRepositoryGetItemsCount() { auto& objectRepository = GetContext()->GetObjectRepository(); diff --git a/src/openrct2/object/ObjectTypes.cpp b/src/openrct2/object/ObjectTypes.cpp index e9988e7053..af545f07ed 100644 --- a/src/openrct2/object/ObjectTypes.cpp +++ b/src/openrct2/object/ObjectTypes.cpp @@ -7,7 +7,7 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ -#include "ObjectTypes.h" +#include "Object.h" #include @@ -20,3 +20,11 @@ bool ObjectTypeIsIntransient(ObjectType type) { return std::find(IntransientObjectTypes.begin(), IntransientObjectTypes.end(), type) != std::end(IntransientObjectTypes); } + +size_t GetObjectTypeLimit(ObjectType type) +{ + auto index = EnumValue(type); + if (index >= EnumValue(ObjectType::Count)) + return 0; + return static_cast(object_entry_group_counts[index]); +} diff --git a/src/openrct2/object/ObjectTypes.h b/src/openrct2/object/ObjectTypes.h index 05444663a9..1daab86d0f 100644 --- a/src/openrct2/object/ObjectTypes.h +++ b/src/openrct2/object/ObjectTypes.h @@ -10,11 +10,12 @@ #pragma once #include +#include #include #include using ObjectEntryIndex = uint16_t; -constexpr const ObjectEntryIndex OBJECT_ENTRY_INDEX_NULL = std::numeric_limits::max(); +constexpr ObjectEntryIndex OBJECT_ENTRY_INDEX_NULL = std::numeric_limits::max(); // First 0xF of RCTObjectEntry->flags enum class ObjectType : uint8_t @@ -25,7 +26,7 @@ enum class ObjectType : uint8_t Walls, Banners, Paths, - PathBits, + PathAdditions, SceneryGroup, ParkEntrance, Water, @@ -49,7 +50,7 @@ constexpr std::array ObjectTypes = { ObjectType::Walls, ObjectType::Banners, ObjectType::Paths, - ObjectType::PathBits, + ObjectType::PathAdditions, ObjectType::SceneryGroup, ObjectType::ParkEntrance, ObjectType::Water, @@ -68,7 +69,7 @@ static_assert(ObjectTypes.size() == static_cast(ObjectType::Count)); // Object types that can be saved in a park file. constexpr std::array TransientObjectTypes = { ObjectType::Ride, ObjectType::SmallScenery, ObjectType::LargeScenery, ObjectType::Walls, - ObjectType::Banners, ObjectType::Paths, ObjectType::PathBits, ObjectType::SceneryGroup, + ObjectType::Banners, ObjectType::Paths, ObjectType::PathAdditions, ObjectType::SceneryGroup, ObjectType::ParkEntrance, ObjectType::Water, ObjectType::TerrainSurface, ObjectType::TerrainEdge, ObjectType::Station, ObjectType::Music, ObjectType::FootpathSurface, ObjectType::FootpathRailings, }; @@ -78,3 +79,4 @@ constexpr std::array IntransientObjectTypes = { ObjectType::Scena bool ObjectTypeIsTransient(ObjectType type); bool ObjectTypeIsIntransient(ObjectType type); +size_t GetObjectTypeLimit(ObjectType type); diff --git a/src/openrct2/object/FootpathItemEntry.h b/src/openrct2/object/PathAdditionEntry.h similarity index 55% rename from src/openrct2/object/FootpathItemEntry.h rename to src/openrct2/object/PathAdditionEntry.h index 0dd00f3645..3b28c8db96 100644 --- a/src/openrct2/object/FootpathItemEntry.h +++ b/src/openrct2/object/PathAdditionEntry.h @@ -13,7 +13,7 @@ #include "../interface/Cursors.h" #include "ObjectTypes.h" -enum class PathBitDrawType : uint8_t +enum class PathAdditionDrawType : uint8_t { Light, Bin, @@ -23,25 +23,25 @@ enum class PathBitDrawType : uint8_t enum { - PATH_BIT_FLAG_IS_BIN = 1 << 0, - PATH_BIT_FLAG_IS_BENCH = 1 << 1, - PATH_BIT_FLAG_BREAKABLE = 1 << 2, - PATH_BIT_FLAG_LAMP = 1 << 3, - PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER = 1 << 4, - PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW = 1 << 5, - PATH_BIT_FLAG_DONT_ALLOW_ON_QUEUE = 1 << 6, - PATH_BIT_FLAG_DONT_ALLOW_ON_SLOPE = 1 << 7, - PATH_BIT_FLAG_IS_QUEUE_SCREEN = 1 << 8 + PATH_ADDITION_FLAG_IS_BIN = 1 << 0, + PATH_ADDITION_FLAG_IS_BENCH = 1 << 1, + PATH_ADDITION_FLAG_BREAKABLE = 1 << 2, + PATH_ADDITION_FLAG_LAMP = 1 << 3, + PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER = 1 << 4, + PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW = 1 << 5, + PATH_ADDITION_FLAG_DONT_ALLOW_ON_QUEUE = 1 << 6, + PATH_ADDITION_FLAG_DONT_ALLOW_ON_SLOPE = 1 << 7, + PATH_ADDITION_FLAG_IS_QUEUE_SCREEN = 1 << 8 }; -struct PathBitEntry +struct PathAdditionEntry { - static constexpr auto kObjectType = ObjectType::PathBits; + static constexpr auto kObjectType = ObjectType::PathAdditions; StringId name; uint32_t image; uint16_t flags; - PathBitDrawType draw_type; + PathAdditionDrawType draw_type; CursorID tool_id; money64 price; ObjectEntryIndex scenery_tab_id; diff --git a/src/openrct2/object/FootpathItemObject.cpp b/src/openrct2/object/PathAdditionObject.cpp similarity index 63% rename from src/openrct2/object/FootpathItemObject.cpp rename to src/openrct2/object/PathAdditionObject.cpp index b0a327d82e..c3f5b2eb68 100644 --- a/src/openrct2/object/FootpathItemObject.cpp +++ b/src/openrct2/object/PathAdditionObject.cpp @@ -7,7 +7,7 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ -#include "FootpathItemObject.h" +#include "PathAdditionObject.h" #include "../core/IStream.hpp" #include "../core/Json.hpp" @@ -20,11 +20,11 @@ #include -void FootpathItemObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stream) +void PathAdditionObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStream* stream) { stream->Seek(6, OpenRCT2::STREAM_SEEK_CURRENT); _legacyType.flags = stream->ReadValue(); - _legacyType.draw_type = static_cast(stream->ReadValue()); + _legacyType.draw_type = static_cast(stream->ReadValue()); _legacyType.tool_id = static_cast(stream->ReadValue()); _legacyType.price = stream->ReadValue(); _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; @@ -43,12 +43,11 @@ void FootpathItemObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre context->LogError(ObjectError::InvalidProperty, "Price can not be free or negative."); } - // Add path bits to 'Signs and items for footpaths' group, rather than lumping them in the Miscellaneous tab. + // Add path additions to 'Signs and items for footpaths' group, rather than lumping them in the Miscellaneous tab. // Since this is already done the other way round for original items, avoid adding those to prevent duplicates. - auto identifier = GetLegacyIdentifier(); auto& objectRepository = context->GetObjectRepository(); - auto item = objectRepository.FindObjectLegacy(identifier); + auto item = objectRepository.FindObject(GetDescriptor()); if (item != nullptr) { auto sourceGame = item->GetFirstSourceGame(); @@ -61,7 +60,7 @@ void FootpathItemObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre } } -void FootpathItemObject::Load() +void PathAdditionObject::Load() { GetStringTable().Sort(); _legacyType.name = LanguageAllocateObjectString(GetName()); @@ -70,7 +69,7 @@ void FootpathItemObject::Load() _legacyType.scenery_tab_id = OBJECT_ENTRY_INDEX_NULL; } -void FootpathItemObject::Unload() +void PathAdditionObject::Unload() { LanguageFreeObjectString(_legacyType.name); UnloadImages(); @@ -79,28 +78,28 @@ void FootpathItemObject::Unload() _legacyType.image = 0; } -void FootpathItemObject::DrawPreview(DrawPixelInfo& dpi, int32_t width, int32_t height) const +void PathAdditionObject::DrawPreview(DrawPixelInfo& dpi, int32_t width, int32_t height) const { auto screenCoords = ScreenCoordsXY{ width / 2, height / 2 }; GfxDrawSprite(dpi, ImageId(_legacyType.image), screenCoords - ScreenCoordsXY{ 22, 24 }); } -static PathBitDrawType ParseDrawType(const std::string& s) +static PathAdditionDrawType ParseDrawType(const std::string& s) { if (s == "lamp") - return PathBitDrawType::Light; + return PathAdditionDrawType::Light; if (s == "bin") - return PathBitDrawType::Bin; + return PathAdditionDrawType::Bin; if (s == "bench") - return PathBitDrawType::Bench; + return PathAdditionDrawType::Bench; if (s == "fountain") - return PathBitDrawType::JumpingFountain; - return PathBitDrawType::Light; + return PathAdditionDrawType::JumpingFountain; + return PathAdditionDrawType::Light; } -void FootpathItemObject::ReadJson(IReadObjectContext* context, json_t& root) +void PathAdditionObject::ReadJson(IReadObjectContext* context, json_t& root) { - Guard::Assert(root.is_object(), "FootpathItemObject::ReadJson expects parameter root to be object"); + Guard::Assert(root.is_object(), "PathAdditionObject::ReadJson expects parameter root to be object"); json_t properties = root["properties"]; @@ -116,15 +115,15 @@ void FootpathItemObject::ReadJson(IReadObjectContext* context, json_t& root) _legacyType.flags = Json::GetFlags( properties, { - { "isBin", PATH_BIT_FLAG_IS_BIN, Json::FlagType::Normal }, - { "isBench", PATH_BIT_FLAG_IS_BENCH, Json::FlagType::Normal }, - { "isBreakable", PATH_BIT_FLAG_BREAKABLE, Json::FlagType::Normal }, - { "isLamp", PATH_BIT_FLAG_LAMP, Json::FlagType::Normal }, - { "isJumpingFountainWater", PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER, Json::FlagType::Normal }, - { "isJumpingFountainSnow", PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW, Json::FlagType::Normal }, - { "isAllowedOnQueue", PATH_BIT_FLAG_DONT_ALLOW_ON_QUEUE, Json::FlagType::Inverted }, - { "isAllowedOnSlope", PATH_BIT_FLAG_DONT_ALLOW_ON_SLOPE, Json::FlagType::Inverted }, - { "isTelevision", PATH_BIT_FLAG_IS_QUEUE_SCREEN, Json::FlagType::Normal }, + { "isBin", PATH_ADDITION_FLAG_IS_BIN, Json::FlagType::Normal }, + { "isBench", PATH_ADDITION_FLAG_IS_BENCH, Json::FlagType::Normal }, + { "isBreakable", PATH_ADDITION_FLAG_BREAKABLE, Json::FlagType::Normal }, + { "isLamp", PATH_ADDITION_FLAG_LAMP, Json::FlagType::Normal }, + { "isJumpingFountainWater", PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER, Json::FlagType::Normal }, + { "isJumpingFountainSnow", PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW, Json::FlagType::Normal }, + { "isAllowedOnQueue", PATH_ADDITION_FLAG_DONT_ALLOW_ON_QUEUE, Json::FlagType::Inverted }, + { "isAllowedOnSlope", PATH_ADDITION_FLAG_DONT_ALLOW_ON_SLOPE, Json::FlagType::Inverted }, + { "isTelevision", PATH_ADDITION_FLAG_IS_QUEUE_SCREEN, Json::FlagType::Normal }, }); // clang-format on } diff --git a/src/openrct2/object/FootpathItemObject.h b/src/openrct2/object/PathAdditionObject.h similarity index 87% rename from src/openrct2/object/FootpathItemObject.h rename to src/openrct2/object/PathAdditionObject.h index 2287b9e8aa..18e9721fb7 100644 --- a/src/openrct2/object/FootpathItemObject.h +++ b/src/openrct2/object/PathAdditionObject.h @@ -9,13 +9,13 @@ #pragma once -#include "FootpathItemEntry.h" +#include "PathAdditionEntry.h" #include "SceneryObject.h" -class FootpathItemObject final : public SceneryObject +class PathAdditionObject final : public SceneryObject { private: - PathBitEntry _legacyType = {}; + PathAdditionEntry _legacyType = {}; public: void* GetLegacyData() override diff --git a/src/openrct2/object/ResourceTable.h b/src/openrct2/object/ResourceTable.h index 016d220d2a..105fe3fcb2 100644 --- a/src/openrct2/object/ResourceTable.h +++ b/src/openrct2/object/ResourceTable.h @@ -11,6 +11,7 @@ #include "../core/Range.hpp" +#include #include #include #include diff --git a/src/openrct2/object/RideObject.cpp b/src/openrct2/object/RideObject.cpp index ad2144c106..6853046a03 100644 --- a/src/openrct2/object/RideObject.cpp +++ b/src/openrct2/object/RideObject.cpp @@ -58,7 +58,7 @@ static const uint8_t SpriteGroupMultiplier[EnumValue(SpriteGroupType::Count)] = }; static_assert(std::size(SpriteGroupMultiplier) == EnumValue(SpriteGroupType::Count)); -constexpr const uint8_t DefaultSteamSpawnPosition[] = { 11, 22 }; +constexpr uint8_t DefaultSteamSpawnPosition[] = { 11, 22 }; static const EnumMap AnimationNameLookup{ { "none", CarEntryAnimation::None }, @@ -71,7 +71,7 @@ static const EnumMap AnimationNameLookup{ { "animalFlying", CarEntryAnimation::AnimalFlying }, }; -constexpr const auto NumLegacyAnimationTypes = 11; +constexpr auto NumLegacyAnimationTypes = 11; struct LegacyAnimationParameters { @@ -80,7 +80,7 @@ struct LegacyAnimationParameters CarEntryAnimation Alias; }; -constexpr const LegacyAnimationParameters VehicleEntryDefaultAnimation[] = { +constexpr LegacyAnimationParameters VehicleEntryDefaultAnimation[] = { { 0, 1, CarEntryAnimation::None }, // None { 1 << 12, 4, CarEntryAnimation::SteamLocomotive }, // Miniature Railway Locomotive { 1 << 10, 2, CarEntryAnimation::SwanBoat }, // Swan Boat diff --git a/src/openrct2/object/SceneryGroupObject.cpp b/src/openrct2/object/SceneryGroupObject.cpp index 7a6d32ca66..b18d24c054 100644 --- a/src/openrct2/object/SceneryGroupObject.cpp +++ b/src/openrct2/object/SceneryGroupObject.cpp @@ -90,7 +90,7 @@ static std::optional GetSceneryType(const ObjectType type) return SCENERY_TYPE_WALL; case ObjectType::Banners: return SCENERY_TYPE_BANNER; - case ObjectType::PathBits: + case ObjectType::PathAdditions: return SCENERY_TYPE_PATH_ITEM; default: return std::nullopt; @@ -243,3 +243,8 @@ uint16_t SceneryGroupObject::GetNumIncludedObjects() const { return static_cast(_items.size()); } + +const std::vector& SceneryGroupObject::GetItems() const +{ + return _items; +} diff --git a/src/openrct2/object/SceneryGroupObject.h b/src/openrct2/object/SceneryGroupObject.h index 9f1307889c..6c95bbb2a8 100644 --- a/src/openrct2/object/SceneryGroupObject.h +++ b/src/openrct2/object/SceneryGroupObject.h @@ -41,6 +41,7 @@ public: void SetRepositoryItem(ObjectRepositoryItem* item) const override; uint16_t GetNumIncludedObjects() const; + const std::vector& GetItems() const; private: static std::vector ReadItems(OpenRCT2::IStream* stream); diff --git a/src/openrct2/object/StringTable.cpp b/src/openrct2/object/StringTable.cpp index b8b7d28789..0383931678 100644 --- a/src/openrct2/object/StringTable.cpp +++ b/src/openrct2/object/StringTable.cpp @@ -20,7 +20,7 @@ #include -static constexpr const uint8_t RCT2ToOpenRCT2LanguageId[] = { +static constexpr uint8_t RCT2ToOpenRCT2LanguageId[] = { LANGUAGE_ENGLISH_UK, LANGUAGE_ENGLISH_US, LANGUAGE_FRENCH, diff --git a/src/openrct2/paint/Paint.cpp b/src/openrct2/paint/Paint.cpp index 0e2500a0cf..6ae630b823 100644 --- a/src/openrct2/paint/Paint.cpp +++ b/src/openrct2/paint/Paint.cpp @@ -34,7 +34,7 @@ uint8_t gClipHeight = 128; // Default to middle value CoordsXY gClipSelectionA = { 0, 0 }; CoordsXY gClipSelectionB = { MAXIMUM_TILE_START_XY, MAXIMUM_TILE_START_XY }; -static constexpr const uint8_t BoundBoxDebugColours[] = { +static constexpr uint8_t BoundBoxDebugColours[] = { 0, // NONE 102, // TERRAIN 114, // SPRITE diff --git a/src/openrct2/paint/Paint.h b/src/openrct2/paint/Paint.h index 53c21fdc9b..0139e6b6dc 100644 --- a/src/openrct2/paint/Paint.h +++ b/src/openrct2/paint/Paint.h @@ -190,6 +190,7 @@ struct PaintSessionCore TileElement* CurrentlyDrawnTileElement; const TileElement* PathElementOnSameHeight; const TileElement* TrackElementOnSameHeight; + const TileElement* SelectedElement; PaintStruct* WoodenSupportsPrependTo; CoordsXY SpritePosition; CoordsXY MapPosition; @@ -270,12 +271,6 @@ struct FootpathPaintInfo colour_t SupportColour = 255; }; -struct RecordedPaintSession -{ - PaintSessionCore Session; - std::vector Entries; -}; - extern PaintSession gPaintSession; // Globals for paint clipping @@ -284,9 +279,9 @@ extern CoordsXY gClipSelectionA; extern CoordsXY gClipSelectionB; /** rct2: 0x00993CC4. The white ghost that indicates not-yet-built elements. */ -constexpr const ImageId ConstructionMarker = ImageId(0).WithRemap(FilterPaletteID::PaletteGhost); -constexpr const ImageId HighlightMarker = ImageId(0).WithRemap(FilterPaletteID::PaletteGhost); -constexpr const ImageId TrackGhost = ImageId(0, FilterPaletteID::PaletteNull); +constexpr ImageId ConstructionMarker = ImageId(0).WithRemap(FilterPaletteID::PaletteGhost); +constexpr ImageId HighlightMarker = ImageId(0).WithRemap(FilterPaletteID::PaletteGhost); +constexpr ImageId TrackGhost = ImageId(0, FilterPaletteID::PaletteNull); extern bool gShowDirtyVisuals; extern bool gPaintBoundingBoxes; diff --git a/src/openrct2/paint/Painter.cpp b/src/openrct2/paint/Painter.cpp index 989aa1591a..419ffe1de2 100644 --- a/src/openrct2/paint/Painter.cpp +++ b/src/openrct2/paint/Painter.cpp @@ -25,6 +25,7 @@ #include "../profiling/Profiling.h" #include "../title/TitleScreen.h" #include "../ui/UiContext.h" +#include "../world/TileInspector.h" using namespace OpenRCT2; using namespace OpenRCT2::Drawing; @@ -169,6 +170,7 @@ PaintSession* Painter::CreateSession(DrawPixelInfo& dpi, uint32_t viewFlags) session->CurrentlyDrawnEntity = nullptr; session->CurrentlyDrawnTileElement = nullptr; session->Surface = nullptr; + session->SelectedElement = OpenRCT2::TileInspector::GetSelectedElement(); return session; } diff --git a/src/openrct2/paint/Supports.cpp b/src/openrct2/paint/Supports.cpp index b2421f3a5d..0b6562aa37 100644 --- a/src/openrct2/paint/Supports.cpp +++ b/src/openrct2/paint/Supports.cpp @@ -21,7 +21,7 @@ /** rct2: 0x0097AF20, 0x0097AF21 */ // clang-format off -static constexpr const CoordsXY SupportBoundBoxes[] = { +static constexpr CoordsXY SupportBoundBoxes[] = { { 4, 4 }, { 28, 4 }, { 4, 28 }, @@ -34,7 +34,7 @@ static constexpr const CoordsXY SupportBoundBoxes[] = { }; /** rct2: 0x0097AF32 */ -static constexpr const uint8_t _97AF32[] = { +static constexpr uint8_t _97AF32[] = { 5, 2, 5, 2, 5, 2, 5, 2, 7, 1, 7, 1, 7, 1, 7, 1, 6, 3, 6, 3, 6, 3, 6, 3, @@ -77,7 +77,7 @@ static constexpr const uint8_t _97AF32[] = { }; /** rct2: 0x0097B052, 0x0097B053 */ -static constexpr const CoordsXY Loc97B052[] = { +static constexpr CoordsXY Loc97B052[] = { { -15, -1 }, { 0, -2 }, { -2, -1 }, @@ -89,7 +89,7 @@ static constexpr const CoordsXY Loc97B052[] = { }; /** rct2: 0x0097B062, 0x0097B063 */ -static constexpr const CoordsXY _97B062[] = { +static constexpr CoordsXY _97B062[] = { { 18, 3 }, { 3, 18 }, { 18, 3 }, @@ -101,7 +101,7 @@ static constexpr const CoordsXY _97B062[] = { }; /** rct2: 0x0097B072 */ -static constexpr const uint32_t _metalSupportTypeToCrossbeamImages[][8] = { +static constexpr uint32_t _metalSupportTypeToCrossbeamImages[][8] = { { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::Tubes { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::Fork { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::ForkAlt @@ -118,7 +118,7 @@ static constexpr const uint32_t _metalSupportTypeToCrossbeamImages[][8] = { }; /** rct2: 0x0097B142 */ -static constexpr const uint8_t supportTypeToHeight[] = { +static constexpr uint8_t supportTypeToHeight[] = { 6, // MetalSupportType::Tubes 3, // MetalSupportType::Fork 3, // MetalSupportType::ForkAlt @@ -140,7 +140,7 @@ struct MetalSupportsImages { }; /** rct2: 0x0097B15C */ -static constexpr const MetalSupportsImages _97B15C[] = { +static constexpr MetalSupportsImages _97B15C[] = { { 3243, 3209 }, // MetalSupportType::Tubes { 3279, 3262 }, // MetalSupportType::Fork { 3298, 3262 }, // MetalSupportType::ForkAlt @@ -157,7 +157,7 @@ static constexpr const MetalSupportsImages _97B15C[] = { }; /** rct2: 0x0097B190 */ -static constexpr const MetalSupportsImages _97B190[] = { +static constexpr MetalSupportsImages _97B190[] = { { 3243, 3226 }, // 3209 { 3279, 3262 }, { 3298, 3262 }, @@ -174,7 +174,7 @@ static constexpr const MetalSupportsImages _97B190[] = { }; /** rct2: 0x0097B404 */ -static constexpr const uint8_t metal_supports_slope_image_map[] = { +static constexpr uint8_t metal_supports_slope_image_map[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 16, 0, 17, 18, 0, }; @@ -187,7 +187,7 @@ struct SupportsIdDescriptor { }; /* 0x0097B1C4 */ -static constexpr const SupportsIdDescriptor WoodenSupportImageIds[] = { +static constexpr SupportsIdDescriptor WoodenSupportImageIds[] = { { 3392, 3393, 3394, 3536 }, { 3390, 3391, 3394, 3514 }, { 3558, 3559, 3560, 3570 }, @@ -202,7 +202,7 @@ static constexpr const SupportsIdDescriptor WoodenSupportImageIds[] = { { 3770, 3771, 3772, 3839 }, }; -static constexpr const uint16_t WoodenCurveSupportImageIds0[81] = { +static constexpr uint16_t WoodenCurveSupportImageIds0[81] = { 3465, 3466, 3467, @@ -286,7 +286,7 @@ static constexpr const uint16_t WoodenCurveSupportImageIds0[81] = { SPR_G2_SUPPORT_BEGIN + 31, }; -static constexpr const uint16_t WoodenCurveSupportImageIds1[81] = { +static constexpr uint16_t WoodenCurveSupportImageIds1[81] = { 3681, 3682, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3690, 3691, 3692, 3693, 3694, 3695, 3696, 3697, 3698, 3699, 3700, 3701, 3702, 3703, 3704, 3705, 3706, 3707, 3708, 3709, 3710, 3711, 3712, 3713, 3714, 3715, 3716, 3717, 3718, 3719, 3720, 3721, 3722, 3723, 3724, 3725, 3726, 3727, 3728, 3729, @@ -316,7 +316,7 @@ struct UnkSupportsDescriptor { }; /* 0x0097B23C */ -static constexpr const UnkSupportsDescriptor Byte97B23C[] = { +static constexpr UnkSupportsDescriptor Byte97B23C[] = { {{{0, 0, 0}, {1, 1, 8}}, 0, 1}, // Flat to gentle {{{0, 0, 0}, {1, 1, 8}}, 0, 1}, {{{0, 0, 0}, {1, 1, 8}}, 0, 1}, @@ -401,7 +401,7 @@ static constexpr const UnkSupportsDescriptor Byte97B23C[] = { }; /* 0x0098D8D4 */ -static constexpr const UnkSupportsDescriptor Byte98D8D4[] = { +static constexpr UnkSupportsDescriptor Byte98D8D4[] = { {{{0, 0, 0}, {1, 1, 4}}, 0, 1}, {{{0, 0, 0}, {1, 1, 4}}, 0, 1}, {{{0, 0, 0}, {1, 1, 4}}, 0, 1}, @@ -409,7 +409,7 @@ static constexpr const UnkSupportsDescriptor Byte98D8D4[] = { }; /* 0x0097B3C4 */ -static constexpr const uint16_t word_97B3C4[] = { +static constexpr uint16_t word_97B3C4[] = { 0, 0, 1, diff --git a/src/openrct2/paint/Supports.h b/src/openrct2/paint/Supports.h index 0289e6730f..aea4be0f0a 100644 --- a/src/openrct2/paint/Supports.h +++ b/src/openrct2/paint/Supports.h @@ -15,7 +15,7 @@ struct FootpathPaintInfo; -constexpr const uint8_t NumVanillaWoodenSupportTypes = 49; +constexpr uint8_t NumVanillaWoodenSupportTypes = 49; enum class WoodenSupportType : uint8_t { diff --git a/src/openrct2/paint/VirtualFloor.cpp b/src/openrct2/paint/VirtualFloor.cpp index afa9ce1a4e..5736a4b6cd 100644 --- a/src/openrct2/paint/VirtualFloor.cpp +++ b/src/openrct2/paint/VirtualFloor.cpp @@ -296,7 +296,7 @@ void VirtualFloorPaint(PaintSession& session) { PROFILED_FUNCTION(); - static constexpr const CoordsXY scenery_half_tile_offsets[4] = { + static constexpr CoordsXY scenery_half_tile_offsets[4] = { { -COORDS_XY_STEP, 0 }, { 0, COORDS_XY_STEP }, { COORDS_XY_STEP, 0 }, diff --git a/src/openrct2/paint/tile_element/Paint.Banner.cpp b/src/openrct2/paint/tile_element/Paint.Banner.cpp index 269533171b..92068d04fa 100644 --- a/src/openrct2/paint/tile_element/Paint.Banner.cpp +++ b/src/openrct2/paint/tile_element/Paint.Banner.cpp @@ -103,7 +103,7 @@ void PaintBanner(PaintSession& session, uint8_t direction, int32_t height, const session.InteractionType = ViewportInteractionItem::None; imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } - else if (OpenRCT2::TileInspector::IsElementSelected(reinterpret_cast(&bannerElement))) + else if (session.SelectedElement == reinterpret_cast(&bannerElement)) { imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } diff --git a/src/openrct2/paint/tile_element/Paint.Entrance.cpp b/src/openrct2/paint/tile_element/Paint.Entrance.cpp index 53a960c931..e5b8d4706b 100644 --- a/src/openrct2/paint/tile_element/Paint.Entrance.cpp +++ b/src/openrct2/paint/tile_element/Paint.Entrance.cpp @@ -149,7 +149,7 @@ static void PaintRideEntranceExit(PaintSession& session, uint8_t direction, int3 session.InteractionType = ViewportInteractionItem::None; imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } - else if (OpenRCT2::TileInspector::IsElementSelected(reinterpret_cast(&entranceEl))) + else if (session.SelectedElement == reinterpret_cast(&entranceEl)) { imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } @@ -277,7 +277,7 @@ static void PaintParkEntrance(PaintSession& session, uint8_t direction, int32_t session.InteractionType = ViewportInteractionItem::None; imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } - else if (OpenRCT2::TileInspector::IsElementSelected(reinterpret_cast(&entranceEl))) + else if (session.SelectedElement == reinterpret_cast(&entranceEl)) { imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } diff --git a/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp b/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp index 74350d2d61..2f50f0cc51 100644 --- a/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp +++ b/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp @@ -31,7 +31,7 @@ #include "Paint.TileElement.h" // clang-format off -static constexpr const BoundBoxXY LargeSceneryBoundBoxes[] = { +static constexpr BoundBoxXY LargeSceneryBoundBoxes[] = { { { 3, 3 }, { 26, 26 } }, { { 17, 17 }, { 12, 12 } }, { { 17, 3 }, { 12, 12 } }, @@ -362,7 +362,7 @@ void PaintLargeScenery(PaintSession& session, uint8_t direction, uint16_t height imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); isGhost = true; } - else if (OpenRCT2::TileInspector::IsElementSelected(reinterpret_cast(&tileElement))) + else if (session.SelectedElement == reinterpret_cast(&tileElement)) { imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); isGhost = true; diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 27a66498a0..0e667c06b1 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -22,12 +22,12 @@ #include "../../localisation/Formatter.h" #include "../../localisation/Formatting.h" #include "../../localisation/Localisation.h" -#include "../../object/FootpathItemEntry.h" #include "../../object/FootpathObject.h" #include "../../object/FootpathRailingsObject.h" #include "../../object/FootpathSurfaceObject.h" #include "../../object/ObjectList.h" #include "../../object/ObjectManager.h" +#include "../../object/PathAdditionEntry.h" #include "../../profiling/Profiling.h" #include "../../ride/Ride.h" #include "../../ride/Track.h" @@ -41,6 +41,7 @@ #include "../Boundbox.h" #include "../Paint.SessionFlags.h" #include "../Supports.h" +#include "Paint.PathAddition.h" #include "Paint.Surface.h" #include "Paint.TileElement.h" @@ -55,7 +56,7 @@ const uint8_t PathSlopeToLandSlope[] = { TILE_ELEMENT_SLOPE_SE_SIDE_UP, }; -static constexpr const uint8_t Byte98D6E0[] = { +static constexpr uint8_t Byte98D6E0[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 20, 4, 5, 6, 22, 8, 9, 10, 26, 12, 13, 14, 36, 0, 1, 2, 3, 4, 5, 21, 23, 8, 9, 10, 11, 12, 13, 33, 37, 0, 1, 2, 3, 4, 5, 6, 24, 8, 9, 10, 11, 12, 13, 14, 38, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 29, 30, 34, 39, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 40, @@ -67,7 +68,7 @@ static constexpr const uint8_t Byte98D6E0[] = { }; // clang-format off -static constexpr const BoundBoxXY stru_98D804[] = { +static constexpr BoundBoxXY stru_98D804[] = { { { 3, 3 }, { 26, 26 } }, { { 0, 3 }, { 29, 26 } }, { { 3, 3 }, { 26, 29 } }, @@ -86,7 +87,7 @@ static constexpr const BoundBoxXY stru_98D804[] = { { { 0, 0 }, { 32, 32 } }, }; -static constexpr const uint8_t Byte98D8A4[] = { +static constexpr uint8_t Byte98D8A4[] = { 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0 }; // clang-format on @@ -98,194 +99,6 @@ void PathPaintPoleSupport( PaintSession& session, const PathElement& pathElement, int16_t height, const FootpathPaintInfo& pathPaintInfo, bool hasSupports, ImageId imageTemplate, ImageId sceneryImageTemplate); -static ImageIndex GetEdgeImageOffset(edge_t edge) -{ - switch (edge) - { - case EDGE_NE: - return 1; - case EDGE_SE: - return 2; - case EDGE_SW: - return 3; - case EDGE_NW: - return 4; - default: - return 0; - } -} - -static ImageIndex GetFootpathLampImage(const PathBitEntry& pathBitEntry, edge_t edge, bool isBroken) -{ - auto offset = GetEdgeImageOffset(edge); - if (offset == 0) - return ImageIndexUndefined; - return pathBitEntry.image + offset + (isBroken ? 4 : 0); -} - -static ImageIndex GetFootpathBinImage(const PathBitEntry& pathBitEntry, edge_t edge, bool isBroken, bool isFull) -{ - auto offset = GetEdgeImageOffset(edge); - if (offset == 0) - return ImageIndexUndefined; - - auto stateOffset = isBroken ? 4 : (isFull ? 8 : 0); - return pathBitEntry.image + offset + stateOffset; -} - -static ImageIndex GetFootpathBenchImage(const PathBitEntry& pathBitEntry, edge_t edge, bool isBroken) -{ - auto offset = GetEdgeImageOffset(edge); - if (offset == 0) - return ImageIndexUndefined; - return pathBitEntry.image + offset + (isBroken ? 4 : 0); -} - -/* rct2: 0x006A5AE5 */ -static void PathBitLightsPaint( - PaintSession& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges, - ImageId imageTemplate) -{ - if (pathElement.IsSloped()) - height += 8; - - auto isBroken = pathElement.IsBroken(); - if (!(edges & EDGE_NE)) - { - auto imageIndex = GetFootpathLampImage(pathBitEntry, EDGE_NE, isBroken); - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 2, 16, height }, { { 6, 8, height + 2 }, { 0, 16, 23 } }); - } - if (!(edges & EDGE_SE)) - { - auto imageIndex = GetFootpathLampImage(pathBitEntry, EDGE_SE, isBroken); - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 16, 30, height }, { { 8, 23, height + 2 }, { 16, 0, 23 } }); - } - if (!(edges & EDGE_SW)) - { - auto imageIndex = GetFootpathLampImage(pathBitEntry, EDGE_SW, isBroken); - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 30, 16, height }, { { 23, 8, height + 2 }, { 0, 16, 23 } }); - } - if (!(edges & EDGE_NW)) - { - auto imageIndex = GetFootpathLampImage(pathBitEntry, EDGE_NW, isBroken); - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 16, 2, height }, { { 8, 6, height + 2 }, { 16, 0, 23 } }); - } -} - -static bool IsBinFull(PaintSession& session, const PathElement& pathElement, edge_t edge) -{ - switch (edge) - { - case EDGE_NE: - return !(pathElement.GetAdditionStatus() & Numerics::ror8(0x03, (2 * session.CurrentRotation))); - case EDGE_SE: - return !(pathElement.GetAdditionStatus() & Numerics::ror8(0x0C, (2 * session.CurrentRotation))); - case EDGE_SW: - return !(pathElement.GetAdditionStatus() & Numerics::ror8(0x30, (2 * session.CurrentRotation))); - case EDGE_NW: - return !(pathElement.GetAdditionStatus() & Numerics::ror8(0xC0, (2 * session.CurrentRotation))); - default: - return false; - } -} - -/* rct2: 0x006A5C94 */ -static void PathBitBinsPaint( - PaintSession& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges, - ImageId imageTemplate) -{ - if (pathElement.IsSloped()) - height += 8; - - bool binsAreVandalised = pathElement.IsBroken(); - auto highlightPathIssues = (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) != 0; - - if (!(edges & EDGE_NE)) - { - auto binIsFull = IsBinFull(session, pathElement, EDGE_NE); - auto imageIndex = GetFootpathBinImage(pathBitEntry, EDGE_NE, binsAreVandalised, binIsFull); - if (!highlightPathIssues || binIsFull || binsAreVandalised) - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 7, 16, height }, { { 6, 8, height + 2 }, { 0, 16, 7 } }); - } - if (!(edges & EDGE_SE)) - { - auto binIsFull = IsBinFull(session, pathElement, EDGE_SE); - auto imageIndex = GetFootpathBinImage(pathBitEntry, EDGE_SE, binsAreVandalised, binIsFull); - if (!highlightPathIssues || binIsFull || binsAreVandalised) - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 16, 25, height }, { { 8, 23, height + 2 }, { 16, 0, 7 } }); - } - if (!(edges & EDGE_SW)) - { - auto binIsFull = IsBinFull(session, pathElement, EDGE_SW); - auto imageIndex = GetFootpathBinImage(pathBitEntry, EDGE_SW, binsAreVandalised, binIsFull); - if (!highlightPathIssues || binIsFull || binsAreVandalised) - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 25, 16, height }, { { 23, 8, height + 2 }, { 0, 16, 7 } }); - } - if (!(edges & EDGE_NW)) - { - auto binIsFull = IsBinFull(session, pathElement, EDGE_NW); - auto imageIndex = GetFootpathBinImage(pathBitEntry, EDGE_NW, binsAreVandalised, binIsFull); - if (!highlightPathIssues || binIsFull || binsAreVandalised) - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 16, 7, height }, { { 8, 6, height + 2 }, { 16, 0, 7 } }); - } -} - -/* rct2: 0x006A5E81 */ -static void PathBitBenchesPaint( - PaintSession& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges, - ImageId imageTemplate) -{ - auto isBroken = pathElement.IsBroken(); - if (!(edges & EDGE_NE)) - { - auto imageIndex = GetFootpathBenchImage(pathBitEntry, EDGE_NE, isBroken); - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 7, 16, height }, { { 6, 8, height + 2 }, { 0, 16, 7 } }); - } - if (!(edges & EDGE_SE)) - { - auto imageIndex = GetFootpathBenchImage(pathBitEntry, EDGE_SE, isBroken); - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 16, 25, height }, { { 8, 23, height + 2 }, { 16, 0, 7 } }); - } - - if (!(edges & EDGE_SW)) - { - auto imageIndex = GetFootpathBenchImage(pathBitEntry, EDGE_SW, isBroken); - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 25, 16, height }, { { 23, 8, height + 2 }, { 0, 16, 7 } }); - } - - if (!(edges & EDGE_NW)) - { - auto imageIndex = GetFootpathBenchImage(pathBitEntry, EDGE_NW, isBroken); - PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 16, 7, height }, { { 8, 6, height + 2 }, { 16, 0, 7 } }); - } -} - -/* rct2: 0x006A6008 */ -static void PathBitJumpingFountainsPaint( - PaintSession& session, const PathBitEntry& pathBitEntry, int32_t height, ImageId imageTemplate, DrawPixelInfo& dpi) -{ - if (dpi.zoom_level > ZoomLevel{ 0 }) - return; - - auto imageId = imageTemplate.WithIndex(pathBitEntry.image); - PaintAddImageAsParent(session, imageId.WithIndexOffset(1), { 0, 0, height }, { { 6, 8, height + 2 }, { 1, 1, 2 } }); - PaintAddImageAsParent(session, imageId.WithIndexOffset(2), { 0, 0, height }, { { 8, 23, height + 2 }, { 1, 1, 2 } }); - PaintAddImageAsParent(session, imageId.WithIndexOffset(3), { 0, 0, height }, { { 23, 8, height + 2 }, { 1, 1, 2 } }); - PaintAddImageAsParent(session, imageId.WithIndexOffset(4), { 0, 0, height }, { { 8, 6, height + 2 }, { 1, 1, 2 } }); -} - /** * rct2: 0x006A4101 * @param tile_element (esi) @@ -787,54 +600,7 @@ static void Sub6A3F61( { if (pathElement.HasAddition()) { - session.InteractionType = ViewportInteractionItem::FootpathItem; - if (sceneryImageTemplate.IsRemap()) - { - session.InteractionType = ViewportInteractionItem::None; - } - - // Draw additional path bits (bins, benches, lamps, queue screens) - auto* pathAddEntry = pathElement.GetAdditionEntry(); - bool drawAddition = true; - // Can be null if the object is not loaded. - if (pathAddEntry == nullptr - || ((session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) && !(pathElement.IsBroken()) - && pathAddEntry->draw_type != PathBitDrawType::Bin)) - { - drawAddition = false; - } - - if (drawAddition) - { - switch (pathAddEntry->draw_type) - { - case PathBitDrawType::Light: - PathBitLightsPaint( - session, *pathAddEntry, pathElement, height, static_cast(connectedEdges), - sceneryImageTemplate); - break; - case PathBitDrawType::Bin: - PathBitBinsPaint( - session, *pathAddEntry, pathElement, height, static_cast(connectedEdges), - sceneryImageTemplate); - break; - case PathBitDrawType::Bench: - PathBitBenchesPaint( - session, *pathAddEntry, pathElement, height, static_cast(connectedEdges), - sceneryImageTemplate); - break; - case PathBitDrawType::JumpingFountain: - PathBitJumpingFountainsPaint(session, *pathAddEntry, height, sceneryImageTemplate, session.DPI); - break; - } - - session.InteractionType = ViewportInteractionItem::Footpath; - - if (sceneryImageTemplate.IsRemap()) - { - session.InteractionType = ViewportInteractionItem::None; - } - } + Sub6A3F61PathAddition(session, pathElement, height, sceneryImageTemplate); } } @@ -984,38 +750,6 @@ static void PaintHeightMarkers(PaintSession& session, const PathElement& pathEl) } } -static void PaintLampLightEffects(PaintSession& session, const PathElement& pathEl, uint16_t height) -{ - PROFILED_FUNCTION(); - - if (LightFXIsAvailable()) - { - if (pathEl.HasAddition() && !(pathEl.IsBroken())) - { - auto* pathAddEntry = pathEl.GetAdditionEntry(); - if (pathAddEntry != nullptr && pathAddEntry->flags & PATH_BIT_FLAG_LAMP) - { - if (!(pathEl.GetEdges() & EDGE_NE)) - { - LightFXAdd3DLightMagicFromDrawingTile(session.MapPosition, -16, 0, height + 23, LightType::Lantern3); - } - if (!(pathEl.GetEdges() & EDGE_SE)) - { - LightFXAdd3DLightMagicFromDrawingTile(session.MapPosition, 0, 16, height + 23, LightType::Lantern3); - } - if (!(pathEl.GetEdges() & EDGE_SW)) - { - LightFXAdd3DLightMagicFromDrawingTile(session.MapPosition, 16, 0, height + 23, LightType::Lantern3); - } - if (!(pathEl.GetEdges() & EDGE_NW)) - { - LightFXAdd3DLightMagicFromDrawingTile(session.MapPosition, 0, -16, height + 23, LightType::Lantern3); - } - } - } - } -} - /** * rct2: 0x0006A3590 */ @@ -1055,7 +789,7 @@ void PaintPath(PaintSession& session, uint16_t height, const PathElement& tileEl session.InteractionType = ViewportInteractionItem::None; imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } - else if (TileInspector::IsElementSelected(reinterpret_cast(&tileElement))) + else if (session.SelectedElement == reinterpret_cast(&tileElement)) { imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); sceneryImageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); diff --git a/src/openrct2/paint/tile_element/Paint.PathAddition.cpp b/src/openrct2/paint/tile_element/Paint.PathAddition.cpp new file mode 100644 index 0000000000..dc4e3e324d --- /dev/null +++ b/src/openrct2/paint/tile_element/Paint.PathAddition.cpp @@ -0,0 +1,295 @@ +/***************************************************************************** + * Copyright (c) 2014-2023 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "Paint.PathAddition.h" + +#include "../../core/Numerics.hpp" +#include "../../drawing/LightFX.h" +#include "../../object/PathAdditionEntry.h" +#include "../../profiling/Profiling.h" +#include "Paint.TileElement.h" + +static ImageIndex GetEdgeImageOffset(edge_t edge) +{ + switch (edge) + { + case EDGE_NE: + return 1; + case EDGE_SE: + return 2; + case EDGE_SW: + return 3; + case EDGE_NW: + return 4; + default: + return 0; + } +} + +static ImageIndex GetFootpathLampImage(const PathAdditionEntry& pathAdditionEntry, edge_t edge, bool isBroken) +{ + auto offset = GetEdgeImageOffset(edge); + if (offset == 0) + return ImageIndexUndefined; + return pathAdditionEntry.image + offset + (isBroken ? 4 : 0); +} + +static ImageIndex GetFootpathBinImage(const PathAdditionEntry& pathAdditionEntry, edge_t edge, bool isBroken, bool isFull) +{ + auto offset = GetEdgeImageOffset(edge); + if (offset == 0) + return ImageIndexUndefined; + + auto stateOffset = isBroken ? 4 : (isFull ? 8 : 0); + return pathAdditionEntry.image + offset + stateOffset; +} + +static ImageIndex GetFootpathBenchImage(const PathAdditionEntry& pathAdditionEntry, edge_t edge, bool isBroken) +{ + auto offset = GetEdgeImageOffset(edge); + if (offset == 0) + return ImageIndexUndefined; + return pathAdditionEntry.image + offset + (isBroken ? 4 : 0); +} + +/* rct2: 0x006A5AE5 */ +static void PathAdditionLightsPaint( + PaintSession& session, const PathAdditionEntry& pathAdditionEntry, const PathElement& pathElement, int32_t height, + uint8_t edges, ImageId imageTemplate) +{ + if (pathElement.IsSloped()) + height += 8; + + auto isBroken = pathElement.IsBroken(); + if (edges & EDGE_NE) + { + auto imageIndex = GetFootpathLampImage(pathAdditionEntry, EDGE_NE, isBroken); + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 2, 16, height }, { { 6, 8, height + 2 }, { 0, 16, 23 } }); + } + if (edges & EDGE_SE) + { + auto imageIndex = GetFootpathLampImage(pathAdditionEntry, EDGE_SE, isBroken); + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 16, 30, height }, { { 8, 23, height + 2 }, { 16, 0, 23 } }); + } + if (edges & EDGE_SW) + { + auto imageIndex = GetFootpathLampImage(pathAdditionEntry, EDGE_SW, isBroken); + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 30, 16, height }, { { 23, 8, height + 2 }, { 0, 16, 23 } }); + } + if (edges & EDGE_NW) + { + auto imageIndex = GetFootpathLampImage(pathAdditionEntry, EDGE_NW, isBroken); + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 16, 2, height }, { { 8, 6, height + 2 }, { 16, 0, 23 } }); + } +} + +static bool IsBinFull(PaintSession& session, const PathElement& pathElement, edge_t edge) +{ + switch (edge) + { + case EDGE_NE: + return !(pathElement.GetAdditionStatus() & Numerics::ror8(0x03, (2 * session.CurrentRotation))); + case EDGE_SE: + return !(pathElement.GetAdditionStatus() & Numerics::ror8(0x0C, (2 * session.CurrentRotation))); + case EDGE_SW: + return !(pathElement.GetAdditionStatus() & Numerics::ror8(0x30, (2 * session.CurrentRotation))); + case EDGE_NW: + return !(pathElement.GetAdditionStatus() & Numerics::ror8(0xC0, (2 * session.CurrentRotation))); + default: + return false; + } +} + +/* rct2: 0x006A5C94 */ +static void PathAdditionBinsPaint( + PaintSession& session, const PathAdditionEntry& pathAdditionEntry, const PathElement& pathElement, int32_t height, + uint8_t edges, ImageId imageTemplate) +{ + if (pathElement.IsSloped()) + height += 8; + + bool binsAreVandalised = pathElement.IsBroken(); + auto highlightPathIssues = (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) != 0; + + if (edges & EDGE_NE) + { + auto binIsFull = IsBinFull(session, pathElement, EDGE_NE); + auto imageIndex = GetFootpathBinImage(pathAdditionEntry, EDGE_NE, binsAreVandalised, binIsFull); + if (!highlightPathIssues || binIsFull || binsAreVandalised) + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 7, 16, height }, { { 6, 8, height + 2 }, { 0, 16, 7 } }); + } + if (edges & EDGE_SE) + { + auto binIsFull = IsBinFull(session, pathElement, EDGE_SE); + auto imageIndex = GetFootpathBinImage(pathAdditionEntry, EDGE_SE, binsAreVandalised, binIsFull); + if (!highlightPathIssues || binIsFull || binsAreVandalised) + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 16, 25, height }, { { 8, 23, height + 2 }, { 16, 0, 7 } }); + } + if (edges & EDGE_SW) + { + auto binIsFull = IsBinFull(session, pathElement, EDGE_SW); + auto imageIndex = GetFootpathBinImage(pathAdditionEntry, EDGE_SW, binsAreVandalised, binIsFull); + if (!highlightPathIssues || binIsFull || binsAreVandalised) + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 25, 16, height }, { { 23, 8, height + 2 }, { 0, 16, 7 } }); + } + if (edges & EDGE_NW) + { + auto binIsFull = IsBinFull(session, pathElement, EDGE_NW); + auto imageIndex = GetFootpathBinImage(pathAdditionEntry, EDGE_NW, binsAreVandalised, binIsFull); + if (!highlightPathIssues || binIsFull || binsAreVandalised) + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 16, 7, height }, { { 8, 6, height + 2 }, { 16, 0, 7 } }); + } +} + +/* rct2: 0x006A5E81 */ +static void PathAdditionBenchesPaint( + PaintSession& session, const PathAdditionEntry& pathAdditionEntry, const PathElement& pathElement, int32_t height, + uint8_t edges, ImageId imageTemplate) +{ + auto isBroken = pathElement.IsBroken(); + if (edges & EDGE_NE) + { + auto imageIndex = GetFootpathBenchImage(pathAdditionEntry, EDGE_NE, isBroken); + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 7, 16, height }, { { 6, 8, height + 2 }, { 0, 16, 7 } }); + } + if (edges & EDGE_SE) + { + auto imageIndex = GetFootpathBenchImage(pathAdditionEntry, EDGE_SE, isBroken); + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 16, 25, height }, { { 8, 23, height + 2 }, { 16, 0, 7 } }); + } + + if (edges & EDGE_SW) + { + auto imageIndex = GetFootpathBenchImage(pathAdditionEntry, EDGE_SW, isBroken); + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 25, 16, height }, { { 23, 8, height + 2 }, { 0, 16, 7 } }); + } + + if (edges & EDGE_NW) + { + auto imageIndex = GetFootpathBenchImage(pathAdditionEntry, EDGE_NW, isBroken); + PaintAddImageAsParent( + session, imageTemplate.WithIndex(imageIndex), { 16, 7, height }, { { 8, 6, height + 2 }, { 16, 0, 7 } }); + } +} + +/* rct2: 0x006A6008 */ +static void PathAdditionJumpingFountainsPaint( + PaintSession& session, const PathAdditionEntry& pathAdditionEntry, int32_t height, ImageId imageTemplate, + DrawPixelInfo& dpi) +{ + if (dpi.zoom_level > ZoomLevel{ 0 }) + return; + + auto imageId = imageTemplate.WithIndex(pathAdditionEntry.image); + PaintAddImageAsParent(session, imageId.WithIndexOffset(1), { 0, 0, height }, { { 6, 8, height + 2 }, { 1, 1, 2 } }); + PaintAddImageAsParent(session, imageId.WithIndexOffset(2), { 0, 0, height }, { { 8, 23, height + 2 }, { 1, 1, 2 } }); + PaintAddImageAsParent(session, imageId.WithIndexOffset(3), { 0, 0, height }, { { 23, 8, height + 2 }, { 1, 1, 2 } }); + PaintAddImageAsParent(session, imageId.WithIndexOffset(4), { 0, 0, height }, { { 8, 6, height + 2 }, { 1, 1, 2 } }); +} + +inline bool PathAdditionIsVisible(uint32_t viewFlags, const PathAdditionEntry& pathAdditionEntry, bool isBroken) +{ + if (!(viewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) + return true; + + if (isBroken) + return true; + + if (pathAdditionEntry.draw_type == PathAdditionDrawType::Bin) + return true; + + return false; +} + +void Sub6A3F61PathAddition(PaintSession& session, const PathElement& pathElement, uint16_t height, ImageId sceneryImageTemplate) +{ + // Path additions get drawn on edges that are not connected, so we need to flip them. + const auto edges = pathElement.GetEdges() ^ 0b1111; + const auto rotatedEdges = ((edges << session.CurrentRotation) & 0xF) | (((edges) << session.CurrentRotation) >> 4); + + session.InteractionType = ViewportInteractionItem::PathAddition; + if (sceneryImageTemplate.IsRemap()) + { + session.InteractionType = ViewportInteractionItem::None; + } + + auto* pathAddEntry = pathElement.GetAdditionEntry(); + // Can be null if the object is not loaded. + if (pathAddEntry == nullptr || !PathAdditionIsVisible(session.ViewFlags, *pathAddEntry, pathElement.IsBroken())) + { + return; + } + + switch (pathAddEntry->draw_type) + { + case PathAdditionDrawType::Light: + PathAdditionLightsPaint(session, *pathAddEntry, pathElement, height, rotatedEdges, sceneryImageTemplate); + break; + case PathAdditionDrawType::Bin: + PathAdditionBinsPaint(session, *pathAddEntry, pathElement, height, rotatedEdges, sceneryImageTemplate); + break; + case PathAdditionDrawType::Bench: + PathAdditionBenchesPaint(session, *pathAddEntry, pathElement, height, rotatedEdges, sceneryImageTemplate); + break; + case PathAdditionDrawType::JumpingFountain: + PathAdditionJumpingFountainsPaint(session, *pathAddEntry, height, sceneryImageTemplate, session.DPI); + break; + } + + session.InteractionType = ViewportInteractionItem::Footpath; + + // Set when the path addition is a ghost. + if (sceneryImageTemplate.IsRemap()) + { + session.InteractionType = ViewportInteractionItem::None; + } +} + +void PaintLampLightEffects(PaintSession& session, const PathElement& pathEl, uint16_t height) +{ + PROFILED_FUNCTION(); + + if (LightFXIsAvailable()) + { + if (pathEl.HasAddition() && !(pathEl.IsBroken())) + { + auto* pathAddEntry = pathEl.GetAdditionEntry(); + if (pathAddEntry != nullptr && pathAddEntry->flags & PATH_ADDITION_FLAG_LAMP) + { + if (!(pathEl.GetEdges() & EDGE_NE)) + { + LightFXAdd3DLightMagicFromDrawingTile(session.MapPosition, -16, 0, height + 23, LightType::Lantern3); + } + if (!(pathEl.GetEdges() & EDGE_SE)) + { + LightFXAdd3DLightMagicFromDrawingTile(session.MapPosition, 0, 16, height + 23, LightType::Lantern3); + } + if (!(pathEl.GetEdges() & EDGE_SW)) + { + LightFXAdd3DLightMagicFromDrawingTile(session.MapPosition, 16, 0, height + 23, LightType::Lantern3); + } + if (!(pathEl.GetEdges() & EDGE_NW)) + { + LightFXAdd3DLightMagicFromDrawingTile(session.MapPosition, 0, -16, height + 23, LightType::Lantern3); + } + } + } + } +} diff --git a/src/openrct2/paint/tile_element/Paint.PathAddition.h b/src/openrct2/paint/tile_element/Paint.PathAddition.h new file mode 100644 index 0000000000..7d42ad04bf --- /dev/null +++ b/src/openrct2/paint/tile_element/Paint.PathAddition.h @@ -0,0 +1,20 @@ +/***************************************************************************** + * Copyright (c) 2014-2023 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "../../drawing/ImageId.hpp" +#include "../../world/TileElement.h" +#include "../Paint.h" + +#include + +void Sub6A3F61PathAddition( + PaintSession& session, const PathElement& pathElement, uint16_t height, ImageId sceneryImageTemplate); +void PaintLampLightEffects(PaintSession& session, const PathElement& pathEl, uint16_t height); diff --git a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp index 193b84f3d6..5654eb2679 100644 --- a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp +++ b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp @@ -23,7 +23,7 @@ #include "../Supports.h" #include "Paint.TileElement.h" -static constexpr const CoordsXY lengths[] = { +static constexpr CoordsXY lengths[] = { { 12, 26 }, { 26, 12 }, { 12, 26 }, @@ -116,7 +116,7 @@ static void PaintSmallSceneryBody( { if (sceneryEntry->HasFlag(SMALL_SCENERY_FLAG_HALF_SPACE)) { - static constexpr const CoordsXY sceneryHalfTileOffsets[] = { + static constexpr CoordsXY sceneryHalfTileOffsets[] = { { 3, 3 }, { 3, 17 }, { 17, 3 }, @@ -346,7 +346,7 @@ void PaintSmallScenery(PaintSession& session, uint8_t direction, int32_t height, session.InteractionType = ViewportInteractionItem::None; imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } - else if (OpenRCT2::TileInspector::IsElementSelected(reinterpret_cast(&sceneryElement))) + else if (session.SelectedElement == reinterpret_cast(&sceneryElement)) { imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); } diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index d00f7e64f5..d6fa6d5992 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -39,12 +39,12 @@ #include #include -static constexpr const uint8_t Byte97B444[] = { +static constexpr uint8_t Byte97B444[] = { 0, 2, 1, 3, 8, 10, 9, 11, 4, 6, 5, 7, 12, 14, 13, 15, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 16, 0, 18, 15, 0, }; // rct2: 0x97B464, 0x97B474, 0x97B484, 0x97B494 -static constexpr const CoordsXY viewport_surface_paint_data[][4] = { +static constexpr CoordsXY viewport_surface_paint_data[][4] = { { { 32, 0 }, { -32, 32 }, @@ -91,7 +91,7 @@ struct CornerHeight /** * rct2: 0x0097B4A4 (R), 0x0097B4C4 (T), 0x0097B4E4 (L), 0x0097B504 (B) */ -static constexpr const CornerHeight corner_heights[] = { +static constexpr CornerHeight corner_heights[] = { // T R B L { 0, 0, 0, 0 }, { 0, 0, 1, 0 }, @@ -128,30 +128,30 @@ static constexpr const CornerHeight corner_heights[] = { }; // bottom left tint -static constexpr const uint8_t Byte97B524[] = { +static constexpr uint8_t Byte97B524[] = { 2, 5, 1, 4, 2, 5, 1, 2, 2, 4, 1, 2, 1, 3, 0, 3, 1, 5, 0, }; // top left tint -static constexpr const uint32_t Byte97B537[] = { +static constexpr uint32_t Byte97B537[] = { 2, 5, 2, 4, 2, 5, 1, 1, 3, 4, 3, 2, 1, 2, 0, 3, 1, 5, 0, }; // top right tint -static constexpr const uint8_t Byte97B54A[] = { +static constexpr uint8_t Byte97B54A[] = { 2, 2, 2, 4, 0, 0, 1, 1, 3, 4, 3, 5, 1, 2, 2, 3, 1, 5, 0, }; // bottom right tint -static constexpr const uint8_t Byte97B55D[] = { +static constexpr uint8_t Byte97B55D[] = { 2, 2, 1, 4, 0, 0, 1, 2, 2, 4, 1, 5, 1, 3, 2, 3, 1, 5, 0, }; -static constexpr const uint8_t _tunnelHeights[TUNNEL_TYPE_COUNT][2] = { +static constexpr uint8_t _tunnelHeights[TUNNEL_TYPE_COUNT][2] = { { 2, 2 }, { 3, 3 }, { 3, 5 }, @@ -177,7 +177,7 @@ static constexpr const uint8_t _tunnelHeights[TUNNEL_TYPE_COUNT][2] = { { 2, 2 }, }; -static constexpr const int16_t _boundBoxZOffsets[TUNNEL_TYPE_COUNT] = { +static constexpr int16_t _boundBoxZOffsets[TUNNEL_TYPE_COUNT] = { 0, 0, -32, @@ -205,11 +205,11 @@ static constexpr const int16_t _boundBoxZOffsets[TUNNEL_TYPE_COUNT] = { // clang-format on // tunnel offset -static constexpr const uint8_t Byte97B5B0[TUNNEL_TYPE_COUNT] = { +static constexpr uint8_t Byte97B5B0[TUNNEL_TYPE_COUNT] = { 0, 0, 0, 3, 3, 3, 6, 6, 6, 6, 10, 11, 12, 13, 14, 14, 16, 17, 18, 19, 20, 21, 22, }; -static constexpr const uint8_t Byte97B740[] = { +static constexpr uint8_t Byte97B740[] = { 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 1, 4, 0, }; @@ -233,7 +233,7 @@ struct TileSurfaceBoundaryData BoundBoxXY Boundbox; }; -static constexpr const TileSurfaceBoundaryData _tileSurfaceBoundaries[4] = { +static constexpr TileSurfaceBoundaryData _tileSurfaceBoundaries[4] = { { // Bottom right 1, @@ -1138,7 +1138,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con imageId = imageId.WithTransparency(FilterPaletteID::PaletteDarken1); } - if (OpenRCT2::TileInspector::IsElementSelected(elementPtr)) + if (session.SelectedElement == elementPtr) { imageId = imageId.WithRemap(FilterPaletteID::PaletteGhost); } diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.cpp b/src/openrct2/paint/tile_element/Paint.TileElement.cpp index e1e7b4dc24..e09d396f0f 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.cpp +++ b/src/openrct2/paint/tile_element/Paint.TileElement.cpp @@ -303,7 +303,7 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor return; } - static constexpr const int32_t segmentPositions[][3] = { + static constexpr int32_t segmentPositions[][3] = { { 0, 6, 2 }, { 5, 4, 8 }, { 1, 7, 3 }, @@ -314,7 +314,7 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor for (std::size_t sx = 0; sx < std::size(segmentPositions[sy]); sx++) { uint16_t segmentHeight = session.SupportSegments[segmentPositions[sy][sx]].height; - auto imageColourFlats = ImageId(SPR_LAND_TOOL_SIZE_1).WithTransparency(FilterPaletteID::PaletteDarken3); + auto imageColourFlats = ImageId(SPR_LAND_TOOL_SIZE_1).WithTransparency(FilterPaletteID::PaletteGlassBlack); if (segmentHeight == 0xFFFF) { segmentHeight = session.Support.height; @@ -329,13 +329,9 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor int32_t xOffset = static_cast(sy) * 10; int32_t yOffset = -22 + static_cast(sx) * 10; - PaintStruct* ps = PaintAddImageAsParent( + PaintAddImageAsParent( session, imageColourFlats, { xOffset, yOffset, segmentHeight }, { { xOffset + 1, yOffset + 16, segmentHeight }, { 10, 10, 1 } }); - if (ps != nullptr) - { - ps->image_id = ps->image_id.WithTertiary(COLOUR_BORDEAUX_RED); - } } } } diff --git a/src/openrct2/paint/tile_element/Paint.Wall.cpp b/src/openrct2/paint/tile_element/Paint.Wall.cpp index 31478e9073..33443ad93b 100644 --- a/src/openrct2/paint/tile_element/Paint.Wall.cpp +++ b/src/openrct2/paint/tile_element/Paint.Wall.cpp @@ -28,19 +28,19 @@ #include "../../world/Wall.h" #include "Paint.TileElement.h" -static constexpr const uint8_t DirectionToDoorImageOffset0[] = { +static constexpr uint8_t DirectionToDoorImageOffset0[] = { 2, 2, 22, 26, 30, 34, 34, 34, 34, 34, 30, 26, 22, 2, 6, 2, 2, 2, 6, 10, 14, 18, 18, 18, 18, 18, 14, 10, 6, 2, 22, 2, }; -static constexpr const uint8_t DirectionToDoorImageOffset1[] = { +static constexpr uint8_t DirectionToDoorImageOffset1[] = { 0, 0, 4, 8, 12, 16, 16, 16, 16, 16, 12, 8, 4, 0, 20, 0, 0, 0, 20, 24, 28, 32, 32, 32, 32, 32, 28, 24, 20, 0, 4, 0, }; -static constexpr const uint8_t DirectionToDoorImageOffset2[] = { +static constexpr uint8_t DirectionToDoorImageOffset2[] = { 2, 2, 6, 10, 14, 18, 18, 18, 18, 18, 14, 10, 6, 2, 22, 2, 2, 2, 22, 26, 30, 34, 34, 34, 34, 34, 30, 26, 22, 2, 6, 2, }; -static constexpr const uint8_t DirectionToDoorImageOffset3[] = { +static constexpr uint8_t DirectionToDoorImageOffset3[] = { 0, 0, 20, 24, 28, 32, 32, 32, 32, 32, 28, 24, 20, 0, 4, 0, 0, 0, 4, 8, 12, 16, 16, 16, 16, 16, 12, 8, 4, 0, 20, 0, }; @@ -347,7 +347,7 @@ void PaintWall(PaintSession& session, uint8_t direction, int32_t height, const W imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); isGhost = true; } - else if (OpenRCT2::TileInspector::IsElementSelected(reinterpret_cast(&wallElement))) + else if (session.SelectedElement == reinterpret_cast(&wallElement)) { imageTemplate = ImageId().WithRemap(FilterPaletteID::PaletteGhost); isGhost = true; diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index b4746f148b..45b290f02d 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -64,7 +64,7 @@ #include #include -constexpr const uint32_t BlockBrakeImprovementsVersion = 27; +constexpr uint32_t BlockBrakeImprovementsVersion = 27; using namespace OpenRCT2; @@ -745,12 +745,12 @@ namespace OpenRCT2 for (const auto* ori : ExportObjectsList) { auto extension = Path::GetExtension(ori->Path); - if (String::Equals(extension, ".dat", true)) + if (String::IEquals(extension, ".dat")) { cs.Write(DESCRIPTOR_DAT); cs.Write(&ori->ObjectEntry, sizeof(RCTObjectEntry)); } - else if (String::Equals(extension, ".parkobj", true)) + else if (String::IEquals(extension, ".parkobj")) { cs.Write(DESCRIPTOR_PARKOBJ); cs.Write(ori->Identifier); diff --git a/src/openrct2/peep/PeepData.cpp b/src/openrct2/peep/PeepData.cpp index 8f5ba039cd..ef3dc7d5a3 100644 --- a/src/openrct2/peep/PeepData.cpp +++ b/src/openrct2/peep/PeepData.cpp @@ -12,1832 +12,1832 @@ #include // clang-format off -static constexpr const uint8_t PeepSpriteImage_Normal_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Normal_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Normal_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Normal_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Normal_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Normal_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Normal_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Normal_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Normal_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Normal_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Normal_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Normal_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Normal_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Normal_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Normal_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Normal_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Normal_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Normal_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Normal_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Normal_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Normal_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Normal_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Normal_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Normal_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Normal_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Normal_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Normal_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Normal_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Normal_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Normal_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Normal_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Normal_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Handyman_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Handyman_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Handyman_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Handyman_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Handyman_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Handyman_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Handyman_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Handyman_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Handyman_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Handyman_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Handyman_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Handyman_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Handyman_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Handyman_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Handyman_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Handyman_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Handyman_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Mechanic_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Mechanic_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Security_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Security_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Security_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Security_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Security_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Security_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Security_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Security_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Security_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Security_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Security_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Security_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6 }; -static constexpr const uint8_t PeepSpriteImage_Security_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Security_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Security_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Security_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Security_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Security_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Security_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Security_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Security_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Security_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Security_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Security_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Security_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Security_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Security_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Security_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Security_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Security_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6 }; +static constexpr uint8_t PeepSpriteImage_Security_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Security_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Security_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Security_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_03_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_30_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPanda_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_03_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_30_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPanda_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_03_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 25, 25, 25, 25 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_30_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerTiger_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_03_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 25, 25, 25, 25 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_30_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerTiger_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 4, 5, 6, 5, 4, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6, 7, 8, 9 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 4, 5, 6, 5, 4, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerElephant_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 4, 5, 6, 5, 4, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6, 7, 8, 9 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 4, 5, 6, 5, 4, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerElephant_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_17_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_26_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 4, 4, 4, 4, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, 16, 17, 18, 19, 20, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 24, 25, 26, 27, 28, 28, 28, 29, 30, 31, 32, 32, 32, 32, 32, 33, 34, 35, 36, 37, 38 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerRoman_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_17_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_26_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 4, 4, 4, 4, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 14, 13, 12, 11, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, 16, 17, 18, 19, 20, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 24, 25, 26, 27, 28, 28, 28, 29, 30, 31, 32, 32, 32, 32, 32, 33, 34, 35, 36, 37, 38 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerRoman_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_17_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerGorilla_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_17_sequence[] = { 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerGorilla_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 31, 31, 31, 32, 33 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7, 8, 9 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 31, 31, 31, 32, 33 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 31, 31, 31, 32, 33 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSnowman_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 31, 31, 31, 32, 33 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7, 8, 9 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 31, 31, 31, 32, 33 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 31, 31, 31, 32, 33 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSnowman_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 12, 12, 12, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 23, 23, 23, 23, 23, 24, 25, 26, 27 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 12, 12, 12, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 23, 23, 23, 23, 23, 24, 25, 26, 27 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 12, 12, 12, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 23, 23, 23, 23, 23, 24, 25, 26, 27 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerKnight_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 12, 12, 12, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 23, 23, 23, 23, 23, 24, 25, 26, 27 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 12, 12, 12, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 23, 23, 23, 23, 23, 24, 25, 26, 27 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 12, 12, 12, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 23, 23, 23, 23, 23, 24, 25, 26, 27 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerKnight_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_03_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 8, 9, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_26_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 8, 9, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_30_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 8, 9, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerAstronaut_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_03_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 8, 9, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_26_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 8, 9, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_30_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 8, 9, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerAstronaut_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 12, 13, 13, 13, 13, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_17_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 12, 13, 13, 13, 13, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 12, 13, 13, 13, 13, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerBandit_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 12, 13, 13, 13, 13, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_17_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 12, 13, 13, 13, 13, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 12, 13, 13, 13, 13, 13, 14, 15, 16, 17, 17, 17, 17, 17, 18, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 21, 20, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerBandit_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_17_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerSheriff_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_17_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 8, 9, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 10, 11, 12, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerSheriff_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 21, 21, 21, 21, 21, 22, 23, 23, 23, 23, 24, 25, 26, 27, 27, 27, 27, 28, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_17_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 21, 21, 21, 21, 21, 22, 23, 23, 23, 23, 24, 25, 26, 27, 27, 27, 27, 28, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 21, 21, 21, 21, 21, 22, 23, 23, 23, 23, 24, 25, 26, 27, 27, 27, 27, 28, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_EntertainerPirate_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 21, 21, 21, 21, 21, 22, 23, 23, 23, 23, 24, 25, 26, 27, 27, 27, 27, 28, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_17_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 21, 21, 21, 21, 21, 22, 23, 23, 23, 23, 24, 25, 26, 27, 27, 27, 27, 28, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 21, 21, 21, 21, 21, 22, 23, 23, 23, 23, 24, 25, 26, 27, 27, 27, 27, 28, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_EntertainerPirate_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_03_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_08_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_IceCream_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_IceCream_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_IceCream_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_IceCream_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_03_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_IceCream_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_IceCream_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_IceCream_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_IceCream_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_08_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_IceCream_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_IceCream_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_IceCream_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_IceCream_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_IceCream_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_IceCream_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_IceCream_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_IceCream_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_IceCream_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_IceCream_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Chips_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Chips_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Chips_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Chips_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Chips_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Chips_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Chips_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Chips_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Chips_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Chips_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Chips_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Chips_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Chips_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Chips_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Chips_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chips_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Chips_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Chips_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Chips_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Chips_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Chips_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Chips_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Chips_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Chips_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Chips_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Chips_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Chips_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Chips_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Chips_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Chips_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Chips_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Chips_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chips_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Chips_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Burger_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Burger_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Burger_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Burger_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Burger_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Burger_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Burger_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Burger_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Burger_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Burger_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Burger_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Burger_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Burger_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Burger_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Burger_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Burger_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Burger_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Burger_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Burger_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Burger_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Burger_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Burger_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Burger_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Burger_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Burger_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Burger_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Burger_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Burger_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Burger_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Burger_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Burger_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Burger_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Burger_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Burger_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Drink_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Drink_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Drink_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Drink_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Drink_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Drink_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Drink_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Drink_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Drink_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Drink_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Drink_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Drink_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Drink_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Drink_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Drink_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Drink_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Drink_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Drink_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Drink_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Drink_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Drink_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Drink_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Drink_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Drink_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Drink_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Drink_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Drink_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Drink_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Drink_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Drink_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Drink_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Drink_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Drink_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Drink_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Balloon_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Balloon_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Balloon_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Balloon_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Balloon_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Balloon_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Balloon_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Balloon_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Balloon_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Balloon_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Balloon_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Balloon_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Balloon_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Balloon_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Balloon_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Balloon_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Balloon_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Candyfloss_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Candyfloss_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Umbrella_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Umbrella_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_03_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_08_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Pizza_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Pizza_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Pizza_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Pizza_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_03_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Pizza_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Pizza_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Pizza_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Pizza_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_08_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Pizza_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Pizza_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Pizza_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Pizza_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Pizza_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Pizza_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Pizza_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Pizza_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pizza_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Pizza_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_SecurityAlt_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_17_sequence[] = { 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 4, 5, 6 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_SecurityAlt_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Popcorn_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Popcorn_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_ArmsCrossed_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_ArmsCrossed_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_HeadDown_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_HeadDown_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Nauseous_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Nauseous_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_VeryNauseous_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_VeryNauseous_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_RequireToilet_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_RequireToilet_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Hat_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Hat_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Hat_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Hat_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Hat_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Hat_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Hat_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Hat_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Hat_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Hat_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Hat_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Hat_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Hat_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Hat_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Hat_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Hat_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Hat_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Hat_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Hat_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Hat_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Hat_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Hat_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Hat_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Hat_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Hat_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Hat_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Hat_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Hat_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Hat_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Hat_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Hat_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Hat_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_HotDog_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_HotDog_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_HotDog_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_HotDog_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_HotDog_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_HotDog_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_HotDog_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_HotDog_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_HotDog_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_HotDog_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_HotDog_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_HotDog_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_HotDog_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_HotDog_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_HotDog_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_HotDog_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_HotDog_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_HotDog_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Tentacle_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Tentacle_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_03_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_08_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_ToffeeApple_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_03_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_08_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_ToffeeApple_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Donut_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Donut_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Donut_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Donut_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Donut_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Donut_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Donut_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_08_sequence[] = { 0, 1, 2, 3, 3, 3, 3, 3, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Donut_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Donut_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Donut_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Donut_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Donut_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Donut_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Donut_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Donut_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Donut_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Donut_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Donut_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Donut_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Donut_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Donut_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Donut_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Donut_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Donut_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_08_sequence[] = { 0, 1, 2, 3, 3, 3, 3, 3, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Donut_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Donut_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Donut_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Donut_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Donut_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Donut_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Donut_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Donut_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Donut_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Donut_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_03_sequence[] = { 0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 2, 1 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_08_sequence[] = { 0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 2, 1 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Coffee_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Coffee_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Coffee_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Coffee_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_03_sequence[] = { 0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 2, 1 }; +static constexpr uint8_t PeepSpriteImage_Coffee_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Coffee_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Coffee_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Coffee_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_08_sequence[] = { 0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 2, 1 }; +static constexpr uint8_t PeepSpriteImage_Coffee_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Coffee_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Coffee_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Coffee_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Coffee_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Coffee_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Coffee_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Coffee_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Coffee_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Coffee_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Chicken_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Chicken_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Chicken_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Chicken_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Chicken_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Chicken_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Chicken_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Chicken_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Chicken_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Chicken_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Chicken_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Chicken_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Chicken_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Chicken_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Chicken_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Chicken_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Chicken_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Chicken_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Lemonade_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Lemonade_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Watching_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Watching_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Watching_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Watching_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Watching_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Watching_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Watching_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Watching_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Watching_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Watching_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Watching_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Watching_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Watching_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Watching_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Watching_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Watching_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Watching_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Watching_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Watching_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Watching_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Watching_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Watching_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Watching_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Watching_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Watching_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Watching_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Watching_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Watching_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Watching_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Watching_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Watching_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Watching_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Pretzel_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Pretzel_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Sunglasses_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_00_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_08_sequence[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Sunglasses_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_SuJongkwa_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_SuJongkwa_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Juice_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Juice_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Juice_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Juice_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Juice_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Juice_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Juice_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Juice_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Juice_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Juice_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Juice_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Juice_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Juice_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Juice_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Juice_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Juice_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Juice_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Juice_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Juice_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Juice_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Juice_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Juice_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Juice_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Juice_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Juice_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Juice_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Juice_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Juice_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Juice_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Juice_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Juice_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Juice_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Juice_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Juice_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_FunnelCake_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_FunnelCake_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Noodles_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Noodles_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Noodles_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Noodles_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Noodles_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Noodles_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Noodles_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Noodles_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Noodles_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Noodles_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Noodles_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Noodles_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Noodles_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Noodles_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Noodles_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Noodles_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Noodles_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Noodles_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Sausage_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Sausage_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Sausage_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Sausage_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Sausage_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Sausage_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Sausage_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Sausage_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Sausage_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Sausage_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Sausage_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Sausage_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Sausage_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Sausage_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Sausage_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Sausage_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sausage_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Sausage_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Soup_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Soup_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Soup_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Soup_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Soup_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Soup_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Soup_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Soup_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Soup_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Soup_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Soup_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Soup_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Soup_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Soup_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Soup_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Soup_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Soup_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Soup_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Soup_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Soup_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Soup_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Soup_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Soup_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Soup_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Soup_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Soup_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Soup_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Soup_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Soup_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Soup_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Soup_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Soup_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Soup_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Soup_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_02_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_07_sequence[] = { 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static constexpr const uint8_t PeepSpriteImage_Sandwich_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_02_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_07_sequence[] = { 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static constexpr uint8_t PeepSpriteImage_Sandwich_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static constexpr const PeepAnimation PeepSpriteImage_Normal[] = { +static constexpr PeepAnimation PeepSpriteImage_Normal[] = { { 6409, std::size(PeepSpriteImage_Normal_00_sequence), PeepSpriteImage_Normal_00_sequence }, { 6585, std::size(PeepSpriteImage_Normal_01_sequence), PeepSpriteImage_Normal_01_sequence }, { 6621, std::size(PeepSpriteImage_Normal_02_sequence), PeepSpriteImage_Normal_02_sequence }, @@ -1877,7 +1877,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Normal[] = { { 7181, std::size(PeepSpriteImage_Normal_36_sequence), PeepSpriteImage_Normal_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Handyman[] = { +static constexpr PeepAnimation PeepSpriteImage_Handyman[] = { { 11261, std::size(PeepSpriteImage_Handyman_00_sequence), PeepSpriteImage_Handyman_00_sequence }, { 6585, std::size(PeepSpriteImage_Handyman_01_sequence), PeepSpriteImage_Handyman_01_sequence }, { 11285, std::size(PeepSpriteImage_Handyman_02_sequence), PeepSpriteImage_Handyman_02_sequence }, @@ -1917,7 +1917,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Handyman[] = { { 7181, std::size(PeepSpriteImage_Handyman_36_sequence), PeepSpriteImage_Handyman_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Mechanic[] = { +static constexpr PeepAnimation PeepSpriteImage_Mechanic[] = { { 11441, std::size(PeepSpriteImage_Mechanic_00_sequence), PeepSpriteImage_Mechanic_00_sequence }, { 6585, std::size(PeepSpriteImage_Mechanic_01_sequence), PeepSpriteImage_Mechanic_01_sequence }, { 11465, std::size(PeepSpriteImage_Mechanic_02_sequence), PeepSpriteImage_Mechanic_02_sequence }, @@ -1957,7 +1957,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Mechanic[] = { { 7181, std::size(PeepSpriteImage_Mechanic_36_sequence), PeepSpriteImage_Mechanic_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Security[] = { +static constexpr PeepAnimation PeepSpriteImage_Security[] = { { 11881, std::size(PeepSpriteImage_Security_00_sequence), PeepSpriteImage_Security_00_sequence }, { 6585, std::size(PeepSpriteImage_Security_01_sequence), PeepSpriteImage_Security_01_sequence }, { 11905, std::size(PeepSpriteImage_Security_02_sequence), PeepSpriteImage_Security_02_sequence }, @@ -1997,7 +1997,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Security[] = { { 7181, std::size(PeepSpriteImage_Security_36_sequence), PeepSpriteImage_Security_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerPanda[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerPanda[] = { { 11973, std::size(PeepSpriteImage_EntertainerPanda_00_sequence), PeepSpriteImage_EntertainerPanda_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerPanda_01_sequence), PeepSpriteImage_EntertainerPanda_01_sequence }, { 11997, std::size(PeepSpriteImage_EntertainerPanda_02_sequence), PeepSpriteImage_EntertainerPanda_02_sequence }, @@ -2037,7 +2037,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerPanda[] = { { 7181, std::size(PeepSpriteImage_EntertainerPanda_36_sequence), PeepSpriteImage_EntertainerPanda_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerTiger[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerTiger[] = { { 12129, std::size(PeepSpriteImage_EntertainerTiger_00_sequence), PeepSpriteImage_EntertainerTiger_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerTiger_01_sequence), PeepSpriteImage_EntertainerTiger_01_sequence }, { 12153, std::size(PeepSpriteImage_EntertainerTiger_02_sequence), PeepSpriteImage_EntertainerTiger_02_sequence }, @@ -2077,7 +2077,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerTiger[] = { { 7181, std::size(PeepSpriteImage_EntertainerTiger_36_sequence), PeepSpriteImage_EntertainerTiger_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerElephant[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerElephant[] = { { 12325, std::size(PeepSpriteImage_EntertainerElephant_00_sequence), PeepSpriteImage_EntertainerElephant_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerElephant_01_sequence), PeepSpriteImage_EntertainerElephant_01_sequence }, { 12349, std::size(PeepSpriteImage_EntertainerElephant_02_sequence), PeepSpriteImage_EntertainerElephant_02_sequence }, @@ -2117,7 +2117,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerElephant[] = { { 7181, std::size(PeepSpriteImage_EntertainerElephant_36_sequence), PeepSpriteImage_EntertainerElephant_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerRoman[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerRoman[] = { { 13897, std::size(PeepSpriteImage_EntertainerRoman_00_sequence), PeepSpriteImage_EntertainerRoman_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerRoman_01_sequence), PeepSpriteImage_EntertainerRoman_01_sequence }, { 13921, std::size(PeepSpriteImage_EntertainerRoman_02_sequence), PeepSpriteImage_EntertainerRoman_02_sequence }, @@ -2157,7 +2157,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerRoman[] = { { 7181, std::size(PeepSpriteImage_EntertainerRoman_36_sequence), PeepSpriteImage_EntertainerRoman_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerGorilla[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerGorilla[] = { { 12549, std::size(PeepSpriteImage_EntertainerGorilla_00_sequence), PeepSpriteImage_EntertainerGorilla_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerGorilla_01_sequence), PeepSpriteImage_EntertainerGorilla_01_sequence }, { 12545, std::size(PeepSpriteImage_EntertainerGorilla_02_sequence), PeepSpriteImage_EntertainerGorilla_02_sequence }, @@ -2197,7 +2197,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerGorilla[] = { { 7181, std::size(PeepSpriteImage_EntertainerGorilla_36_sequence), PeepSpriteImage_EntertainerGorilla_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerSnowman[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerSnowman[] = { { 12681, std::size(PeepSpriteImage_EntertainerSnowman_00_sequence), PeepSpriteImage_EntertainerSnowman_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerSnowman_01_sequence), PeepSpriteImage_EntertainerSnowman_01_sequence }, { 12677, std::size(PeepSpriteImage_EntertainerSnowman_02_sequence), PeepSpriteImage_EntertainerSnowman_02_sequence }, @@ -2237,7 +2237,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerSnowman[] = { { 7181, std::size(PeepSpriteImage_EntertainerSnowman_36_sequence), PeepSpriteImage_EntertainerSnowman_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerKnight[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerKnight[] = { { 12897, std::size(PeepSpriteImage_EntertainerKnight_00_sequence), PeepSpriteImage_EntertainerKnight_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerKnight_01_sequence), PeepSpriteImage_EntertainerKnight_01_sequence }, { 12893, std::size(PeepSpriteImage_EntertainerKnight_02_sequence), PeepSpriteImage_EntertainerKnight_02_sequence }, @@ -2277,7 +2277,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerKnight[] = { { 7181, std::size(PeepSpriteImage_EntertainerKnight_36_sequence), PeepSpriteImage_EntertainerKnight_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerAstronaut[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerAstronaut[] = { { 13769, std::size(PeepSpriteImage_EntertainerAstronaut_00_sequence), PeepSpriteImage_EntertainerAstronaut_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerAstronaut_01_sequence), PeepSpriteImage_EntertainerAstronaut_01_sequence }, { 13765, std::size(PeepSpriteImage_EntertainerAstronaut_02_sequence), PeepSpriteImage_EntertainerAstronaut_02_sequence }, @@ -2317,7 +2317,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerAstronaut[] = { { 7181, std::size(PeepSpriteImage_EntertainerAstronaut_36_sequence), PeepSpriteImage_EntertainerAstronaut_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerBandit[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerBandit[] = { { 13109, std::size(PeepSpriteImage_EntertainerBandit_00_sequence), PeepSpriteImage_EntertainerBandit_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerBandit_01_sequence), PeepSpriteImage_EntertainerBandit_01_sequence }, { 13105, std::size(PeepSpriteImage_EntertainerBandit_02_sequence), PeepSpriteImage_EntertainerBandit_02_sequence }, @@ -2357,7 +2357,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerBandit[] = { { 7181, std::size(PeepSpriteImage_EntertainerBandit_36_sequence), PeepSpriteImage_EntertainerBandit_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerSheriff[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerSheriff[] = { { 13613, std::size(PeepSpriteImage_EntertainerSheriff_00_sequence), PeepSpriteImage_EntertainerSheriff_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerSheriff_01_sequence), PeepSpriteImage_EntertainerSheriff_01_sequence }, { 13609, std::size(PeepSpriteImage_EntertainerSheriff_02_sequence), PeepSpriteImage_EntertainerSheriff_02_sequence }, @@ -2397,7 +2397,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerSheriff[] = { { 7181, std::size(PeepSpriteImage_EntertainerSheriff_36_sequence), PeepSpriteImage_EntertainerSheriff_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_EntertainerPirate[] = { +static constexpr PeepAnimation PeepSpriteImage_EntertainerPirate[] = { { 13381, std::size(PeepSpriteImage_EntertainerPirate_00_sequence), PeepSpriteImage_EntertainerPirate_00_sequence }, { 6585, std::size(PeepSpriteImage_EntertainerPirate_01_sequence), PeepSpriteImage_EntertainerPirate_01_sequence }, { 13377, std::size(PeepSpriteImage_EntertainerPirate_02_sequence), PeepSpriteImage_EntertainerPirate_02_sequence }, @@ -2437,7 +2437,7 @@ static constexpr const PeepAnimation PeepSpriteImage_EntertainerPirate[] = { { 7181, std::size(PeepSpriteImage_EntertainerPirate_36_sequence), PeepSpriteImage_EntertainerPirate_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_IceCream[] = { +static constexpr PeepAnimation PeepSpriteImage_IceCream[] = { { 7505, std::size(PeepSpriteImage_IceCream_00_sequence), PeepSpriteImage_IceCream_00_sequence }, { 6585, std::size(PeepSpriteImage_IceCream_01_sequence), PeepSpriteImage_IceCream_01_sequence }, { 7501, std::size(PeepSpriteImage_IceCream_02_sequence), PeepSpriteImage_IceCream_02_sequence }, @@ -2477,7 +2477,7 @@ static constexpr const PeepAnimation PeepSpriteImage_IceCream[] = { { 7181, std::size(PeepSpriteImage_IceCream_36_sequence), PeepSpriteImage_IceCream_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Chips[] = { +static constexpr PeepAnimation PeepSpriteImage_Chips[] = { { 7609, std::size(PeepSpriteImage_Chips_00_sequence), PeepSpriteImage_Chips_00_sequence }, { 6585, std::size(PeepSpriteImage_Chips_01_sequence), PeepSpriteImage_Chips_01_sequence }, { 7605, std::size(PeepSpriteImage_Chips_02_sequence), PeepSpriteImage_Chips_02_sequence }, @@ -2517,7 +2517,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Chips[] = { { 7181, std::size(PeepSpriteImage_Chips_36_sequence), PeepSpriteImage_Chips_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Burger[] = { +static constexpr PeepAnimation PeepSpriteImage_Burger[] = { { 8385, std::size(PeepSpriteImage_Burger_00_sequence), PeepSpriteImage_Burger_00_sequence }, { 6585, std::size(PeepSpriteImage_Burger_01_sequence), PeepSpriteImage_Burger_01_sequence }, { 8381, std::size(PeepSpriteImage_Burger_02_sequence), PeepSpriteImage_Burger_02_sequence }, @@ -2557,7 +2557,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Burger[] = { { 7181, std::size(PeepSpriteImage_Burger_36_sequence), PeepSpriteImage_Burger_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Drink[] = { +static constexpr PeepAnimation PeepSpriteImage_Drink[] = { { 8713, std::size(PeepSpriteImage_Drink_00_sequence), PeepSpriteImage_Drink_00_sequence }, { 6585, std::size(PeepSpriteImage_Drink_01_sequence), PeepSpriteImage_Drink_01_sequence }, { 8709, std::size(PeepSpriteImage_Drink_02_sequence), PeepSpriteImage_Drink_02_sequence }, @@ -2597,7 +2597,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Drink[] = { { 7181, std::size(PeepSpriteImage_Drink_36_sequence), PeepSpriteImage_Drink_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Balloon[] = { +static constexpr PeepAnimation PeepSpriteImage_Balloon[] = { { 10785, std::size(PeepSpriteImage_Balloon_00_sequence), PeepSpriteImage_Balloon_00_sequence }, { 6585, std::size(PeepSpriteImage_Balloon_01_sequence), PeepSpriteImage_Balloon_01_sequence }, { 10781, std::size(PeepSpriteImage_Balloon_02_sequence), PeepSpriteImage_Balloon_02_sequence }, @@ -2637,7 +2637,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Balloon[] = { { 7181, std::size(PeepSpriteImage_Balloon_36_sequence), PeepSpriteImage_Balloon_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Candyfloss[] = { +static constexpr PeepAnimation PeepSpriteImage_Candyfloss[] = { { 10849, std::size(PeepSpriteImage_Candyfloss_00_sequence), PeepSpriteImage_Candyfloss_00_sequence }, { 6585, std::size(PeepSpriteImage_Candyfloss_01_sequence), PeepSpriteImage_Candyfloss_01_sequence }, { 10845, std::size(PeepSpriteImage_Candyfloss_02_sequence), PeepSpriteImage_Candyfloss_02_sequence }, @@ -2677,7 +2677,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Candyfloss[] = { { 7181, std::size(PeepSpriteImage_Candyfloss_36_sequence), PeepSpriteImage_Candyfloss_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Umbrella[] = { +static constexpr PeepAnimation PeepSpriteImage_Umbrella[] = { { 11197, std::size(PeepSpriteImage_Umbrella_00_sequence), PeepSpriteImage_Umbrella_00_sequence }, { 6585, std::size(PeepSpriteImage_Umbrella_01_sequence), PeepSpriteImage_Umbrella_01_sequence }, { 11221, std::size(PeepSpriteImage_Umbrella_02_sequence), PeepSpriteImage_Umbrella_02_sequence }, @@ -2717,7 +2717,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Umbrella[] = { { 7181, std::size(PeepSpriteImage_Umbrella_36_sequence), PeepSpriteImage_Umbrella_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Pizza[] = { +static constexpr PeepAnimation PeepSpriteImage_Pizza[] = { { 7785, std::size(PeepSpriteImage_Pizza_00_sequence), PeepSpriteImage_Pizza_00_sequence }, { 6585, std::size(PeepSpriteImage_Pizza_01_sequence), PeepSpriteImage_Pizza_01_sequence }, { 7781, std::size(PeepSpriteImage_Pizza_02_sequence), PeepSpriteImage_Pizza_02_sequence }, @@ -2757,7 +2757,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Pizza[] = { { 7181, std::size(PeepSpriteImage_Pizza_36_sequence), PeepSpriteImage_Pizza_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_SecurityAlt[] = { +static constexpr PeepAnimation PeepSpriteImage_SecurityAlt[] = { { 11949, std::size(PeepSpriteImage_SecurityAlt_00_sequence),PeepSpriteImage_SecurityAlt_00_sequence }, { 6585, std::size(PeepSpriteImage_SecurityAlt_01_sequence),PeepSpriteImage_SecurityAlt_01_sequence }, { 11905, std::size(PeepSpriteImage_SecurityAlt_02_sequence),PeepSpriteImage_SecurityAlt_02_sequence }, @@ -2797,7 +2797,7 @@ static constexpr const PeepAnimation PeepSpriteImage_SecurityAlt[] = { { 7181, std::size(PeepSpriteImage_SecurityAlt_36_sequence),PeepSpriteImage_SecurityAlt_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Popcorn[] = { +static constexpr PeepAnimation PeepSpriteImage_Popcorn[] = { { 11025, std::size(PeepSpriteImage_Popcorn_00_sequence), PeepSpriteImage_Popcorn_00_sequence }, { 6585, std::size(PeepSpriteImage_Popcorn_01_sequence), PeepSpriteImage_Popcorn_01_sequence }, { 11021, std::size(PeepSpriteImage_Popcorn_02_sequence), PeepSpriteImage_Popcorn_02_sequence }, @@ -2837,7 +2837,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Popcorn[] = { { 7181, std::size(PeepSpriteImage_Popcorn_36_sequence), PeepSpriteImage_Popcorn_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_ArmsCrossed[] = { +static constexpr PeepAnimation PeepSpriteImage_ArmsCrossed[] = { { 6433, std::size(PeepSpriteImage_ArmsCrossed_00_sequence), PeepSpriteImage_ArmsCrossed_00_sequence }, { 6585, std::size(PeepSpriteImage_ArmsCrossed_01_sequence), PeepSpriteImage_ArmsCrossed_01_sequence }, { 6621, std::size(PeepSpriteImage_ArmsCrossed_02_sequence), PeepSpriteImage_ArmsCrossed_02_sequence }, @@ -2877,7 +2877,7 @@ static constexpr const PeepAnimation PeepSpriteImage_ArmsCrossed[] = { { 7181, std::size(PeepSpriteImage_ArmsCrossed_36_sequence), PeepSpriteImage_ArmsCrossed_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_HeadDown[] = { +static constexpr PeepAnimation PeepSpriteImage_HeadDown[] = { { 6457, std::size(PeepSpriteImage_HeadDown_00_sequence), PeepSpriteImage_HeadDown_00_sequence }, { 6585, std::size(PeepSpriteImage_HeadDown_01_sequence), PeepSpriteImage_HeadDown_01_sequence }, { 6621, std::size(PeepSpriteImage_HeadDown_02_sequence), PeepSpriteImage_HeadDown_02_sequence }, @@ -2917,7 +2917,7 @@ static constexpr const PeepAnimation PeepSpriteImage_HeadDown[] = { { 7181, std::size(PeepSpriteImage_HeadDown_36_sequence), PeepSpriteImage_HeadDown_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Nauseous[] = { +static constexpr PeepAnimation PeepSpriteImage_Nauseous[] = { { 6481, std::size(PeepSpriteImage_Nauseous_00_sequence), PeepSpriteImage_Nauseous_00_sequence }, { 6585, std::size(PeepSpriteImage_Nauseous_01_sequence), PeepSpriteImage_Nauseous_01_sequence }, { 6621, std::size(PeepSpriteImage_Nauseous_02_sequence), PeepSpriteImage_Nauseous_02_sequence }, @@ -2957,7 +2957,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Nauseous[] = { { 7181, std::size(PeepSpriteImage_Nauseous_36_sequence), PeepSpriteImage_Nauseous_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_VeryNauseous[] = { +static constexpr PeepAnimation PeepSpriteImage_VeryNauseous[] = { { 6505, std::size(PeepSpriteImage_VeryNauseous_00_sequence), PeepSpriteImage_VeryNauseous_00_sequence }, { 6585, std::size(PeepSpriteImage_VeryNauseous_01_sequence), PeepSpriteImage_VeryNauseous_01_sequence }, { 6529, std::size(PeepSpriteImage_VeryNauseous_02_sequence), PeepSpriteImage_VeryNauseous_02_sequence }, @@ -2997,7 +2997,7 @@ static constexpr const PeepAnimation PeepSpriteImage_VeryNauseous[] = { { 7181, std::size(PeepSpriteImage_VeryNauseous_36_sequence), PeepSpriteImage_VeryNauseous_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_RequireToilet[] = { +static constexpr PeepAnimation PeepSpriteImage_RequireToilet[] = { { 6537, std::size(PeepSpriteImage_RequireToilet_00_sequence), PeepSpriteImage_RequireToilet_00_sequence }, { 6585, std::size(PeepSpriteImage_RequireToilet_01_sequence), PeepSpriteImage_RequireToilet_01_sequence }, { 6621, std::size(PeepSpriteImage_RequireToilet_02_sequence), PeepSpriteImage_RequireToilet_02_sequence }, @@ -3037,7 +3037,7 @@ static constexpr const PeepAnimation PeepSpriteImage_RequireToilet[] = { { 7181, std::size(PeepSpriteImage_RequireToilet_36_sequence), PeepSpriteImage_RequireToilet_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Hat[] = { +static constexpr PeepAnimation PeepSpriteImage_Hat[] = { { 10721, std::size(PeepSpriteImage_Hat_00_sequence), PeepSpriteImage_Hat_00_sequence }, { 6585, std::size(PeepSpriteImage_Hat_01_sequence), PeepSpriteImage_Hat_01_sequence }, { 10717, std::size(PeepSpriteImage_Hat_02_sequence), PeepSpriteImage_Hat_02_sequence }, @@ -3077,7 +3077,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Hat[] = { { 7181, std::size(PeepSpriteImage_Hat_36_sequence), PeepSpriteImage_Hat_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_HotDog[] = { +static constexpr PeepAnimation PeepSpriteImage_HotDog[] = { { 7889, std::size(PeepSpriteImage_HotDog_00_sequence), PeepSpriteImage_HotDog_00_sequence }, { 6585, std::size(PeepSpriteImage_HotDog_01_sequence), PeepSpriteImage_HotDog_01_sequence }, { 7885, std::size(PeepSpriteImage_HotDog_02_sequence), PeepSpriteImage_HotDog_02_sequence }, @@ -3117,7 +3117,7 @@ static constexpr const PeepAnimation PeepSpriteImage_HotDog[] = { { 7181, std::size(PeepSpriteImage_HotDog_36_sequence), PeepSpriteImage_HotDog_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Tentacle[] = { +static constexpr PeepAnimation PeepSpriteImage_Tentacle[] = { { 8065, std::size(PeepSpriteImage_Tentacle_00_sequence), PeepSpriteImage_Tentacle_00_sequence }, { 6585, std::size(PeepSpriteImage_Tentacle_01_sequence), PeepSpriteImage_Tentacle_01_sequence }, { 8061, std::size(PeepSpriteImage_Tentacle_02_sequence), PeepSpriteImage_Tentacle_02_sequence }, @@ -3157,7 +3157,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Tentacle[] = { { 7181, std::size(PeepSpriteImage_Tentacle_36_sequence), PeepSpriteImage_Tentacle_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_ToffeeApple[] = { +static constexpr PeepAnimation PeepSpriteImage_ToffeeApple[] = { { 7401, std::size(PeepSpriteImage_ToffeeApple_00_sequence), PeepSpriteImage_ToffeeApple_00_sequence }, { 6585, std::size(PeepSpriteImage_ToffeeApple_01_sequence), PeepSpriteImage_ToffeeApple_01_sequence }, { 7397, std::size(PeepSpriteImage_ToffeeApple_02_sequence), PeepSpriteImage_ToffeeApple_02_sequence }, @@ -3197,7 +3197,7 @@ static constexpr const PeepAnimation PeepSpriteImage_ToffeeApple[] = { { 7181, std::size(PeepSpriteImage_ToffeeApple_36_sequence), PeepSpriteImage_ToffeeApple_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Donut[] = { +static constexpr PeepAnimation PeepSpriteImage_Donut[] = { { 8561, std::size(PeepSpriteImage_Donut_00_sequence), PeepSpriteImage_Donut_00_sequence }, { 6585, std::size(PeepSpriteImage_Donut_01_sequence), PeepSpriteImage_Donut_01_sequence }, { 8557, std::size(PeepSpriteImage_Donut_02_sequence), PeepSpriteImage_Donut_02_sequence }, @@ -3237,7 +3237,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Donut[] = { { 7181, std::size(PeepSpriteImage_Donut_36_sequence), PeepSpriteImage_Donut_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Coffee[] = { +static constexpr PeepAnimation PeepSpriteImage_Coffee[] = { { 8885, std::size(PeepSpriteImage_Coffee_00_sequence), PeepSpriteImage_Coffee_00_sequence }, { 6585, std::size(PeepSpriteImage_Coffee_01_sequence), PeepSpriteImage_Coffee_01_sequence }, { 8981, std::size(PeepSpriteImage_Coffee_02_sequence), PeepSpriteImage_Coffee_02_sequence }, @@ -3277,7 +3277,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Coffee[] = { { 7181, std::size(PeepSpriteImage_Coffee_36_sequence), PeepSpriteImage_Coffee_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Chicken[] = { +static constexpr PeepAnimation PeepSpriteImage_Chicken[] = { { 9005, std::size(PeepSpriteImage_Chicken_00_sequence), PeepSpriteImage_Chicken_00_sequence }, { 6585, std::size(PeepSpriteImage_Chicken_01_sequence), PeepSpriteImage_Chicken_01_sequence }, { 9125, std::size(PeepSpriteImage_Chicken_02_sequence), PeepSpriteImage_Chicken_02_sequence }, @@ -3317,7 +3317,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Chicken[] = { { 7181, std::size(PeepSpriteImage_Chicken_36_sequence), PeepSpriteImage_Chicken_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Lemonade[] = { +static constexpr PeepAnimation PeepSpriteImage_Lemonade[] = { { 9173, std::size(PeepSpriteImage_Lemonade_00_sequence), PeepSpriteImage_Lemonade_00_sequence }, { 6585, std::size(PeepSpriteImage_Lemonade_01_sequence), PeepSpriteImage_Lemonade_01_sequence }, { 9293, std::size(PeepSpriteImage_Lemonade_02_sequence), PeepSpriteImage_Lemonade_02_sequence }, @@ -3357,7 +3357,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Lemonade[] = { { 7181, std::size(PeepSpriteImage_Lemonade_36_sequence), PeepSpriteImage_Lemonade_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Watching[] = { +static constexpr PeepAnimation PeepSpriteImage_Watching[] = { { 6409, std::size(PeepSpriteImage_Watching_00_sequence), PeepSpriteImage_Watching_00_sequence }, { 6585, std::size(PeepSpriteImage_Watching_01_sequence), PeepSpriteImage_Watching_01_sequence }, { 7245, std::size(PeepSpriteImage_Watching_02_sequence), PeepSpriteImage_Watching_02_sequence }, @@ -3397,7 +3397,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Watching[] = { { 7181, std::size(PeepSpriteImage_Watching_36_sequence), PeepSpriteImage_Watching_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Pretzel[] = { +static constexpr PeepAnimation PeepSpriteImage_Pretzel[] = { { 9341, std::size(PeepSpriteImage_Pretzel_00_sequence), PeepSpriteImage_Pretzel_00_sequence }, { 6585, std::size(PeepSpriteImage_Pretzel_01_sequence), PeepSpriteImage_Pretzel_01_sequence }, { 9461, std::size(PeepSpriteImage_Pretzel_02_sequence), PeepSpriteImage_Pretzel_02_sequence }, @@ -3437,7 +3437,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Pretzel[] = { { 7181, std::size(PeepSpriteImage_Pretzel_36_sequence), PeepSpriteImage_Pretzel_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Sunglasses[] = { +static constexpr PeepAnimation PeepSpriteImage_Sunglasses[] = { { 10685, std::size(PeepSpriteImage_Sunglasses_00_sequence), PeepSpriteImage_Sunglasses_00_sequence }, { 6585, std::size(PeepSpriteImage_Sunglasses_01_sequence), PeepSpriteImage_Sunglasses_01_sequence }, { 10713, std::size(PeepSpriteImage_Sunglasses_02_sequence), PeepSpriteImage_Sunglasses_02_sequence }, @@ -3477,7 +3477,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Sunglasses[] = { { 7181, std::size(PeepSpriteImage_Sunglasses_36_sequence), PeepSpriteImage_Sunglasses_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_SuJongkwa[] = { +static constexpr PeepAnimation PeepSpriteImage_SuJongkwa[] = { { 9509, std::size(PeepSpriteImage_SuJongkwa_00_sequence), PeepSpriteImage_SuJongkwa_00_sequence }, { 6585, std::size(PeepSpriteImage_SuJongkwa_01_sequence), PeepSpriteImage_SuJongkwa_01_sequence }, { 9629, std::size(PeepSpriteImage_SuJongkwa_02_sequence), PeepSpriteImage_SuJongkwa_02_sequence }, @@ -3517,7 +3517,7 @@ static constexpr const PeepAnimation PeepSpriteImage_SuJongkwa[] = { { 7181, std::size(PeepSpriteImage_SuJongkwa_36_sequence), PeepSpriteImage_SuJongkwa_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Juice[] = { +static constexpr PeepAnimation PeepSpriteImage_Juice[] = { { 9677, std::size(PeepSpriteImage_Juice_00_sequence), PeepSpriteImage_Juice_00_sequence }, { 6585, std::size(PeepSpriteImage_Juice_01_sequence), PeepSpriteImage_Juice_01_sequence }, { 9797, std::size(PeepSpriteImage_Juice_02_sequence), PeepSpriteImage_Juice_02_sequence }, @@ -3557,7 +3557,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Juice[] = { { 7181, std::size(PeepSpriteImage_Juice_36_sequence), PeepSpriteImage_Juice_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_FunnelCake[] = { +static constexpr PeepAnimation PeepSpriteImage_FunnelCake[] = { { 9845, std::size(PeepSpriteImage_FunnelCake_00_sequence), PeepSpriteImage_FunnelCake_00_sequence }, { 6585, std::size(PeepSpriteImage_FunnelCake_01_sequence), PeepSpriteImage_FunnelCake_01_sequence }, { 9965, std::size(PeepSpriteImage_FunnelCake_02_sequence), PeepSpriteImage_FunnelCake_02_sequence }, @@ -3597,7 +3597,7 @@ static constexpr const PeepAnimation PeepSpriteImage_FunnelCake[] = { { 7181, std::size(PeepSpriteImage_FunnelCake_36_sequence), PeepSpriteImage_FunnelCake_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Noodles[] = { +static constexpr PeepAnimation PeepSpriteImage_Noodles[] = { { 10013, std::size(PeepSpriteImage_Noodles_00_sequence), PeepSpriteImage_Noodles_00_sequence }, { 6585, std::size(PeepSpriteImage_Noodles_01_sequence), PeepSpriteImage_Noodles_01_sequence }, { 10133, std::size(PeepSpriteImage_Noodles_02_sequence), PeepSpriteImage_Noodles_02_sequence }, @@ -3637,7 +3637,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Noodles[] = { { 7181, std::size(PeepSpriteImage_Noodles_36_sequence), PeepSpriteImage_Noodles_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Sausage[] = { +static constexpr PeepAnimation PeepSpriteImage_Sausage[] = { { 10181, std::size(PeepSpriteImage_Sausage_00_sequence), PeepSpriteImage_Sausage_00_sequence }, { 6585, std::size(PeepSpriteImage_Sausage_01_sequence), PeepSpriteImage_Sausage_01_sequence }, { 10301, std::size(PeepSpriteImage_Sausage_02_sequence), PeepSpriteImage_Sausage_02_sequence }, @@ -3677,7 +3677,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Sausage[] = { { 7181, std::size(PeepSpriteImage_Sausage_36_sequence), PeepSpriteImage_Sausage_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Soup[] = { +static constexpr PeepAnimation PeepSpriteImage_Soup[] = { { 10349, std::size(PeepSpriteImage_Soup_00_sequence), PeepSpriteImage_Soup_00_sequence }, { 6585, std::size(PeepSpriteImage_Soup_01_sequence), PeepSpriteImage_Soup_01_sequence }, { 10469, std::size(PeepSpriteImage_Soup_02_sequence), PeepSpriteImage_Soup_02_sequence }, @@ -3717,7 +3717,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Soup[] = { { 7181, std::size(PeepSpriteImage_Soup_36_sequence), PeepSpriteImage_Soup_36_sequence }, }; -static constexpr const PeepAnimation PeepSpriteImage_Sandwich[] = { +static constexpr PeepAnimation PeepSpriteImage_Sandwich[] = { { 10517, std::size(PeepSpriteImage_Sandwich_00_sequence), PeepSpriteImage_Sandwich_00_sequence }, { 6585, std::size(PeepSpriteImage_Sandwich_01_sequence), PeepSpriteImage_Sandwich_01_sequence }, { 10637, std::size(PeepSpriteImage_Sandwich_02_sequence), PeepSpriteImage_Sandwich_02_sequence }, @@ -3758,7 +3758,7 @@ static constexpr const PeepAnimation PeepSpriteImage_Sandwich[] = { }; -static constexpr const SpriteBounds PeepSpriteBounds_Normal[] = { +static constexpr SpriteBounds PeepSpriteBounds_Normal[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -3798,7 +3798,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Normal[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Handyman[] = { +static constexpr SpriteBounds PeepSpriteBounds_Handyman[] = { { 12, 16, 6 }, { 8, 16, 5 }, { 9, 16, 6 }, @@ -3838,7 +3838,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Handyman[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Mechanic[] = { +static constexpr SpriteBounds PeepSpriteBounds_Mechanic[] = { { 10, 16, 5 }, { 8, 16, 5 }, { 10, 16, 5 }, @@ -3878,7 +3878,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Mechanic[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Security[] = { +static constexpr SpriteBounds PeepSpriteBounds_Security[] = { { 8, 18, 5 }, { 8, 16, 5 }, { 8, 17, 5 }, @@ -3918,7 +3918,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Security[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerPanda[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerPanda[] = { { 13, 24, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -3958,7 +3958,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerPanda[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerTiger[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerTiger[] = { { 13, 24, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -3998,7 +3998,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerTiger[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerElephant[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerElephant[] = { { 13, 24, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4038,7 +4038,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerElephant[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerRoman[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerRoman[] = { { 13, 24, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4078,7 +4078,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerRoman[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerGorilla[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerGorilla[] = { { 13, 24, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4118,7 +4118,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerGorilla[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerSnowman[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerSnowman[] = { { 13, 24, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4158,7 +4158,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerSnowman[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerKnight[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerKnight[] = { { 16, 32, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4198,7 +4198,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerKnight[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerAstronaut[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerAstronaut[] = { { 16, 32, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4238,7 +4238,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerAstronaut[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerBandit[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerBandit[] = { { 16, 32, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4278,7 +4278,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerBandit[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerSheriff[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerSheriff[] = { { 16, 32, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4318,7 +4318,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerSheriff[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_EntertainerPirate[] = { +static constexpr SpriteBounds PeepSpriteBounds_EntertainerPirate[] = { { 16, 32, 8 }, { 8, 16, 5 }, { 10, 23, 7 }, @@ -4358,7 +4358,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_EntertainerPirate[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_IceCream[] = { +static constexpr SpriteBounds PeepSpriteBounds_IceCream[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4398,7 +4398,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_IceCream[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Chips[] = { +static constexpr SpriteBounds PeepSpriteBounds_Chips[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4438,7 +4438,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Chips[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Burger[] = { +static constexpr SpriteBounds PeepSpriteBounds_Burger[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4478,7 +4478,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Burger[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Drink[] = { +static constexpr SpriteBounds PeepSpriteBounds_Drink[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4518,7 +4518,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Drink[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Balloon[] = { +static constexpr SpriteBounds PeepSpriteBounds_Balloon[] = { { 11, 28, 5 }, { 8, 16, 5 }, { 11, 28, 5 }, @@ -4558,7 +4558,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Balloon[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Candyfloss[] = { +static constexpr SpriteBounds PeepSpriteBounds_Candyfloss[] = { { 11, 19, 5 }, { 8, 16, 5 }, { 11, 19, 5 }, @@ -4598,7 +4598,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Candyfloss[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Umbrella[] = { +static constexpr SpriteBounds PeepSpriteBounds_Umbrella[] = { { 14, 21, 5 }, { 8, 16, 5 }, { 14, 21, 5 }, @@ -4638,7 +4638,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Umbrella[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Pizza[] = { +static constexpr SpriteBounds PeepSpriteBounds_Pizza[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4678,7 +4678,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Pizza[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_SecurityAlt[] = { +static constexpr SpriteBounds PeepSpriteBounds_SecurityAlt[] = { { 8, 18, 5 }, { 8, 16, 5 }, { 8, 17, 5 }, @@ -4718,7 +4718,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_SecurityAlt[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Popcorn[] = { +static constexpr SpriteBounds PeepSpriteBounds_Popcorn[] = { { 11, 19, 5 }, { 8, 16, 5 }, { 11, 19, 5 }, @@ -4758,7 +4758,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Popcorn[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Hat[] = { +static constexpr SpriteBounds PeepSpriteBounds_Hat[] = { { 12, 32, 5 }, { 8, 16, 5 }, { 12, 32, 5 }, @@ -4798,7 +4798,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Hat[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_HotDog[] = { +static constexpr SpriteBounds PeepSpriteBounds_HotDog[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4838,7 +4838,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_HotDog[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Tentacle[] = { +static constexpr SpriteBounds PeepSpriteBounds_Tentacle[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4878,7 +4878,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Tentacle[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_ToffeeApple[] = { +static constexpr SpriteBounds PeepSpriteBounds_ToffeeApple[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4918,7 +4918,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_ToffeeApple[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Donut[] = { +static constexpr SpriteBounds PeepSpriteBounds_Donut[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4958,7 +4958,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Donut[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Coffee[] = { +static constexpr SpriteBounds PeepSpriteBounds_Coffee[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -4998,7 +4998,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Coffee[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Chicken[] = { +static constexpr SpriteBounds PeepSpriteBounds_Chicken[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5038,7 +5038,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Chicken[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Lemonade[] = { +static constexpr SpriteBounds PeepSpriteBounds_Lemonade[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5078,7 +5078,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Lemonade[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Pretzel[] = { +static constexpr SpriteBounds PeepSpriteBounds_Pretzel[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5118,7 +5118,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Pretzel[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_SuJongkwa[] = { +static constexpr SpriteBounds PeepSpriteBounds_SuJongkwa[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5158,7 +5158,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_SuJongkwa[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Juice[] = { +static constexpr SpriteBounds PeepSpriteBounds_Juice[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5198,7 +5198,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Juice[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_FunnelCake[] = { +static constexpr SpriteBounds PeepSpriteBounds_FunnelCake[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5238,7 +5238,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_FunnelCake[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Noodles[] = { +static constexpr SpriteBounds PeepSpriteBounds_Noodles[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5278,7 +5278,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Noodles[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Sausage[] = { +static constexpr SpriteBounds PeepSpriteBounds_Sausage[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5318,7 +5318,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Sausage[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Soup[] = { +static constexpr SpriteBounds PeepSpriteBounds_Soup[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5358,7 +5358,7 @@ static constexpr const SpriteBounds PeepSpriteBounds_Soup[] = { { 9, 22, 7 }, }; -static constexpr const SpriteBounds PeepSpriteBounds_Sandwich[] = { +static constexpr SpriteBounds PeepSpriteBounds_Sandwich[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, diff --git a/src/openrct2/platform/Crash.cpp b/src/openrct2/platform/Crash.cpp index 23f2d5528d..fbbffc190c 100644 --- a/src/openrct2/platform/Crash.cpp +++ b/src/openrct2/platform/Crash.cpp @@ -56,7 +56,7 @@ static const wchar_t* _wszCommitSha1Short = WSZ(""); static const wchar_t* _wszArchitecture = WSZ(OPENRCT2_ARCHITECTURE); static std::map _uploadFiles; -# define BACKTRACE_TOKEN L"f36c9c90af1c5e56ca706e24cc73262f53b3e329d00532caa469d8bf2a7bc657" +# define BACKTRACE_TOKEN L"a844447f10ec0bebfaea32ca5ab20835901f89aef73f9919f1279d88c5633152" using namespace OpenRCT2; diff --git a/src/openrct2/platform/Platform.Android.cpp b/src/openrct2/platform/Platform.Android.cpp index 8ca55ac3c4..068432d18d 100644 --- a/src/openrct2/platform/Platform.Android.cpp +++ b/src/openrct2/platform/Platform.Android.cpp @@ -27,7 +27,7 @@ AndroidClassLoader::~AndroidClassLoader() jobject AndroidClassLoader::_classLoader; jmethodID AndroidClassLoader::_findClassMethod; -static std::shared_ptr acl; +static std::shared_ptr acl = std::make_shared(); namespace Platform { @@ -173,11 +173,6 @@ namespace Platform return displayScale; } - void AndroidInitClassLoader() - { - acl = std::make_shared(); - } - jclass AndroidFindClass(JNIEnv* env, std::string_view name) { return static_cast(env->CallObjectMethod( diff --git a/src/openrct2/platform/Shared.cpp b/src/openrct2/platform/Platform.Common.cpp similarity index 88% rename from src/openrct2/platform/Shared.cpp rename to src/openrct2/platform/Platform.Common.cpp index 661f9aebf3..bbb492db7d 100644 --- a/src/openrct2/platform/Shared.cpp +++ b/src/openrct2/platform/Platform.Common.cpp @@ -24,7 +24,9 @@ #include #include +#include #include +#include #include #ifdef _WIN32 @@ -35,23 +37,6 @@ static constexpr std::array _prohibitedCharacters = { '/' }; namespace Platform { - void CoreInit() - { - static bool initialised = false; - if (!initialised) - { - initialised = true; - -#ifdef __ANDROID__ - Platform::AndroidInitClassLoader(); -#endif // __ANDROID__ - - InitTicks(); - BitCountInit(); - MaskInit(); - } - } - CurrencyType GetCurrencyValue(const char* currCode) { if (currCode == nullptr || strlen(currCode) < 3) @@ -136,4 +121,18 @@ namespace Platform return 1; } #endif + + void Sleep(uint32_t ms) + { + std::this_thread::sleep_for(std::chrono::milliseconds(ms)); + } + + static const auto _processStartTime = std::chrono::high_resolution_clock::now(); + + uint32_t GetTicks() + { + const auto processTime = std::chrono::high_resolution_clock::now() - _processStartTime; + return static_cast(std::chrono::duration_cast(processTime).count()); + } + } // namespace Platform diff --git a/src/openrct2/platform/Platform.Linux.cpp b/src/openrct2/platform/Platform.Linux.cpp index c86c36e9a6..30e4b5d149 100644 --- a/src/openrct2/platform/Platform.Linux.cpp +++ b/src/openrct2/platform/Platform.Linux.cpp @@ -14,6 +14,7 @@ # include # include # include +# include # include # if defined(__FreeBSD__) || defined(__NetBSD__) # include diff --git a/src/openrct2/platform/Platform.Posix.cpp b/src/openrct2/platform/Platform.Posix.cpp index 449e2146a0..eeb804af18 100644 --- a/src/openrct2/platform/Platform.Posix.cpp +++ b/src/openrct2/platform/Platform.Posix.cpp @@ -29,11 +29,10 @@ # include # include # include +# include // The name of the mutex used to prevent multiple instances of the game from running -static constexpr u8string_view SINGLE_INSTANCE_MUTEX_NAME = u8"openrct2.lock"; - -static utf8 _userDataDirectoryPath[MAX_PATH] = { 0 }; +static constexpr const utf8* SINGLE_INSTANCE_MUTEX_NAME = u8"openrct2.lock"; namespace Platform { @@ -224,7 +223,7 @@ namespace Platform // Find a file which matches by name (case insensitive) for (int32_t i = 0; i < count; i++) { - if (String::Equals(files[i]->d_name, fileName.c_str(), true)) + if (String::IEquals(files[i]->d_name, fileName.c_str())) { result = Path::Combine(directory, std::string(files[i]->d_name)); break; @@ -307,64 +306,13 @@ namespace Platform # endif // __EMSCRIPTEN__ } - // Implement our own version of getumask(), as it is documented being - // "a vaporware GNU extension". - static mode_t openrct2_getumask() - { - mode_t mask = umask(0); - umask(mask); - return 0777 & ~mask; // Keep in mind 0777 is octal - } - - bool EnsureDirectoryExists(u8string_view path) - { - mode_t mask = openrct2_getumask(); - char buffer[MAX_PATH]; - SafeStrCpy(buffer, u8string(path).c_str(), sizeof(buffer)); - - LOG_VERBOSE("Create directory: %s", buffer); - for (char* p = buffer + 1; *p != '\0'; p++) - { - if (*p == '/') - { - // Temporarily truncate - *p = '\0'; - - LOG_VERBOSE("mkdir(%s)", buffer); - if (mkdir(buffer, mask) != 0) - { - if (errno != EEXIST) - { - return false; - } - } - - // Restore truncation - *p = '/'; - } - } - - LOG_VERBOSE("mkdir(%s)", buffer); - if (mkdir(buffer, mask) != 0) - { - if (errno != EEXIST) - { - return false; - } - } - - return true; - } - bool LockSingleInstance() { - auto pidFilePath = Path::Combine(_userDataDirectoryPath, SINGLE_INSTANCE_MUTEX_NAME); - // We will never close this file manually. The operating system will // take care of that, because flock keeps the lock as long as the // file is open and closes it automatically on file close. // This is intentional. - int32_t pidFile = open(pidFilePath.c_str(), O_CREAT | O_RDWR, 0666); + int32_t pidFile = open(SINGLE_INSTANCE_MUTEX_NAME, O_CREAT | O_RDWR, 0666); if (pidFile == -1) { @@ -432,25 +380,6 @@ namespace Platform return u8"app_285330" PATH_SEPARATOR u8"depot_285331"; } - void Sleep(uint32_t ms) - { - usleep(ms * 1000); - } - - void InitTicks() - { - } - - uint32_t GetTicks() - { - struct timespec ts; - if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) - { - LOG_FATAL("clock_gettime failed"); - exit(-1); - } - return static_cast(ts.tv_sec * 1000 + ts.tv_nsec / 1000000); - } } // namespace Platform #endif diff --git a/src/openrct2/platform/Platform.Win32.cpp b/src/openrct2/platform/Platform.Win32.cpp index 9eea08e3d3..96c3c56972 100644 --- a/src/openrct2/platform/Platform.Win32.cpp +++ b/src/openrct2/platform/Platform.Win32.cpp @@ -41,31 +41,12 @@ # pragma comment( \ linker, \ "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") - -static uint32_t _frequency = 0; -static LARGE_INTEGER _entryTimestamp; - // The name of the mutex used to prevent multiple instances of the game from running static constexpr wchar_t SINGLE_INSTANCE_MUTEX_NAME[] = L"RollerCoaster Tycoon 2_GSKMUTEX"; # define SOFTWARE_CLASSES L"Software\\Classes" # define MUI_CACHE L"Local Settings\\Software\\Microsoft\\Windows\\Shell\\MuiCache" -char* strndup(const char* src, size_t size) -{ - size_t len = strnlen(src, size); - char* dst = reinterpret_cast(malloc(len + 1)); - - if (dst == nullptr) - { - return nullptr; - } - - dst = reinterpret_cast(std::memcpy(dst, src, len)); - dst[len] = '\0'; - return dst; -} - namespace Platform { static std::string WIN32_GetKnownFolderPath(REFKNOWNFOLDERID rfid); @@ -786,13 +767,6 @@ namespace Platform return !path.empty() ? Path::Combine(path, font.filename) : std::string(); } - bool EnsureDirectoryExists(u8string_view path) - { - auto wPath = String::ToWideChar(path); - auto success = CreateDirectoryW(wPath.c_str(), nullptr); - return success != FALSE || GetLastError() == ERROR_ALREADY_EXISTS; - } - bool LockSingleInstance() { // Check if operating system mutex exists @@ -908,29 +882,6 @@ namespace Platform return false; } - uint32_t GetTicks() - { - LARGE_INTEGER pfc; - QueryPerformanceCounter(&pfc); - - LARGE_INTEGER runningDelta; - runningDelta.QuadPart = pfc.QuadPart - _entryTimestamp.QuadPart; - - return static_cast(runningDelta.QuadPart / _frequency); - } - - void Sleep(uint32_t ms) - { - ::Sleep(ms); - } - - void InitTicks() - { - LARGE_INTEGER freq; - QueryPerformanceFrequency(&freq); - _frequency = static_cast(freq.QuadPart / 1000); - QueryPerformanceCounter(&_entryTimestamp); - } } // namespace Platform #endif diff --git a/src/openrct2/platform/Platform.h b/src/openrct2/platform/Platform.h index c5527d63b9..ce97861555 100644 --- a/src/openrct2/platform/Platform.h +++ b/src/openrct2/platform/Platform.h @@ -45,8 +45,6 @@ struct RealWorldTime; namespace Platform { - // Called very early in the program before parsing commandline arguments. - void CoreInit(); std::string GetEnvironmentVariable(std::string_view name); std::string GetFolderPath(SPECIAL_FOLDER folder); std::string GetInstallPath(); @@ -103,7 +101,6 @@ namespace Platform bool SetupUriProtocol(); #endif #ifdef __ANDROID__ - void AndroidInitClassLoader(); jclass AndroidFindClass(JNIEnv* env, std::string_view name); #endif @@ -113,7 +110,6 @@ namespace Platform u8string StrDecompToPrecomp(u8string_view input); bool RequireNewWindow(bool openGL); - bool EnsureDirectoryExists(u8string_view path); // Returns the bitmask of the GetLogicalDrives function for windows, 0 for other systems int32_t GetDrives(); time_t FileGetModifiedTime(u8string_view path); @@ -126,7 +122,6 @@ namespace Platform uint32_t GetTicks(); void Sleep(uint32_t ms); - void InitTicks(); } // namespace Platform #ifdef __ANDROID__ diff --git a/src/openrct2/rct1/Limits.h b/src/openrct2/rct1/Limits.h index 79b9dffa87..a472c11346 100644 --- a/src/openrct2/rct1/Limits.h +++ b/src/openrct2/rct1/Limits.h @@ -13,16 +13,16 @@ namespace RCT1::Limits { using namespace RCT12::Limits; - constexpr const uint16_t MaxTileElements = 0xC000; - constexpr const uint16_t MaxEntities = 5000; - constexpr const uint8_t MaxTrainsPerRide = 12; - constexpr const uint8_t MaxMapSize = 128; - constexpr const uint8_t MaxStaff = 116; - constexpr const uint16_t MaxAnimatedObjects = 1000; - constexpr const uint8_t MaxBanners = 100; + constexpr uint16_t MaxTileElements = 0xC000; + constexpr uint16_t MaxEntities = 5000; + constexpr uint8_t MaxTrainsPerRide = 12; + constexpr uint8_t MaxMapSize = 128; + constexpr uint8_t MaxStaff = 116; + constexpr uint16_t MaxAnimatedObjects = 1000; + constexpr uint8_t MaxBanners = 100; constexpr int32_t CoordsZStep = 4; - constexpr const uint32_t Num_LL_CSG_Entries = 69917; - constexpr const uint32_t LL_CSG1_DAT_FileSize = 41402869; - constexpr const uint32_t NumTerrainSurfaces = 16; - constexpr const uint32_t NumTerrainEdges = 15; + constexpr uint32_t Num_LL_CSG_Entries = 69917; + constexpr uint32_t LL_CSG1_DAT_FileSize = 41402869; + constexpr uint32_t NumTerrainSurfaces = 16; + constexpr uint32_t NumTerrainEdges = 15; } // namespace RCT1::Limits diff --git a/src/openrct2/rct1/RCT1.h b/src/openrct2/rct1/RCT1.h index 69c420e280..1e8650242e 100644 --- a/src/openrct2/rct1/RCT1.h +++ b/src/openrct2/rct1/RCT1.h @@ -15,7 +15,7 @@ namespace RCT1 { - constexpr const uint8_t RCT1ResearchFlagsSeparator = 0xFF; + constexpr uint8_t RCT1ResearchFlagsSeparator = 0xFF; enum class RideType : uint8_t { diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 0d46740fd2..a40003c398 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -75,7 +75,7 @@ #include #include -static constexpr const ObjectEntryIndex ObjectEntryIndexIgnore = 254; +static constexpr ObjectEntryIndex ObjectEntryIndexIgnore = 254; using namespace OpenRCT2; @@ -129,11 +129,11 @@ namespace RCT1 ParkLoadResult Load(const u8string& path) override { const auto extension = Path::GetExtension(path); - if (String::Equals(extension, ".sc4", true)) + if (String::IEquals(extension, ".sc4")) { return LoadScenario(path); } - if (String::Equals(extension, ".sv4", true)) + if (String::IEquals(extension, ".sv4")) { return LoadSavedGame(path); } @@ -560,7 +560,7 @@ namespace RCT1 case ObjectType::LargeScenery: case ObjectType::Walls: case ObjectType::Paths: - case ObjectType::PathBits: + case ObjectType::PathAdditions: { RCT12::EntryList* entries = GetEntryList(objectType); @@ -1473,7 +1473,7 @@ namespace RCT1 AppendRequiredObjects(result, ObjectType::LargeScenery, _largeSceneryEntries); AppendRequiredObjects(result, ObjectType::Walls, _wallEntries); AppendRequiredObjects(result, ObjectType::Paths, _pathEntries); - AppendRequiredObjects(result, ObjectType::PathBits, _pathAdditionEntries); + AppendRequiredObjects(result, ObjectType::PathAdditions, _pathAdditionEntries); AppendRequiredObjects(result, ObjectType::SceneryGroup, _sceneryGroupEntries); AppendRequiredObjects( result, ObjectType::Banners, @@ -1603,7 +1603,7 @@ namespace RCT1 dst2->SetHasQueueBanner(src2->HasQueueBanner()); dst2->SetEdges(src2->GetEdges()); dst2->SetCorners(src2->GetCorners()); - dst2->SetAddition(src2->GetAddition()); + dst2->SetAddition(0); dst2->SetAdditionIsGhost(false); dst2->SetAdditionStatus(src2->GetAdditionStatus()); @@ -1631,7 +1631,7 @@ namespace RCT1 dst2->SetRailingsEntryIndex(railingsEntryIndex); // Additions - ObjectEntryIndex additionType = dst2->GetAddition(); + ObjectEntryIndex additionType = src2->GetAddition(); if (additionType != RCT1_PATH_ADDITION_NONE) { ObjectEntryIndex normalisedType = RCT1::NormalisePathAddition(additionType); @@ -1640,7 +1640,7 @@ namespace RCT1 { dst2->SetIsBroken(true); } - dst2->SetAddition(entryIndex + 1); + dst2->SetAdditionEntryIndex(entryIndex); } return 1; } @@ -2443,7 +2443,7 @@ namespace RCT1 return &_wallEntries; case ObjectType::Paths: return &_pathEntries; - case ObjectType::PathBits: + case ObjectType::PathAdditions: return &_pathAdditionEntries; case ObjectType::SceneryGroup: return &_sceneryGroupEntries; diff --git a/src/openrct2/rct1/T4Importer.cpp b/src/openrct2/rct1/T4Importer.cpp index 333739ef04..4838cdd56f 100644 --- a/src/openrct2/rct1/T4Importer.cpp +++ b/src/openrct2/rct1/T4Importer.cpp @@ -40,7 +40,7 @@ namespace RCT1 bool Load(const utf8* path) override { const auto extension = Path::GetExtension(path); - if (String::Equals(extension, ".td4", true)) + if (String::IEquals(extension, ".td4")) { _name = GetNameFromTrackPath(path); auto fs = OpenRCT2::FileStream(path, OpenRCT2::FILE_MODE_OPEN); diff --git a/src/openrct2/rct1/Tables.cpp b/src/openrct2/rct1/Tables.cpp index 7cd527a75c..beca22d534 100644 --- a/src/openrct2/rct1/Tables.cpp +++ b/src/openrct2/rct1/Tables.cpp @@ -25,7 +25,7 @@ namespace RCT1 { colour_t GetColour(colour_t colour) { - static constexpr const uint8_t map[] = + static constexpr uint8_t map[] = { COLOUR_BLACK, COLOUR_GREY, @@ -70,7 +70,7 @@ namespace RCT1 ::PeepSpriteType GetPeepSpriteType(::RCT1::PeepSpriteType rct1SpriteType) { - static constexpr const ::PeepSpriteType map[] = + static constexpr ::PeepSpriteType map[] = { ::PeepSpriteType::Normal, // 0x00 ::PeepSpriteType::Handyman, // 0x01 @@ -424,7 +424,7 @@ namespace RCT1 uint8_t GetVehicleSubEntryIndex(uint8_t rct1VehicleType, uint8_t vehicleSubEntry) { - static constexpr const uint8_t map[] = + static constexpr uint8_t map[] = { 0, // STEEL_RC_FRONT 1, // STEEL_RC_CARRIAGE diff --git a/src/openrct2/rct12/Limits.h b/src/openrct2/rct12/Limits.h index c3dc9999d7..c49b9851c3 100644 --- a/src/openrct2/rct12/Limits.h +++ b/src/openrct2/rct12/Limits.h @@ -12,38 +12,38 @@ namespace RCT12::Limits { - constexpr const uint8_t MaxRideObjects = 128; + constexpr uint8_t MaxRideObjects = 128; - constexpr const uint8_t MaxRidesInPark = 255; - constexpr const uint8_t MaxAwards = 4; - constexpr const uint8_t MaxNewsItems = 61; - constexpr const uint8_t MaxStationsPerRide = 4; - constexpr const uint8_t MaxPeepSpawns = 2; - constexpr const uint8_t MaxParkEntrances = 4; + constexpr uint8_t MaxRidesInPark = 255; + constexpr uint8_t MaxAwards = 4; + constexpr uint8_t MaxNewsItems = 61; + constexpr uint8_t MaxStationsPerRide = 4; + constexpr uint8_t MaxPeepSpawns = 2; + constexpr uint8_t MaxParkEntrances = 4; // The number of elements in the patrol_areas array per staff member. Every bit in the array represents a 4x4 square. // In RCT1, that's an 8-bit array. 8 * 128 = 1024 bits, which is also the number of 4x4 squares on a 128x128 map. // For RCT2, it's a 32-bit array. 32 * 128 = 4096 bits, which is also the number of 4x4 squares on a 256x256 map. - constexpr const uint8_t PatrolAreaSize = 128; - constexpr const uint8_t StaffTypeCount = 4; - constexpr const uint8_t NumColourSchemes = 4; - constexpr const uint8_t MaxVehicleColours = 32; + constexpr uint8_t PatrolAreaSize = 128; + constexpr uint8_t StaffTypeCount = 4; + constexpr uint8_t NumColourSchemes = 4; + constexpr uint8_t MaxVehicleColours = 32; - constexpr const uint8_t ExpenditureTableMonthCount = 16; - constexpr const uint8_t ExpenditureTypeCount = 14; - constexpr const uint8_t FinanceGraphSize = 128; + constexpr uint8_t ExpenditureTableMonthCount = 16; + constexpr uint8_t ExpenditureTypeCount = 14; + constexpr uint8_t FinanceGraphSize = 128; - constexpr const uint16_t MaxUserStrings = 1024; - constexpr const uint8_t MaxUserStringLength = 32; + constexpr uint16_t MaxUserStrings = 1024; + constexpr uint8_t MaxUserStringLength = 32; - constexpr const uint8_t MaxPeepThoughts = 5; + constexpr uint8_t MaxPeepThoughts = 5; - constexpr const uint16_t RideMeasurementMaxItems = 4800; + constexpr uint16_t RideMeasurementMaxItems = 4800; constexpr uint16_t const MaxInversions = 31; constexpr uint16_t const MaxGolfHoles = 31; constexpr uint16_t const MaxHelices = 31; - constexpr const uint8_t MaxElementHeight = 255; - constexpr const uint8_t CustomerHistorySize = 10; + constexpr uint8_t MaxElementHeight = 255; + constexpr uint8_t CustomerHistorySize = 10; - constexpr const uint8_t MaxWaitingTime = 250; + constexpr uint8_t MaxWaitingTime = 250; } // namespace RCT12::Limits diff --git a/src/openrct2/rct12/RCT12.cpp b/src/openrct2/rct12/RCT12.cpp index 54b9fee1d7..34f2f8717e 100644 --- a/src/openrct2/rct12/RCT12.cpp +++ b/src/openrct2/rct12/RCT12.cpp @@ -750,6 +750,14 @@ static constexpr std::string_view _musicStyles[] = { "rct2.music.pirate", "rct2.music.rock3", "rct2.music.candy", + "openrct2.music.galaxy", + "openrct2.music.acid", + "openrct2.music.dodgems", + "openrct2.music.blizzard", + "openrct2.music.extraterrestrial", + "openrct2.music.fairground2", + "openrct2.music.ragtime2", + "openrct2.music.prehistoric", }; std::string_view GetStationIdentifierFromStyle(uint8_t style) diff --git a/src/openrct2/rct12/RCT12.h b/src/openrct2/rct12/RCT12.h index 1c9fa21b33..f40a622fb0 100644 --- a/src/openrct2/rct12/RCT12.h +++ b/src/openrct2/rct12/RCT12.h @@ -36,43 +36,43 @@ constexpr uint8_t RCT2_STRING_FORMAT_ARG_END = 141; constexpr uint8_t RCT2_STRING_FORMAT_COLOUR_START = 142; constexpr uint8_t RCT2_STRING_FORMAT_COLOUR_END = 156; -constexpr const uint8_t RCT12_SOUND_ID_NULL = 0xFF; +constexpr uint8_t RCT12_SOUND_ID_NULL = 0xFF; using RCT12RideId = uint8_t; -constexpr const RCT12RideId RCT12_RIDE_ID_NULL = 255; +constexpr RCT12RideId RCT12_RIDE_ID_NULL = 255; constexpr uint8_t RCT12_BANNER_INDEX_NULL = std::numeric_limits::max(); -constexpr const uint8_t RCT12_TILE_ELEMENT_SURFACE_EDGE_STYLE_MASK = 0xE0; // in RCT12TileElement.properties.surface.slope -constexpr const uint8_t RCT12_TILE_ELEMENT_SURFACE_WATER_HEIGHT_MASK = 0x1F; // in RCT12TileElement.properties.surface.terrain -constexpr const uint8_t RCT12_TILE_ELEMENT_SURFACE_TERRAIN_MASK = 0xE0; // in RCT12TileElement.properties.surface.terrain +constexpr uint8_t RCT12_TILE_ELEMENT_SURFACE_EDGE_STYLE_MASK = 0xE0; // in RCT12TileElement.properties.surface.slope +constexpr uint8_t RCT12_TILE_ELEMENT_SURFACE_WATER_HEIGHT_MASK = 0x1F; // in RCT12TileElement.properties.surface.terrain +constexpr uint8_t RCT12_TILE_ELEMENT_SURFACE_TERRAIN_MASK = 0xE0; // in RCT12TileElement.properties.surface.terrain -constexpr const uint8_t RCT12_SMALL_SCENERY_ELEMENT_NEEDS_SUPPORTS_FLAG = 0x20; -constexpr const uint8_t RCT12_TILE_ELEMENT_COLOUR_MASK = 0b0001'1111; +constexpr uint8_t RCT12_SMALL_SCENERY_ELEMENT_NEEDS_SUPPORTS_FLAG = 0x20; +constexpr uint8_t RCT12_TILE_ELEMENT_COLOUR_MASK = 0b0001'1111; -constexpr const uint16_t RCT12_TILE_ELEMENT_LARGE_TYPE_MASK = 0x3FF; +constexpr uint16_t RCT12_TILE_ELEMENT_LARGE_TYPE_MASK = 0x3FF; constexpr uint16_t const RCT12_XY8_UNDEFINED = 0xFFFF; using RCT12ObjectEntryIndex = uint8_t; -constexpr const RCT12ObjectEntryIndex RCT12_OBJECT_ENTRY_INDEX_NULL = 255; +constexpr RCT12ObjectEntryIndex RCT12_OBJECT_ENTRY_INDEX_NULL = 255; // Everything before this point has been researched -constexpr const uint32_t RCT12_RESEARCHED_ITEMS_SEPARATOR = 0xFFFFFFFF; +constexpr uint32_t RCT12_RESEARCHED_ITEMS_SEPARATOR = 0xFFFFFFFF; // Everything before this point and after separator still requires research -constexpr const uint32_t RCT12_RESEARCHED_ITEMS_END = 0xFFFFFFFE; +constexpr uint32_t RCT12_RESEARCHED_ITEMS_END = 0xFFFFFFFE; // Extra end of list entry. Leftover from RCT1. -constexpr const uint32_t RCT12_RESEARCHED_ITEMS_END_2 = 0xFFFFFFFD; +constexpr uint32_t RCT12_RESEARCHED_ITEMS_END_2 = 0xFFFFFFFD; -constexpr const uint16_t RCT12_PEEP_SPAWN_UNDEFINED = 0xFFFF; +constexpr uint16_t RCT12_PEEP_SPAWN_UNDEFINED = 0xFFFF; -constexpr const uint16_t RCT12VehicleTrackDirectionMask = 0b0000000000000011; -constexpr const uint16_t RCT12VehicleTrackTypeMask = 0b1111111111111100; +constexpr uint16_t RCT12VehicleTrackDirectionMask = 0b0000000000000011; +constexpr uint16_t RCT12VehicleTrackTypeMask = 0b1111111111111100; -constexpr const uint8_t RCT12PeepThoughtItemNone = std::numeric_limits::max(); +constexpr uint8_t RCT12PeepThoughtItemNone = std::numeric_limits::max(); -constexpr const uint8_t RCT12GuestsInParkHistoryFactor = 20; -constexpr const uint8_t RCT12ParkHistoryUndefined = std::numeric_limits::max(); +constexpr uint8_t RCT12GuestsInParkHistoryFactor = 20; +constexpr uint8_t RCT12ParkHistoryUndefined = std::numeric_limits::max(); enum class RCT12TrackDesignVersion : uint8_t { @@ -870,6 +870,7 @@ uint8_t GetStationStyleFromIdentifier(u8string_view identifier); std::optional GetStyleFromMusicIdentifier(std::string_view identifier); void RCT12AddDefaultObjects(ObjectList& objectList); void AppendRequiredObjects(ObjectList& objectList, ObjectType objectType, const RCT12::EntryList& entryList); +bool IsUserStringID(StringId stringId); static constexpr money32 RCT12_COMPANY_VALUE_ON_FAILED_OBJECTIVE = 0x80000001; diff --git a/src/openrct2/rct2/DATLimits.h b/src/openrct2/rct2/DATLimits.h index 03a4a188da..84943edb22 100644 --- a/src/openrct2/rct2/DATLimits.h +++ b/src/openrct2/rct2/DATLimits.h @@ -12,10 +12,10 @@ namespace RCT2::ObjectLimits { - constexpr const uint8_t MaxCategoriesPerRide = 2; - constexpr const uint8_t MaxRideTypesPerRideEntry = 3; + constexpr uint8_t MaxCategoriesPerRide = 2; + constexpr uint8_t MaxRideTypesPerRideEntry = 3; // The max number of different types of car. // Examples of cars here are the locomotive, tender and carriage of the Miniature Railway. - constexpr const uint8_t MaxCarTypesPerRideEntry = 4; - constexpr const uint8_t MaxShopItemsPerRideEntry = 2; + constexpr uint8_t MaxCarTypesPerRideEntry = 4; + constexpr uint8_t MaxShopItemsPerRideEntry = 2; } // namespace RCT2::ObjectLimits diff --git a/src/openrct2/rct2/Limits.h b/src/openrct2/rct2/Limits.h index 909b59a17f..d4889e1a40 100644 --- a/src/openrct2/rct2/Limits.h +++ b/src/openrct2/rct2/Limits.h @@ -13,36 +13,36 @@ namespace RCT2::Limits { using namespace RCT12::Limits; - constexpr const uint8_t MaxStaff = 200; - constexpr const uint8_t MaxBanners = 250; - constexpr const uint8_t MaxTrainsPerRide = 32; - constexpr const uint8_t DowntimeHistorySize = 8; - constexpr const uint16_t MaxEntities = 10000; - constexpr const uint16_t MaxEntitiesRCTCExtended = 15000; // Used in files marked with “classic flag” 0xF - constexpr const uint32_t MaxTileElements = 0x30000; - constexpr const uint16_t MaxAnimatedObjects = 2000; - constexpr const uint8_t MaxResearchedRideTypeQuads = 8; // With 32 bits per uint32_t, this means there is room for - // 256 types. - constexpr const uint8_t MaxResearchedRideEntryQuads = 8; // With 32 bits per uint32_t, this means there is room for - // 256 entries. - constexpr const uint8_t MaxResearchedSceneryItemQuads = 56; + constexpr uint8_t MaxStaff = 200; + constexpr uint8_t MaxBanners = 250; + constexpr uint8_t MaxTrainsPerRide = 32; + constexpr uint8_t DowntimeHistorySize = 8; + constexpr uint16_t MaxEntities = 10000; + constexpr uint16_t MaxEntitiesRCTCExtended = 15000; // Used in files marked with “classic flag” 0xF + constexpr uint32_t MaxTileElements = 0x30000; + constexpr uint16_t MaxAnimatedObjects = 2000; + constexpr uint8_t MaxResearchedRideTypeQuads = 8; // With 32 bits per uint32_t, this means there is room for + // 256 types. + constexpr uint8_t MaxResearchedRideEntryQuads = 8; // With 32 bits per uint32_t, this means there is room for + // 256 entries. + constexpr uint8_t MaxResearchedSceneryItemQuads = 56; constexpr const uint16_t MaxResearchedSceneryItems = (MaxResearchedSceneryItemQuads * 32); // There are 32 // bits per // quad. - constexpr const uint16_t MaxResearchItems = 500; + constexpr uint16_t MaxResearchItems = 500; constexpr uint16_t TD6MaxTrackElements = 8192; - constexpr const uint8_t MaxSmallSceneryObjects = 252; - constexpr const uint8_t MaxLargeSceneryObjects = 128; - constexpr const uint8_t MaxWallSceneryObjects = 128; - constexpr const uint8_t MaxBannerObjects = 32; - constexpr const uint8_t MaxPathObjects = 16; - constexpr const uint8_t MaxPathAdditionObjects = 15; - constexpr const uint8_t MaxSceneryGroupObjects = 19; - constexpr const uint8_t MaxParkEntranceObjects = 1; - constexpr const uint8_t MaxWaterObjects = 1; - constexpr const uint8_t MaxScenarioTextObjects = 1; - constexpr const uint8_t RideTypeCount = 91; - constexpr const uint16_t MaxMapSize = 256; + constexpr uint8_t MaxSmallSceneryObjects = 252; + constexpr uint8_t MaxLargeSceneryObjects = 128; + constexpr uint8_t MaxWallSceneryObjects = 128; + constexpr uint8_t MaxBannerObjects = 32; + constexpr uint8_t MaxPathObjects = 16; + constexpr uint8_t MaxPathAdditionObjects = 15; + constexpr uint8_t MaxSceneryGroupObjects = 19; + constexpr uint8_t MaxParkEntranceObjects = 1; + constexpr uint8_t MaxWaterObjects = 1; + constexpr uint8_t MaxScenarioTextObjects = 1; + constexpr uint8_t RideTypeCount = 91; + constexpr uint16_t MaxMapSize = 256; } // namespace RCT2::Limits diff --git a/src/openrct2/rct2/RCT2.h b/src/openrct2/rct2/RCT2.h index 08c6d01e8b..387f366a08 100644 --- a/src/openrct2/rct2/RCT2.h +++ b/src/openrct2/rct2/RCT2.h @@ -24,10 +24,10 @@ enum class EditorStep : uint8_t; namespace RCT2 { - constexpr const StringId RCT2_RIDE_STRING_START = 2; + constexpr StringId RCT2_RIDE_STRING_START = 2; // clang-format off - constexpr const uint16_t RCT2_OBJECT_ENTRY_COUNT = + constexpr uint16_t RCT2_OBJECT_ENTRY_COUNT = Limits::MaxRideObjects + Limits::MaxSmallSceneryObjects + Limits::MaxLargeSceneryObjects + @@ -43,7 +43,7 @@ namespace RCT2 static_assert(RCT2_OBJECT_ENTRY_COUNT == 721); // clang-format off - constexpr const int32_t RCT2ObjectEntryGroupCounts[] = { + constexpr int32_t RCT2ObjectEntryGroupCounts[] = { Limits::MaxRideObjects, Limits::MaxSmallSceneryObjects, Limits::MaxLargeSceneryObjects, diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 9bbbb40242..8cf091931d 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -110,11 +110,11 @@ namespace RCT2 ParkLoadResult Load(const u8string& path) override { const auto extension = Path::GetExtension(path); - if (String::Equals(extension, ".sc6", true)) + if (String::IEquals(extension, ".sc6")) { return LoadScenario(path); } - if (String::Equals(extension, ".sv6", true)) + if (String::IEquals(extension, ".sv6")) { return LoadSavedGame(path); } @@ -172,7 +172,7 @@ namespace RCT2 if (!path.empty()) { auto extension = Path::GetExtension(path); - _isSV7 = _stricmp(extension.c_str(), ".sv7") == 0; + _isSV7 = String::IEquals(extension, ".sv7"); } chunkReader.ReadChunk(&_s6.Objects, sizeof(_s6.Objects)); @@ -586,8 +586,8 @@ namespace RCT2 // clang-format on } else if ( - String::Equals(gScenarioFileName, "Six Flags Magic Mountain.SC6", true) - || String::Equals(gScenarioFileName, "six flags magic mountain.sea", true)) + String::IEquals(gScenarioFileName, "Six Flags Magic Mountain.SC6") + || String::IEquals(gScenarioFileName, "six flags magic mountain.sea")) { // clang-format off FixLandOwnershipTilesWithOwnership( @@ -611,8 +611,8 @@ namespace RCT2 OWNERSHIP_OWNED); } else if ( - String::Equals(gScenarioFileName, "N America - Extreme Hawaiian Island.SC6", true) - || String::Equals(gScenarioFileName, "n america - extreme hawaiian island.sea", true)) + String::IEquals(gScenarioFileName, "N America - Extreme Hawaiian Island.SC6") + || String::IEquals(gScenarioFileName, "n america - extreme hawaiian island.sea")) { FixLandOwnershipTilesWithOwnership( { @@ -647,8 +647,8 @@ namespace RCT2 { return; } - if (String::Equals(_s6.ScenarioFilename, "Infernal Views.SC6", true) - || String::Equals(_s6.ScenarioFilename, "infernal views.sea", true)) + if (String::IEquals(_s6.ScenarioFilename, "Infernal Views.SC6") + || String::IEquals(_s6.ScenarioFilename, "infernal views.sea")) { auto surfaceElement = MapGetSurfaceElementAt(TileCoordsXY{ 45, 62 }); @@ -656,7 +656,7 @@ namespace RCT2 } else if ( String::Equals(_s6.ScenarioFilename, "Six Flags Holland.SC6") - || String::Equals(_s6.ScenarioFilename, "six flags holland.sea", true)) + || String::IEquals(_s6.ScenarioFilename, "six flags holland.sea")) { auto surfaceElement = MapGetSurfaceElementAt(TileCoordsXY{ 126, 73 }); diff --git a/src/openrct2/rct2/T6Importer.cpp b/src/openrct2/rct2/T6Importer.cpp index bf13650ef2..5a767f0357 100644 --- a/src/openrct2/rct2/T6Importer.cpp +++ b/src/openrct2/rct2/T6Importer.cpp @@ -44,7 +44,7 @@ namespace RCT2 bool Load(const utf8* path) override { const auto extension = Path::GetExtension(path); - if (String::Equals(extension, ".td6", true)) + if (String::IEquals(extension, ".td6")) { _name = GetNameFromTrackPath(path); auto fs = OpenRCT2::FileStream(path, OpenRCT2::FILE_MODE_OPEN); diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index e37c8101a4..03d2e600e1 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -91,7 +91,7 @@ RideMode& operator++(RideMode& d, int) return d = (d == RideMode::Count) ? RideMode::Normal : static_cast(static_cast(d) + 1); } -static constexpr const int32_t RideInspectionInterval[] = { +static constexpr int32_t RideInspectionInterval[] = { 10, 20, 30, 45, 60, 120, 0, 0, }; @@ -1038,6 +1038,20 @@ RideStation& Ride::GetStation(StationIndex stationIndex) return stations[stationIndex.ToUnderlying()]; } +StationIndex::UnderlyingType Ride::GetStationNumber(StationIndex in) const +{ + StationIndex::UnderlyingType nullStationsSeen{ 0 }; + for (size_t i = 0; i < in.ToUnderlying(); i++) + { + if (stations[i].Start.IsNull()) + { + nullStationsSeen++; + } + } + + return in.ToUnderlying() - nullStationsSeen + 1; +} + const RideStation& Ride::GetStation(StationIndex stationIndex) const { return stations[stationIndex.ToUnderlying()]; @@ -1204,7 +1218,7 @@ void Ride::UpdatePopularity(const uint8_t pop_amount) } /** rct2: 0x0098DDB8, 0x0098DDBA */ -static constexpr const CoordsXY ride_spiral_slide_main_tile_offset[][4] = { +static constexpr CoordsXY ride_spiral_slide_main_tile_offset[][4] = { { { 32, 32 }, { 0, 32 }, @@ -2257,6 +2271,7 @@ void RideCheckAllReachable() { if (ride.connected_message_throttle != 0) ride.connected_message_throttle--; + if (ride.status != RideStatus::Open || ride.connected_message_throttle != 0) continue; @@ -2293,6 +2308,7 @@ static void RideEntranceExitConnected(Ride& ride) if (station_start.IsNull()) continue; + if (!entrance.IsNull() && !RideEntranceExitIsReachable(entrance)) { // name of ride is parameter of the format string @@ -2344,9 +2360,7 @@ static void RideShopConnected(const Ride& ride) auto track_type = trackElement->GetTrackType(); auto ride2 = GetRide(trackElement->GetRideIndex()); if (ride2 == nullptr) - { return; - } const auto& ted = GetTrackElementDescriptor(track_type); uint8_t entrance_directions = std::get<0>(ted.SequenceProperties) & 0xF; @@ -2391,9 +2405,9 @@ static void RideShopConnected(const Ride& ride) #pragma region Interface -static void RideTrackSetMapTooltip(TileElement* tileElement) +static void RideTrackSetMapTooltip(const TrackElement& trackElement) { - auto rideIndex = tileElement->AsTrack()->GetRideIndex(); + auto rideIndex = trackElement.GetRideIndex(); auto ride = GetRide(rideIndex); if (ride != nullptr) { @@ -2407,134 +2421,129 @@ static void RideTrackSetMapTooltip(TileElement* tileElement) } } -static void RideQueueBannerSetMapTooltip(TileElement* tileElement) +static void RideQueueBannerSetMapTooltip(const PathElement& pathElement) { - auto rideIndex = tileElement->AsPath()->GetRideIndex(); + auto rideIndex = pathElement.GetRideIndex(); auto ride = GetRide(rideIndex); - if (ride != nullptr) - { - auto ft = Formatter(); - ft.Add(STR_RIDE_MAP_TIP); - ride->FormatNameTo(ft); - ride->FormatStatusTo(ft); - auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); - intent.PutExtra(INTENT_EXTRA_FORMATTER, &ft); - ContextBroadcastIntent(&intent); - } + if (ride == nullptr) + return; + + auto ft = Formatter(); + ft.Add(STR_RIDE_MAP_TIP); + ride->FormatNameTo(ft); + ride->FormatStatusTo(ft); + auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); + intent.PutExtra(INTENT_EXTRA_FORMATTER, &ft); + ContextBroadcastIntent(&intent); } -static void RideStationSetMapTooltip(TileElement* tileElement) +static void RideStationSetMapTooltip(const TrackElement& trackElement) { - auto rideIndex = tileElement->AsTrack()->GetRideIndex(); + auto rideIndex = trackElement.GetRideIndex(); auto ride = GetRide(rideIndex); - if (ride != nullptr) - { - auto stationIndex = tileElement->AsTrack()->GetStationIndex(); - for (int32_t i = stationIndex.ToUnderlying(); i >= 0; i--) - if (ride->GetStations()[i].Start.IsNull()) - stationIndex = StationIndex::FromUnderlying(stationIndex.ToUnderlying() - 1); + if (ride == nullptr) + return; - auto ft = Formatter(); - ft.Add(STR_RIDE_MAP_TIP); - ft.Add(ride->num_stations <= 1 ? STR_RIDE_STATION : STR_RIDE_STATION_X); - ride->FormatNameTo(ft); - ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.station).capitalised); - ft.Add(stationIndex.ToUnderlying() + 1); - ride->FormatStatusTo(ft); - auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); - intent.PutExtra(INTENT_EXTRA_FORMATTER, &ft); - ContextBroadcastIntent(&intent); - } + const auto stationIndex = trackElement.GetStationIndex(); + const auto stationNumber = ride->GetStationNumber(stationIndex); + + auto ft = Formatter(); + ft.Add(STR_RIDE_MAP_TIP); + ft.Add(ride->num_stations <= 1 ? STR_RIDE_STATION : STR_RIDE_STATION_X); + ride->FormatNameTo(ft); + ft.Add(GetRideComponentName(ride->GetRideTypeDescriptor().NameConvention.station).capitalised); + ft.Add(stationNumber); + ride->FormatStatusTo(ft); + auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); + intent.PutExtra(INTENT_EXTRA_FORMATTER, &ft); + ContextBroadcastIntent(&intent); } -static void RideEntranceSetMapTooltip(TileElement* tileElement) +static void RideEntranceSetMapTooltip(const EntranceElement& entranceElement) { - auto rideIndex = tileElement->AsEntrance()->GetRideIndex(); + auto rideIndex = entranceElement.GetRideIndex(); auto ride = GetRide(rideIndex); - if (ride != nullptr) - { - // Get the station - auto stationIndex = tileElement->AsEntrance()->GetStationIndex(); - for (int32_t i = stationIndex.ToUnderlying(); i >= 0; i--) - if (ride->GetStations()[i].Start.IsNull()) - stationIndex = StationIndex::FromUnderlying(stationIndex.ToUnderlying() - 1); + if (ride == nullptr) + return; - if (tileElement->AsEntrance()->GetEntranceType() == ENTRANCE_TYPE_RIDE_ENTRANCE) + if (entranceElement.GetEntranceType() == ENTRANCE_TYPE_RIDE_ENTRANCE) + { + // Get the queue length + int32_t queueLength = 0; + const auto stationIndex = entranceElement.GetStationIndex(); + if (!ride->GetStation(stationIndex).Entrance.IsNull()) { - // Get the queue length - int32_t queueLength = 0; - if (!ride->GetStation(stationIndex).Entrance.IsNull()) - queueLength = ride->GetStation(stationIndex).QueueLength; + queueLength = ride->GetStation(stationIndex).QueueLength; + } - auto ft = Formatter(); - ft.Add(STR_RIDE_MAP_TIP); - ft.Add(ride->num_stations <= 1 ? STR_RIDE_ENTRANCE : STR_RIDE_STATION_X_ENTRANCE); - ride->FormatNameTo(ft); + auto ft = Formatter(); + ft.Add(STR_RIDE_MAP_TIP); + ft.Add(ride->num_stations <= 1 ? STR_RIDE_ENTRANCE : STR_RIDE_STATION_X_ENTRANCE); + ride->FormatNameTo(ft); - // String IDs have an extra pop16 for some reason - ft.Increment(sizeof(uint16_t)); + // String IDs have an extra pop16 for some reason + ft.Increment(sizeof(uint16_t)); - ft.Add(stationIndex.ToUnderlying() + 1); - if (queueLength == 0) - { + const auto stationNumber = ride->GetStationNumber(stationIndex); + ft.Add(stationNumber); + + switch (queueLength) + { + case 0: ft.Add(STR_QUEUE_EMPTY); - } - else if (queueLength == 1) - { + break; + case 1: ft.Add(STR_QUEUE_ONE_PERSON); - } - else - { + break; + default: ft.Add(STR_QUEUE_PEOPLE); - } - ft.Add(queueLength); - auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); - intent.PutExtra(INTENT_EXTRA_FORMATTER, &ft); - ContextBroadcastIntent(&intent); + break; } - else - { - // Get the station - stationIndex = tileElement->AsEntrance()->GetStationIndex(); - for (int32_t i = stationIndex.ToUnderlying(); i >= 0; i--) - if (ride->GetStations()[i].Start.IsNull()) - stationIndex = StationIndex::FromUnderlying(stationIndex.ToUnderlying() - 1); + ft.Add(queueLength); - auto ft = Formatter(); - ft.Add(ride->num_stations <= 1 ? STR_RIDE_EXIT : STR_RIDE_STATION_X_EXIT); - ride->FormatNameTo(ft); + auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); + intent.PutExtra(INTENT_EXTRA_FORMATTER, &ft); + ContextBroadcastIntent(&intent); + } + else + { + auto ft = Formatter(); + ft.Add(ride->num_stations <= 1 ? STR_RIDE_EXIT : STR_RIDE_STATION_X_EXIT); + ride->FormatNameTo(ft); - // String IDs have an extra pop16 for some reason - ft.Increment(sizeof(uint16_t)); + // String IDs have an extra pop16 for some reason + ft.Increment(sizeof(uint16_t)); - ft.Add(stationIndex.ToUnderlying() + 1); - auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); - intent.PutExtra(INTENT_EXTRA_FORMATTER, &ft); - ContextBroadcastIntent(&intent); - } + const auto stationIndex = entranceElement.GetStationIndex(); + const auto stationNumber = ride->GetStationNumber(stationIndex); + ft.Add(stationNumber); + auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); + intent.PutExtra(INTENT_EXTRA_FORMATTER, &ft); + ContextBroadcastIntent(&intent); } } -void RideSetMapTooltip(TileElement* tileElement) +void RideSetMapTooltip(const TileElement& tileElement) { - if (tileElement->GetType() == TileElementType::Entrance) + if (tileElement.GetType() == TileElementType::Entrance) { - RideEntranceSetMapTooltip(tileElement); + RideEntranceSetMapTooltip(*tileElement.AsEntrance()); } - else if (tileElement->GetType() == TileElementType::Track) + else if (tileElement.GetType() == TileElementType::Track) { - if (tileElement->AsTrack()->IsStation()) + const auto* trackElement = tileElement.AsTrack(); + if (trackElement->IsStation()) { - RideStationSetMapTooltip(tileElement); + RideStationSetMapTooltip(*trackElement); } else { - RideTrackSetMapTooltip(tileElement); + RideTrackSetMapTooltip(*trackElement); } } - else if (tileElement->GetType() == TileElementType::Path) + else if (tileElement.GetType() == TileElementType::Path) { - RideQueueBannerSetMapTooltip(tileElement); + RideQueueBannerSetMapTooltip(*tileElement.AsPath()); } } @@ -2593,7 +2602,7 @@ static StationIndexWithMessage RideModeCheckStationPresent(const Ride& ride) if (stationIndex.IsNull()) { const auto& rtd = ride.GetRideTypeDescriptor(); - if (rtd.HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (!rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) return { StationIndex::GetNull(), STR_NOT_YET_CONSTRUCTED }; if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE)) @@ -3155,7 +3164,7 @@ static int32_t count_free_misc_sprite_slots() return std::max(0, miscSpriteCount + remainingSpriteCount - 300); } -static constexpr const CoordsXY word_9A3AB4[4] = { +static constexpr CoordsXY word_9A3AB4[4] = { { 0, 0 }, { 0, -96 }, { -96, -96 }, @@ -3163,7 +3172,7 @@ static constexpr const CoordsXY word_9A3AB4[4] = { }; // clang-format off -static constexpr const CoordsXY word_9A2A60[] = { +static constexpr CoordsXY word_9A2A60[] = { { 0, 16 }, { 16, 31 }, { 31, 16 }, diff --git a/src/openrct2/ride/Ride.h b/src/openrct2/ride/Ride.h index 401cbda3bb..63d673fe1b 100644 --- a/src/openrct2/ride/Ride.h +++ b/src/openrct2/ride/Ride.h @@ -94,9 +94,9 @@ enum class RideClassification namespace ShelteredSectionsBits { - constexpr const uint8_t NumShelteredSectionsMask = 0b00011111; - constexpr const uint8_t RotatingWhileSheltered = 0b00100000; - constexpr const uint8_t BankingWhileSheltered = 0b01000000; + constexpr uint8_t NumShelteredSectionsMask = 0b00011111; + constexpr uint8_t RotatingWhileSheltered = 0b00100000; + constexpr uint8_t BankingWhileSheltered = 0b01000000; }; // namespace ShelteredSectionsBits struct TrackDesign; @@ -293,6 +293,10 @@ public: const std::array& GetStations() const; StationIndex GetStationIndex(const RideStation* station) const; + // Returns the logical station number from the given station. Index 0 = station 1, index 1 = station 2. It accounts for gaps + // in the station array. e.g. if only slot 0 and 2 are in use, index 2 returns 2 instead of 3. + StationIndex::UnderlyingType GetStationNumber(StationIndex in) const; + public: uint16_t inversions; uint16_t holes; @@ -1027,7 +1031,7 @@ void RideMeasurementsUpdate(); void RideBreakdownAddNewsItem(const Ride& ride); Staff* RideFindClosestMechanic(const Ride& ride, int32_t forInspection); int32_t RideInitialiseConstructionWindow(Ride& ride); -void RideSetMapTooltip(TileElement* tileElement); +void RideSetMapTooltip(const TileElement& tileElement); void RidePrepareBreakdown(Ride& ride, int32_t breakdownReason); TileElement* RideGetStationStartTrackElement(const Ride& ride, StationIndex stationIndex); TileElement* RideGetStationExitElement(const CoordsXYZ& elementPos); diff --git a/src/openrct2/ride/RideConstruction.cpp b/src/openrct2/ride/RideConstruction.cpp index 5395cdbcc5..9ab451c44b 100644 --- a/src/openrct2/ride/RideConstruction.cpp +++ b/src/openrct2/ride/RideConstruction.cpp @@ -357,7 +357,7 @@ void RideClearBlockedTiles(const Ride& ride) if (footpathElement == nullptr) continue; - footpathElement->AsPath()->SetIsBlockedByVehicle(false); + footpathElement->SetIsBlockedByVehicle(false); } } } @@ -595,7 +595,7 @@ static void ride_construction_reset_current_piece() const auto& rtd = ride->GetRideTypeDescriptor(); - if (!rtd.HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK) || ride->num_stations == 0) + if (rtd.HasFlag(RIDE_TYPE_FLAG_HAS_TRACK) || ride->num_stations == 0) { _currentTrackCurve = rtd.StartTrackPiece | RideConstructionSpecialPieceSelected; _currentTrackSlopeEnd = 0; @@ -648,7 +648,7 @@ void RideConstructionSetDefaultNextPiece() tileElement = trackBeginEnd.begin_element; trackType = tileElement->AsTrack()->GetTrackType(); - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) { ride_construction_reset_current_piece(); return; @@ -1055,7 +1055,7 @@ bool RideModify(const CoordsXYE& input) _rideConstructionNextArrowPulse = 0; gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_ARROW; - if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) { WindowRideConstructionUpdateActiveElements(); return true; diff --git a/src/openrct2/ride/RideData.cpp b/src/openrct2/ride/RideData.cpp index 0e42cbbed9..f7800fb5c3 100644 --- a/src/openrct2/ride/RideData.cpp +++ b/src/openrct2/ride/RideData.cpp @@ -243,7 +243,7 @@ const StringId RideModeNames[] = { }; // clang-format on -constexpr const RideTypeDescriptor RideTypeDescriptors[RIDE_TYPE_COUNT] = { +constexpr RideTypeDescriptor RideTypeDescriptors[RIDE_TYPE_COUNT] = { /* RIDE_TYPE_SPIRAL_ROLLER_COASTER */ SpiralRollerCoasterRTD, /* RIDE_TYPE_STAND_UP_ROLLER_COASTER */ StandUpRollerCoasterRTD, /* RIDE_TYPE_SUSPENDED_SWINGING_COASTER */ SuspendedSwingingCoasterRTD, diff --git a/src/openrct2/ride/RideData.h b/src/openrct2/ride/RideData.h index f92fa682a6..977f7544c2 100644 --- a/src/openrct2/ride/RideData.h +++ b/src/openrct2/ride/RideData.h @@ -381,7 +381,6 @@ enum ride_type_flags : uint64_t // track of the water coaster RIDE_TYPE_FLAG_NO_VEHICLES = (1uLL << 13), // used only by maze, spiral slide and shops RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS = (1uLL << 14), - RIDE_TYPE_FLAG_HAS_NO_TRACK = (1uLL << 15), RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL = (1uLL << 16), // Set by flat rides where the vehicle is integral to the structure, like // Merry-go-round and swinging ships. (Contrast with rides like dodgems.) RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY = (1uLL << 17), @@ -435,20 +434,20 @@ enum ride_type_flags : uint64_t }; // Set on ride types that have a main colour, additional colour and support colour. -constexpr const uint64_t RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS = RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN +constexpr uint64_t RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS = RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS; // Set on _all_ roller coaster ride types, including the _ALT types used for constructing upside down. -constexpr const uint64_t RIDE_TYPE_FLAGS_COMMON_COASTER = RIDE_TYPE_FLAG_HAS_G_FORCES | RIDE_TYPE_FLAG_HAS_DATA_LOGGING +constexpr uint64_t RIDE_TYPE_FLAGS_COMMON_COASTER = RIDE_TYPE_FLAG_HAS_G_FORCES | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_DROPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_CHECK_FOR_STALLING | RIDE_TYPE_FLAG_HAS_TRACK | RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS; // Set on all roller coaster ride types, excluding the _ALT types used for constructing upside down. -constexpr const uint64_t RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT = RIDE_TYPE_FLAG_SHOW_IN_TRACK_DESIGNER - | RIDE_TYPE_FLAG_HAS_AIR_TIME | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT; +constexpr uint64_t RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT = RIDE_TYPE_FLAG_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG_HAS_AIR_TIME + | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT; // clang-format off -constexpr const RideComponentName RideComponentNames[] = +constexpr RideComponentName RideComponentNames[] = { { STR_RIDE_COMPONENT_TRAIN, STR_RIDE_COMPONENT_TRAIN_PLURAL, STR_RIDE_COMPONENT_TRAIN_CAPITALISED, STR_RIDE_COMPONENT_TRAIN_CAPITALISED_PLURAL, STR_RIDE_COMPONENT_TRAIN_COUNT, STR_RIDE_COMPONENT_TRAIN_COUNT_PLURAL, STR_RIDE_COMPONENT_TRAIN_NO }, { STR_RIDE_COMPONENT_BOAT, STR_RIDE_COMPONENT_BOAT_PLURAL, STR_RIDE_COMPONENT_BOAT_CAPITALISED, STR_RIDE_COMPONENT_BOAT_CAPITALISED_PLURAL, STR_RIDE_COMPONENT_BOAT_COUNT, STR_RIDE_COMPONENT_BOAT_COUNT_PLURAL, STR_RIDE_COMPONENT_BOAT_NO }, @@ -486,7 +485,7 @@ constexpr const RideComponentName& GetRideComponentName(const RideComponentType return RideComponentNames[EnumValue(type)]; } -constexpr const uint64_t AllRideModesAvailable = EnumsToFlags( +constexpr uint64_t AllRideModesAvailable = EnumsToFlags( RideMode::ContinuousCircuit, RideMode::ContinuousCircuitBlockSectioned, RideMode::ReverseInclineLaunchedShuttle, RideMode::PoweredLaunchPasstrough, RideMode::Shuttle, RideMode::Normal, RideMode::BoatHire, RideMode::UpwardLaunch, RideMode::RotatingLift, RideMode::StationToStation, RideMode::SingleRidePerAdmission, RideMode::UnlimitedRidesPerAdmission, @@ -504,7 +503,7 @@ extern const uint16_t RideFilmLength[3]; extern const StringId RideModeNames[static_cast(RideMode::Count)]; // clang-format off -constexpr const RideTypeDescriptor DummyRTD = +constexpr RideTypeDescriptor DummyRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_NONE), diff --git a/src/openrct2/ride/Track.h b/src/openrct2/ride/Track.h index a598ae98f4..4a2f945986 100644 --- a/src/openrct2/ride/Track.h +++ b/src/openrct2/ride/Track.h @@ -16,11 +16,11 @@ #include -constexpr const uint32_t RideConstructionSpecialPieceSelected = 0x10000; +constexpr uint32_t RideConstructionSpecialPieceSelected = 0x10000; -constexpr const uint8_t kRCT2DefaultBlockBrakeSpeed = 2; -constexpr const int32_t kBlockBrakeBaseSpeed = 0x20364; -constexpr const int32_t kBlockBrakeSpeedOffset = kBlockBrakeBaseSpeed - (kRCT2DefaultBlockBrakeSpeed << 16); +constexpr uint8_t kRCT2DefaultBlockBrakeSpeed = 2; +constexpr int32_t kBlockBrakeBaseSpeed = 0x20364; +constexpr int32_t kBlockBrakeSpeedOffset = kBlockBrakeBaseSpeed - (kRCT2DefaultBlockBrakeSpeed << 16); using track_type_t = uint16_t; using roll_type_t = uint8_t; @@ -454,8 +454,8 @@ namespace TrackElemType constexpr track_type_t PoweredLift = 182; constexpr track_type_t LeftLargeHalfLoopUp = 183; constexpr track_type_t RightLargeHalfLoopUp = 184; - constexpr track_type_t RightLargeHalfLoopDown = 185; - constexpr track_type_t LeftLargeHalfLoopDown = 186; + constexpr track_type_t LeftLargeHalfLoopDown = 185; + constexpr track_type_t RightLargeHalfLoopDown = 186; constexpr track_type_t LeftFlyerTwistUp = 187; constexpr track_type_t RightFlyerTwistUp = 188; constexpr track_type_t LeftFlyerTwistDown = 189; @@ -574,12 +574,12 @@ namespace TrackElemType constexpr track_type_t LeftFlyerLargeHalfLoopUninvertedUp = 283; constexpr track_type_t RightFlyerLargeHalfLoopUninvertedUp = 284; - constexpr track_type_t RightFlyerLargeHalfLoopInvertedDown = 285; - constexpr track_type_t LeftFlyerLargeHalfLoopInvertedDown = 286; + constexpr track_type_t LeftFlyerLargeHalfLoopInvertedDown = 285; + constexpr track_type_t RightFlyerLargeHalfLoopInvertedDown = 286; constexpr track_type_t LeftFlyerLargeHalfLoopInvertedUp = 287; constexpr track_type_t RightFlyerLargeHalfLoopInvertedUp = 288; - constexpr track_type_t RightFlyerLargeHalfLoopUninvertedDown = 289; - constexpr track_type_t LeftFlyerLargeHalfLoopUninvertedDown = 290; + constexpr track_type_t LeftFlyerLargeHalfLoopUninvertedDown = 289; + constexpr track_type_t RightFlyerLargeHalfLoopUninvertedDown = 290; constexpr track_type_t FlyerHalfLoopInvertedUp = 291; constexpr track_type_t FlyerHalfLoopUninvertedDown = 292; diff --git a/src/openrct2/ride/TrackData.cpp b/src/openrct2/ride/TrackData.cpp index d0efecd64f..381261a677 100644 --- a/src/openrct2/ride/TrackData.cpp +++ b/src/openrct2/ride/TrackData.cpp @@ -291,24 +291,24 @@ static constexpr TrackCoordinates _trackCoordinates[] = { { 0, 1, 0, -112, -64, 64 }, // TrackElemType::RightCorkscrewDown { 0, 2, 0, 216, -32, -32 }, // TrackElemType::LeftMediumHalfLoopUp { 0, 2, 0, 216, -32, 32 }, // TrackElemType::RightMediumHalfLoopUp - { 0, 2, 0, -216, 32, -32 }, // TrackElemType::RightMediumHalfLoopDown - { 0, 2, 0, -216, 32, 32 }, // TrackElemType::LeftMediumHalfLoopDown + { 0, 2, 0, -216, 32, -32 }, // TrackElemType::LeftMediumHalfLoopDown + { 0, 2, 0, -216, 32, 32 }, // TrackElemType::RightMediumHalfLoopDown { 0, 0, 0, 56, -64, 0 }, // TrackElemType::LeftZeroGRollUp { 0, 0, 0, 56, -64, 0 }, // TrackElemType::RightZeroGRollUp - { 0, 0, 0, -56,-64, 0 }, // TrackElemType::RightZeroGRollDown { 0, 0, 0, -56,-64, 0 }, // TrackElemType::LeftZeroGRollDown + { 0, 0, 0, -56,-64, 0 }, // TrackElemType::RightZeroGRollDown { 0, 0, 0, 152, -96, 0 }, // TrackElemType::LeftLargeZeroGRollUp { 0, 0, 0, 152, -96, 0 }, // TrackElemType::RightLargeZeroGRollUp - { 0, 0, 0, -152,-96, 0 }, // TrackElemType::RightLargeZeroGRollDown { 0, 0, 0, -152,-96, 0 }, // TrackElemType::LeftLargeZeroGRollDown + { 0, 0, 0, -152,-96, 0 }, // TrackElemType::RightLargeZeroGRollDown { 0, 2, 0, 248, -64, -32 }, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp { 0, 2, 0, 248, -64, 32 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedUp - { 0, 2, 0, -248, 64, -32 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown - { 0, 2, 0, -248, 64, 32 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + { 0, 2, 0, -248, 64, -32 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + { 0, 2, 0, -248, 64, 32 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown { 0, 2, 0, 280, -64, -32 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp { 0, 2, 0, 280, -64, 32 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - { 0, 2, 0, -280, 64, -32 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown - { 0, 2, 0, -280, 64, 32 }, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + { 0, 2, 0, -280, 64, -32 }, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + { 0, 2, 0, -280, 64, 32 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown { 0, 2, 0, 152, -32, 0 }, // TrackElemType::FlyerHalfLoopInvertedUp { 0, 2, 0, -152, 32, 0 }, // TrackElemType::FlyerHalfLoopUninvertedDown { 0, 7, 0, 48, -64, -32 }, // TrackElemType::LeftEighthToDiagUp25 @@ -633,25 +633,25 @@ static constexpr uint8_t TrackSequenceProperties[][MaxSequencesPerPiece] = { { 0 }, // TrackElemType::RightCorkscrewDown { 0 }, // TrackElemType::LeftMediumHalfLoopUp { 0 }, // TrackElemType::RightMediumHalfLoopUp - { 0 }, // TrackElemType::RightMediumHalfLoopDown { 0 }, // TrackElemType::LeftMediumHalfLoopDown + { 0 }, // TrackElemType::RightMediumHalfLoopDown { 0 }, // TrackElemType::LeftZeroGRollUp { 0 }, // TrackElemType::RightZeroGRollUp - { 0 }, // TrackElemType::RightZeroGRollDown { 0 }, // TrackElemType::LeftZeroGRollDown + { 0 }, // TrackElemType::RightZeroGRollDown { 0 }, // TrackElemType::LeftLargeZeroGRollUp { 0 }, // TrackElemType::RightLargeZeroGRollUp - { 0 }, // TrackElemType::RightLargeZeroGRollDown { 0 }, // TrackElemType::LeftLargeZeroGRollDown + { 0 }, // TrackElemType::RightLargeZeroGRollDown /* LeftFlyerLargeHalfLoopUninvertedUp */ { 0 }, /* RightFlyerLargeHalfLoopUninvertedUp */ { 0 }, - /* RightFlyerLargeHalfLoopInvertedDown */ { 0 }, /* LeftFlyerLargeHalfLoopInvertedDown */ { 0 }, + /* RightFlyerLargeHalfLoopInvertedDown */ { 0 }, /* LeftFlyerLargeHalfLoopInvertedUp */ { 0 }, /* RightFlyerLargeHalfLoopInvertedUp */ { 0 }, - /* RightFlyerLargeHalfLoopUninvertedDown */ { 0 }, /* LeftFlyerLargeHalfLoopUninvertedDown */ { 0 }, + /* RightFlyerLargeHalfLoopUninvertedDown */ { 0 }, /* FlyerHalfLoopInvertedUp */ { 0 }, /* FlyerHalfLoopUninvertedUp */ { 0 }, { 0 }, // TrackElemType::LeftEighthToDiagUp25 @@ -708,82 +708,82 @@ static constexpr PreviewTrack TrackBlocks000[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks001[] = { +static constexpr PreviewTrack TrackBlocks001[] = { { 0, 0, 0, 0, 0,{ 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks002[] = { +static constexpr PreviewTrack TrackBlocks002[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks003[] = { +static constexpr PreviewTrack TrackBlocks003[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks004[] = { +static constexpr PreviewTrack TrackBlocks004[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks005[] = { +static constexpr PreviewTrack TrackBlocks005[] = { { 0, 0, 0, 0, 64, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks006[] = { +static constexpr PreviewTrack TrackBlocks006[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks007[] = { +static constexpr PreviewTrack TrackBlocks007[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks008[] = { +static constexpr PreviewTrack TrackBlocks008[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks009[] = { +static constexpr PreviewTrack TrackBlocks009[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks010[] = { +static constexpr PreviewTrack TrackBlocks010[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks011[] = { +static constexpr PreviewTrack TrackBlocks011[] = { { 0, 0, 0, 0, 64, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks012[] = { +static constexpr PreviewTrack TrackBlocks012[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks013[] = { +static constexpr PreviewTrack TrackBlocks013[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks014[] = { +static constexpr PreviewTrack TrackBlocks014[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks015[] = { +static constexpr PreviewTrack TrackBlocks015[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks016[] = { +static constexpr PreviewTrack TrackBlocks016[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0111, 0 }, 0 }, @@ -794,7 +794,7 @@ static constexpr const PreviewTrack TrackBlocks016[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks017[] = { +static constexpr PreviewTrack TrackBlocks017[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b1011, 0 }, 0 }, @@ -805,27 +805,27 @@ static constexpr const PreviewTrack TrackBlocks017[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks018[] = { +static constexpr PreviewTrack TrackBlocks018[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks019[] = { +static constexpr PreviewTrack TrackBlocks019[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks020[] = { +static constexpr PreviewTrack TrackBlocks020[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks021[] = { +static constexpr PreviewTrack TrackBlocks021[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks022[] = { +static constexpr PreviewTrack TrackBlocks022[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0111, 0 }, 0 }, @@ -836,7 +836,7 @@ static constexpr const PreviewTrack TrackBlocks022[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks023[] = { +static constexpr PreviewTrack TrackBlocks023[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b1011, 0 }, 0 }, @@ -847,57 +847,57 @@ static constexpr const PreviewTrack TrackBlocks023[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks024[] = { +static constexpr PreviewTrack TrackBlocks024[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks025[] = { +static constexpr PreviewTrack TrackBlocks025[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks026[] = { +static constexpr PreviewTrack TrackBlocks026[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks027[] = { +static constexpr PreviewTrack TrackBlocks027[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks028[] = { +static constexpr PreviewTrack TrackBlocks028[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks029[] = { +static constexpr PreviewTrack TrackBlocks029[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks030[] = { +static constexpr PreviewTrack TrackBlocks030[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks031[] = { +static constexpr PreviewTrack TrackBlocks031[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks032[] = { +static constexpr PreviewTrack TrackBlocks032[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks033[] = { +static constexpr PreviewTrack TrackBlocks033[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks034[] = { +static constexpr PreviewTrack TrackBlocks034[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, { 1, 0, -32, 16, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 16, { 0b0111, 0b0100 }, 0 }, @@ -908,7 +908,7 @@ static constexpr const PreviewTrack TrackBlocks034[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks035[] = { +static constexpr PreviewTrack TrackBlocks035[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, { 1, 0, 32, 16, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 16, { 0b1011, 0b1000 }, 0 }, @@ -919,7 +919,7 @@ static constexpr const PreviewTrack TrackBlocks035[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks036[] = { +static constexpr PreviewTrack TrackBlocks036[] = { { 0, 0, 0, 48, 16, { 0b1111, 0b0011 }, 0 }, { 1, 0, -32, 48, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 32, 16, { 0b0111, 0b0001 }, 0 }, @@ -930,7 +930,7 @@ static constexpr const PreviewTrack TrackBlocks036[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks037[] = { +static constexpr PreviewTrack TrackBlocks037[] = { { 0, 0, 0, 48, 16, { 0b1111, 0b0011 }, 0 }, { 1, 0, 32, 48, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 32, 16, { 0b1011, 0b0010 }, 0 }, @@ -941,7 +941,7 @@ static constexpr const PreviewTrack TrackBlocks037[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks038[] = { +static constexpr PreviewTrack TrackBlocks038[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b0111, 0 }, 0 }, { 2, -32, -32, 0, 0, { 0b1101, 0 }, 0 }, @@ -949,7 +949,7 @@ static constexpr const PreviewTrack TrackBlocks038[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks039[] = { +static constexpr PreviewTrack TrackBlocks039[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1011, 0 }, 0 }, { 2, -32, 32, 0, 0, { 0b1110, 0 }, 0 }, @@ -957,7 +957,7 @@ static constexpr const PreviewTrack TrackBlocks039[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks040[] = { +static constexpr PreviewTrack TrackBlocks040[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 16, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 96, { 0b0010, 0 }, 0 }, @@ -971,7 +971,7 @@ static constexpr const PreviewTrack TrackBlocks040[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks041[] = { +static constexpr PreviewTrack TrackBlocks041[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 16, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 96, { 0b0001, 0 }, 0 }, @@ -985,7 +985,7 @@ static constexpr const PreviewTrack TrackBlocks041[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks042[] = { +static constexpr PreviewTrack TrackBlocks042[] = { { 0, 0, 0, 0, 0, { 0b0111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0010, 0 }, 0 }, @@ -993,7 +993,7 @@ static constexpr const PreviewTrack TrackBlocks042[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks043[] = { +static constexpr PreviewTrack TrackBlocks043[] = { { 0, 0, 0, 0, 0, { 0b1011, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, 0 }, @@ -1001,7 +1001,7 @@ static constexpr const PreviewTrack TrackBlocks043[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks044[] = { +static constexpr PreviewTrack TrackBlocks044[] = { { 0, 0, 0, 0, 0, { 0b0111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0010, 0 }, 0 }, @@ -1009,7 +1009,7 @@ static constexpr const PreviewTrack TrackBlocks044[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks045[] = { +static constexpr PreviewTrack TrackBlocks045[] = { { 0, 0, 0, 0, 0, { 0b1011, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, 0 }, @@ -1017,7 +1017,7 @@ static constexpr const PreviewTrack TrackBlocks045[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks046[] = { +static constexpr PreviewTrack TrackBlocks046[] = { { 0, 0, 0, 0, 16, { 0b0111, 0b0100 }, 0 }, { 1, 0, -32, 16, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 0, { 0b0010, 0 }, 0 }, @@ -1025,7 +1025,7 @@ static constexpr const PreviewTrack TrackBlocks046[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks047[] = { +static constexpr PreviewTrack TrackBlocks047[] = { { 0, 0, 0, 0, 16, { 0b1011, 0b1000 }, 0 }, { 1, 0, 32, 16, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 0, { 0b0001, 0 }, 0 }, @@ -1033,7 +1033,7 @@ static constexpr const PreviewTrack TrackBlocks047[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks048[] = { +static constexpr PreviewTrack TrackBlocks048[] = { { 0, 0, 0, 16, 16,{ 0b0111, 0b0011 }, 0 }, { 1, 0, -32, 16, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 0, { 0b0010, 0 }, 0 }, @@ -1041,7 +1041,7 @@ static constexpr const PreviewTrack TrackBlocks048[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks049[] = { +static constexpr PreviewTrack TrackBlocks049[] = { { 0, 0, 0, 16, 16, { 0b1011, 0b0011 }, 0 }, { 1, 0, 32, 16, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 0, { 0b0001, 0 }, 0 }, @@ -1049,45 +1049,45 @@ static constexpr const PreviewTrack TrackBlocks049[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks050[] = { +static constexpr PreviewTrack TrackBlocks050[] = { { 0, 0, 0, 0, 0, { 0b0111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks051[] = { +static constexpr PreviewTrack TrackBlocks051[] = { { 0, 0, 0, 0, 0, { 0b1011, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks052[] = { +static constexpr PreviewTrack TrackBlocks052[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, 16, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks053[] = { +static constexpr PreviewTrack TrackBlocks053[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, 16, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks054[] = { +static constexpr PreviewTrack TrackBlocks054[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, -16, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, -16, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks055[] = { +static constexpr PreviewTrack TrackBlocks055[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, -16, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, -16, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks056[] = { +static constexpr PreviewTrack TrackBlocks056[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 16, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 96,{ 0b0011, 0 }, 0 }, @@ -1095,7 +1095,7 @@ static constexpr const PreviewTrack TrackBlocks056[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks057[] = { +static constexpr PreviewTrack TrackBlocks057[] = { { 0, 0, 0, -32, 32, { 0b1111, 0 }, 0 }, { 1, -32, 0, -120, 96,{ 0b0011, 0 }, 0 }, { 2, 0, 0, -136, 16, { 0b1111, 0b1100 }, 0 }, @@ -1103,55 +1103,55 @@ static constexpr const PreviewTrack TrackBlocks057[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks058[] = { +static constexpr PreviewTrack TrackBlocks058[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 24, 32, { 0b0111, 0 }, 0 }, { 2, -32, -32, 48, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks059[] = { +static constexpr PreviewTrack TrackBlocks059[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 24, 32, { 0b1011, 0 }, 0 }, { 2, -32, 32, 48, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks060[] = { +static constexpr PreviewTrack TrackBlocks060[] = { { 0, 0, 0, -32, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -56, 32, { 0b0111, 0 }, 0 }, { 2, -32, -32, -80, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks061[] = { +static constexpr PreviewTrack TrackBlocks061[] = { { 0, 0, 0, -32, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -56, 32, { 0b1011, 0 }, 0 }, { 2, -32, 32, -80, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks062[] = { +static constexpr PreviewTrack TrackBlocks062[] = { { 0, 0, 0, 0, 24, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks063[] = { +static constexpr PreviewTrack TrackBlocks063[] = { { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks064[] = { +static constexpr PreviewTrack TrackBlocks064[] = { { 0, 0, 0, 0, 24, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks065[] = { +static constexpr PreviewTrack TrackBlocks065[] = { { 0, 0, 0, 0, 24, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks066[] = { +static constexpr PreviewTrack TrackBlocks066[] = { { 0, 0, 0, 0, 64, { 0b1111, 0 }, 0 }, { 1, -32, -32, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -1164,78 +1164,78 @@ static constexpr const PreviewTrack TrackBlocks066[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks067[] = { +static constexpr PreviewTrack TrackBlocks067[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 32, 0, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_1 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks068[] = { +static constexpr PreviewTrack TrackBlocks068[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks069[] = { +static constexpr PreviewTrack TrackBlocks069[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks070[] = { +static constexpr PreviewTrack TrackBlocks070[] = { { 0, 0, 0, 0, 64, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks071[] = { +static constexpr PreviewTrack TrackBlocks071[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks072[] = { +static constexpr PreviewTrack TrackBlocks072[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks073[] = { +static constexpr PreviewTrack TrackBlocks073[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks074[] = { +static constexpr PreviewTrack TrackBlocks074[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks075[] = { +static constexpr PreviewTrack TrackBlocks075[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks076[] = { +static constexpr PreviewTrack TrackBlocks076[] = { { 0, 0, 0, 0, 64, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks077[] = { +static constexpr PreviewTrack TrackBlocks077[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks078[] = { +static constexpr PreviewTrack TrackBlocks078[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks079[] = { +static constexpr PreviewTrack TrackBlocks079[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks080[] = { +static constexpr PreviewTrack TrackBlocks080[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks081[] = { +static constexpr PreviewTrack TrackBlocks081[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0111, 0 }, 0 }, @@ -1246,7 +1246,7 @@ static constexpr const PreviewTrack TrackBlocks081[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks082[] = { +static constexpr PreviewTrack TrackBlocks082[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b1011, 0 }, 0 }, @@ -1257,7 +1257,7 @@ static constexpr const PreviewTrack TrackBlocks082[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks083[] = { +static constexpr PreviewTrack TrackBlocks083[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b0111, 0 }, 0 }, { 2, -32, -32, 0, 0, { 0b1101, 0 }, 0 }, @@ -1265,7 +1265,7 @@ static constexpr const PreviewTrack TrackBlocks083[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks084[] = { +static constexpr PreviewTrack TrackBlocks084[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1011, 0 }, 0 }, { 2, -32, 32, 0, 0, { 0b1110, 0 }, 0 }, @@ -1273,7 +1273,7 @@ static constexpr const PreviewTrack TrackBlocks084[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks085[] = { +static constexpr PreviewTrack TrackBlocks085[] = { { 0, 0, 0, 0, 0, { 0b0111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0010, 0 }, 0 }, @@ -1281,7 +1281,7 @@ static constexpr const PreviewTrack TrackBlocks085[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks086[] = { +static constexpr PreviewTrack TrackBlocks086[] = { { 0, 0, 0, 0, 0, { 0b1011, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, 0 }, @@ -1289,7 +1289,7 @@ static constexpr const PreviewTrack TrackBlocks086[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks087[] = { +static constexpr PreviewTrack TrackBlocks087[] = { { 0, 0, 0, 0, 0, { 0b0111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 4, { 0b0010, 0 }, 0 }, @@ -1301,7 +1301,7 @@ static constexpr const PreviewTrack TrackBlocks087[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks088[] = { +static constexpr PreviewTrack TrackBlocks088[] = { { 0, 0, 0, 0, 0, { 0b1011, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0b0000 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 4, { 0b0001, 0 }, 0 }, @@ -1313,7 +1313,7 @@ static constexpr const PreviewTrack TrackBlocks088[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks089[] = { +static constexpr PreviewTrack TrackBlocks089[] = { { 0, 0, 0, 8, 4, { 0b0111, 0 }, 0 }, { 1, 0, -32, 8, 4, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 8, 0, { 0b0010, 0 }, 0 }, @@ -1325,7 +1325,7 @@ static constexpr const PreviewTrack TrackBlocks089[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks090[] = { +static constexpr PreviewTrack TrackBlocks090[] = { { 0, 0, 0, 8, 4, { 0b1011, 0 }, 0 }, { 1, 0, 32, 8, 4, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 8, 0, { 0b0001, 0 }, 0 }, @@ -1337,7 +1337,7 @@ static constexpr const PreviewTrack TrackBlocks090[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks091[] = { +static constexpr PreviewTrack TrackBlocks091[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0111, 0 }, 0 }, @@ -1355,7 +1355,7 @@ static constexpr const PreviewTrack TrackBlocks091[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks092[] = { +static constexpr PreviewTrack TrackBlocks092[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b1011, 0 }, 0 }, @@ -1373,7 +1373,7 @@ static constexpr const PreviewTrack TrackBlocks092[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks093[] = { +static constexpr PreviewTrack TrackBlocks093[] = { { 0, 0, 0, 8, 4, { 0b1111, 0 }, 0 }, { 1, 0, -32, 8, 4, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 8, 4, { 0b0111, 0 }, 0 }, @@ -1391,7 +1391,7 @@ static constexpr const PreviewTrack TrackBlocks093[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks094[] = { +static constexpr PreviewTrack TrackBlocks094[] = { { 0, 0, 0, 8, 4, { 0b1111, 0 }, 0 }, { 1, 0, 32, 8, 4, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 8, 4, { 0b1011, 0 }, 0 }, @@ -1409,42 +1409,42 @@ static constexpr const PreviewTrack TrackBlocks094[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks095[] = { +static constexpr PreviewTrack TrackBlocks095[] = { { 0, 0, 0, 0, 64, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks096[] = { +static constexpr PreviewTrack TrackBlocks096[] = { { 0, 0, 0, 0, 64, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks097[] = { +static constexpr PreviewTrack TrackBlocks097[] = { { 0, 0, 0, 0, 64, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks098[] = { +static constexpr PreviewTrack TrackBlocks098[] = { { 0, 0, 0, 0, 64, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks099[] = { +static constexpr PreviewTrack TrackBlocks099[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks100[] = { +static constexpr PreviewTrack TrackBlocks100[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks101[] = { +static constexpr PreviewTrack TrackBlocks101[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks102[] = { +static constexpr PreviewTrack TrackBlocks102[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0111, 0 }, 0 }, @@ -1455,7 +1455,7 @@ static constexpr const PreviewTrack TrackBlocks102[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks103[] = { +static constexpr PreviewTrack TrackBlocks103[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b1011, 0 }, 0 }, @@ -1466,7 +1466,7 @@ static constexpr const PreviewTrack TrackBlocks103[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks104[] = { +static constexpr PreviewTrack TrackBlocks104[] = { { 0, 0, 0, 0, 12, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 12, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 12, { 0b0111, 0 }, 0 }, @@ -1477,7 +1477,7 @@ static constexpr const PreviewTrack TrackBlocks104[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks105[] = { +static constexpr PreviewTrack TrackBlocks105[] = { { 0, 0, 0, 0, 12, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 12, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 12, { 0b1011, 0 }, 0 }, @@ -1488,7 +1488,7 @@ static constexpr const PreviewTrack TrackBlocks105[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks106[] = { +static constexpr PreviewTrack TrackBlocks106[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0111, 0 }, 0 }, @@ -1499,7 +1499,7 @@ static constexpr const PreviewTrack TrackBlocks106[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks107[] = { +static constexpr PreviewTrack TrackBlocks107[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b1011, 0 }, 0 }, @@ -1510,7 +1510,7 @@ static constexpr const PreviewTrack TrackBlocks107[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks108[] = { +static constexpr PreviewTrack TrackBlocks108[] = { { 0, 0, 0, 0, 12, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 12, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 12, { 0b0111, 0 }, 0 }, @@ -1521,7 +1521,7 @@ static constexpr const PreviewTrack TrackBlocks108[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks109[] = { +static constexpr PreviewTrack TrackBlocks109[] = { { 0, 0, 0, 0, 12, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 12, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 12, { 0b1011, 0 }, 0 }, @@ -1532,42 +1532,42 @@ static constexpr const PreviewTrack TrackBlocks109[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks110[] = { +static constexpr PreviewTrack TrackBlocks110[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks111[] = { +static constexpr PreviewTrack TrackBlocks111[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks112[] = { +static constexpr PreviewTrack TrackBlocks112[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks113[] = { +static constexpr PreviewTrack TrackBlocks113[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks114[] = { +static constexpr PreviewTrack TrackBlocks114[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks115[] = { +static constexpr PreviewTrack TrackBlocks115[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks116[] = { +static constexpr PreviewTrack TrackBlocks116[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks117[] = { +static constexpr PreviewTrack TrackBlocks117[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, 0, 16, { 0b1111, 0 }, 0 }, @@ -1576,7 +1576,7 @@ static constexpr const PreviewTrack TrackBlocks117[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks118[] = { +static constexpr PreviewTrack TrackBlocks118[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, 16, 24, { 0b1111, 0 }, 0 }, @@ -1584,7 +1584,7 @@ static constexpr const PreviewTrack TrackBlocks118[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks119[] = { +static constexpr PreviewTrack TrackBlocks119[] = { { 0, 0, 0, 0, 48, { 0b1111, 0 }, 0 }, { 1, -32, 0, 40, 48, { 0b1111, 0 }, 0 }, { 2, -64, 0, 64, 24, { 0b1111, 0 }, 0 }, @@ -1592,12 +1592,12 @@ static constexpr const PreviewTrack TrackBlocks119[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks120[] = { +static constexpr PreviewTrack TrackBlocks120[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks121[] = { +static constexpr PreviewTrack TrackBlocks121[] = { { 0, 0, 0, 40, 48, { 0b1111, 0 }, 0 }, { 1, -32, 0, 16, 24, { 0b1111, 0 }, 0 }, { 2, -64, 0, 0, 16, { 0b1111, 0 }, 0 }, @@ -1605,7 +1605,7 @@ static constexpr const PreviewTrack TrackBlocks121[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks122[] = { +static constexpr PreviewTrack TrackBlocks122[] = { { 0, 0, 0, 80, 8, { 0b1111, 0 }, 0 }, { 1, -32, 0, 64, 24, { 0b1111, 0 }, 0 }, { 2, -64, 0, 40, 48, { 0b1111, 0 }, 0 }, @@ -1613,7 +1613,7 @@ static constexpr const PreviewTrack TrackBlocks122[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks123[] = { +static constexpr PreviewTrack TrackBlocks123[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, { 2, -64, 0, -32, 32, { 0b1111, 0b0011 }, 0 }, @@ -1621,7 +1621,7 @@ static constexpr const PreviewTrack TrackBlocks123[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks124[] = { +static constexpr PreviewTrack TrackBlocks124[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 32, { 0b1111, 0 }, 0 }, { 2, -64, 0, 0, 48, { 0b1111, 0 }, 0 }, @@ -1632,52 +1632,52 @@ static constexpr const PreviewTrack TrackBlocks124[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks125[] = { +static constexpr PreviewTrack TrackBlocks125[] = { { 0, 0, 0, 0, 48, { 0b1111, 0 }, 0 }, { 1, 32, 0, 0, 48, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks126[] = { +static constexpr PreviewTrack TrackBlocks126[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 32, 0, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks127[] = { +static constexpr PreviewTrack TrackBlocks127[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 32, 0, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks128[] = { +static constexpr PreviewTrack TrackBlocks128[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b1100 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 32, 0, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks129[] = { +static constexpr PreviewTrack TrackBlocks129[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b0011 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks130[] = { +static constexpr PreviewTrack TrackBlocks130[] = { { 0, 0, 0, 0, 56, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks131[] = { +static constexpr PreviewTrack TrackBlocks131[] = { { 0, 0, 0, 0, 56, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 32, 0, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks132[] = { +static constexpr PreviewTrack TrackBlocks132[] = { { 0, 0, 0, 0, 24, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks133[] = { +static constexpr PreviewTrack TrackBlocks133[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, -32, 0, 0, { 0b1000, 0 }, 0 }, @@ -1686,7 +1686,7 @@ static constexpr const PreviewTrack TrackBlocks133[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks134[] = { +static constexpr PreviewTrack TrackBlocks134[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 32, 0, 0, { 0b0100, 0 }, 0 }, @@ -1695,7 +1695,7 @@ static constexpr const PreviewTrack TrackBlocks134[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks135[] = { +static constexpr PreviewTrack TrackBlocks135[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b0001, 0 }, 0 }, { 2, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1704,7 +1704,7 @@ static constexpr const PreviewTrack TrackBlocks135[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks136[] = { +static constexpr PreviewTrack TrackBlocks136[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, 0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1713,7 +1713,7 @@ static constexpr const PreviewTrack TrackBlocks136[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks137[] = { +static constexpr PreviewTrack TrackBlocks137[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, -32, 0, 0, { 0b1000, 0 }, 0 }, @@ -1722,7 +1722,7 @@ static constexpr const PreviewTrack TrackBlocks137[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks138[] = { +static constexpr PreviewTrack TrackBlocks138[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 32, 0, 0, { 0b0100, 0 }, 0 }, @@ -1731,7 +1731,7 @@ static constexpr const PreviewTrack TrackBlocks138[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks139[] = { +static constexpr PreviewTrack TrackBlocks139[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b0001, 0 }, 0 }, { 2, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1740,7 +1740,7 @@ static constexpr const PreviewTrack TrackBlocks139[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks140[] = { +static constexpr PreviewTrack TrackBlocks140[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, 0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1749,7 +1749,7 @@ static constexpr const PreviewTrack TrackBlocks140[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks141[] = { +static constexpr PreviewTrack TrackBlocks141[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1757,7 +1757,7 @@ static constexpr const PreviewTrack TrackBlocks141[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks142[] = { +static constexpr PreviewTrack TrackBlocks142[] = { { 0, 0, 0, 0, 16, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 16, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 16, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1765,7 +1765,7 @@ static constexpr const PreviewTrack TrackBlocks142[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks143[] = { +static constexpr PreviewTrack TrackBlocks143[] = { { 0, 0, 0, 0, 64, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 64, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 64, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1773,7 +1773,7 @@ static constexpr const PreviewTrack TrackBlocks143[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks144[] = { +static constexpr PreviewTrack TrackBlocks144[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1781,7 +1781,7 @@ static constexpr const PreviewTrack TrackBlocks144[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks145[] = { +static constexpr PreviewTrack TrackBlocks145[] = { { 0, 0, 0, 0, 32, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 32, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 32, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1789,7 +1789,7 @@ static constexpr const PreviewTrack TrackBlocks145[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks146[] = { +static constexpr PreviewTrack TrackBlocks146[] = { { 0, 0, 0, 0, 32, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 32, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 32, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1797,7 +1797,7 @@ static constexpr const PreviewTrack TrackBlocks146[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks147[] = { +static constexpr PreviewTrack TrackBlocks147[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1805,7 +1805,7 @@ static constexpr const PreviewTrack TrackBlocks147[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks148[] = { +static constexpr PreviewTrack TrackBlocks148[] = { { 0, 0, 0, 0, 16, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 16, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 16, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1813,7 +1813,7 @@ static constexpr const PreviewTrack TrackBlocks148[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks149[] = { +static constexpr PreviewTrack TrackBlocks149[] = { { 0, 0, 0, 0, 64, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 64, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 64, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1821,7 +1821,7 @@ static constexpr const PreviewTrack TrackBlocks149[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks150[] = { +static constexpr PreviewTrack TrackBlocks150[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1829,7 +1829,7 @@ static constexpr const PreviewTrack TrackBlocks150[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks151[] = { +static constexpr PreviewTrack TrackBlocks151[] = { { 0, 0, 0, 0, 32, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 32, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 32, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1837,7 +1837,7 @@ static constexpr const PreviewTrack TrackBlocks151[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks152[] = { +static constexpr PreviewTrack TrackBlocks152[] = { { 0, 0, 0, 0, 32, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 32, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 32, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1845,7 +1845,7 @@ static constexpr const PreviewTrack TrackBlocks152[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks153[] = { +static constexpr PreviewTrack TrackBlocks153[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1853,7 +1853,7 @@ static constexpr const PreviewTrack TrackBlocks153[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks154[] = { +static constexpr PreviewTrack TrackBlocks154[] = { { 0, 0, 0, 0, 24, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 24, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 24, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1861,7 +1861,7 @@ static constexpr const PreviewTrack TrackBlocks154[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks155[] = { +static constexpr PreviewTrack TrackBlocks155[] = { { 0, 0, 0, 0, 24, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 24, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 24, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1869,7 +1869,7 @@ static constexpr const PreviewTrack TrackBlocks155[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks156[] = { +static constexpr PreviewTrack TrackBlocks156[] = { { 0, 0, 0, 0, 24, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 24, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 24, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1877,7 +1877,7 @@ static constexpr const PreviewTrack TrackBlocks156[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks157[] = { +static constexpr PreviewTrack TrackBlocks157[] = { { 0, 0, 0, 0, 24, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 24, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 24, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1885,7 +1885,7 @@ static constexpr const PreviewTrack TrackBlocks157[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks158[] = { +static constexpr PreviewTrack TrackBlocks158[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1893,7 +1893,7 @@ static constexpr const PreviewTrack TrackBlocks158[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks159[] = { +static constexpr PreviewTrack TrackBlocks159[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1901,7 +1901,7 @@ static constexpr const PreviewTrack TrackBlocks159[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks160[] = { +static constexpr PreviewTrack TrackBlocks160[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1909,7 +1909,7 @@ static constexpr const PreviewTrack TrackBlocks160[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks161[] = { +static constexpr PreviewTrack TrackBlocks161[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1917,7 +1917,7 @@ static constexpr const PreviewTrack TrackBlocks161[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks162[] = { +static constexpr PreviewTrack TrackBlocks162[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1925,7 +1925,7 @@ static constexpr const PreviewTrack TrackBlocks162[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks163[] = { +static constexpr PreviewTrack TrackBlocks163[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1933,7 +1933,7 @@ static constexpr const PreviewTrack TrackBlocks163[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks164[] = { +static constexpr PreviewTrack TrackBlocks164[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1941,7 +1941,7 @@ static constexpr const PreviewTrack TrackBlocks164[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks165[] = { +static constexpr PreviewTrack TrackBlocks165[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1949,7 +1949,7 @@ static constexpr const PreviewTrack TrackBlocks165[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks166[] = { +static constexpr PreviewTrack TrackBlocks166[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1957,7 +1957,7 @@ static constexpr const PreviewTrack TrackBlocks166[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks167[] = { +static constexpr PreviewTrack TrackBlocks167[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1965,7 +1965,7 @@ static constexpr const PreviewTrack TrackBlocks167[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks168[] = { +static constexpr PreviewTrack TrackBlocks168[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1973,7 +1973,7 @@ static constexpr const PreviewTrack TrackBlocks168[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks169[] = { +static constexpr PreviewTrack TrackBlocks169[] = { { 0, 0, 0, 0, 8, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 8, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1981,7 +1981,7 @@ static constexpr const PreviewTrack TrackBlocks169[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks170[] = { +static constexpr PreviewTrack TrackBlocks170[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1989,7 +1989,7 @@ static constexpr const PreviewTrack TrackBlocks170[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks171[] = { +static constexpr PreviewTrack TrackBlocks171[] = { { 0, 0, 0, 0, 0, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 0, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -1997,45 +1997,45 @@ static constexpr const PreviewTrack TrackBlocks171[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks172[] = { +static constexpr PreviewTrack TrackBlocks172[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks173[] = { +static constexpr PreviewTrack TrackBlocks173[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks174[] = { +static constexpr PreviewTrack TrackBlocks174[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, 0, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks175[] = { +static constexpr PreviewTrack TrackBlocks175[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, 0, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks176[] = { +static constexpr PreviewTrack TrackBlocks176[] = { { 0, 0, 0, -32, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -32, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, -32, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks177[] = { +static constexpr PreviewTrack TrackBlocks177[] = { { 0, 0, 0, -32, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -32, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, -32, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks178[] = { +static constexpr PreviewTrack TrackBlocks178[] = { { 0, 0, 0, 0, 0, { 0b0111, 0b0100 }, 0 }, { 1, 0, -32, 0, 16, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 16, { 0b0010, 0 }, 0 }, @@ -2043,7 +2043,7 @@ static constexpr const PreviewTrack TrackBlocks178[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks179[] = { +static constexpr PreviewTrack TrackBlocks179[] = { { 0, 0, 0, 0, 16, { 0b1011, 0b1000 }, 0 }, { 1, 0, 32, 0, 16, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 16, { 0b0001, 0 }, 0 }, @@ -2051,7 +2051,7 @@ static constexpr const PreviewTrack TrackBlocks179[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks180[] = { +static constexpr PreviewTrack TrackBlocks180[] = { { 0, 0, 0, 16, 16,{ 0b0111, 0b0011 }, 0 }, { 1, 0, -32, 0, 16, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 16, { 0b0010, 0 }, 0 }, @@ -2059,7 +2059,7 @@ static constexpr const PreviewTrack TrackBlocks180[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks181[] = { +static constexpr PreviewTrack TrackBlocks181[] = { { 0, 0, 0, 16, 16, { 0b1011, 0b0011 }, 0 }, { 1, 0, 32, 0, 16, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 16, { 0b0001, 0 }, 0 }, @@ -2067,12 +2067,12 @@ static constexpr const PreviewTrack TrackBlocks181[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks182[] = { +static constexpr PreviewTrack TrackBlocks182[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks183[] = { +static constexpr PreviewTrack TrackBlocks183[] = { { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 40, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 56, { 0b1111, 0 }, 0 }, @@ -2083,7 +2083,7 @@ static constexpr const PreviewTrack TrackBlocks183[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks184[] = { +static constexpr PreviewTrack TrackBlocks184[] = { { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 40, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 56, { 0b1111, 0 }, 0 }, @@ -2094,7 +2094,7 @@ static constexpr const PreviewTrack TrackBlocks184[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks185[] = { +static constexpr PreviewTrack TrackBlocks185[] = { { 0, 0, 0, -32, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, -216, 192, { 0b1111, 0 }, 0 }, { 2, -64, 0, -160, 96, { 0b1111, 0 }, 0 }, @@ -2105,7 +2105,7 @@ static constexpr const PreviewTrack TrackBlocks185[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks186[] = { +static constexpr PreviewTrack TrackBlocks186[] = { { 0, 0, 0, -32, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, -216, 192, { 0b1111, 0 }, 0 }, { 2, -64, 0, -160, 96, { 0b1111, 0 }, 0 }, @@ -2116,35 +2116,35 @@ static constexpr const PreviewTrack TrackBlocks186[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks187[] = { +static constexpr PreviewTrack TrackBlocks187[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, -16, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, -16, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks188[] = { +static constexpr PreviewTrack TrackBlocks188[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, -16, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, -16, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks189[] = { +static constexpr PreviewTrack TrackBlocks189[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, 16, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks190[] = { +static constexpr PreviewTrack TrackBlocks190[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b1111, 0 }, 0 }, { 2, -64, 0, 16, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks191[] = { +static constexpr PreviewTrack TrackBlocks191[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 16, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 96,{ 0b0011, 0 }, 0 }, @@ -2152,7 +2152,7 @@ static constexpr const PreviewTrack TrackBlocks191[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks192[] = { +static constexpr PreviewTrack TrackBlocks192[] = { { 0, 0, 0, 0, 32, { 0b1111, 0 }, 0 }, { 1, -32, 0, -88, 96,{ 0b0011, 0 }, 0 }, { 2, 0, 0, -104, 16, { 0b1111, 0b1100 }, 0 }, @@ -2160,35 +2160,35 @@ static constexpr const PreviewTrack TrackBlocks192[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks193[] = { +static constexpr PreviewTrack TrackBlocks193[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 24, 32, { 0b0111, 0 }, 0 }, { 2, -32, -32, 48, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks194[] = { +static constexpr PreviewTrack TrackBlocks194[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 24, 32, { 0b1011, 0 }, 0 }, { 2, -32, 32, 48, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks195[] = { +static constexpr PreviewTrack TrackBlocks195[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -24, 32, { 0b0111, 0 }, 0 }, { 2, -32, -32, -48, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks196[] = { +static constexpr PreviewTrack TrackBlocks196[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -24, 32, { 0b1011, 0 }, 0 }, { 2, -32, 32, -48, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks197[] = { +static constexpr PreviewTrack TrackBlocks197[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 32, { 0b1111, 0 }, 0 }, { 2, -64, 0, 16, 0, { 0b1111, 0 }, 0 }, @@ -2196,7 +2196,7 @@ static constexpr const PreviewTrack TrackBlocks197[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks198[] = { +static constexpr PreviewTrack TrackBlocks198[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, -32, 32, { 0b1111, 0 }, 0 }, { 2, -64, 0, -16, 0, { 0b1111, 0 }, 0 }, @@ -2204,7 +2204,7 @@ static constexpr const PreviewTrack TrackBlocks198[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks199[] = { +static constexpr PreviewTrack TrackBlocks199[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -64, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -2214,7 +2214,7 @@ static constexpr const PreviewTrack TrackBlocks199[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks200[] = { +static constexpr PreviewTrack TrackBlocks200[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -64, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -2224,39 +2224,39 @@ static constexpr const PreviewTrack TrackBlocks200[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks201[] = { +static constexpr PreviewTrack TrackBlocks201[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks202[] = { +static constexpr PreviewTrack TrackBlocks202[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks203[] = { +static constexpr PreviewTrack TrackBlocks203[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks204[] = { +static constexpr PreviewTrack TrackBlocks204[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 32, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks205[] = { +static constexpr PreviewTrack TrackBlocks205[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, -32, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks206[] = { +static constexpr PreviewTrack TrackBlocks206[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, -32, 0, -40, 32, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 2, -64, 0, -96, 56, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, @@ -2264,14 +2264,14 @@ static constexpr const PreviewTrack TrackBlocks206[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks207[] = { +static constexpr PreviewTrack TrackBlocks207[] = { { 0, 0, 0, 0, 56, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 32, 0, 56, 32, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 2, 64, 0, 96, 16, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks208[] = { +static constexpr PreviewTrack TrackBlocks208[] = { { 0, 0, 0, -32, 16, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, -32, 0, -72, 32, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 2, -64, 0, -128, 56, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, @@ -2279,7 +2279,7 @@ static constexpr const PreviewTrack TrackBlocks208[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks209[] = { +static constexpr PreviewTrack TrackBlocks209[] = { { 0, 0, 0, 0, 0, { 0b0111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0010, 0 }, 0 }, @@ -2287,7 +2287,7 @@ static constexpr const PreviewTrack TrackBlocks209[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks210[] = { +static constexpr PreviewTrack TrackBlocks210[] = { { 0, 0, 0, 0, 0, { 0b1011, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 0, 8, { 0b0001, 0 }, 0 }, @@ -2295,7 +2295,7 @@ static constexpr const PreviewTrack TrackBlocks210[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks211[] = { +static constexpr PreviewTrack TrackBlocks211[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, -32, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, -32, 0, 0, { 0b1111, 0 }, 0 }, @@ -2305,7 +2305,7 @@ static constexpr const PreviewTrack TrackBlocks211[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks212[] = { +static constexpr PreviewTrack TrackBlocks212[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 32, 0, 0, { 0b1111, 0 }, 0 }, @@ -2315,7 +2315,7 @@ static constexpr const PreviewTrack TrackBlocks212[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks213[] = { +static constexpr PreviewTrack TrackBlocks213[] = { { 0, 0, 0, 0, 32, { 0b1111, 0 }, 0 }, { 1, 32, 0, 0, 32, { 0b1111, 0 }, 0 }, { 2, -64, 0, 0, 32, { 0b1111, 0 }, 0 }, @@ -2323,13 +2323,13 @@ static constexpr const PreviewTrack TrackBlocks213[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks214[] = { +static constexpr PreviewTrack TrackBlocks214[] = { { 0, 0, 0, 0, 48, { 0b1111, 0 }, 0 }, { 1, 32, 0, 0, 48, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks215[] = { +static constexpr PreviewTrack TrackBlocks215[] = { { 0, 0, 0, 0, 208, { 0b1111, 0 }, 0 }, { 1, 32, 0, 0, 208, { 0b1111, 0 }, 0 }, { 2, -32, 0, 0, 160, { 0b1111, 0 }, 0 }, @@ -2340,12 +2340,12 @@ static constexpr const PreviewTrack TrackBlocks215[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks216[] = { +static constexpr PreviewTrack TrackBlocks216[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks217[] = { +static constexpr PreviewTrack TrackBlocks217[] = { { 0, 0, 0, 0, 16, { 0b0111, 0b0100 }, 0 }, { 1, 0, -32, 16, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 0, { 0b0010, 0 }, 0 }, @@ -2353,7 +2353,7 @@ static constexpr const PreviewTrack TrackBlocks217[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks218[] = { +static constexpr PreviewTrack TrackBlocks218[] = { { 0, 0, 0, 0, 16, { 0b1011, 0b1000 }, 0 }, { 1, 0, 32, 16, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 0, { 0b0001, 0 }, 0 }, @@ -2361,7 +2361,7 @@ static constexpr const PreviewTrack TrackBlocks218[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks219[] = { +static constexpr PreviewTrack TrackBlocks219[] = { { 0, 0, 0, 16, 16,{ 0b0111, 0b0011 }, 0 }, { 1, 0, -32, 16, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 0, { 0b0010, 0 }, 0 }, @@ -2369,7 +2369,7 @@ static constexpr const PreviewTrack TrackBlocks219[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks220[] = { +static constexpr PreviewTrack TrackBlocks220[] = { { 0, 0, 0, 16, 16, { 0b1011, 0b0011 }, 0 }, { 1, 0, 32, 16, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 0, { 0b0001, 0 }, 0 }, @@ -2377,7 +2377,7 @@ static constexpr const PreviewTrack TrackBlocks220[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks221[] = { +static constexpr PreviewTrack TrackBlocks221[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, { 1, 0, -32, 16, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 16, { 0b0111, 0b0100 }, 0 }, @@ -2388,7 +2388,7 @@ static constexpr const PreviewTrack TrackBlocks221[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks222[] = { +static constexpr PreviewTrack TrackBlocks222[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, { 1, 0, 32, 16, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 16, 16, { 0b1011, 0b1000 }, 0 }, @@ -2399,7 +2399,7 @@ static constexpr const PreviewTrack TrackBlocks222[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks223[] = { +static constexpr PreviewTrack TrackBlocks223[] = { { 0, 0, 0, 48, 16, { 0b1111, 0b0011 }, 0 }, { 1, 0, -32, 48, 0, { 0b1000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 32, 16, { 0b0111, 0b0001 }, 0 }, @@ -2410,7 +2410,7 @@ static constexpr const PreviewTrack TrackBlocks223[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks224[] = { +static constexpr PreviewTrack TrackBlocks224[] = { { 0, 0, 0, 48, 16, { 0b1111, 0b0011 }, 0 }, { 1, 0, 32, 48, 0, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, { 2, -32, 0, 32, 16, { 0b1011, 0b0010 }, 0 }, @@ -2421,158 +2421,158 @@ static constexpr const PreviewTrack TrackBlocks224[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks225[] = { +static constexpr PreviewTrack TrackBlocks225[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks226[] = { +static constexpr PreviewTrack TrackBlocks226[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks227[] = { +static constexpr PreviewTrack TrackBlocks227[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks228[] = { +static constexpr PreviewTrack TrackBlocks228[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks229[] = { +static constexpr PreviewTrack TrackBlocks229[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks230[] = { +static constexpr PreviewTrack TrackBlocks230[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks231[] = { +static constexpr PreviewTrack TrackBlocks231[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks232[] = { +static constexpr PreviewTrack TrackBlocks232[] = { { 0, 0, 0, 0, 16, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks233[] = { +static constexpr PreviewTrack TrackBlocks233[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks234[] = { +static constexpr PreviewTrack TrackBlocks234[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks235[] = { +static constexpr PreviewTrack TrackBlocks235[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks236[] = { +static constexpr PreviewTrack TrackBlocks236[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks237[] = { +static constexpr PreviewTrack TrackBlocks237[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks238[] = { +static constexpr PreviewTrack TrackBlocks238[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks239[] = { +static constexpr PreviewTrack TrackBlocks239[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks240[] = { +static constexpr PreviewTrack TrackBlocks240[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks241[] = { +static constexpr PreviewTrack TrackBlocks241[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks242[] = { +static constexpr PreviewTrack TrackBlocks242[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks243[] = { +static constexpr PreviewTrack TrackBlocks243[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks244[] = { +static constexpr PreviewTrack TrackBlocks244[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks245[] = { +static constexpr PreviewTrack TrackBlocks245[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks246[] = { +static constexpr PreviewTrack TrackBlocks246[] = { { 0, 0, 0, 0, 8, { 0b1111, 0b0011 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks247[] = { +static constexpr PreviewTrack TrackBlocks247[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks248[] = { +static constexpr PreviewTrack TrackBlocks248[] = { { 0, 0, 0, 0, 8, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks249[] = { +static constexpr PreviewTrack TrackBlocks249[] = { { 0, 0, 0, 0, 72, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 0, 32, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks250[] = { +static constexpr PreviewTrack TrackBlocks250[] = { { 0, 0, 0, 0, 72, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 0, -32, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks251[] = { +static constexpr PreviewTrack TrackBlocks251[] = { { 0, 0, 0, 0, 72, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 0, 32, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks252[] = { +static constexpr PreviewTrack TrackBlocks252[] = { { 0, 0, 0, 0, 72, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 0, -32, 0, 0, { 0b0000, 0 }, RCT_PREVIEW_TRACK_FLAG_0 | RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks253[] = { +static constexpr PreviewTrack TrackBlocks253[] = { { 0, 0, 0, 0, 56, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 32, 0, 56, 32, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 2, 64, 0, 96, 16, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks254[] = { +static constexpr PreviewTrack TrackBlocks254[] = { { 0, 0, 0, -32, 16, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, -32, 0, -72, 32, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 2, -64, 0, -128, 56, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, @@ -2580,19 +2580,19 @@ static constexpr const PreviewTrack TrackBlocks254[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocks255[] = { +static constexpr PreviewTrack TrackBlocks255[] = { { 0, 0, 0, 32, 56, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 1, 32, 0, 88, 32, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, { 2, 64, 0, 128, 16, { 0b1111, 0 }, RCT_PREVIEW_TRACK_FLAG_IS_VERTICAL }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRotationControlToggle[] = { +static constexpr PreviewTrack TrackBlocksRotationControlToggle[] = { { 0, 0, 0, 0, 0, { 0b1111, 0b1100 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack1x4A[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack1x4A[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -64, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -2600,7 +2600,7 @@ static constexpr const PreviewTrack TrackBlocksFlatTrack1x4A[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack2x2[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack2x2[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b1111, 0 }, 0 }, { 2, 32, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -2608,7 +2608,7 @@ static constexpr const PreviewTrack TrackBlocksFlatTrack2x2[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack4x4[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack4x4[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b1111, 0 }, 0 }, { 2, 0, 64, 0, 0, { 0b1111, 0 }, 0 }, @@ -2628,7 +2628,7 @@ static constexpr const PreviewTrack TrackBlocksFlatTrack4x4[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack2x4[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack2x4[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, 0, 32, 0, 0, { 0b1111, 0 }, 0 }, { 2, 0, 64, 0, 0, { 0b1111, 0 }, 0 }, @@ -2640,7 +2640,7 @@ static constexpr const PreviewTrack TrackBlocksFlatTrack2x4[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack1x5[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack1x5[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -64, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -2649,12 +2649,12 @@ static constexpr const PreviewTrack TrackBlocksFlatTrack1x5[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack1x1A[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack1x1A[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack1x4B[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack1x4B[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -64, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -2662,12 +2662,12 @@ static constexpr const PreviewTrack TrackBlocksFlatTrack1x4B[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack1x1B[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack1x1B[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack1x4C[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack1x4C[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -64, 0, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -2675,7 +2675,7 @@ static constexpr const PreviewTrack TrackBlocksFlatTrack1x4C[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlatTrack3x3[] = { +static constexpr PreviewTrack TrackBlocksFlatTrack3x3[] = { { 0, 0, 0, 0, 0, { 0b1111, 0 }, 0 }, { 1, -32, -32, 0, 0, { 0b1111, 0 }, 0 }, { 2, -32, 0, 0, 0, { 0b1111, 0 }, 0 }, @@ -2689,7 +2689,7 @@ static constexpr const PreviewTrack TrackBlocksFlatTrack3x3[] = { }; -static constexpr const PreviewTrack TrackBlocksLeftLargeCorkscrewUp[] = { +static constexpr PreviewTrack TrackBlocksLeftLargeCorkscrewUp[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 8, 32, { 0b1111, 0 }, 0 }, { 2, -64, 0, 32, 24, { 0b0111, 0 }, 0 }, @@ -2699,7 +2699,7 @@ static constexpr const PreviewTrack TrackBlocksLeftLargeCorkscrewUp[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightLargeCorkscrewUp[] = { +static constexpr PreviewTrack TrackBlocksRightLargeCorkscrewUp[] = { { 0, 0, 0 , 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 8, 32, { 0b1111, 0 }, 0 }, { 2, -64, 0, 32, 24, { 0b1011, 0 }, 0 }, @@ -2709,7 +2709,7 @@ static constexpr const PreviewTrack TrackBlocksRightLargeCorkscrewUp[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftLargeCorkscrewDown[] = { +static constexpr PreviewTrack TrackBlocksLeftLargeCorkscrewDown[] = { { 0, 0, 0 , -40, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, -64, 40, { 0b1111, 0 }, 0 }, { 2, -32, -32, -80, 24, { 0b1000, 0 }, 0 }, @@ -2719,7 +2719,7 @@ static constexpr const PreviewTrack TrackBlocksLeftLargeCorkscrewDown[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightLargeCorkscrewDown[] = { +static constexpr PreviewTrack TrackBlocksRightLargeCorkscrewDown[] = { { 0, 0, 0 , -40, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, -64, 40, { 0b1111, 0 }, 0 }, { 2, -32, 32, -80, 24, { 0b0100, 0 }, 0 }, @@ -2729,7 +2729,7 @@ static constexpr const PreviewTrack TrackBlocksRightLargeCorkscrewDown[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftMediumHalfLoopUp[] = { +static constexpr PreviewTrack TrackBlocksLeftMediumHalfLoopUp[] = { { 0, 0, 0, 0, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, 16, 48, { 0b1111, 0 }, 0 }, { 2, -64, 0, 56,120, { 0b1111, 0 }, 0 }, @@ -2738,7 +2738,7 @@ static constexpr const PreviewTrack TrackBlocksLeftMediumHalfLoopUp[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightMediumHalfLoopUp[] = { +static constexpr PreviewTrack TrackBlocksRightMediumHalfLoopUp[] = { { 0, 0, 0, 0, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, 16, 48, { 0b1111, 0 }, 0 }, { 2, -64, 0, 56,120, { 0b1111, 0 }, 0 }, @@ -2747,7 +2747,7 @@ static constexpr const PreviewTrack TrackBlocksRightMediumHalfLoopUp[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftMediumHalfLoopDown[] = { +static constexpr PreviewTrack TrackBlocksLeftMediumHalfLoopDown[] = { { 0, 0, 0, -48, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, -160,120, { 0b1111, 0 }, 0 }, { 2, -32, -32, -160,120, { 0b1111, 0 }, 0 }, @@ -2756,7 +2756,7 @@ static constexpr const PreviewTrack TrackBlocksLeftMediumHalfLoopDown[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightMediumHalfLoopDown[] = { +static constexpr PreviewTrack TrackBlocksRightMediumHalfLoopDown[] = { { 0, 0, 0 , -48, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, -160, 120, { 0b1111, 0 }, 0 }, { 2, -32, 32, -160, 120, { 0b1111, 0 }, 0 }, @@ -2765,28 +2765,28 @@ static constexpr const PreviewTrack TrackBlocksRightMediumHalfLoopDown[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftZeroGRollUp[] = { +static constexpr PreviewTrack TrackBlocksLeftZeroGRollUp[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 8, 24, { 0b1111, 0 }, 0 }, { 2, -64, 0, 24, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightZeroGRollUp[] = { +static constexpr PreviewTrack TrackBlocksRightZeroGRollUp[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 8, 24, { 0b1111, 0 }, 0 }, { 2, -64, 0, 24, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftZeroGRollDown[] = { +static constexpr PreviewTrack TrackBlocksLeftZeroGRollDown[] = { { 0, 0, 0, -32, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -48, 24, { 0b1111, 0 }, 0 }, { 2, -64, 0, -56, 16, { 0b1111, 0 }, 0 }, TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightZeroGRollDown[] = { +static constexpr PreviewTrack TrackBlocksRightZeroGRollDown[] = { { 0, 0, 0 ,-32, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -48, 24, { 0b1111, 0 }, 0 }, { 2, -64, 0, -56, 16, { 0b1111, 0 }, 0 }, @@ -2794,7 +2794,7 @@ static constexpr const PreviewTrack TrackBlocksRightZeroGRollDown[] = { }; -static constexpr const PreviewTrack TrackBlocksLeftLargeZeroGRollUp[] = { +static constexpr PreviewTrack TrackBlocksLeftLargeZeroGRollUp[] = { { 0, 0, 0, 0, 64, { 0b1111, 0 }, 0 }, { 1, -32, 0, 56, 48, { 0b1111, 0 }, 0 }, { 2, -64, 0, 96, 40, { 0b1111, 0 }, 0 }, @@ -2802,7 +2802,7 @@ static constexpr const PreviewTrack TrackBlocksLeftLargeZeroGRollUp[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightLargeZeroGRollUp[] = { +static constexpr PreviewTrack TrackBlocksRightLargeZeroGRollUp[] = { { 0, 0, 0, 0, 64, { 0b1111, 0 }, 0 }, { 1, -32, 0, 56, 48, { 0b1111, 0 }, 0 }, { 2, -64, 0, 96, 40, { 0b1111, 0 }, 0 }, @@ -2810,7 +2810,7 @@ static constexpr const PreviewTrack TrackBlocksRightLargeZeroGRollUp[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftLargeZeroGRollDown[] = { +static constexpr PreviewTrack TrackBlocksLeftLargeZeroGRollDown[] = { { 0, 0, 0, -32, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -56, 40, { 0b1111, 0 }, 0 }, { 2, -64, 0, -96, 48, { 0b1111, 0 }, 0 }, @@ -2818,7 +2818,7 @@ static constexpr const PreviewTrack TrackBlocksLeftLargeZeroGRollDown[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightLargeZeroGRollDown[] = { +static constexpr PreviewTrack TrackBlocksRightLargeZeroGRollDown[] = { { 0, 0, 0 , -32, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -56, 40, { 0b1111, 0 }, 0 }, { 2, -64, 0, -96, 48, { 0b1111, 0 }, 0 }, @@ -2826,7 +2826,7 @@ static constexpr const PreviewTrack TrackBlocksRightLargeZeroGRollDown[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopUninvertedUp[] = { +static constexpr PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopUninvertedUp[] = { { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 40, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 56, { 0b1111, 0 }, 0 }, @@ -2837,7 +2837,7 @@ static constexpr const PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopUninvertedU TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightFlyerLargeHalfLoopUninvertedUp[] = { +static constexpr PreviewTrack TrackBlocksRightFlyerLargeHalfLoopUninvertedUp[] = { { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 40, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 56, { 0b1111, 0 }, 0 }, @@ -2848,30 +2848,7 @@ static constexpr const PreviewTrack TrackBlocksRightFlyerLargeHalfLoopUninverted TRACK_BLOCK_END }; - -static constexpr const PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopInvertedUp[] = { - { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, - { 1, -32, 0, 16, 40, { 0b1111, 0b1100 }, 0 }, - { 2, -64, 0, 32, 56, { 0b1111, 0 }, 0 }, - { 3, -96, 0, 64, 192, { 0b1111, 0 }, 0 }, - { 4, -128, -32, 120, 96, { 0b1111, 0 }, 0 }, - { 5, -96, -32, 64, 192, { 0b1111, 0 }, 0 }, - { 6, -64, -32, 248, 32, { 0b1111, 0 }, 0 }, - TRACK_BLOCK_END -}; - -static constexpr const PreviewTrack TrackBlocksRightFlyerLargeHalfLoopInvertedUp[] = { - { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, - { 1, -32, 0, 16, 40, { 0b1111, 0b1100 }, 0 }, - { 2, -64, 0, 32, 56, { 0b1111, 0 }, 0 }, - { 3, -96, 0, 64, 192, { 0b1111, 0 }, 0 }, - { 4, -128, 32, 120, 96, { 0b1111, 0 }, 0 }, - { 5, -96, 32, 64, 192, { 0b1111, 0 }, 0 }, - { 6, -64, 32, 248, 32, { 0b1111, 0 }, 0 }, - TRACK_BLOCK_END -}; - -static constexpr const PreviewTrack TrackBlocksRightFlyerLargeHalfLoopInvertedDown[] = { +static constexpr PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopInvertedDown[] = { { 0, 0, 0, 0, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, -184, 192, { 0b1111, 0 }, 0 }, { 2, -64, 0, -128, 96, { 0b1111, 0 }, 0 }, @@ -2882,7 +2859,7 @@ static constexpr const PreviewTrack TrackBlocksRightFlyerLargeHalfLoopInvertedDo TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopInvertedDown[] = { +static constexpr PreviewTrack TrackBlocksRightFlyerLargeHalfLoopInvertedDown[] = { { 0, 0, 0, 0, 24, { 0b1111, 0 }, 0 }, { 1, -32, 0, -184, 192, { 0b1111, 0 }, 0 }, { 2, -64, 0, -128, 96, { 0b1111, 0 }, 0 }, @@ -2893,7 +2870,29 @@ static constexpr const PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopInvertedDow TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightFlyerLargeHalfLoopUninvertedDown[] = { +static constexpr PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopInvertedUp[] = { + { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, + { 1, -32, 0, 16, 40, { 0b1111, 0b1100 }, 0 }, + { 2, -64, 0, 32, 56, { 0b1111, 0 }, 0 }, + { 3, -96, 0, 64, 192, { 0b1111, 0 }, 0 }, + { 4, -128, -32, 120, 96, { 0b1111, 0 }, 0 }, + { 5, -96, -32, 64, 192, { 0b1111, 0 }, 0 }, + { 6, -64, -32, 248, 32, { 0b1111, 0 }, 0 }, + TRACK_BLOCK_END +}; + +static constexpr PreviewTrack TrackBlocksRightFlyerLargeHalfLoopInvertedUp[] = { + { 0, 0, 0, 0, 24, { 0b1111, 0b1100 }, 0 }, + { 1, -32, 0, 16, 40, { 0b1111, 0b1100 }, 0 }, + { 2, -64, 0, 32, 56, { 0b1111, 0 }, 0 }, + { 3, -96, 0, 64, 192, { 0b1111, 0 }, 0 }, + { 4, -128, 32, 120, 96, { 0b1111, 0 }, 0 }, + { 5, -96, 32, 64, 192, { 0b1111, 0 }, 0 }, + { 6, -64, 32, 248, 32, { 0b1111, 0 }, 0 }, + TRACK_BLOCK_END +}; + +static constexpr PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopUninvertedDown[] = { { 0, 0, 0, -32, 40, { 0b1111, 0 }, 0 }, { 1, -32, 0, -216, 192, { 0b1111, 0 }, 0 }, { 2, -64, 0, -160, 96, { 0b1111, 0 }, 0 }, @@ -2904,7 +2903,7 @@ static constexpr const PreviewTrack TrackBlocksRightFlyerLargeHalfLoopUninverted TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopUninvertedDown[] = { +static constexpr PreviewTrack TrackBlocksRightFlyerLargeHalfLoopUninvertedDown[] = { { 0, 0, 0, -32, 40, { 0b1111, 0 }, 0 }, { 1, -32, 0, -216, 192, { 0b1111, 0 }, 0 }, { 2, -64, 0, -160, 96, { 0b1111, 0 }, 0 }, @@ -2915,7 +2914,7 @@ static constexpr const PreviewTrack TrackBlocksLeftFlyerLargeHalfLoopUninvertedD TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlyerHalfLoopUpInverted[] = { +static constexpr PreviewTrack TrackBlocksFlyerHalfLoopUpInverted[] = { { 0, 0, 0, 0, 32, { 0b1111, 0b1100 }, 0 }, { 1, -32, 0, 16, 16, { 0b1111, 0b1100 }, 0 }, { 2, -64, 0, 32, 96,{ 0b0011, 0 }, 0 }, @@ -2923,7 +2922,7 @@ static constexpr const PreviewTrack TrackBlocksFlyerHalfLoopUpInverted[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksFlyerHalfLoopDownUpright[] = { +static constexpr PreviewTrack TrackBlocksFlyerHalfLoopDownUpright[] = { { 0, 0, 0, -32, 32, { 0b1111, 0 }, 0 }, { 1, -32, 0, -120, 96,{ 0b0011, 0 }, 0 }, { 2, 0, 0, -136, 16, { 0b1111, 0b1100 }, 0 }, @@ -2931,7 +2930,7 @@ static constexpr const PreviewTrack TrackBlocksFlyerHalfLoopDownUpright[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftEighthToDiagUp25[] = { +static constexpr PreviewTrack TrackBlocksLeftEighthToDiagUp25[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 16, 32, { 0b1111, 0 }, 0 }, { 2, -32, -32, 32, 16, { 0b1000, 0 }, 0 }, @@ -2940,7 +2939,7 @@ static constexpr const PreviewTrack TrackBlocksLeftEighthToDiagUp25[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightEighthToDiagUp25[] = { +static constexpr PreviewTrack TrackBlocksRightEighthToDiagUp25[] = { { 0, 0, 0, 0, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, 16, 32, { 0b1111, 0 }, 0 }, { 2, -32, 32, 32, 16, { 0b0100, 0 }, 0 }, @@ -2949,7 +2948,7 @@ static constexpr const PreviewTrack TrackBlocksRightEighthToDiagUp25[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftEighthToDiagDown25[] = { +static constexpr PreviewTrack TrackBlocksLeftEighthToDiagDown25[] = { { 0, 0, 0, -16, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -32, 16, { 0b1111, 0 }, 0 }, { 2, -32, -32, -48, 16, { 0b1000, 0 }, 0 }, @@ -2958,7 +2957,7 @@ static constexpr const PreviewTrack TrackBlocksLeftEighthToDiagDown25[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightEighthToDiagDown25[] = { +static constexpr PreviewTrack TrackBlocksRightEighthToDiagDown25[] = { { 0, 0, 0, -16, 16, { 0b1111, 0 }, 0 }, { 1, -32, 0, -32, 16, { 0b1111, 0 }, 0 }, { 2, -32, 32, -48, 16, { 0b0100, 0 }, 0 }, @@ -2967,7 +2966,7 @@ static constexpr const PreviewTrack TrackBlocksRightEighthToDiagDown25[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftEighthToOrthogonalUp25[] = { +static constexpr PreviewTrack TrackBlocksLeftEighthToOrthogonalUp25[] = { { 0, 0, 0, 0, 16, { 0b1101, 0 }, 0 }, { 1, -32, 0, 0, 16, { 0b0001, 0 }, 0 }, { 2, 0, 32, 0, 16, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -2976,7 +2975,7 @@ static constexpr const PreviewTrack TrackBlocksLeftEighthToOrthogonalUp25[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightEighthToOrthogonalUp25[] = { +static constexpr PreviewTrack TrackBlocksRightEighthToOrthogonalUp25[] = { { 0, 0, 0, 0, 16, { 0b1101, 0 }, 0 }, { 1, 0, 32, 0, 16, { 0b0100, 0 }, 0 }, { 2, -32, 0, 0, 16, { 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -2985,7 +2984,7 @@ static constexpr const PreviewTrack TrackBlocksRightEighthToOrthogonalUp25[] = { TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksLeftEighthToOrthogonalDown25[] = { +static constexpr PreviewTrack TrackBlocksLeftEighthToOrthogonalDown25[] = { { 0, 0, 0, -16, 24, { 0b1101, 0 }, 0 }, { 1, -32, 0, -16, 16, { 0b0001, 0 }, 0 }, { 2, 0, 32, -16, 16, { 0b0100, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -2994,7 +2993,7 @@ static constexpr const PreviewTrack TrackBlocksLeftEighthToOrthogonalDown25[] = TRACK_BLOCK_END }; -static constexpr const PreviewTrack TrackBlocksRightEighthToOrthogonalDown25[] = { +static constexpr PreviewTrack TrackBlocksRightEighthToOrthogonalDown25[] = { { 0, 0, 0, -16, 24, { 0b1101, 0 }, 0 }, { 1, 0, 32, -16, 16,{ 0b0100, 0 }, 0 }, { 2, -32, 0, -16, 16,{ 0b0001, 0 }, RCT_PREVIEW_TRACK_FLAG_0 }, @@ -3293,12 +3292,12 @@ static constexpr std::array TrackBloc TrackBlocksLeftFlyerLargeHalfLoopUninvertedUp, // LeftFlyerLargeHalfLoopUninvertedUp TrackBlocksRightFlyerLargeHalfLoopUninvertedUp, // RightFlyerLargeHalfLoopUninvertedUp - TrackBlocksRightFlyerLargeHalfLoopInvertedDown, // RightFlyerLargeHalfLoopInvertedDown TrackBlocksLeftFlyerLargeHalfLoopInvertedDown, // LeftFlyerLargeHalfLoopInvertedDown + TrackBlocksRightFlyerLargeHalfLoopInvertedDown, // RightFlyerLargeHalfLoopInvertedDown TrackBlocksLeftFlyerLargeHalfLoopInvertedUp, // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp TrackBlocksRightFlyerLargeHalfLoopInvertedUp, // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - TrackBlocksRightFlyerLargeHalfLoopUninvertedDown, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown TrackBlocksLeftFlyerLargeHalfLoopUninvertedDown, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + TrackBlocksRightFlyerLargeHalfLoopUninvertedDown, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown TrackBlocksFlyerHalfLoopUpInverted, // TrackElemType::FlyerHalfLoopInvertedUp TrackBlocksFlyerHalfLoopDownUpright, // TrackElemType::FlyerHalfLoopUninvertedDown TrackBlocksLeftEighthToDiagUp25, // TrackElemType::LeftEighthToDiagUp25 @@ -3533,8 +3532,8 @@ static constexpr uint8_t TrackPieceLengths[] = { 32, // TrackElemType::PoweredLift 100, // TrackElemType::LeftLargeHalfLoopUp 100, // TrackElemType::RightLargeHalfLoopUp - 100, // TrackElemType::RightLargeHalfLoopDown 100, // TrackElemType::LeftLargeHalfLoopDown + 100, // TrackElemType::RightLargeHalfLoopDown 96, // TrackElemType::LeftFlyerTwistUp 96, // TrackElemType::RightFlyerTwistUp 96, // TrackElemType::LeftFlyerTwistDown @@ -3621,70 +3620,70 @@ static constexpr uint8_t TrackPieceLengths[] = { 96, // TrackElemType::RightCorkscrewDown 80, // TrackElemType::LeftMediumHalfLoopUp 80, // TrackElemType::RightMediumHalfLoopUp - 80, // TrackElemType::RightMediumHalfLoopDown 80, // TrackElemType::LeftMediumHalfLoopDown + 80, // TrackElemType::RightMediumHalfLoopDown 96, // TrackElemType::LeftZeroGRollUp 96, // TrackElemType::RightZeroGRollUp - 96, // TrackElemType::RightZeroGRollDown 96, // TrackElemType::LeftZeroGRollDown + 96, // TrackElemType::RightZeroGRollDown 165, // TrackElemType::LeftLargeZeroGRollUp 165, // TrackElemType::RightLargeZeroGRollUp - 165, // TrackElemType::RightLargeZeroGRollDown 165, // TrackElemType::LeftLargeZeroGRollDown + 165, // TrackElemType::RightLargeZeroGRollDown 100, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp 100, // TrackElemType::RightFlyerLargeHalfLoopUninvertedUp - 100, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown 100, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + 100, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown 100, // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp 100, // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - 100, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown 100, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + 100, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown 64, // TrackElemType::FlyerHalfLoopInvertedUp 64, // TrackElemType::FlyerHalfLoopUninvertedDown - 64, // TrackElemType::LeftEighthToDiagUp25 - 64, // TrackElemType::RightEighthToDiagUp25 - 64, // TrackElemType::LeftEighthToDiagDown25 - 64, // TrackElemType::RightEighthToDiagDown25 - 64, // TrackElemType::LeftEighthToOrthogonalUp25 - 64, // TrackElemType::RightEighthToOrthogonalUp25 - 64, // TrackElemType::LeftEighthToOrthogonalDown25 - 64, // TrackElemType::RightEighthToOrthogonalDown25 - 64, // TrackElemType::DiagUp25ToLeftBankedUp25 - 64, // TrackElemType::DiagUp25ToRightBankedUp25 - 64, // TrackElemType::DiagLeftBankedUp25ToUp25 - 64, // TrackElemType::DiagRightBankedUp25ToUp25 - 64, // TrackElemType::DiagDown25ToLeftBankedDown25 - 64, // TrackElemType::DiagDown25ToRightBankedDown25 - 64, // TrackElemType::DiagLeftBankedDown25ToDown25 - 64, // TrackElemType::DiagRightBankedDown25ToDown25 - 64, // TrackElemType::DiagLeftBankedFlatToLeftBankedUp25 - 64, // TrackElemType::DiagRightBankedFlatToRightBankedUp25 - 64, // TrackElemType::DiagLeftBankedUp25ToLeftBankedFlat - 64, // TrackElemType::DiagRightBankedUp25ToRightBankedFlat - 64, // TrackElemType::DiagLeftBankedFlatToLeftBankedDown25 - 64, // TrackElemType::DiagRightBankedFlatToRightBankedDown25 - 64, // TrackElemType::DiagLeftBankedDown25ToLeftBankedFlat - 64, // TrackElemType::DiagRightBankedDown25ToRightBankedFlat - 64, // TrackElemType::DiagFlatToLeftBankedUp25 - 64, // TrackElemType::DiagFlatToRightBankedUp25 - 64, // TrackElemType::DiagLeftBankedUp25ToFlat - 64, // TrackElemType::DiagRightBankedUp25ToFlat - 64, // TrackElemType::DiagFlatToLeftBankedDown25 - 64, // TrackElemType::DiagFlatToRightBankedDown25 - 64, // TrackElemType::DiagLeftBankedDown25ToFlat - 64, // TrackElemType::DiagRightBankedDown25ToFlat - 64, // TrackElemType::DiagUp25LeftBanked - 64, // TrackElemType::DiagUp25RightBanked - 64, // TrackElemType::DiagDown25LeftBanked - 64, // TrackElemType::DiagDown25RightBanked - 64, // TrackElemType::LeftEighthBankToDiagUp25 - 64, // TrackElemType::RightEighthBankToDiagUp25 - 64, // TrackElemType::LeftEighthBankToDiagDown25 - 64, // TrackElemType::RightEighthBankToDiagDown25 - 64, // TrackElemType::LeftEighthBankToOrthogonalUp25 - 64, // TrackElemType::RightEighthBankToOrthogonalUp25 - 64, // TrackElemType::LeftEighthBankToOrthogonalDown25 - 64, // TrackElemType::RightEighthBankToOrthogonalDown25 + 92, // TrackElemType::LeftEighthToDiagUp25 + 92, // TrackElemType::RightEighthToDiagUp25 + 92, // TrackElemType::LeftEighthToDiagDown25 + 92, // TrackElemType::RightEighthToDiagDown25 + 92, // TrackElemType::LeftEighthToOrthogonalUp25 + 92, // TrackElemType::RightEighthToOrthogonalUp25 + 92, // TrackElemType::LeftEighthToOrthogonalDown25 + 92, // TrackElemType::RightEighthToOrthogonalDown25 + 45, // TrackElemType::DiagUp25ToLeftBankedUp25 + 45, // TrackElemType::DiagUp25ToRightBankedUp25 + 45, // TrackElemType::DiagLeftBankedUp25ToUp25 + 45, // TrackElemType::DiagRightBankedUp25ToUp25 + 45, // TrackElemType::DiagDown25ToLeftBankedDown25 + 45, // TrackElemType::DiagDown25ToRightBankedDown25 + 45, // TrackElemType::DiagLeftBankedDown25ToDown25 + 45, // TrackElemType::DiagRightBankedDown25ToDown25 + 45, // TrackElemType::DiagLeftBankedFlatToLeftBankedUp25 + 45, // TrackElemType::DiagRightBankedFlatToRightBankedUp25 + 45, // TrackElemType::DiagLeftBankedUp25ToLeftBankedFlat + 45, // TrackElemType::DiagRightBankedUp25ToRightBankedFlat + 45, // TrackElemType::DiagLeftBankedFlatToLeftBankedDown25 + 45, // TrackElemType::DiagRightBankedFlatToRightBankedDown25 + 45, // TrackElemType::DiagLeftBankedDown25ToLeftBankedFlat + 45, // TrackElemType::DiagRightBankedDown25ToRightBankedFlat + 45, // TrackElemType::DiagFlatToLeftBankedUp25 + 45, // TrackElemType::DiagFlatToRightBankedUp25 + 45, // TrackElemType::DiagLeftBankedUp25ToFlat + 45, // TrackElemType::DiagRightBankedUp25ToFlat + 45, // TrackElemType::DiagFlatToLeftBankedDown25 + 45, // TrackElemType::DiagFlatToRightBankedDown25 + 45, // TrackElemType::DiagLeftBankedDown25ToFlat + 45, // TrackElemType::DiagRightBankedDown25ToFlat + 45, // TrackElemType::DiagUp25LeftBanked + 45, // TrackElemType::DiagUp25RightBanked + 45, // TrackElemType::DiagDown25LeftBanked + 45, // TrackElemType::DiagDown25RightBanked + 92, // TrackElemType::LeftEighthBankToDiagUp25 + 92, // TrackElemType::RightEighthBankToDiagUp25 + 92, // TrackElemType::LeftEighthBankToDiagDown25 + 92, // TrackElemType::RightEighthBankToDiagDown25 + 92, // TrackElemType::LeftEighthBankToOrthogonalUp25 + 92, // TrackElemType::RightEighthBankToOrthogonalUp25 + 92, // TrackElemType::LeftEighthBankToOrthogonalDown25 + 92, // TrackElemType::RightEighthBankToOrthogonalDown25 }; static_assert(std::size(TrackPieceLengths) == TrackElemType::Count); @@ -3873,8 +3872,8 @@ static constexpr TrackCurveChain gTrackCurveChain[] = { { TRACK_CURVE_LEFT_SMALL, TRACK_CURVE_LEFT_SMALL }, { TRACK_CURVE_RIGHT_SMALL, TRACK_CURVE_RIGHT_SMALL }, { RideConstructionSpecialPieceSelected | TrackElemType::PoweredLift, RideConstructionSpecialPieceSelected | TrackElemType::PoweredLift }, - { RideConstructionSpecialPieceSelected | TrackElemType::LeftLargeHalfLoopDown, TRACK_CURVE_NONE }, { RideConstructionSpecialPieceSelected | TrackElemType::RightLargeHalfLoopDown, TRACK_CURVE_NONE }, + { RideConstructionSpecialPieceSelected | TrackElemType::LeftLargeHalfLoopDown, TRACK_CURVE_NONE }, { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::RightLargeHalfLoopUp }, { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftLargeHalfLoopUp }, { TRACK_CURVE_NONE, TRACK_CURVE_NONE }, @@ -3963,8 +3962,8 @@ static constexpr TrackCurveChain gTrackCurveChain[] = { { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftLargeCorkscrewUp }, // TrackElemType::RightCorkscrewDown { RideConstructionSpecialPieceSelected | TrackElemType::RightMediumHalfLoopDown, TRACK_CURVE_NONE }, // TrackElemType::LeftMediumHalfLoopUp { RideConstructionSpecialPieceSelected | TrackElemType::LeftMediumHalfLoopDown, TRACK_CURVE_NONE }, // TrackElemType::RightMediumHalfLoopUp - { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftMediumHalfLoopUp }, // TrackElemType::LeftMediumHalfLoopDown - { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::RightMediumHalfLoopUp }, // TrackElemType::RightMediumHalfLoopDown + { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::RightMediumHalfLoopUp }, // TrackElemType::LeftMediumHalfLoopDown + { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftMediumHalfLoopUp }, // TrackElemType::RightMediumHalfLoopDown { RideConstructionSpecialPieceSelected | TrackElemType::LeftZeroGRollDown, TRACK_CURVE_NONE }, // TrackElemType::LeftZeroGRollUp { RideConstructionSpecialPieceSelected | TrackElemType::RightZeroGRollDown, TRACK_CURVE_NONE }, // TrackElemType::RightZeroGRollUp { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftZeroGRollUp }, // TrackElemType::LeftZeroGRollDown @@ -3973,14 +3972,14 @@ static constexpr TrackCurveChain gTrackCurveChain[] = { { RideConstructionSpecialPieceSelected | TrackElemType::RightLargeZeroGRollDown, TRACK_CURVE_NONE }, // TrackElemType::RightLargeZeroGRollUp { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftLargeZeroGRollUp }, // TrackElemType::LeftLargeZeroGRollDown { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::RightLargeZeroGRollUp }, // TrackElemType::RightLargeZeroGRollDown - { RideConstructionSpecialPieceSelected | TrackElemType::LeftFlyerLargeHalfLoopInvertedDown, TRACK_CURVE_NONE }, // LeftFlyerLargeHalfLoopUninvertedUp - { RideConstructionSpecialPieceSelected | TrackElemType::RightFlyerLargeHalfLoopInvertedDown, TRACK_CURVE_NONE }, // RightFlyerLargeHalfLoopUninvertedUp - { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::RightFlyerLargeHalfLoopUninvertedUp }, // RightFlyerLargeHalfLoopInvertedDown - { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp }, // LeftFlyerLargeHalfLoopInvertedDown - { RideConstructionSpecialPieceSelected | TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown, TRACK_CURVE_NONE}, // LeftFlyerLargeHalfLoopInvertedUp - { RideConstructionSpecialPieceSelected | TrackElemType::RightFlyerLargeHalfLoopUninvertedDown, TRACK_CURVE_NONE }, // RightFlyerLargeHalfLoopInvertedUp - { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::RightFlyerLargeHalfLoopInvertedUp }, // RightFlyerLargeHalfLoopUninvertedDown - { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftFlyerLargeHalfLoopInvertedUp }, // LeftFlyerLargeHalfLoopUninvertedDown + { RideConstructionSpecialPieceSelected | TrackElemType::RightFlyerLargeHalfLoopInvertedDown, TRACK_CURVE_NONE }, // LeftFlyerLargeHalfLoopUninvertedUp + { RideConstructionSpecialPieceSelected | TrackElemType::LeftFlyerLargeHalfLoopInvertedDown, TRACK_CURVE_NONE }, // RightFlyerLargeHalfLoopUninvertedUp + { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::RightFlyerLargeHalfLoopUninvertedUp }, // LeftFlyerLargeHalfLoopInvertedDown + { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp }, // RightFlyerLargeHalfLoopInvertedDown + { RideConstructionSpecialPieceSelected | TrackElemType::RightFlyerLargeHalfLoopUninvertedDown, TRACK_CURVE_NONE}, // LeftFlyerLargeHalfLoopInvertedUp + { RideConstructionSpecialPieceSelected | TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown, TRACK_CURVE_NONE }, // RightFlyerLargeHalfLoopInvertedUp + { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::RightFlyerLargeHalfLoopInvertedUp }, // LeftFlyerLargeHalfLoopUninvertedDown + { TRACK_CURVE_NONE, RideConstructionSpecialPieceSelected | TrackElemType::LeftFlyerLargeHalfLoopInvertedUp }, // RightFlyerLargeHalfLoopUninvertedDown { TRACK_CURVE_NONE, TRACK_CURVE_NONE }, // FlyerHalfLoopInvertedUp { TRACK_CURVE_NONE, TRACK_CURVE_NONE }, // FlyerHalfLoopUninvertedUp { TRACK_CURVE_LEFT_LARGE, TRACK_CURVE_LEFT_LARGE }, // TrackElemType::LeftEighthToDiagUp25 @@ -4510,8 +4509,8 @@ static constexpr track_type_t AlternativeTrackTypes[] = { TrackElemType::None, // TrackElemType::RightLargeZeroGRollDown TrackElemType::None, // LeftFlyerLargeHalfLoopUninvertedUp TrackElemType::None, // RightFlyerLargeHalfLoopUninvertedUp - TrackElemType::None, // RightFlyerLargeHalfLoopInvertedDown TrackElemType::None, // LeftFlyerLargeHalfLoopInvertedDown + TrackElemType::None, // RightFlyerLargeHalfLoopInvertedDown TrackElemType::None, // FlyerHalfLoopInvertedUp TrackElemType::None, // FlyerHalfLoopUninvertedDown TrackElemType::None, // TrackElemType::LeftEighthToDiagUp25 @@ -4748,8 +4747,8 @@ static constexpr money64 TrackPricing[] = { 96384, // TrackElemType::PoweredLift 884736, // TrackElemType::LeftLargeHalfLoopUp 884736, // TrackElemType::RightLargeHalfLoopUp - 884736, // TrackElemType::RightLargeHalfLoopDown 884736, // TrackElemType::LeftLargeHalfLoopDown + 884736, // TrackElemType::RightLargeHalfLoopDown 221184, // TrackElemType::LeftFlyerTwistUp 221184, // TrackElemType::RightFlyerTwistUp 221184, // TrackElemType::LeftFlyerTwistDown @@ -4848,59 +4847,62 @@ static constexpr money64 TrackPricing[] = { 425984, // TrackElemType::RightLargeZeroGRollDown 884736, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp 884736, // TrackElemType::RightFlyerLargeHalfLoopUninvertedUp - 884736, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown 884736, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + 884736, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown 884736, // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp 884736, // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - 884736, // TrackElemType::RightFlyerLargeHalfLoopUnivertedDown 884736, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + 884736, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown 294912, // TrackElemType::FlyerHalfLoopInvertedUp 294912, // TrackElemType::FlyerHalfLoopUninvertedDown - 294912, // TrackElemType::LeftEighthToDiagUp25 - 294912, // TrackElemType::RightEighthToDiagUp25 - 294912, // TrackElemType::LeftEighthToDiagDown25 - 294912, // TrackElemType::RightEighthToDiagDown25 - 294912, // TrackElemType::LeftEighthToOrthogonalUp25 - 294912, // TrackElemType::RightEighthToOrthogonalUp25 - 294912, // TrackElemType::LeftEighthToOrthogonalDown25 - 294912, // TrackElemType::RightEighthToOrthogonalDown25 - 294912, // TrackElemType::DiagUp25ToLeftBankedUp25 - 294912, // TrackElemType::DiagUp25ToRightBankedUp25 - 294912, // TrackElemType::DiagLeftBankedUp25ToUp25 - 294912, // TrackElemType::DiagRightBankedUp25ToUp25 - 294912, // TrackElemType::DiagDown25ToLeftBankedDown25 - 294912, // TrackElemType::DiagDown25ToRightBankedDown25 - 294912, // TrackElemType::DiagLeftBankedDown25ToDown25 - 294912, // TrackElemType::DiagRightBankedDown25ToDown25 - 294912, // TrackElemType::DiagLeftBankedFlatToLeftBankedUp25 - 294912, // TrackElemType::DiagRightBankedFlatToRightBankedUp25 - 294912, // TrackElemType::DiagLeftBankedUp25ToLeftBankedFlat - 294912, // TrackElemType::DiagRightBankedUp25ToRightBankedFlat - 294912, // TrackElemType::DiagLeftBankedFlatToLeftBankedDown25 - 294912, // TrackElemType::DiagRightBankedFlatToRightBankedDown25 - 294912, // TrackElemType::DiagLeftBankedDown25ToLeftBankedFlat - 294912, // TrackElemType::DiagRightBankedDown25ToRightBankedFlat - 294912, // TrackElemType::DiagFlatToLeftBankedUp25 - 294912, // TrackElemType::DiagFlatToRightBankedUp25 - 294912, // TrackElemType::DiagLeftBankedUp25ToFlat - 294912, // TrackElemType::DiagRightBankedUp25ToFlat - 294912, // TrackElemType::DiagFlatToLeftBankedDown25 - 294912, // TrackElemType::DiagFlatToRightBankedDown25 - 294912, // TrackElemType::DiagLeftBankedDown25ToFlat - 294912, // TrackElemType::DiagRightBankedDown25ToFlat - 294912, // TrackElemType::DiagUp25LeftBanked - 294912, // TrackElemType::DiagUp25RightBanked - 294912, // TrackElemType::DiagDown25LeftBanked - 294912, // TrackElemType::DiagDown25RightBanked - 294912, // TrackElemType::LeftEighthBankToDiagUp25 - 294912, // TrackElemType::RightEighthBankToDiagUp25 - 294912, // TrackElemType::LeftEighthBankToDiagDown25 - 294912, // TrackElemType::RightEighthBankToDiagDown25 - 294912, // TrackElemType::LeftEighthBankToOrthogonalUp25 - 294912, // TrackElemType::RightEighthBankToOrthogonalUp25 - 294912, // TrackElemType::LeftEighthBankToOrthogonalDown25 - 294912, // TrackElemType::RightEighthBankToOrthogonalDown25 + 219559, // TrackElemType::LeftEighthToDiagUp25 + 219559, // TrackElemType::RightEighthToDiagUp25 + 219559, // TrackElemType::LeftEighthToDiagDown25 + 219559, // TrackElemType::RightEighthToDiagDown25 + 219559, // TrackElemType::LeftEighthToOrthogonalUp25 + 219559, // TrackElemType::RightEighthToOrthogonalUp25 + 219559, // TrackElemType::LeftEighthToOrthogonalDown25 + 219559, // TrackElemType::RightEighthToOrthogonalDown25 + 118809, // TrackElemType::DiagUp25ToLeftBankedUp25 + 118809, // TrackElemType::DiagUp25ToRightBankedUp25 + 118809, // TrackElemType::DiagLeftBankedUp25ToUp25 + 118809, // TrackElemType::DiagRightBankedUp25ToUp25 + 118809, // TrackElemType::DiagDown25ToLeftBankedDown25 + 118809, // TrackElemType::DiagDown25ToRightBankedDown25 + 118809, // TrackElemType::DiagLeftBankedDown25ToDown25 + 118809, // TrackElemType::DiagRightBankedDown25ToDown25 + 108800, // TrackElemType::DiagLeftBankedFlatToLeftBankedUp25 + 108800, // TrackElemType::DiagRightBankedFlatToRightBankedUp25 + 108800, // TrackElemType::DiagLeftBankedUp25ToLeftBankedFlat + 108800, // TrackElemType::DiagRightBankedUp25ToRightBankedFlat + 108800, // TrackElemType::DiagLeftBankedFlatToLeftBankedDown25 + 108800, // TrackElemType::DiagRightBankedFlatToRightBankedDown25 + 108800, // TrackElemType::DiagLeftBankedDown25ToLeftBankedFlat + 108800, // TrackElemType::DiagRightBankedDown25ToRightBankedFlat + 108800, // TrackElemType::DiagFlatToLeftBankedUp25 + 108800, // TrackElemType::DiagFlatToRightBankedUp25 + 108800, // TrackElemType::DiagLeftBankedUp25ToFlat + 108800, // TrackElemType::DiagRightBankedUp25ToFlat + 108800, // TrackElemType::DiagFlatToLeftBankedDown25 + 108800, // TrackElemType::DiagFlatToRightBankedDown25 + 108800, // TrackElemType::DiagLeftBankedDown25ToFlat + 108800, // TrackElemType::DiagRightBankedDown25ToFlat + 118809, // TrackElemType::DiagUp25LeftBanked + 118809, // TrackElemType::DiagUp25RightBanked + 118809, // TrackElemType::DiagDown25LeftBanked + 118809, // TrackElemType::DiagDown25RightBanked + 233281, // TrackElemType::LeftEighthBankToDiagUp25 + 233281, // TrackElemType::RightEighthBankToDiagUp25 + 233281, // TrackElemType::LeftEighthBankToDiagDown25 + 233281, // TrackElemType::RightEighthBankToDiagDown25 + 233281, // TrackElemType::LeftEighthBankToOrthogonalUp25 + 233281, // TrackElemType::RightEighthBankToOrthogonalUp25 + 233281, // TrackElemType::LeftEighthBankToOrthogonalDown25 + 233281, // TrackElemType::RightEighthBankToOrthogonalDown25 }; + + + static_assert(std::size(TrackPricing) == TrackElemType::Count); /** rct2: 0x0099EA1C */ @@ -5090,8 +5092,8 @@ static constexpr track_type_t TrackElementMirrorMap[] = { TrackElemType::PoweredLift, TrackElemType::RightLargeHalfLoopUp, // TrackElemType::LeftLargeHalfLoopUp TrackElemType::LeftLargeHalfLoopUp, // TrackElemType::RightLargeHalfLoopUp - TrackElemType::LeftLargeHalfLoopDown, // TrackElemType::RightLargeHalfLoopDown TrackElemType::RightLargeHalfLoopDown, // TrackElemType::LeftLargeHalfLoopDown + TrackElemType::LeftLargeHalfLoopDown, // TrackElemType::RightLargeHalfLoopDown TrackElemType::RightFlyerTwistUp, // TrackElemType::LeftFlyerTwistUp TrackElemType::LeftFlyerTwistUp, // TrackElemType::RightFlyerTwistUp TrackElemType::RightFlyerTwistDown, // TrackElemType::LeftFlyerTwistDown @@ -5190,12 +5192,12 @@ static constexpr track_type_t TrackElementMirrorMap[] = { TrackElemType::LeftLargeZeroGRollDown, // TrackElemType::RightLargeZeroGRollDown TrackElemType::RightFlyerLargeHalfLoopUninvertedUp, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp, // TrackElemType::RightFlyerLargeHalfLoopUninvertedUp - TrackElemType::LeftFlyerLargeHalfLoopInvertedDown, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown TrackElemType::RightFlyerLargeHalfLoopInvertedDown, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + TrackElemType::LeftFlyerLargeHalfLoopInvertedDown, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown TrackElemType::RightFlyerLargeHalfLoopInvertedUp, // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp TrackElemType::LeftFlyerLargeHalfLoopInvertedUp, // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown TrackElemType::RightFlyerLargeHalfLoopUninvertedDown, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown TrackElemType::FlyerHalfLoopInvertedUp, TrackElemType::FlyerHalfLoopUninvertedDown, TrackElemType::RightEighthToDiagUp25, // TrackElemType::LeftEighthToDiagUp25 @@ -5432,8 +5434,8 @@ static constexpr uint32_t TrackHeightMarkerPositions[] = { (1 << 0), // TrackElemType::PoweredLift (1 << 0) | (1 << 6), // TrackElemType::LeftLargeHalfLoopUp (1 << 0) | (1 << 6), // TrackElemType::RightLargeHalfLoopUp - (1 << 0) | (1 << 6), // TrackElemType::RightLargeHalfLoopDown (1 << 0) | (1 << 6), // TrackElemType::LeftLargeHalfLoopDown + (1 << 0) | (1 << 6), // TrackElemType::RightLargeHalfLoopDown (1 << 0) | (1 << 2), // TrackElemType::LeftFlyerTwistUp (1 << 0) | (1 << 2), // TrackElemType::RightFlyerTwistUp (1 << 0) | (1 << 2), // TrackElemType::LeftFlyerTwistDown @@ -5532,22 +5534,22 @@ static constexpr uint32_t TrackHeightMarkerPositions[] = { (1 << 0) | (1 << 3), // TrackElemType::RightLargeZeroGRollDown (1 << 0) | (1 << 6), // TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp (1 << 0) | (1 << 6), // TrackElemType::RightFlyerLargeHalfLoopUninvertedUp - (1 << 0) | (1 << 6), // TrackElemType::RightFlyerLargeHalfLoopInvertedDown (1 << 0) | (1 << 6), // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + (1 << 0) | (1 << 6), // TrackElemType::RightFlyerLargeHalfLoopInvertedDown (1 << 0) | (1 << 6), // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp (1 << 0) | (1 << 6), // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - (1 << 0) | (1 << 6), // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown (1 << 0) | (1 << 6), // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + (1 << 0) | (1 << 6), // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown (1 << 0) | (1 << 3), // TrackElemType::FlyerHalfLoopInvertedUp (1 << 0) | (1 << 3), // TrackElemType::FlyerHalfLoopUninvertedDown - (1 << 0), // TrackElemType::LeftEighthToDiagUp25 - (1 << 0), // TrackElemType::RightEighthToDiagUp25 - (1 << 0), // TrackElemType::LeftEighthToDiagDown25 - (1 << 0), // TrackElemType::RightEighthToDiagDown25 - (1 << 0), // TrackElemType::LeftEighthToOrthogonalUp25 - (1 << 0), // TrackElemType::RightEighthToOrthogonalUp25 - (1 << 0), // TrackElemType::LeftEighthToOrthogonalDown25 - (1 << 0), // TrackElemType::RightEighthToOrthogonalDown25 + (1 << 0) | (1 << 4), // TrackElemType::LeftEighthToDiagUp25 + (1 << 0) | (1 << 4), // TrackElemType::RightEighthToDiagUp25 + (1 << 0) | (1 << 4), // TrackElemType::LeftEighthToDiagDown25 + (1 << 0) | (1 << 4), // TrackElemType::RightEighthToDiagDown25 + (1 << 0) | (1 << 4), // TrackElemType::LeftEighthToOrthogonalUp25 + (1 << 0) | (1 << 4), // TrackElemType::RightEighthToOrthogonalUp25 + (1 << 0) | (1 << 4), // TrackElemType::LeftEighthToOrthogonalDown25 + (1 << 0) | (1 << 4), // TrackElemType::RightEighthToOrthogonalDown25 (1 << 0), // TrackElemType::DiagUp25ToRightBankedUp25 (1 << 0), // TrackElemType::DiagUp25ToLeftBankedUp25 (1 << 0), // TrackElemType::DiagRightBankedUp25ToUp25 @@ -5576,14 +5578,14 @@ static constexpr uint32_t TrackHeightMarkerPositions[] = { (1 << 0), // TrackElemType::DiagUp25LeftBanked (1 << 0), // TrackElemType::DiagDown25RightBanked (1 << 0), // TrackElemType::DiagDown25LeftBanked - (1 << 0), // TrackElemType::RightEighthBankToDiagUp25 - (1 << 0), // TrackElemType::LeftEighthBankToDiagUp25 - (1 << 0), // TrackElemType::RightEighthBankToDiagDown25 - (1 << 0), // TrackElemType::LeftEighthBankToDiagDown25 - (1 << 0), // TrackElemType::RightEighthBankToOrthogonalUp25 - (1 << 0), // TrackElemType::LeftEighthBankToOrthogonalUp25 - (1 << 0), // TrackElemType::RightEighthBankToOrthogonalDown25 - (1 << 0), // TrackElemType::LeftEighthBankToOrthogonalDown25 + (1 << 0) | (1 << 4), // TrackElemType::RightEighthBankToDiagUp25 + (1 << 0) | (1 << 4), // TrackElemType::LeftEighthBankToDiagUp25 + (1 << 0) | (1 << 4), // TrackElemType::RightEighthBankToDiagDown25 + (1 << 0) | (1 << 4), // TrackElemType::LeftEighthBankToDiagDown25 + (1 << 0) | (1 << 4), // TrackElemType::RightEighthBankToOrthogonalUp25 + (1 << 0) | (1 << 4), // TrackElemType::LeftEighthBankToOrthogonalUp25 + (1 << 0) | (1 << 4), // TrackElemType::RightEighthBankToOrthogonalDown25 + (1 << 0) | (1 << 4), // TrackElemType::LeftEighthBankToOrthogonalDown25 }; static_assert(std::size(TrackHeightMarkerPositions) == TrackElemType::Count); @@ -5774,8 +5776,8 @@ static constexpr uint8_t TrackSequenceElementAllowedWallEdges[][MaxSequencesPerP { 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::PoweredLift { 0b1010, 0b1010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1000, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftLargeHalfLoopUp { 0b1010, 0b1010, 0b1000, 0b1001, 0b0011, 0b0010, 0b0010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightLargeHalfLoopUp - { 0b0010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightLargeHalfLoopDown - { 0b1000, 0b1000, 0b1001, 0b0011, 0b0010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftLargeHalfLoopDown + { 0b0010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftLargeHalfLoopDown + { 0b1000, 0b1000, 0b1001, 0b0011, 0b0010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightLargeHalfLoopDown { 0b1010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftFlyerTwistUp { 0b1010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightFlyerTwistUp { 0b1010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftFlyerTwistDown @@ -5875,59 +5877,62 @@ static constexpr uint8_t TrackSequenceElementAllowedWallEdges[][MaxSequencesPerP { 0b1010, 0b1010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1000, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp { 0b1010, 0b1010, 0b1000, 0b1001, 0b0011, 0b0010, 0b0010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedUp - { 0b0010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown - { 0b1000, 0b1000, 0b1001, 0b0011, 0b0010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + { 0b0010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + { 0b1000, 0b1000, 0b1001, 0b0011, 0b0010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown { 0b1010, 0b1010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1000, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp { 0b1010, 0b1010, 0b1000, 0b1001, 0b0011, 0b0010, 0b0010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - { 0b0010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown - { 0b1000, 0b1000, 0b1001, 0b0011, 0b0010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + { 0b0010, 0b0010, 0b0011, 0b1001, 0b1000, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + { 0b1000, 0b1000, 0b1001, 0b0011, 0b0010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown { 0b1010, 0b1010, 0b1011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::FlyerHalfLoopInvertedUp { 0, 0b1011, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::FlyerHalfLoopUninvertedDown - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthToDiagUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthToDiagUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthToDiagDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthToDiagDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthToOrthogonalUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthToOrthogonalUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthToOrthogonalDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthToOrthogonalDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagUp25ToRightBankedUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagUp25ToLeftBankedUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedUp25ToUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedUp25ToUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagDown25ToRightBankedDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagDown25ToLeftBankedDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedDown25ToDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedDown25ToDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedFlatToRightBankedUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedFlatToLeftBankedUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedUp25ToRightBankedFlat - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedUp25ToLeftBankedFlat - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedFlatToRightBankedDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedFlatToLeftBankedDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedDown25ToRightBankedFlat - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedDown25ToLeftBankedFlat - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagFlatToRightBankedUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagFlatToLeftBankedUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedUp25ToFlat - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedUp25ToFlat - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagFlatToRightBankedDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagFlatToLeftBankedDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedDown25ToFlat - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedDown25ToFlat - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagUp25RightBanked - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagUp25LeftBanked - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagDown25RightBanked - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagDown25LeftBanked - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthBankToDiagUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthBankToDiagUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthBankToDiagDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthBankToDiagDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthBankToOrthogonalUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthBankToOrthogonalUp25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthBankToOrthogonalDown25 - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthBankToOrthogonalDown25 + { 0b0010, 0b0010, 0b1000, 0b0011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthToDiagUp25 + { 0b1000, 0b1000, 0b0010, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthToDiagUp25 + { 0b0010, 0b0010, 0b1000, 0b0011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthToDiagDown25 + { 0b1000, 0b1000, 0b0010, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthToDiagDown25 + { 0, 0b1000, 0b0110, 0b0010, 0b0010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthToOrthogonalUp25 + { 0, 0b0100, 0b1001, 0b0001, 0b0001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthToOrthogonalUp25 + { 0, 0b1000, 0b0110, 0b0010, 0b0010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthToOrthogonalDown25 + { 0, 0b0100, 0b1001, 0b0001, 0b0001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthToOrthogonalDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagUp25ToLeftBankedUp25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagUp25ToRightBankedUp25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedUp25ToUp25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedUp25ToUp25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagDown25ToLeftBankedDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagDown25ToRightBankedDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedDown25ToDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedDown25ToDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedFlatToLeftBankedUp25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedFlatToRightBankedUp25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedUp25ToLeftBankedFlat + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedUp25ToRightBankedFlat + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedFlatToLeftBankedDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedFlatToRightBankedDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedDown25ToLeftBankedFlat + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedDown25ToRightBankedFlat + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagFlatToLeftBankedUp25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagFlatToRightBankedUp25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedUp25ToFlat + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedUp25ToFlat + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagFlatToLeftBankedDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagFlatToRightBankedDown25 + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagLeftBankedDown25ToFlat + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagRightBankedDown25ToFlat + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagUp25LeftBanked + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagUp25RightBanked + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagDown25LeftBanked + { 0, 0b0110, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::DiagDown25RightBanked + { 0b0010, 0b0010, 0b1000, 0b0011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthBankToDiagUp25 + { 0b1000, 0b1000, 0b0010, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthBankToDiagUp25 + { 0b0010, 0b0010, 0b1000, 0b0011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthBankToDiagDown25 + { 0b1000, 0b1000, 0b0010, 0b1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthBankToDiagDown25 + { 0, 0b1000, 0b0110, 0b0010, 0b0010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthBankToOrthogonalUp25 + { 0, 0b0100, 0b1001, 0b0001, 0b0001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthBankToOrthogonalUp25 + { 0, 0b1000, 0b0110, 0b0010, 0b0010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::LeftEighthBankToOrthogonalDown25 + { 0, 0b0100, 0b1001, 0b0001, 0b0001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TrackElemType::RightEighthBankToOrthogonalDown25 }; + + + static_assert(std::size(TrackSequenceElementAllowedWallEdges) == TrackElemType::Count); /** rct2: 0x0099423C */ @@ -6117,8 +6122,8 @@ static constexpr uint16_t TrackFlags[] = { /* TrackElemType::PoweredLift */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT, /* TrackElemType::LeftLargeHalfLoopUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::RightLargeHalfLoopUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::RightLargeHalfLoopDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftLargeHalfLoopDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, + /* TrackElemType::RightLargeHalfLoopDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftFlyerTwistUp */ TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::RightFlyerTwistUp */ TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftFlyerTwistDown */ TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, @@ -6205,32 +6210,32 @@ static constexpr uint16_t TrackFlags[] = { /* TrackElemType::RightLargeCorkscrewDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftMediumHalfLoopUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::RightMediumHalfLoopUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::RightMediumHalfLoopDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftMediumHalfLoopDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, + /* TrackElemType::RightMediumHalfLoopDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftZeroGRollUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::RightZeroGRollUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::RightZeroGRollDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftZeroGRollDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, + /* TrackElemType::RightZeroGRollDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftLargeZeroGRollUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::RightLargeZeroGRollUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::RightLargeZeroGRollDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, /* TrackElemType::LeftLargeZeroGRollDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::RightFlyerLargeHalfLoopUninvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::RightFlyerLargeHalfLoopInvertedDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, + /* TrackElemType::RightLargeZeroGRollDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, + /* TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT, + /* TrackElemType::RightFlyerLargeHalfLoopUninvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT, /* TrackElemType::LeftFlyerLargeHalfLoopInvertedDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::RightFlyerLargeHalfLoopUninvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, - /* TrackElemType::RightFlyerLargeHalfLoopInvertedDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION, - /* TrackElemType::LeftFlyerLargeHalfLoopInvertedDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION, + /* TrackElemType::RightFlyerLargeHalfLoopInvertedDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL, + /* TrackElemType::LeftFlyerLargeHalfLoopInvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT, + /* TrackElemType::RightFlyerLargeHalfLoopInvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT, + /* TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION, + /* TrackElemType::RightFlyerLargeHalfLoopUninvertedDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION, /* TrackElemType::FlyerHalfLoopInvertedUp */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_INVERSION_TO_NORMAL | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT, /* TrackElemType::FlyerHalfLoopUnivertedDown */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_NORMAL_TO_INVERSION, /* TrackElemType::LeftEighthToDiagUp25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, /* TrackElemType::RightEighthToDiagUp25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, - /* TrackElemType::LeftEighthToDiagDown25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, - /* TrackElemType::RightEighthToDiagDown25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, - /* TrackElemType::LeftEighthToOrthogonalUp25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, - /* TrackElemType::RightEighthToOrthogonalUp25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, + /* TrackElemType::LeftEighthToDiagDown25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, + /* TrackElemType::RightEighthToDiagDown25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, + /* TrackElemType::LeftEighthToOrthogonalUp25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, + /* TrackElemType::RightEighthToOrthogonalUp25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, /* TrackElemType::LeftEighthToOrthogonalDown25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, /* TrackElemType::RightEighthToOrthogonalDown25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, /* TrackElemType::DiagUp25ToLeftBankedUp25 */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_BANKED | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT, @@ -6263,10 +6268,10 @@ static constexpr uint16_t TrackFlags[] = { /* TrackElemType::Down25RightBanked */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_BANKED | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT, /* TrackElemType::LeftEighthBankToDiagUp25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, /* TrackElemType::RightEighthBankToDiagUp25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, - /* TrackElemType::LeftEighthBankToDiagDown25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, - /* TrackElemType::RightEighthBankToDiagDown25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, - /* TrackElemType::LeftEighthBankToOrthogonalUp25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, - /* TrackElemType::RightEighthBankToOrthogonalUp25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, + /* TrackElemType::LeftEighthBankToDiagDown25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, + /* TrackElemType::RightEighthBankToDiagDown25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, + /* TrackElemType::LeftEighthBankToOrthogonalUp25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, + /* TrackElemType::RightEighthBankToOrthogonalUp25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, /* TrackElemType::LeftEighthBankToOrthogonalDown25 */ TRACK_ELEM_FLAG_TURN_LEFT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, /* TrackElemType::RightEighthBankToOrthogonalDown25 */ TRACK_ELEM_FLAG_TURN_RIGHT | TRACK_ELEM_FLAG_TURN_SLOPED | TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT | TRACK_ELEM_FLAG_ALLOW_LIFT_HILL | TRACK_ELEM_FLAG_CURVE_ALLOWS_LIFT, }; @@ -6545,8 +6550,8 @@ static constexpr TrackDefinition TrackDefinitions[] = { TRACK_FLAT_RIDE_BASE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::FlatTrack1x1B { TRACK_FLAT_RIDE_BASE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, -40 }, // TrackElemType::FlatTrack1x4C { TRACK_FLAT_RIDE_BASE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::FlatTrack3x3 - { TRACK_CORKSCREW_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 0 }, // TrackElemType::LeftLargeCorkscrewUp - { TRACK_CORKSCREW_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 0 }, // TrackElemType::RightLargeCorkscrewUp + { TRACK_CORKSCREW_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 32 }, // TrackElemType::LeftLargeCorkscrewUp + { TRACK_CORKSCREW_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 32 }, // TrackElemType::RightLargeCorkscrewUp { TRACK_CORKSCREW_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_UPSIDE_DOWN, -32 }, // TrackElemType::LeftLargeCorkscrewDown { TRACK_CORKSCREW_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_UPSIDE_DOWN, -32 }, // TrackElemType::RightLargeCorkscrewDown { TRACK_HALF_LOOP_MEDIUM, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_25, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 64 }, // TrackElemType::LeftMediumHalfLoopUp @@ -6557,28 +6562,28 @@ static constexpr TrackDefinition TrackDefinitions[] = { TRACK_ZERO_G_ROLL, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_25, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 0 }, // TrackElemType::RightZeroGRollUp { TRACK_ZERO_G_ROLL, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_UPSIDE_DOWN, 0 }, // TrackElemType::LeftZeroGRollDown { TRACK_ZERO_G_ROLL, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_UPSIDE_DOWN, 0 }, // TrackElemType::RightZeroGRollDown - { TRACK_ZERO_G_ROLL_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_60, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 0 }, // TrackElemType::LeftLargeZeroGRollUp - { TRACK_ZERO_G_ROLL_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_60, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 0 }, // TrackElemType::RightLargeZeroGRollUp - { TRACK_ZERO_G_ROLL_LARGE, TRACK_SLOPE_DOWN_60, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_UPSIDE_DOWN, 0 }, // TrackElemType::LeftLargeZeroGRollDown - { TRACK_ZERO_G_ROLL_LARGE, TRACK_SLOPE_DOWN_60, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_UPSIDE_DOWN, 0 }, // TrackElemType::RightLargeZeroGRollDown + { TRACK_ZERO_G_ROLL_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_60, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 64 }, // TrackElemType::LeftLargeZeroGRollUp + { TRACK_ZERO_G_ROLL_LARGE, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_60, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 64 }, // TrackElemType::RightLargeZeroGRollUp + { TRACK_ZERO_G_ROLL_LARGE, TRACK_SLOPE_DOWN_60, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_UPSIDE_DOWN, -64 }, // TrackElemType::LeftLargeZeroGRollDown + { TRACK_ZERO_G_ROLL_LARGE, TRACK_SLOPE_DOWN_60, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_UPSIDE_DOWN, -64 }, // TrackElemType::RightLargeZeroGRollDown { TRACK_FLYING_LARGE_HALF_LOOP_UNINVERTED_UP, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_25, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 64 }, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp { TRACK_FLYING_LARGE_HALF_LOOP_UNINVERTED_UP, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_25, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 64 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedUp - { TRACK_FLYING_LARGE_HALF_LOOP_INVERTED_DOWN, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, -64 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown - { TRACK_FLYING_LARGE_HALF_LOOP_INVERTED_DOWN, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, -64 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + { TRACK_FLYING_LARGE_HALF_LOOP_INVERTED_DOWN, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, -64 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + { TRACK_FLYING_LARGE_HALF_LOOP_INVERTED_DOWN, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, -64 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown { TRACK_FLYING_LARGE_HALF_LOOP_INVERTED_UP, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_25, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 64 }, // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp { TRACK_FLYING_LARGE_HALF_LOOP_INVERTED_UP, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_25, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 64 }, // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - { TRACK_FLYING_LARGE_HALF_LOOP_UNINVERTED_DOWN, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, -64 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown { TRACK_FLYING_LARGE_HALF_LOOP_UNINVERTED_DOWN, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, -64 }, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + { TRACK_FLYING_LARGE_HALF_LOOP_UNINVERTED_DOWN, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, -64 }, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown { TRACK_FLYING_HALF_LOOP_INVERTED_UP, TRACK_SLOPE_NONE, TRACK_SLOPE_UP_25, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, 64 }, // TrackElemType::FlyerHalfLoopInvertedUp { TRACK_FLYING_HALF_LOOP_UNINVERTED_DOWN, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_NONE, TRACK_BANK_UPSIDE_DOWN, TRACK_BANK_NONE, -64 }, // TrackElemType::FlyerHalfLoopUninvertedDown - { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::LeftEighthToDiagUp25 - { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::RightEighthToDiagUp25 - { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::LeftEighthToDiagDown25 - { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::RightEighthToDiagDown25 - { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::LeftEighthToOrthogonalUp25 - { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::RightEighthToOrthogonalUp25 - { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::LeftEighthToOrthogonalDown25 - { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // TrackElemType::RightEighthToOrthogonalDown25 + { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 16 }, // TrackElemType::LeftEighthToDiagUp25 + { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 16 }, // TrackElemType::RightEighthToDiagUp25 + { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_NONE, TRACK_BANK_NONE, -16 }, // TrackElemType::LeftEighthToDiagDown25 + { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_NONE, TRACK_BANK_NONE, -16 }, // TrackElemType::RightEighthToDiagDown25 + { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 16 }, // TrackElemType::LeftEighthToOrthogonalUp25 + { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, 16 }, // TrackElemType::RightEighthToOrthogonalUp25 + { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_NONE, TRACK_BANK_NONE, -16 }, // TrackElemType::LeftEighthToOrthogonalDown25 + { TRACK_SLOPE_CURVE_LARGE, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_NONE, TRACK_BANK_NONE, -16 }, // TrackElemType::RightEighthToOrthogonalDown25 { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_LEFT, TRACK_BANK_NONE, 0 }, // TrackElemType::DiagUp25ToLeftBankedUp25 { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_RIGHT, TRACK_BANK_NONE, 0 }, // TrackElemType::DiagUp25ToRightBankedUp25 { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_LEFT, 0 }, // TrackElemType::DiagLeftBankedUp25ToUp25 @@ -6607,14 +6612,14 @@ static constexpr TrackDefinition TrackDefinitions[] = { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, 0 }, // TrackElemType::Up25RightBanked { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, 0 }, // TrackElemType::Down25LeftBanked { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, 0 }, // TrackElemType::Down25RightBanked - { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, 0 }, // TrackElemType::LeftEighthBankToDiagUp25 - { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, 0 }, // TrackElemType::RightEighthBankToDiagUp25 - { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, 0 }, // TrackElemType::LeftEighthBankToDiagDown25 - { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, 0 }, // TrackElemType::RightEighthBankToDiagDown25 - { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, 0 }, // TrackElemType::LeftEighthBankToOrthogonalUp25 - { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, 0 }, // TrackElemType::RightEighthBankToOrthogonalUp25 - { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, 0 }, // TrackElemType::LeftEighthBankToOrthogonalDown25 - { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, 0 }, // TrackElemType::RightEighthBankToOrthogonalDown25 + { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, 16 }, // TrackElemType::LeftEighthBankToDiagUp25 + { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, 16 }, // TrackElemType::RightEighthBankToDiagUp25 + { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, -16 }, // TrackElemType::LeftEighthBankToDiagDown25 + { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, -16 }, // TrackElemType::RightEighthBankToDiagDown25 + { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, 16 }, // TrackElemType::LeftEighthBankToOrthogonalUp25 + { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_UP_25, TRACK_SLOPE_UP_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, 16 }, // TrackElemType::RightEighthBankToOrthogonalUp25 + { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_LEFT, TRACK_BANK_LEFT, -16 }, // TrackElemType::LeftEighthBankToOrthogonalDown25 + { TRACK_SLOPE_CURVE_LARGE_BANKED, TRACK_SLOPE_DOWN_25, TRACK_SLOPE_DOWN_25, TRACK_BANK_RIGHT, TRACK_BANK_RIGHT, -16 }, // TrackElemType::RightEighthBankToOrthogonalDown25 }; static_assert(std::size(TrackDefinitions) == TrackElemType::Count); @@ -6643,10 +6648,10 @@ constexpr static uint8_t TrackTypeToSpinFunction[] = { NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, + NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, L9_SPIN, R9_SPIN, L9_SPIN, R9_SPIN, L9_SPIN, R9_SPIN, + L9_SPIN, R9_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, - NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, - NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, - NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, + NO_SPIN, NO_SPIN, NO_SPIN, NO_SPIN, L9_SPIN, R9_SPIN, L9_SPIN, R9_SPIN, L9_SPIN, R9_SPIN, L9_SPIN, R9_SPIN, }; static_assert(std::size(TrackTypeToSpinFunction) == TrackElemType::Count); @@ -7166,8 +7171,8 @@ static constexpr TrackComputeFunction GetLateralFunction(const uint16_t type) case TrackElemType::LeftLargeHalfLoopUp: case TrackElemType::RightLargeHalfLoopUp: return EvaluatorConst<0>; - case TrackElemType::RightLargeHalfLoopDown: case TrackElemType::LeftLargeHalfLoopDown: + case TrackElemType::RightLargeHalfLoopDown: return EvaluatorConst<0>; case TrackElemType::HeartLineTransferUp: return EvaluatorConst<0>; @@ -7558,11 +7563,11 @@ static constexpr TrackComputeFunction GetVerticalFunction(const uint16_t type) case TrackElemType::RightLargeHalfLoopUp: case TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp: case TrackElemType::RightFlyerLargeHalfLoopUninvertedUp: - case TrackElemType::RightFlyerLargeHalfLoopInvertedUp: case TrackElemType::LeftFlyerLargeHalfLoopInvertedUp: + case TrackElemType::RightFlyerLargeHalfLoopInvertedUp: return EvaluatorLargeHalfLoopUp; - case TrackElemType::RightLargeHalfLoopDown: case TrackElemType::LeftLargeHalfLoopDown: + case TrackElemType::RightLargeHalfLoopDown: case TrackElemType::LeftFlyerLargeHalfLoopInvertedDown: case TrackElemType::RightFlyerLargeHalfLoopInvertedDown: case TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown: @@ -7599,7 +7604,7 @@ static constexpr TrackComputeFunction GetVerticalFunction(const uint16_t type) } } -static constexpr const StringId RideConfigurationStringIds[] = { +static constexpr StringId RideConfigurationStringIds[] = { STR_EMPTY, // 0 STR_STATION_PLATFORM, // 1 STR_EMPTY, // 2 @@ -7873,24 +7878,24 @@ static constexpr const StringId RideConfigurationStringIds[] = { STR_LARGE_HALF_CORKSCREW_RIGHT, // TrackElemType::RightCorkscrewDown STR_MEDIUM_HALF_LOOP_LEFT, // TrackElemType::LeftMediumHalfLoopUp STR_MEDIUM_HALF_LOOP_RIGHT, // TrackElemType::RightMediumHalfLoopUp - STR_MEDIUM_HALF_LOOP_LEFT, // TrackElemType::RightMediumHalfLoopDown - STR_MEDIUM_HALF_LOOP_RIGHT, // TrackElemType::LeftMediumHalfLoopDown + STR_MEDIUM_HALF_LOOP_LEFT, // TrackElemType::LeftMediumHalfLoopDown + STR_MEDIUM_HALF_LOOP_RIGHT, // TrackElemType::RightMediumHalfLoopDown STR_ZERO_G_ROLL_LEFT, // TrackElemType::LeftZeroGRollUp STR_ZERO_G_ROLL_RIGHT, // TrackElemType::RightZeroGRollUp - STR_ZERO_G_ROLL_LEFT, // TrackElemType::RightZeroGRollDown - STR_ZERO_G_ROLL_RIGHT, // TrackElemType::LeftZeroGRollDown + STR_ZERO_G_ROLL_LEFT, // TrackElemType::LeftZeroGRollDown + STR_ZERO_G_ROLL_RIGHT, // TrackElemType::RightZeroGRollDown STR_LARGE_ZERO_G_ROLL_LEFT, // TrackElemType::LeftLargeZeroGRollUp STR_LARGE_ZERO_G_ROLL_RIGHT, // TrackElemType::RightLargeZeroGRollUp - STR_LARGE_ZERO_G_ROLL_LEFT, // TrackElemType::RightLargeZeroGRollDown - STR_LARGE_ZERO_G_ROLL_RIGHT, // TrackElemType::LeftLargeZeroGRollDown + STR_LARGE_ZERO_G_ROLL_LEFT, // TrackElemType::LeftLargeZeroGRollDown + STR_LARGE_ZERO_G_ROLL_RIGHT, // TrackElemType::RightLargeZeroGRollDown STR_LARGE_HALF_LOOP_LEFT, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedUp STR_LARGE_HALF_LOOP_RIGHT, // TrackElemType::RightFlyerLargeHalfLoopUninvertedUp - STR_LARGE_HALF_LOOP_RIGHT, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown STR_LARGE_HALF_LOOP_LEFT, // TrackElemType::LeftFlyerLargeHalfLoopInvertedDown + STR_LARGE_HALF_LOOP_RIGHT, // TrackElemType::RightFlyerLargeHalfLoopInvertedDown STR_LARGE_HALF_LOOP_LEFT, // TrackElemType::LeftFlyerLargeHalfLoopInvertedUp STR_LARGE_HALF_LOOP_RIGHT, // TrackElemType::RightFlyerLargeHalfLoopInvertedUp - STR_LARGE_HALF_LOOP_RIGHT, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown STR_LARGE_HALF_LOOP_LEFT, // TrackElemType::LeftFlyerLargeHalfLoopUninvertedDown + STR_LARGE_HALF_LOOP_RIGHT, // TrackElemType::RightFlyerLargeHalfLoopUninvertedDown STR_HALF_LOOP, // TrackElemType::FlyerHalfLoopInvertedUp STR_HALF_LOOP, // TrackElemType::FlyerHalfLoopUninvertedDown STR_EMPTY, // TrackElemType::LeftEighthToDiagUp25 diff --git a/src/openrct2/ride/TrackData.h b/src/openrct2/ride/TrackData.h index 08ca4cf3b7..dc28728fe1 100644 --- a/src/openrct2/ride/TrackData.h +++ b/src/openrct2/ride/TrackData.h @@ -13,7 +13,7 @@ #include "Track.h" #include "TrackPaint.h" -constexpr const uint8_t MaxSequencesPerPiece = 16; +constexpr uint8_t MaxSequencesPerPiece = 16; // 0x009968BB, 0x009968BC, 0x009968BD, 0x009968BF, 0x009968C1, 0x009968C3 @@ -61,7 +61,7 @@ struct DodgemsTrackSize uint8_t bottom; }; -constexpr const DodgemsTrackSize GetDodgemsTrackSize(track_type_t type) +constexpr DodgemsTrackSize GetDodgemsTrackSize(track_type_t type) { if (type == TrackElemType::FlatTrack2x2) return { 4, 4, 59, 59 }; diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index 3e9dac94b7..12a7782b1d 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -757,12 +757,17 @@ static std::optional TrackDesignPlaceSceneryElementGetEntry(c else { auto obj = objectMgr.GetLoadedObject(scenery.scenery_object); + bool objectUnavailable = obj == nullptr; if (obj != nullptr) { result.Type = obj->GetObjectType(); result.Index = objectMgr.GetLoadedObjectEntryIndex(obj); + if (!gCheatsIgnoreResearchStatus) + { + objectUnavailable = !ResearchIsInvented(result.Type, result.Index); + } } - else + if (objectUnavailable) { _trackDesignPlaceStateSceneryUnavailable = true; return {}; @@ -908,7 +913,7 @@ static void TrackDesignMirrorRide(TrackDesign* td6) } /** rct2: 0x00993EDC */ -static constexpr const uint8_t maze_segment_mirror_map[] = { +static constexpr uint8_t maze_segment_mirror_map[] = { 5, 4, 2, 7, 1, 0, 14, 3, 13, 12, 10, 15, 9, 8, 6, 11, }; diff --git a/src/openrct2/ride/TrackDesignRepository.cpp b/src/openrct2/ride/TrackDesignRepository.cpp index ea7fa3064f..167b1fa8f6 100644 --- a/src/openrct2/ride/TrackDesignRepository.cpp +++ b/src/openrct2/ride/TrackDesignRepository.cpp @@ -157,7 +157,7 @@ public: entryIsNotSeparate = true; } - if (entryIsNotSeparate || String::Equals(item.ObjectEntry, entry, true)) + if (entryIsNotSeparate || String::IEquals(item.ObjectEntry, entry)) { count++; } @@ -191,7 +191,7 @@ public: entryIsNotSeparate = true; } - if (entryIsNotSeparate || String::Equals(item.ObjectEntry, entry, true)) + if (entryIsNotSeparate || String::IEquals(item.ObjectEntry, entry)) { TrackDesignFileRef ref; ref.name = GetNameFromTrackPath(item.Path); diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index 575dc1163f..2b5fe0633c 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -189,7 +189,7 @@ const uint32_t trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile[4] = { SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_1_TILE_SE_SW, }; -static constexpr const uint32_t trackSpritesGhostTrainSpinningTunnel[2][2][4] = { +static constexpr uint32_t trackSpritesGhostTrainSpinningTunnel[2][2][4] = { { { SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_SW_NE_FRAME_0, @@ -783,7 +783,7 @@ bool TrackPaintUtilDrawStationCovers2( if (baseImageIndex == ImageIndexUndefined) return false; - static constexpr const int16_t heights[][2] = { + static constexpr int16_t heights[][2] = { { 22, 0 }, { 30, 0 }, { 46, 0 }, @@ -995,7 +995,7 @@ constexpr CoordsXYZ defaultRightHelixUpSmallQuarterBoundOffsets[4][3][2] = { }, }; -static constexpr const int8_t right_helix_up_small_quarter_tiles_sprite_map[] = { +static constexpr int8_t right_helix_up_small_quarter_tiles_sprite_map[] = { 0, -1, 1, @@ -1099,7 +1099,7 @@ constexpr CoordsXY defaultRightHelixUpLargeQuarterBoundLengths[4][5][2] = { }, }; -static constexpr const int8_t right_helix_up_large_quarter_sprite_map[] = { +static constexpr int8_t right_helix_up_large_quarter_sprite_map[] = { 0, -1, 1, 2, -1, 3, 4, }; void TrackPaintUtilRightHelixUpLargeQuarterTilesPaint( @@ -1276,7 +1276,7 @@ const uint8_t mapLeftEighthTurnToOrthogonal[] = { 4, 2, 3, 1, 0, }; -static constexpr const int8_t eighth_to_diag_sprite_map[] = { +static constexpr int8_t eighth_to_diag_sprite_map[] = { 0, 1, 2, -1, 3, }; void TrackPaintUtilEighthToDiagTilesPaint( @@ -1315,7 +1315,7 @@ constexpr CoordsXY defaultDiagBoundLengths[4] = { { 32, 32 }, }; -static constexpr const int8_t diag_sprite_map[4][4] = { +static constexpr int8_t diag_sprite_map[4][4] = { { -1, 0, -1, -1 }, { -1, -1, -1, 0 }, { -1, -1, 0, -1 }, @@ -1440,7 +1440,7 @@ constexpr CoordsXY defaultRightQuarterTurn5TilesBoundLengths[4][5] = { }, }; -static constexpr const int8_t right_quarter_turn_5_tiles_sprite_map[] = { +static constexpr int8_t right_quarter_turn_5_tiles_sprite_map[] = { 0, -1, 1, 2, -1, 3, 4, }; @@ -1526,7 +1526,7 @@ void TrackPaintUtilRightQuarterTurn5TilesWoodenSupports( { if (trackSequence != 1 && trackSequence != 4) { - static constexpr const uint8_t supportTypes[][7] = { + static constexpr uint8_t supportTypes[][7] = { { 0, 0xFF, 4, 2, 0xFF, 4, 1 }, { 1, 0xFF, 5, 3, 0xFF, 5, 0 }, { 0, 0xFF, 2, 4, 0xFF, 2, 1 }, @@ -1613,7 +1613,7 @@ constexpr CoordsXY defaultRightQuarterTurn3TilesBoundLengths[4][3] = { }, }; -static constexpr const int8_t right_quarter_turn_3_tiles_sprite_map[] = { +static constexpr int8_t right_quarter_turn_3_tiles_sprite_map[] = { 0, -1, 1, @@ -1836,7 +1836,7 @@ void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel( } } -static constexpr const int8_t left_quarter_turn_3_tiles_sprite_map[] = { +static constexpr int8_t left_quarter_turn_3_tiles_sprite_map[] = { 2, -1, 1, @@ -2052,7 +2052,7 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, void TrackPaintUtilOnridePhotoSmallPaint( PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_ON_RIDE_PHOTO_SIGN_SMALL_SW_NE, SPR_ON_RIDE_PHOTO_CAMERA_SMALL_S, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_S }, { SPR_ON_RIDE_PHOTO_SIGN_SMALL_NW_SE, SPR_ON_RIDE_PHOTO_CAMERA_SMALL_W, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_W }, { SPR_ON_RIDE_PHOTO_SIGN_SMALL_NE_SW, SPR_ON_RIDE_PHOTO_CAMERA_SMALL_N, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_N }, @@ -2090,7 +2090,7 @@ void TrackPaintUtilOnridePhotoSmallPaint( void TrackPaintUtilOnridePhotoPaint( PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_ON_RIDE_PHOTO_SIGN_SW_NE, SPR_ON_RIDE_PHOTO_CAMERA_S, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_S }, { SPR_ON_RIDE_PHOTO_SIGN_NW_SE, SPR_ON_RIDE_PHOTO_CAMERA_W, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_W }, { SPR_ON_RIDE_PHOTO_SIGN_NE_SW, SPR_ON_RIDE_PHOTO_CAMERA_N, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_N }, @@ -2125,7 +2125,7 @@ void TrackPaintUtilOnridePhotoPaint( } } -static constexpr const uint16_t RightVerticalLoopSegments[] = { +static constexpr uint16_t RightVerticalLoopSegments[] = { SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, @@ -2225,7 +2225,7 @@ void PaintTrack(PaintSession& session, Direction direction, int32_t height, cons session.TrackColours[SCHEME_SUPPORTS] = ImageId(0, ride->track_colour[trackColourScheme].supports); session.TrackColours[SCHEME_MISC] = ImageId(0, COLOUR_BLACK); session.TrackColours[SCHEME_3] = ImageId(0, COLOUR_DARK_BROWN); - if (trackElement.IsHighlighted()) + if (trackElement.IsHighlighted() || session.SelectedElement == reinterpret_cast(&trackElement)) { session.TrackColours[SCHEME_TRACK] = HighlightMarker; session.TrackColours[SCHEME_SUPPORTS] = HighlightMarker; diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index ea455677fc..214d157e05 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -79,22 +79,22 @@ uint8_t _vehicleF64E2C; Vehicle* _vehicleFrontVehicle; CoordsXYZ _vehicleCurPosition; -static constexpr const OpenRCT2::Audio::SoundId _screamSet0[] = { +static constexpr OpenRCT2::Audio::SoundId _screamSet0[] = { OpenRCT2::Audio::SoundId::Scream8, OpenRCT2::Audio::SoundId::Scream1, }; -static constexpr const OpenRCT2::Audio::SoundId _screamSet1Wooden[] = { +static constexpr OpenRCT2::Audio::SoundId _screamSet1Wooden[] = { OpenRCT2::Audio::SoundId::Scream3, OpenRCT2::Audio::SoundId::Scream1, OpenRCT2::Audio::SoundId::Scream5, OpenRCT2::Audio::SoundId::Scream6, OpenRCT2::Audio::SoundId::Scream7, OpenRCT2::Audio::SoundId::Scream2, OpenRCT2::Audio::SoundId::Scream4, }; -static constexpr const OpenRCT2::Audio::SoundId _screamSet2[] = { +static constexpr OpenRCT2::Audio::SoundId _screamSet2[] = { OpenRCT2::Audio::SoundId::Scream1, OpenRCT2::Audio::SoundId::Scream6, }; // clang-format off -static constexpr const uint8_t SpaceRingsTimeToSpriteMap[] = +static constexpr uint8_t SpaceRingsTimeToSpriteMap[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, @@ -229,21 +229,21 @@ static constexpr const uint8_t SpaceRingsTimeToSpriteMap[] = }; // clang-format on -static constexpr const int8_t SwingingTimeToSpriteMap_0[] = { +static constexpr int8_t SwingingTimeToSpriteMap_0[] = { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, -1, -1, -1, -1, -1, 0, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_1[] = { +static constexpr int8_t SwingingTimeToSpriteMap_1[] = { 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, -1, -1, -1, -1, -2, -2, -2, -2, -2, -3, -3, -3, -3, -3, -3, -4, -4, -4, -4, -4, -4, -4, -4, -4, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -4, -4, -4, -4, -4, -4, -4, -4, -4, -3, -3, -3, -3, -3, -3, -2, -2, -2, -2, -2, -1, -1, -1, -1, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_2[] = { +static constexpr int8_t SwingingTimeToSpriteMap_2[] = { 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 0, 0, 0, @@ -251,7 +251,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_2[] = { -6, -6, -6, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -6, -6, -6, -6, -6, -6, -6, -6, -5, -5, -5, -5, -5, -5, -4, -4, -4, -4, -4, -3, -3, -3, -3, -2, -2, -2, -1, -1, -1, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_3[] = { +static constexpr int8_t SwingingTimeToSpriteMap_3[] = { 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 4, 3, 3, 2, 2, 1, 1, 0, 0, -1, @@ -259,7 +259,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_3[] = { -8, -8, -8, -8, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -8, -8, -8, -8, -8, -8, -8, -8, -7, -7, -7, -7, -7, -7, -6, -6, -6, -6, -6, -5, -5, -5, -5, -4, -4, -4, -3, -3, -2, -2, -1, -1, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_4[] = { +static constexpr int8_t SwingingTimeToSpriteMap_4[] = { 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, @@ -269,7 +269,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_4[] = { -7, -7, -7, -7, -7, -7, -7, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -5, -5, -5, -5, -5, -5, -5, -4, -4, -4, -4, -4, -3, -3, -3, -3, -3, -2, -2, -2, -2, -2, -1, -1, -1, -1, -1, 0, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_5[] = { +static constexpr int8_t SwingingTimeToSpriteMap_5[] = { 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, @@ -284,7 +284,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_5[] = { -11, -11, -10, -10, -10, -10, -9, -9, -9, -9, -8, -8, -8, -8, -7, -7, -7, -7, -6, -6, -6, -6, -5, -5, -5, -5, -4, -4, -4, -4, -3, -3, -3, -3, -2, -2, -2, -2, -1, -1, -1, -1, 0, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_6[] = { +static constexpr int8_t SwingingTimeToSpriteMap_6[] = { 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 21, 22, 22, 22, 23, 23, @@ -302,7 +302,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_6[] = { -14, -13, -13, -13, -12, -12, -12, -11, -11, -11, -10, -10, -10, -9, -9, -9, -8, -8, -8, -7, -7, -7, -6, -6, -6, -5, -5, -5, -4, -4, -4, -3, -3, -3, -2, -2, -2, -1, -1, -1, 0, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_7[] = { +static constexpr int8_t SwingingTimeToSpriteMap_7[] = { 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 21, 22, 22, @@ -314,7 +314,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_7[] = { -13, -13, -12, -12, -12, -11, -11, -11, -10, -10, -10, -9, -9, -9, -8, -8, -8, -7, -7, -7, -6, -6, -6, -5, -5, -5, -4, -4, -4, -3, -3, -3, -2, -2, -2, -1, -1, -1, 0, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_8[] = { +static constexpr int8_t SwingingTimeToSpriteMap_8[] = { 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, @@ -324,7 +324,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_8[] = { 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 0, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_9[] = { +static constexpr int8_t SwingingTimeToSpriteMap_9[] = { 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, @@ -334,7 +334,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_9[] = { 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 0, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_10[] = { +static constexpr int8_t SwingingTimeToSpriteMap_10[] = { 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, @@ -348,7 +348,7 @@ static constexpr const int8_t SwingingTimeToSpriteMap_10[] = { 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 25, 25, 25, 25, 26, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 28, 29, 29, 29, 29, 30, 30, 30, 30, 31, 31, 31, 31, 0, 0, -128, }; -static constexpr const int8_t SwingingTimeToSpriteMap_11[] = { +static constexpr int8_t SwingingTimeToSpriteMap_11[] = { 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 23, @@ -370,7 +370,7 @@ struct Unk9A36C4Struct }; /** rct2: 0x009A36C4 */ -static constexpr const Unk9A36C4Struct Unk9A36C4[] = { +static constexpr Unk9A36C4Struct Unk9A36C4[] = { { -1, 0, 8716 }, { -1, 0, 8716 }, { -1, 0, 8716 }, { -1, 1, 12327 }, { -1, 1, 12327 }, { -1, 1, 12327 }, { 0, 1, 8716 }, { -1, 1, 12327 }, { 0, 1, 8716 }, { 0, 1, 8716 }, { 0, 1, 8716 }, { 1, 1, 12327 }, { 1, 1, 12327 }, { 1, 1, 12327 }, { 1, 0, 8716 }, { 1, 1, 12327 }, { 1, 0, 8716 }, { 1, 0, 8716 }, @@ -380,7 +380,7 @@ static constexpr const Unk9A36C4Struct Unk9A36C4[] = { }; /** rct2: 0x009A37C4 */ -static constexpr const CoordsXY SurroundingTiles[] = { +static constexpr CoordsXY SurroundingTiles[] = { { 0, 0 }, { 0, +COORDS_XY_STEP }, { +COORDS_XY_STEP, 0 }, @@ -393,7 +393,7 @@ static constexpr const CoordsXY SurroundingTiles[] = { }; /** rct2: 0x009A37E4 */ -static constexpr const int32_t Unk9A37E4[] = { +static constexpr int32_t Unk9A37E4[] = { 2147483647, 2106585154, 1985590284, 1636362342, 1127484953, 2106585154, 1985590284, 1636362342, 1127484953, 58579923, 0, -555809667, -1073741824, -1518500249, -1859775391, -2074309916, -2147483647, 58579923, 0, -555809667, -1073741824, -1518500249, -1859775391, -2074309916, 1859775393, 1073741824, 0, @@ -404,7 +404,7 @@ static constexpr const int32_t Unk9A37E4[] = { }; /** rct2: 0x009A38D4 */ -static constexpr const int32_t Unk9A38D4[] = { +static constexpr int32_t Unk9A38D4[] = { 0, 417115092, 817995863, 1390684831, 1827693544, -417115092, -817995863, -1390684831, -1827693544, 2066040965, 2147483647, 2074309916, 1859775393, 1518500249, 1073741824, 555809666, 0, -2066040965, -2147483647, -2074309916, -1859775393, -1518500249, -1073741824, -555809666, 1073741824, 1859775393, 2147483647, @@ -415,24 +415,24 @@ static constexpr const int32_t Unk9A38D4[] = { }; /** rct2: 0x009A39C4 */ -static constexpr const int32_t Unk9A39C4[] = { +static constexpr int32_t Unk9A39C4[] = { 2147483647, 2096579710, 1946281152, 2096579710, 1946281152, 1380375879, 555809667, -372906620, -1231746017, -1859775391, 1380375879, 555809667, -372906620, -1231746017, -1859775391, 0, 2096579710, 1946281152, 2096579710, 1946281152, }; -static constexpr const CoordsXY AvoidCollisionMoveOffset[] = { +static constexpr CoordsXY AvoidCollisionMoveOffset[] = { { -1, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, }; -static constexpr const OpenRCT2::Audio::SoundId DoorOpenSoundIds[] = { +static constexpr OpenRCT2::Audio::SoundId DoorOpenSoundIds[] = { OpenRCT2::Audio::SoundId::DoorOpen, OpenRCT2::Audio::SoundId::Portcullis, }; -static constexpr const OpenRCT2::Audio::SoundId DoorCloseSoundIds[] = { +static constexpr OpenRCT2::Audio::SoundId DoorCloseSoundIds[] = { OpenRCT2::Audio::SoundId::DoorClose, OpenRCT2::Audio::SoundId::Portcullis, }; @@ -529,7 +529,7 @@ static const VehicleInfo* vehicle_get_move_info( if (!vehicle_move_info_valid(trackSubposition, type, direction, offset)) { - static constexpr const VehicleInfo zero = {}; + static constexpr VehicleInfo zero = {}; return &zero; } return &gTrackVehicleInfo[static_cast(trackSubposition)][typeAndDirection]->info[offset]; @@ -860,11 +860,11 @@ static uint8_t vehicle_sounds_update_get_pan_volume(OpenRCT2::Audio::VehicleSoun if (pan_y > 0) { pan_y = (0x400 - pan_y) / 4; - vol1 = LOBYTE(pan_y); - if (static_cast(HIBYTE(pan_y)) != 0) + vol1 = LoByte(pan_y); + if (static_cast(HiByte(pan_y)) != 0) { vol1 = 0xFF; - if (static_cast(HIBYTE(pan_y)) < 0) + if (static_cast(HiByte(pan_y)) < 0) { vol1 = 0; } @@ -878,11 +878,11 @@ static uint8_t vehicle_sounds_update_get_pan_volume(OpenRCT2::Audio::VehicleSoun if (pan_x > 0) { pan_x = (0x400 - pan_x) / 4; - vol2 = LOBYTE(pan_x); - if (static_cast(HIBYTE(pan_x)) != 0) + vol2 = LoByte(pan_x); + if (static_cast(HiByte(pan_x)) != 0) { vol2 = 0xFF; - if (static_cast(HIBYTE(pan_x)) < 0) + if (static_cast(HiByte(pan_x)) < 0) { vol2 = 0; } @@ -3467,7 +3467,7 @@ void Vehicle::UpdateCollisionSetup() } /** rct2: 0x009A3AC4, 0x009A3AC6 */ -static constexpr const CoordsXY stru_9A3AC4[] = { +static constexpr CoordsXY stru_9A3AC4[] = { { -256, 0 }, { -236, 98 }, { -181, 181 }, { -98, 236 }, { 0, 256 }, { 98, 236 }, { 181, 181 }, { 236, 98 }, { 256, 0 }, { 236, -98 }, { 181, -181 }, { 98, -236 }, { 0, -256 }, { -98, -236 }, { -181, -181 }, { -236, -98 }, }; @@ -4519,7 +4519,7 @@ void Vehicle::UpdateBoatLocation() } } - static constexpr const int8_t rotations[] = { 0, 1, -1, 2 }; + static constexpr int8_t rotations[] = { 0, 1, -1, 2 }; for (auto rotation : rotations) { if (randDirection + rotation == curDirection) @@ -5529,6 +5529,10 @@ OpenRCT2::Audio::SoundId Vehicle::UpdateScreamSound() continue; if (vehicle2->Pitch <= 15) return ProduceScreamSound(totalNumPeeps); + // Pitch 52 occurs on steep diagonal backward drops. + // (50 and 51 occur on gentle ones.) + if (vehicle2->Pitch == 52) + return ProduceScreamSound(totalNumPeeps); } return OpenRCT2::Audio::SoundId::Null; } @@ -5547,6 +5551,10 @@ OpenRCT2::Audio::SoundId Vehicle::UpdateScreamSound() continue; if (vehicle2->Pitch <= 23) return ProduceScreamSound(totalNumPeeps); + // Pitch 55 occurs on steep diagonal drops. + // (53 and 54 occur on gentle ones.) + if (vehicle2->Pitch == 55) + return ProduceScreamSound(totalNumPeeps); } return OpenRCT2::Audio::SoundId::Null; } diff --git a/src/openrct2/ride/Vehicle.h b/src/openrct2/ride/Vehicle.h index edff26b8f8..fe7a731a74 100644 --- a/src/openrct2/ride/Vehicle.h +++ b/src/openrct2/ride/Vehicle.h @@ -39,7 +39,7 @@ struct GForces }; // How many valid pitch values are currently in the game. Eventually pitch will be enumerated. -constexpr const uint8_t NumVehiclePitches = 60; +constexpr uint8_t NumVehiclePitches = 60; // Size: 0x09 struct VehicleInfo @@ -54,8 +54,8 @@ struct VehicleInfo struct SoundIdVolume; -constexpr const uint16_t VehicleTrackDirectionMask = 0b0000000000000011; -constexpr const uint16_t VehicleTrackTypeMask = 0b1111111111111100; +constexpr uint16_t VehicleTrackDirectionMask = 0b0000000000000011; +constexpr uint16_t VehicleTrackTypeMask = 0b1111111111111100; enum class MiniGolfAnimation : uint8_t; diff --git a/src/openrct2/ride/VehicleData.cpp b/src/openrct2/ride/VehicleData.cpp index 34371aea4f..2fec5dc8a3 100644 --- a/src/openrct2/ride/VehicleData.cpp +++ b/src/openrct2/ride/VehicleData.cpp @@ -13,7 +13,7 @@ // clang-format off /** rct2: 0x0099F100 */ -static constexpr const uint8_t Rotation1TimeToSpriteMap_0[] = { +static constexpr uint8_t Rotation1TimeToSpriteMap_0[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -66,7 +66,7 @@ static constexpr const uint8_t Rotation1TimeToSpriteMap_0[] = { }; /** rct2: 0x0099F422 */ -static constexpr const uint8_t Rotation1TimeToSpriteMap_1[] = { +static constexpr uint8_t Rotation1TimeToSpriteMap_1[] = { 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, @@ -110,7 +110,7 @@ static constexpr const uint8_t Rotation1TimeToSpriteMap_1[] = { }; /** rct2: 0x0099F6AB */ -static constexpr const uint8_t Rotation1TimeToSpriteMap_2[] = { +static constexpr uint8_t Rotation1TimeToSpriteMap_2[] = { 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, @@ -170,7 +170,7 @@ const uint8_t * Rotation1TimeToSpriteMaps[] = { }; /** rct2: 0x009A2434 */ -static constexpr const uint8_t Rotation2TimeToSpriteMap_0[] = { +static constexpr uint8_t Rotation2TimeToSpriteMap_0[] = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, @@ -212,7 +212,7 @@ static constexpr const uint8_t Rotation2TimeToSpriteMap_0[] = { }; /** rct2: 0x009A26A6 */ -static constexpr const uint8_t Rotation2TimeToSpriteMap_1[] = { +static constexpr uint8_t Rotation2TimeToSpriteMap_1[] = { 46, 46, 47, 47, 48, 48, 46, 46, 47, 47, 48, 48, 46, 46, 47, 47, 48, 48, 46, 46, 47, 47, 48, 48, 46, 46, 47, 47, 48, 48, 46, 46, 47, 47, 48, 48, 46, 46, 47, 47, 48, 48, 46, 46, 47, 47, 48, 48, 46, 46, 47, @@ -223,7 +223,7 @@ static constexpr const uint8_t Rotation2TimeToSpriteMap_1[] = { }; /** rct2: 0x009A270E */ -static constexpr const uint8_t Rotation2TimeToSpriteMap_2[] = { +static constexpr uint8_t Rotation2TimeToSpriteMap_2[] = { 43, 43, 44, 44, 45, 45, 43, 43, 44, 44, 45, 45, 43, 43, 44, 44, 45, 45, 40, 40, 41, 41, 42, 42, 40, 40, 41, 41, 42, 42, 40, 40, 41, 41, 42, 42, 37, 37, 38, 38, 39, 39, 37, 37, 38, 38, 39, 39, 37, 37, 38, @@ -263,7 +263,7 @@ const uint8_t * Rotation2TimeToSpriteMaps[] = { }; /** rct2: 0x0099EB28 */ -static constexpr const uint8_t Rotation3TimeToSpriteMap_0[] = { +static constexpr uint8_t Rotation3TimeToSpriteMap_0[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -300,7 +300,7 @@ static constexpr const uint8_t Rotation3TimeToSpriteMap_0[] = { }; /** rct2: 0x0099ED49 */ -static constexpr const uint8_t Rotation3TimeToSpriteMap_1[] = { +static constexpr uint8_t Rotation3TimeToSpriteMap_1[] = { 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, @@ -328,7 +328,7 @@ static constexpr const uint8_t Rotation3TimeToSpriteMap_1[] = { }; /** rct2: 0x0099EED1 */ -static constexpr const uint8_t Rotation3TimeToSpriteMap_2[] = { +static constexpr uint8_t Rotation3TimeToSpriteMap_2[] = { 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, @@ -372,7 +372,7 @@ const uint8_t * Rotation3TimeToSpriteMaps[] = { }; /** rct2: 0x009A12EC */ -static constexpr const TopSpinTimeToSpriteMap TopSpinTimeToSpriteMap_0[] = { +static constexpr TopSpinTimeToSpriteMap TopSpinTimeToSpriteMap_0[] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 2, 0 }, { 2, 0 }, { 2, 0 }, { 2, 0 }, @@ -458,7 +458,7 @@ static constexpr const TopSpinTimeToSpriteMap TopSpinTimeToSpriteMap_0[] = { }; /** rct2: 0x009A1751 */ -static constexpr const TopSpinTimeToSpriteMap TopSpinTimeToSpriteMap_1[] = { +static constexpr TopSpinTimeToSpriteMap TopSpinTimeToSpriteMap_1[] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 2, 0 }, { 2, 0 }, { 2, 0 }, { 2, 0 }, @@ -563,7 +563,7 @@ static constexpr const TopSpinTimeToSpriteMap TopSpinTimeToSpriteMap_1[] = { }; /** rct2: 0x009A1CC6 */ -static constexpr const TopSpinTimeToSpriteMap TopSpinTimeToSpriteMap_2[] = { +static constexpr TopSpinTimeToSpriteMap TopSpinTimeToSpriteMap_2[] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 2, 0 }, { 2, 0 }, { 2, 0 }, { 2, 0 }, diff --git a/src/openrct2/ride/VehiclePaint.cpp b/src/openrct2/ride/VehiclePaint.cpp index 134d075bd4..d50efc818b 100644 --- a/src/openrct2/ride/VehiclePaint.cpp +++ b/src/openrct2/ride/VehiclePaint.cpp @@ -1036,10 +1036,8 @@ static void VehicleSpritePaintRestraints( PaintSession& session, const Vehicle* vehicle, int32_t imageDirection, int32_t z, const CarEntry* carEntry) { int32_t boundingBoxNum = YawTo16(imageDirection); - auto restraintFrame = ((vehicle->restraints_position - 64) / 64) * 4; - auto spriteNum = (carEntry->SpriteByYaw(imageDirection, SpriteGroupType::RestraintAnimation) + restraintFrame) - * carEntry->base_num_frames - + carEntry->GroupImageId(SpriteGroupType::RestraintAnimation); + auto restraintFrame = ((vehicle->restraints_position - 64) / 64); + auto spriteNum = carEntry->SpriteOffset(SpriteGroupType::RestraintAnimation, imageDirection, restraintFrame); vehicle_sprite_paint(session, vehicle, spriteNum, VehicleBoundboxes[carEntry->draw_order][boundingBoxNum], z, carEntry); } @@ -3354,7 +3352,7 @@ static void VehiclePitchUp16BankedRight45( static void VehiclePitchUp16( PaintSession& session, const Vehicle* vehicle, int32_t imageDirection, int32_t z, const CarEntry* carEntry) { - switch (vehicle->bank_rotation) + switch (GetPaintBankRotation(vehicle)) { case 0: VehiclePitchUp16Unbanked(session, vehicle, imageDirection, z, carEntry); @@ -3596,7 +3594,7 @@ static void VehiclePitchDown16BankedRight45( static void VehiclePitchDown16( PaintSession& session, const Vehicle* vehicle, int32_t imageDirection, int32_t z, const CarEntry* carEntry) { - switch (vehicle->bank_rotation) + switch (GetPaintBankRotation(vehicle)) { case 0: VehiclePitchDown16Unbanked(session, vehicle, imageDirection, z, carEntry); @@ -3711,7 +3709,7 @@ using vehicle_sprite_func = void (*)( PaintSession& session, const Vehicle* vehicle, int32_t imageDirection, int32_t z, const CarEntry* carEntry); // clang-format off -static constexpr const vehicle_sprite_func PaintFunctionsByPitch[] = { +static constexpr vehicle_sprite_func PaintFunctionsByPitch[] = { VehiclePitchFlat, VehiclePitchUp12, VehiclePitchUp25, diff --git a/src/openrct2/ride/VehicleSubpositionData.cpp b/src/openrct2/ride/VehicleSubpositionData.cpp index 88fcc36d35..4377f320aa 100644 --- a/src/openrct2/ride/VehicleSubpositionData.cpp +++ b/src/openrct2/ride/VehicleSubpositionData.cpp @@ -12,8 +12,8 @@ #include "Vehicle.h" #define CREATE_VEHICLE_INFO(VAR, ...) \ - static constexpr const VehicleInfo VAR##_data[] = __VA_ARGS__; \ - static constexpr const VehicleInfoList VAR = { static_cast(std::size(VAR##_data)), VAR##_data }; + static constexpr VehicleInfo VAR##_data[] = __VA_ARGS__; \ + static constexpr VehicleInfoList VAR = { static_cast(std::size(VAR##_data)), VAR##_data }; #define MINI_GOLF_STATE(STATE) \ { \ @@ -23816,7 +23816,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfoRightLargeZeroGRollDown3, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown0, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown0, { { 31, 16, 0, 0, 0, 0 }, { 30, 16, 0, 0, 0, 0 }, { 29, 16, 0, 0, 0, 0 }, { 28, 16, 0, 0, 0, 0 }, { 27, 16, 0, 0, 0, 0 }, { 26, 16, 0, 0, 0, 0 }, { 25, 16, 0, 0, 0, 0 }, { 24, 16, 0, 0, 0, 0 }, { 23, 16, -1, 0, 0, 0 }, { 22, 16, -1, 0, 0, 0 }, { 21, 15, -1, 0, 0, 0 }, { 20, 15, -1, 0, 0, 0 }, { 19, 15, -2, 0, 0, 0 }, { 18, 15, -2, 0, 0, 0 }, { 17, 15, -2, 0, 0, 0 }, @@ -23884,7 +23884,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown0, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown1, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown1, { { 16, 0, 0, 8, 0, 0 }, { 16, 1, 0, 8, 0, 0 }, { 16, 2, 0, 8, 0, 0 }, { 16, 3, 0, 8, 0, 0 }, { 16, 4, 0, 8, 0, 0 }, { 16, 5, 0, 8, 0, 0 }, { 16, 6, 0, 8, 0, 0 }, { 16, 7, 0, 8, 0, 0 }, { 16, 8, -1, 8, 0, 0 }, { 16, 9, -1, 8, 0, 0 }, { 15, 10, -1, 8, 0, 0 }, { 15, 11, -1, 8, 0, 0 }, { 15, 12, -2, 8, 0, 0 }, { 15, 13, -2, 8, 0, 0 }, { 15, 14, -2, 8, 0, 0 }, @@ -23952,7 +23952,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown1, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown2, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown2, { { 0, 16, 0, 16, 0, 0 }, { 1, 16, 0, 16, 0, 0 }, { 2, 16, 0, 16, 0, 0 }, { 3, 16, 0, 16, 0, 0 }, { 4, 16, 0, 16, 0, 0 }, { 5, 16, 0, 16, 0, 0 }, { 6, 16, 0, 16, 0, 0 }, { 7, 16, 0, 16, 0, 0 }, { 8, 16, -1, 16, 0, 0 }, { 9, 16, -1, 16, 0, 0 }, { 10, 17, -1, 16, 0, 0 }, { 11, 17, -1, 16, 0, 0 }, { 12, 17, -2, 16, 0, 0 }, { 13, 17, -2, 16, 0, 0 }, { 14, 17, -2, 16, 0, 0 }, @@ -24020,7 +24020,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown2, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown3, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown3, { { 16, 31, 0, 24, 0, 0 }, { 16, 30, 0, 24, 0, 0 }, { 16, 29, 0, 24, 0, 0 }, { 16, 28, 0, 24, 0, 0 }, { 16, 27, 0, 24, 0, 0 }, { 16, 26, 0, 24, 0, 0 }, { 16, 25, 0, 24, 0, 0 }, { 16, 24, 0, 24, 0, 0 }, { 16, 23, -1, 24, 0, 0 }, { 16, 22, -1, 24, 0, 0 }, { 17, 21, -1, 24, 0, 0 }, { 17, 20, -1, 24, 0, 0 }, { 17, 19, -2, 24, 0, 0 }, { 17, 18, -2, 24, 0, 0 }, { 17, 17, -2, 24, 0, 0 }, @@ -24088,7 +24088,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown3, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown0, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown0, { { 31, 16, 0, 0, 0, 0 }, { 30, 16, 0, 0, 0, 0 }, { 29, 16, 0, 0, 0, 0 }, { 28, 16, 0, 0, 0, 0 }, { 27, 16, 0, 0, 0, 0 }, { 26, 16, 0, 0, 0, 0 }, { 25, 16, 0, 0, 0, 0 }, { 24, 16, 0, 0, 0, 0 }, { 23, 16, -1, 0, 0, 0 }, { 22, 16, -1, 0, 0, 0 }, { 21, 17, -1, 0, 0, 0 }, { 20, 17, -1, 0, 0, 0 }, { 19, 17, -2, 0, 0, 0 }, { 18, 17, -2, 0, 0, 0 }, { 17, 17, -2, 0, 0, 0 }, @@ -24156,7 +24156,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown0, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown1, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown1, { { 16, 0, 0, 8, 0, 0 }, { 16, 1, 0, 8, 0, 0 }, { 16, 2, 0, 8, 0, 0 }, { 16, 3, 0, 8, 0, 0 }, { 16, 4, 0, 8, 0, 0 }, { 16, 5, 0, 8, 0, 0 }, { 16, 6, 0, 8, 0, 0 }, { 16, 7, 0, 8, 0, 0 }, { 16, 8, -1, 8, 0, 0 }, { 16, 9, -1, 8, 0, 0 }, { 17, 10, -1, 8, 0, 0 }, { 17, 11, -1, 8, 0, 0 }, { 17, 12, -2, 8, 0, 0 }, { 17, 13, -2, 8, 0, 0 }, { 17, 14, -2, 8, 0, 0 }, @@ -24224,7 +24224,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown1, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown2, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown2, { { 0, 16, 0, 16, 0, 0 }, { 1, 16, 0, 16, 0, 0 }, { 2, 16, 0, 16, 0, 0 }, { 3, 16, 0, 16, 0, 0 }, { 4, 16, 0, 16, 0, 0 }, { 5, 16, 0, 16, 0, 0 }, { 6, 16, 0, 16, 0, 0 }, { 7, 16, 0, 16, 0, 0 }, { 8, 16, -1, 16, 0, 0 }, { 9, 16, -1, 16, 0, 0 }, { 10, 15, -1, 16, 0, 0 }, { 11, 15, -1, 16, 0, 0 }, { 12, 15, -2, 16, 0, 0 }, { 13, 15, -2, 16, 0, 0 }, { 14, 15, -2, 16, 0, 0 }, @@ -24292,7 +24292,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown2, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown3, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown3, { { 16, 31, 0, 24, 0, 0 }, { 16, 30, 0, 24, 0, 0 }, { 16, 29, 0, 24, 0, 0 }, { 16, 28, 0, 24, 0, 0 }, { 16, 27, 0, 24, 0, 0 }, { 16, 26, 0, 24, 0, 0 }, { 16, 25, 0, 24, 0, 0 }, { 16, 24, 0, 24, 0, 0 }, { 16, 23, -1, 24, 0, 0 }, { 16, 22, -1, 24, 0, 0 }, { 15, 21, -1, 24, 0, 0 }, { 15, 20, -1, 24, 0, 0 }, { 15, 19, -2, 24, 0, 0 }, { 15, 18, -2, 24, 0, 0 }, { 15, 17, -2, 24, 0, 0 }, @@ -24360,7 +24360,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopDown3, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown0, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown0, { { 31, 16, 32, 0, 0, 0 }, { 30, 16, 32, 0, 0, 0 }, { 29, 16, 32, 0, 0, 0 }, { 28, 16, 32, 0, 0, 0 }, { 27, 16, 32, 0, 0, 0 }, { 26, 16, 32, 0, 0, 0 }, { 25, 16, 32, 0, 0, 0 }, { 24, 16, 32, 0, 0, 0 }, { 23, 16, 31, 0, 0, 0 }, { 22, 16, 31, 0, 0, 0 }, { 21, 15, 31, 0, 0, 0 }, { 20, 15, 31, 0, 0, 0 }, { 19, 15, 30, 0, 0, 0 }, { 18, 15, 30, 0, 0, 0 }, { 17, 15, 30, 0, 0, 0 }, @@ -24428,7 +24428,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown0, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown1, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown1, { { 16, 0, 32, 8, 0, 0 }, { 16, 1, 32, 8, 0, 0 }, { 16, 2, 32, 8, 0, 0 }, { 16, 3, 32, 8, 0, 0 }, { 16, 4, 32, 8, 0, 0 }, { 16, 5, 32, 8, 0, 0 }, { 16, 6, 32, 8, 0, 0 }, { 16, 7, 32, 8, 0, 0 }, { 16, 8, 31, 8, 0, 0 }, { 16, 9, 31, 8, 0, 0 }, { 15, 10, 31, 8, 0, 0 }, { 15, 11, 31, 8, 0, 0 }, { 15, 12, 30, 8, 0, 0 }, { 15, 13, 30, 8, 0, 0 }, { 15, 14, 30, 8, 0, 0 }, @@ -24496,7 +24496,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown1, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown2, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown2, { { 0, 16, 32, 16, 0, 0 }, { 1, 16, 32, 16, 0, 0 }, { 2, 16, 32, 16, 0, 0 }, { 3, 16, 32, 16, 0, 0 }, { 4, 16, 32, 16, 0, 0 }, { 5, 16, 32, 16, 0, 0 }, { 6, 16, 32, 16, 0, 0 }, { 7, 16, 32, 16, 0, 0 }, { 8, 16, 31, 16, 0, 0 }, { 9, 16, 31, 16, 0, 0 }, { 10, 17, 31, 16, 0, 0 }, { 11, 17, 31, 16, 0, 0 }, { 12, 17, 30, 16, 0, 0 }, { 13, 17, 30, 16, 0, 0 }, { 14, 17, 30, 16, 0, 0 }, @@ -24564,7 +24564,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown2, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown3, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown3, { { 16, 31, 32, 24, 0, 0 }, { 16, 30, 32, 24, 0, 0 }, { 16, 29, 32, 24, 0, 0 }, { 16, 28, 32, 24, 0, 0 }, { 16, 27, 32, 24, 0, 0 }, { 16, 26, 32, 24, 0, 0 }, { 16, 25, 32, 24, 0, 0 }, { 16, 24, 32, 24, 0, 0 }, { 16, 23, 31, 24, 0, 0 }, { 16, 22, 31, 24, 0, 0 }, { 17, 21, 31, 24, 0, 0 }, { 17, 20, 31, 24, 0, 0 }, { 17, 19, 30, 24, 0, 0 }, { 17, 18, 30, 24, 0, 0 }, { 17, 17, 30, 24, 0, 0 }, @@ -24632,7 +24632,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown3, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown0, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown0, { { 31, 16, 32, 0, 0, 0 }, { 30, 16, 32, 0, 0, 0 }, { 29, 16, 32, 0, 0, 0 }, { 28, 16, 32, 0, 0, 0 }, { 27, 16, 32, 0, 0, 0 }, { 26, 16, 32, 0, 0, 0 }, { 25, 16, 32, 0, 0, 0 }, { 24, 16, 32, 0, 0, 0 }, { 23, 16, 31, 0, 0, 0 }, { 22, 16, 31, 0, 0, 0 }, { 21, 17, 31, 0, 0, 0 }, { 20, 17, 31, 0, 0, 0 }, { 19, 17, 30, 0, 0, 0 }, { 18, 17, 30, 0, 0, 0 }, { 17, 17, 30, 0, 0, 0 }, @@ -24700,7 +24700,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown0, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown1, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown1, { { 16, 0, 32, 8, 0, 0 }, { 16, 1, 32, 8, 0, 0 }, { 16, 2, 32, 8, 0, 0 }, { 16, 3, 32, 8, 0, 0 }, { 16, 4, 32, 8, 0, 0 }, { 16, 5, 32, 8, 0, 0 }, { 16, 6, 32, 8, 0, 0 }, { 16, 7, 32, 8, 0, 0 }, { 16, 8, 31, 8, 0, 0 }, { 16, 9, 31, 8, 0, 0 }, { 17, 10, 31, 8, 0, 0 }, { 17, 11, 31, 8, 0, 0 }, { 17, 12, 30, 8, 0, 0 }, { 17, 13, 30, 8, 0, 0 }, { 17, 14, 30, 8, 0, 0 }, @@ -24768,7 +24768,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown1, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown2, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown2, { { 0, 16, 32, 16, 0, 0 }, { 1, 16, 32, 16, 0, 0 }, { 2, 16, 32, 16, 0, 0 }, { 3, 16, 32, 16, 0, 0 }, { 4, 16, 32, 16, 0, 0 }, { 5, 16, 32, 16, 0, 0 }, { 6, 16, 32, 16, 0, 0 }, { 7, 16, 32, 16, 0, 0 }, { 8, 16, 31, 16, 0, 0 }, { 9, 16, 31, 16, 0, 0 }, { 10, 15, 31, 16, 0, 0 }, { 11, 15, 31, 16, 0, 0 }, { 12, 15, 30, 16, 0, 0 }, { 13, 15, 30, 16, 0, 0 }, { 14, 15, 30, 16, 0, 0 }, @@ -24836,7 +24836,7 @@ CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown2, { -CREATE_VEHICLE_INFO(TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown3, { +CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown3, { { 16, 31, 32, 24, 0, 0 }, { 16, 30, 32, 24, 0, 0 }, { 16, 29, 32, 24, 0, 0 }, { 16, 28, 32, 24, 0, 0 }, { 16, 27, 32, 24, 0, 0 }, { 16, 26, 32, 24, 0, 0 }, { 16, 25, 32, 24, 0, 0 }, { 16, 24, 32, 24, 0, 0 }, { 16, 23, 31, 24, 0, 0 }, { 16, 22, 31, 24, 0, 0 }, { 15, 21, 31, 24, 0, 0 }, { 15, 20, 31, 24, 0, 0 }, { 15, 19, 30, 24, 0, 0 }, { 15, 18, 30, 24, 0, 0 }, { 15, 17, 30, 24, 0, 0 }, @@ -29922,8 +29922,8 @@ static constexpr const VehicleInfoList *TrackVehicleInfoListDefault[] = { &TrackVehicleInfo_8C232A, &TrackVehicleInfo_8C244C, &TrackVehicleInfo_8C256E, &TrackVehicleInfo_8C2690, // PoweredLift &TrackVehicleInfo_9221B2, &TrackVehicleInfo_9237A6, &TrackVehicleInfo_924D9A, &TrackVehicleInfo_92638E, // LeftLargeHalfLoopUp &TrackVehicleInfo_922CAC, &TrackVehicleInfo_9242A0, &TrackVehicleInfo_925894, &TrackVehicleInfo_926E88, // RightLargeHalfLoopUp - &TrackVehicleInfo_927982, &TrackVehicleInfo_928F76, &TrackVehicleInfo_92A56A, &TrackVehicleInfo_92BB5E, // RightLargeHalfLoopDown - &TrackVehicleInfo_92847C, &TrackVehicleInfo_929A70, &TrackVehicleInfo_92B064, &TrackVehicleInfo_92C658, // LeftLargeHalfLoopDown + &TrackVehicleInfo_927982, &TrackVehicleInfo_928F76, &TrackVehicleInfo_92A56A, &TrackVehicleInfo_92BB5E, // LeftLargeHalfLoopDown + &TrackVehicleInfo_92847C, &TrackVehicleInfo_929A70, &TrackVehicleInfo_92B064, &TrackVehicleInfo_92C658, // RightLargeHalfLoopDown &TrackVehicleInfo_8D9BFE, &TrackVehicleInfo_8D9F60, &TrackVehicleInfo_8DA2C2, &TrackVehicleInfo_8DA624, // LeftFlyerTwistUp &TrackVehicleInfo_8DA986, &TrackVehicleInfo_8DACE8, &TrackVehicleInfo_8DB04A, &TrackVehicleInfo_8DB3AC, // RightFlyerTwistUp &TrackVehicleInfo_8DD21E, &TrackVehicleInfo_8DD580, &TrackVehicleInfo_8DD8E2, &TrackVehicleInfo_8DDC44, // LeftFlyerTwistDown @@ -30022,12 +30022,12 @@ static constexpr const VehicleInfoList *TrackVehicleInfoListDefault[] = { &TrackVehicleInfoRightLargeZeroGRollDown0, &TrackVehicleInfoRightLargeZeroGRollDown1, &TrackVehicleInfoRightLargeZeroGRollDown2, &TrackVehicleInfoRightLargeZeroGRollDown3, &TrackVehicleInfo_9221B2, &TrackVehicleInfo_9237A6, &TrackVehicleInfo_924D9A, &TrackVehicleInfo_92638E, // LeftFlyerLargeHalfLoopUninvertedUp &TrackVehicleInfo_922CAC, &TrackVehicleInfo_9242A0, &TrackVehicleInfo_925894, &TrackVehicleInfo_926E88, // RightFlyerLargeHalfLoopUninvertedUp - &TrackVehicleInfo_RightFlyerLargeHalfLoopDown0, &TrackVehicleInfo_RightFlyerLargeHalfLoopDown1, &TrackVehicleInfo_RightFlyerLargeHalfLoopDown2, &TrackVehicleInfo_RightFlyerLargeHalfLoopDown3, // RightFlyerLargeHalfLoopInvertedDown &TrackVehicleInfo_LeftFlyerLargeHalfLoopDown0, &TrackVehicleInfo_LeftFlyerLargeHalfLoopDown1, &TrackVehicleInfo_LeftFlyerLargeHalfLoopDown2, &TrackVehicleInfo_LeftFlyerLargeHalfLoopDown3, // LeftFlyerLargeHalfLoopInvertedDown + &TrackVehicleInfo_RightFlyerLargeHalfLoopDown0, &TrackVehicleInfo_RightFlyerLargeHalfLoopDown1, &TrackVehicleInfo_RightFlyerLargeHalfLoopDown2, &TrackVehicleInfo_RightFlyerLargeHalfLoopDown3, // RightFlyerLargeHalfLoopInvertedDown &TrackVehicleInfo_9221B2, &TrackVehicleInfo_9237A6, &TrackVehicleInfo_924D9A, &TrackVehicleInfo_92638E, // LeftFlyerLargeHalfLoopInvertedUp &TrackVehicleInfo_922CAC, &TrackVehicleInfo_9242A0, &TrackVehicleInfo_925894, &TrackVehicleInfo_926E88, // RightFlyerLargeHalfLoopInvertedUp - &TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown0, &TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown1, &TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown2, &TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown3, // RightFlyerLargeHalfLoopUninvertedDown &TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown0, &TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown1, &TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown2, &TrackVehicleInfo_LeftFlyerLargeHalfLoopUninvertedDown3, // LeftFlyerLargeHalfLoopUninvertedDown + &TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown0, &TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown1, &TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown2, &TrackVehicleInfo_RightFlyerLargeHalfLoopUninvertedDown3, // RightFlyerLargeHalfLoopUninvertedDown &TrackVehicleInfo_8E644E, &TrackVehicleInfo_8E69F9, &TrackVehicleInfo_8E6FA4, &TrackVehicleInfo_8E754F, // FlyerHalfLoopInvertedUp &TrackVehicleInfo_FlyerHalfLoopUninvertedDown0, &TrackVehicleInfo_FlyerHalfLoopUninvertedDown1, &TrackVehicleInfo_FlyerHalfLoopUninvertedDown2, &TrackVehicleInfo_FlyerHalfLoopUninvertedDown3, // FlyerHalfLoopUninvertedDown &TrackVehicleInfoLeftEighthToDiagUp250, &TrackVehicleInfoLeftEighthToDiagUp251, &TrackVehicleInfoLeftEighthToDiagUp252, &TrackVehicleInfoLeftEighthToDiagUp253, // TrackElemType::LeftEighthToDiagUp25 diff --git a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp b/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp index 86822e3d46..37bea7a751 100644 --- a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp +++ b/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp @@ -180,7 +180,7 @@ static void AirPoweredVerticalRCTrackFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_AIR_POWERED_VERTICAL_RC_FLAT_SW_NE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_NW_SE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_SW_NE, @@ -202,7 +202,7 @@ static void AirPoweredVerticalRCTrackStation( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_AIR_POWERED_VERTICAL_RC_STATION_SW_NE, SPR_STATION_BASE_B_SW_NE }, { SPR_AIR_POWERED_VERTICAL_RC_STATION_NW_SE, SPR_STATION_BASE_B_NW_SE }, { SPR_AIR_POWERED_VERTICAL_RC_STATION_SW_NE, SPR_STATION_BASE_B_SW_NE }, @@ -230,7 +230,7 @@ static void AirPoweredVerticalRCTrackRightQuarterTurn5( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][5] = { + static constexpr SpriteBb imageIds[4][5] = { { { SPR_AIR_POWERED_VERTICAL_RC_QUARTER_TURN_5_SW_SE_PART_0, { 0, 2, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, { SPR_AIR_POWERED_VERTICAL_RC_QUARTER_TURN_5_SW_SE_PART_1, { 0, 16, 0 }, { 0, 0, 0 }, { 32, 16, 2 } }, @@ -320,7 +320,7 @@ static void AirPoweredVerticalRCTrackFlatToLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_SW_NE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_FRONT_SW_NE }, { SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_NW_SE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_FRONT_NW_SE }, { SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_NE_SW, SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_FRONT_NE_SW }, @@ -349,7 +349,7 @@ static void AirPoweredVerticalRCTrackFlatToRightBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_RIGHT_BANK_SW_NE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_FRONT_SW_NE }, { SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_RIGHT_BANK_NW_SE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_FRONT_NW_SE }, { SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_RIGHT_BANK_NE_SW, SPR_AIR_POWERED_VERTICAL_RC_FLAT_TO_LEFT_BANK_FRONT_NE_SW }, @@ -392,7 +392,7 @@ static void AirPoweredVerticalRCTrackBankedRightQuarterTurn5( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][5] = { + static constexpr SpriteBb imageIds[4][5] = { { { SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 3 } }, { SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_SW_SE_PART_1, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 3 } }, @@ -496,7 +496,7 @@ static void AirPoweredVerticalRCTrackLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_AIR_POWERED_VERTICAL_RC_LEFT_BANK_SW_NE, SPR_AIR_POWERED_VERTICAL_RC_LEFT_BANK_NW_SE, SPR_AIR_POWERED_VERTICAL_RC_LEFT_BANK_NE_SW, @@ -532,7 +532,7 @@ static void AirPoweredVerticalRCTrackBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_AIR_POWERED_VERTICAL_RC_BRAKES_NW_SE, SPR_AIR_POWERED_VERTICAL_RC_BRAKES_SW_NE, SPR_AIR_POWERED_VERTICAL_RC_BRAKES_NW_SE, @@ -554,7 +554,7 @@ static void AirPoweredVerticalRCTrackVerticalSlopeUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t trackImageIds[7][4] = { + static constexpr uint32_t trackImageIds[7][4] = { { SPR_AIR_POWERED_VERTICAL_RC_SLOPE_SW_NE_0, SPR_AIR_POWERED_VERTICAL_RC_SLOPE_NW_SE_0, @@ -594,7 +594,7 @@ static void AirPoweredVerticalRCTrackVerticalSlopeUp( }, }; - static constexpr const uint32_t supportImageIds[7][4] = { + static constexpr uint32_t supportImageIds[7][4] = { { 22264, SPR_AIR_POWERED_VERTICAL_RC_SLOPE_SUPPORTS_NW_SE_0, @@ -639,13 +639,13 @@ static void AirPoweredVerticalRCTrackVerticalSlopeUp( }, }; - static constexpr const int8_t bbHeights03[] = { + static constexpr int8_t bbHeights03[] = { 1, 6, 14, 37, 76, }; - static constexpr const int8_t bbHeights12[] = { + static constexpr int8_t bbHeights12[] = { 1, 6, 14, 27, 59, }; - static constexpr const int32_t supportHeights[] = { + static constexpr int32_t supportHeights[] = { 48, 64, 128, 176, 208, 240, 240, }; @@ -775,7 +775,7 @@ static void AirPoweredVerticalRCTrackVerticalUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_AIR_POWERED_VERTICAL_RC_VERTICAL_UP_SW_NE_SEQ_0, SPR_AIR_POWERED_VERTICAL_RC_VERTICAL_UP_SW_NE_SEQ_1 }, { SPR_AIR_POWERED_VERTICAL_RC_VERTICAL_UP_NW_SE_SEQ_0, SPR_AIR_POWERED_VERTICAL_RC_VERTICAL_UP_NW_SE_SEQ_1 }, { SPR_AIR_POWERED_VERTICAL_RC_VERTICAL_UP_NE_SW_SEQ_0, SPR_AIR_POWERED_VERTICAL_RC_VERTICAL_UP_NE_SW_SEQ_1 }, @@ -820,7 +820,7 @@ static void AirPoweredVerticalRCTrackVerticalTop( return; } - static constexpr const uint32_t imageIds[4][6] = { + static constexpr uint32_t imageIds[4][6] = { { SPR_AIR_POWERED_VERTICAL_RC_VERTICAL_TOP_SUPPORT_SW_NE, SPR_AIR_POWERED_VERTICAL_RC_VERTICAL_TOP_TRACK_SW_NE_SEQ_0, @@ -960,7 +960,7 @@ static void AirPoweredVerticalRCTrackOnridePhoto( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_AIR_POWERED_VERTICAL_RC_FLAT_SW_NE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_NW_SE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_SW_NE, diff --git a/src/openrct2/ride/coaster/AlpineCoaster.cpp b/src/openrct2/ride/coaster/AlpineCoaster.cpp index d805883006..3a7b431e1f 100644 --- a/src/openrct2/ride/coaster/AlpineCoaster.cpp +++ b/src/openrct2/ride/coaster/AlpineCoaster.cpp @@ -96,7 +96,7 @@ namespace AlpineRC PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { (SPR_G2_ALPINE_TRACK_FLAT + 0), (SPR_G2_ALPINE_TRACK_FLAT + 0), SPR_STATION_BASE_B_SW_NE }, { (SPR_G2_ALPINE_TRACK_FLAT + 1), (SPR_G2_ALPINE_TRACK_FLAT + 1), SPR_STATION_BASE_B_NW_SE }, { (SPR_G2_ALPINE_TRACK_FLAT + 0), (SPR_G2_ALPINE_TRACK_FLAT + 0), SPR_STATION_BASE_B_SW_NE }, diff --git a/src/openrct2/ride/coaster/BobsleighCoaster.cpp b/src/openrct2/ride/coaster/BobsleighCoaster.cpp index 6f43878845..bf950ea217 100644 --- a/src/openrct2/ride/coaster/BobsleighCoaster.cpp +++ b/src/openrct2/ride/coaster/BobsleighCoaster.cpp @@ -18,12 +18,12 @@ #include "../TrackData.h" #include "../TrackPaint.h" -static constexpr const uint32_t BOBSLEIGH_BLOCK_BRAKE_SW_NE_OPEN = 14586; -static constexpr const uint32_t BOBSLEIGH_BLOCK_BRAKE_NW_SE_OPEN = 14587; -static constexpr const uint32_t BOBSLEIGH_BLOCK_BRAKE_SW_NE_CLOSED = 14588; -static constexpr const uint32_t BOBSLEIGH_BLOCK_BRAKE_NW_SE_CLOSED = 14589; +static constexpr uint32_t BOBSLEIGH_BLOCK_BRAKE_SW_NE_OPEN = 14586; +static constexpr uint32_t BOBSLEIGH_BLOCK_BRAKE_NW_SE_OPEN = 14587; +static constexpr uint32_t BOBSLEIGH_BLOCK_BRAKE_SW_NE_CLOSED = 14588; +static constexpr uint32_t BOBSLEIGH_BLOCK_BRAKE_NW_SE_CLOSED = 14589; -static constexpr const uint32_t _BobsleighBlockBrakeImages[NumOrthogonalDirections][2] = { +static constexpr uint32_t _BobsleighBlockBrakeImages[NumOrthogonalDirections][2] = { { BOBSLEIGH_BLOCK_BRAKE_SW_NE_OPEN, BOBSLEIGH_BLOCK_BRAKE_SW_NE_CLOSED }, { BOBSLEIGH_BLOCK_BRAKE_NW_SE_OPEN, BOBSLEIGH_BLOCK_BRAKE_NW_SE_CLOSED }, { BOBSLEIGH_BLOCK_BRAKE_SW_NE_OPEN, BOBSLEIGH_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -101,7 +101,7 @@ static void BobsleighRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { 14580, SPR_STATION_BASE_B_SW_NE }, { 14581, SPR_STATION_BASE_B_NW_SE }, { 14580, SPR_STATION_BASE_B_SW_NE }, diff --git a/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp b/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp index 08611bbb52..3eb7a96d0f 100644 --- a/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp +++ b/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp @@ -20,12 +20,12 @@ #include "../TrackData.h" #include "../TrackPaint.h" -static constexpr const uint32_t BM_BLOCK_BRAKE_SW_NE_OPEN = 17150; -static constexpr const uint32_t BM_BLOCK_BRAKE_NW_SE_OPEN = 17151; -static constexpr const uint32_t BM_BLOCK_BRAKE_SW_NE_CLOSED = 17152; -static constexpr const uint32_t BM_BLOCK_BRAKE_NW_SE_CLOSED = 17153; +static constexpr uint32_t BM_BLOCK_BRAKE_SW_NE_OPEN = 17150; +static constexpr uint32_t BM_BLOCK_BRAKE_NW_SE_OPEN = 17151; +static constexpr uint32_t BM_BLOCK_BRAKE_SW_NE_CLOSED = 17152; +static constexpr uint32_t BM_BLOCK_BRAKE_NW_SE_CLOSED = 17153; -static constexpr const uint32_t _BolligerMabillardBlockBrakeImages[NumOrthogonalDirections][2] = { +static constexpr uint32_t _BolligerMabillardBlockBrakeImages[NumOrthogonalDirections][2] = { { BM_BLOCK_BRAKE_SW_NE_OPEN, BM_BLOCK_BRAKE_SW_NE_CLOSED }, { BM_BLOCK_BRAKE_NW_SE_OPEN, BM_BLOCK_BRAKE_NW_SE_CLOSED }, { BM_BLOCK_BRAKE_SW_NE_OPEN, BM_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -39,7 +39,7 @@ static void BolligerMabillardTrackFlat( { if (trackElement.HasChain()) { - static constexpr const uint32_t imageIds[] = { + static constexpr uint32_t imageIds[] = { 17486, 17487, 17488, @@ -56,7 +56,7 @@ static void BolligerMabillardTrackFlat( } else { - static constexpr const uint32_t imageIds[] = { + static constexpr uint32_t imageIds[] = { 17146, 17147, 17146, @@ -83,7 +83,7 @@ static void BolligerMabillardTrackStation( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { 17154, SPR_STATION_BASE_A_SW_NE }, { 17155, SPR_STATION_BASE_A_NW_SE }, { 17154, SPR_STATION_BASE_A_SW_NE }, @@ -12356,7 +12356,7 @@ static void BolligerMabillardTrackRightLargeHalfLoopUp( } template -static void BolligerMabillardTrackRightLargeHalfLoopDown( +static void BolligerMabillardTrackLeftLargeHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { @@ -12364,7 +12364,7 @@ static void BolligerMabillardTrackRightLargeHalfLoopDown( } template -static void BolligerMabillardTrackLeftLargeHalfLoopDown( +static void BolligerMabillardTrackRightLargeHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { @@ -13334,10 +13334,10 @@ template TRACK_PAINT_FUNCTION GetTrackPaintFunctio return BolligerMabillardTrackLeftLargeHalfLoopUp; case TrackElemType::RightLargeHalfLoopUp: return BolligerMabillardTrackRightLargeHalfLoopUp; - case TrackElemType::RightLargeHalfLoopDown: - return BolligerMabillardTrackRightLargeHalfLoopDown; case TrackElemType::LeftLargeHalfLoopDown: return BolligerMabillardTrackLeftLargeHalfLoopDown; + case TrackElemType::RightLargeHalfLoopDown: + return BolligerMabillardTrackRightLargeHalfLoopDown; case TrackElemType::Up90ToInvertedFlatQuarterLoop: return BolligerMabillardTrack90DegToInvertedFlatQuarterLoopUp; case TrackElemType::InvertedFlatToDown90QuarterLoop: diff --git a/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp b/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp index b102c878ce..0aa036e4b0 100644 --- a/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp @@ -232,22 +232,22 @@ static void ClassicWoodenRCTrackFlatToLeftBank( const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][1][2] = { + static constexpr SpriteBoundBox2 imageIds[4][1][2] = { { { - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_SW_NE, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_SW_NE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_NW_SE, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_FRONT_NW_SE, 0, { 0, 0, 0 }, { 26, 0, 5 }, { 1, 32, 9 } }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_FRONT_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 26, 0, 5 }, { 1, 32, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_NE_SW, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_SE_NW, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_FRONT_SE_NW, 0, { 0, 0, 0 }, { 26, 0, 5 }, { 1, 32, 9 } }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_SE_NW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_LEFT_BANK_FRONT_SE_NW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 26, 0, 5 }, { 1, 32, 9 }) }, } } }; WoodenRCTrackPaintBb(session, &imageIds[direction][trackSequence][0], height); @@ -262,23 +262,23 @@ static void ClassicWoodenRCTrackFlatToRightBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][1][2] = { + static constexpr SpriteBoundBox2 imageIds[4][1][2] = { { { - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_SW_NE, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_SW_NE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_NW_SE, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_NE_SW, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_FRONT_NE_SW, 0, { 0, 0, 0 }, { 0, 26, 5 }, { 32, 1, 9 } }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_FRONT_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 26, 5 }, { 32, 1, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_SE_NW, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_FLAT_TO_RIGHT_BANK_SE_NW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, {}, }, } @@ -309,23 +309,23 @@ static void ClassicWoodenRCTrackLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][1][2] = { + static constexpr SpriteBoundBox2 imageIds[4][1][2] = { { { - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_SW_NE, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_SW_NE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_NW_SE, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_NE_SW, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_SE_NW, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_SE_NW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, {}, }, } @@ -348,23 +348,23 @@ static void ClassicWoodenRCTrackLeftBankTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][1][2] = { + static constexpr SpriteBoundBox2 imageIds[4][1][2] = { { { - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_SW_NE, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_SW_NE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_NW_SE, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_FRONT_NW_SE, 0, { 0, 0, 0 }, { 26, 0, 5 }, { 1, 32, 9 } }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_FRONT_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 26, 0, 5 }, { 1, 32, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_NE_SW, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_FRONT_NE_SW, 0, { 0, 0, 0 }, { 0, 26, 5 }, { 32, 1, 9 } }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_FRONT_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 26, 5 }, { 32, 1, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_SE_NW, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_LEFT_BANK_TO_25_UP_SE_NW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, {}, }, } @@ -388,23 +388,23 @@ static void ClassicWoodenRCTrackRightBankTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][1][2] = { + static constexpr SpriteBoundBox2 imageIds[4][1][2] = { { { - { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_SW_NE, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_SW_NE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_NW_SE, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_FRONT_NW_SE, 0, { 0, 0, 0 }, { 26, 0, 5 }, { 1, 32, 9 } }, + { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_FRONT_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 26, 0, 5 }, { 1, 32, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_NE_SW, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, - { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_FRONT_NE_SW, 0, { 0, 0, 0 }, { 0, 26, 5 }, { 32, 1, 9 } }, + { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_FRONT_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 26, 5 }, { 32, 1, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_SE_NW, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_RIGHT_BANK_TO_25_UP_SE_NW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, {}, }, } @@ -429,23 +429,23 @@ static void ClassicWoodenRCTrack25DegUpToLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][1][2] = { + static constexpr SpriteBoundBox2 imageIds[4][1][2] = { { { - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_SW_NE, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_SW_NE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_NW_SE, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_FRONT_NW_SE, 0, { 0, 0, 0 }, { 26, 0, 5 }, { 1, 32, 9 } }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_FRONT_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 26, 0, 5 }, { 1, 32, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_NE_SW, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_FRONT_NE_SW, 0, { 0, 0, 0 }, { 0, 26, 5 }, { 32, 1, 9 } }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_FRONT_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 26, 5 }, { 32, 1, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_SE_NW, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_LEFT_BANK_SE_NW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, {}, }, } @@ -470,23 +470,23 @@ static void ClassicWoodenRCTrack25DegUpToRightBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][1][2] = { + static constexpr SpriteBoundBox2 imageIds[4][1][2] = { { { - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_SW_NE, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_SW_NE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, {}, } }, { { - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_NW_SE, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_FRONT_NW_SE, 0, { 0, 0, 0 }, { 26, 0, 5 }, { 1, 32, 9 } }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_FRONT_NW_SE, 0, { 0, 0, 0 }, BoundBoxXYZ({ 26, 0, 5 }, { 1, 32, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_NE_SW, 0, { 0, 0, 0 }, { 0, 3, 0 }, { 32, 25, 2 } }, - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_FRONT_NE_SW, 0, { 0, 0, 0 }, { 0, 26, 5 }, { 32, 1, 9 } }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 3, 0 }, { 32, 25, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_FRONT_NE_SW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 26, 5 }, { 32, 1, 9 }) }, } }, { { - { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_SE_NW, 0, { 0, 0, 0 }, { 3, 0, 0 }, { 25, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_25_UP_TO_RIGHT_BANK_SE_NW, 0, { 0, 0, 0 }, BoundBoxXYZ({ 3, 0, 0 }, { 25, 32, 2 }) }, {}, }, } @@ -539,48 +539,73 @@ static void ClassicWoodenRCTrackBankedRightQuarterTurn5( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][7][2] = { + static constexpr SpriteBoundBox2 imageIds[4][7][2] = { { { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_0, 0, { 0, 2, 0 }, { 0, 2, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_0, 0, { 0, 2, 0 }, { 0, 2, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_0, + 0, + { 0, 2, 0 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_0, + 0, + { 0, 2, 0 }, + BoundBoxXYZ({ 0, 2, 27 }, { 32, 32, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_2, 0, { 0, 16, 0 }, { 0, 16, 0 }, { 32, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_2, + 0, + { 0, 16, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 32, 16, 2 }) }, { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_2, 0, { 0, 16, 0 }, - { 0, 16, 27 }, - { 32, 16, 0 } }, + BoundBoxXYZ({ 0, 16, 27 }, { 32, 16, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_3, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_3, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_3, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 16, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_3, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 16, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_5, 0, { 16, 0, 0 }, { 16, 0, 0 }, { 16, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_5, + 0, + { 16, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 32, 2 }) }, { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_5, 0, { 16, 0, 0 }, - { 16, 0, 27 }, - { 16, 32, 0 } }, + BoundBoxXYZ({ 16, 0, 27 }, { 16, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_6, 0, { 2, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_6, 0, { 2, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_6, + 0, + { 2, 0, 0 }, + BoundBoxXYZ({ 2, 0, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_6, + 0, + { 2, 0, 0 }, + BoundBoxXYZ({ 2, 0, 27 }, { 32, 32, 0 }) }, }, }, { { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_0, 0, { 2, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_0, + 0, + { 2, 0, 0 }, + BoundBoxXYZ({ 2, 0, 0 }, { 32, 32, 2 }) }, {}, }, { @@ -588,11 +613,17 @@ static void ClassicWoodenRCTrackBankedRightQuarterTurn5( {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_2, 0, { 16, 0, 0 }, { 16, 0, 0 }, { 16, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_2, + 0, + { 16, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 32, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_3, 0, { 0, 16, 0 }, { 0, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_3, + 0, + { 0, 16, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 16, 16, 2 }) }, {}, }, { @@ -600,87 +631,134 @@ static void ClassicWoodenRCTrackBankedRightQuarterTurn5( {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_5, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_5, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 16, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_6, 0, { 0, 2, 0 }, { 0, 2, 0 }, { 32, 27, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_6, + 0, + { 0, 2, 0 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 27, 2 }) }, {}, }, }, { { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_0, 0, { 0, 2, 0 }, { 0, 2, 0 }, { 32, 27, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_0, 0, { 0, 2, 0 }, { 0, 2, 27 }, { 32, 27, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_0, + 0, + { 0, 2, 0 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 27, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_0, + 0, + { 0, 2, 0 }, + BoundBoxXYZ({ 0, 2, 27 }, { 32, 27, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 16, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 32, 16, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_3, 0, { 16, 16, 0 }, { 16, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_3, + 0, + { 16, 16, 0 }, + BoundBoxXYZ({ 16, 16, 0 }, { 16, 16, 2 }) }, { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_3, 0, { 16, 16, 0 }, - { 16, 16, 27 }, - { 16, 16, 0 } }, + BoundBoxXYZ({ 16, 16, 27 }, { 16, 16, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_5, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_5, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_5, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_5, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_6, 0, { 2, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_6, 0, { 2, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_6, + 0, + { 2, 0, 0 }, + BoundBoxXYZ({ 2, 0, 0 }, { 27, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_6, + 0, + { 2, 0, 0 }, + BoundBoxXYZ({ 2, 0, 27 }, { 27, 32, 0 }) }, }, }, { { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_0, 0, { 2, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 } }, - { 0, 0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_0, + 0, + { 2, 0, 0 }, + BoundBoxXYZ({ 2, 0, 0 }, { 27, 32, 2 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 2, 27 }, { 32, 27, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 16, 2 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 27 }, { 32, 16, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_3, 0, { 16, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 } }, - { 0, 0, { 0, 0, 0 }, { 16, 16, 27 }, { 16, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_3, + 0, + { 16, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 16, 2 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 16, 16, 27 }, { 16, 16, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_5, 0, { 0, 16, 0 }, { 0, 16, 0 }, { 32, 16, 2 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_5, + 0, + { 0, 16, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 32, 16, 2 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 27 }, { 16, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_6, 0, { 0, 2, 0 }, { 0, 2, 0 }, { 32, 32, 2 } }, - { 0, 0, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_6, + 0, + { 0, 2, 0 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 32, 2 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 2, 0, 27 }, { 27, 32, 0 }) }, }, }, }; - static constexpr const int8_t supportType[4][7] = { + static constexpr int8_t supportType[4][7] = { { 0, -1, 4, 2, -1, 4, 1 }, { 1, -1, 5, 3, -1, 5, 0 }, { 0, -1, 2, 4, -1, 2, 1 }, { 1, -1, 3, 5, -1, 3, 0 }, }; - static constexpr const int blockedSegments[7] = { + static constexpr int blockedSegments[7] = { SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC, SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, @@ -715,32 +793,49 @@ static void ClassicWoodenRCTrackRightQuarterTurn3Bank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][4][2] = { + static constexpr SpriteBoundBox2 imageIds[4][4][2] = { { { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SW_SE_SEQ_0, 0, { 0, 6, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_SW_SE_SEQ_0, 0, { 0, 6, 0 }, { 0, 6, 27 }, { 32, 20, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SW_SE_SEQ_0, + 0, + { 0, 6, 0 }, + BoundBoxXYZ({ 0, 6, 0 }, { 32, 20, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_SW_SE_SEQ_0, + 0, + { 0, 6, 0 }, + BoundBoxXYZ({ 0, 6, 27 }, { 32, 20, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SW_SE_SEQ_2, 0, { 16, 16, 0 }, { 16, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SW_SE_SEQ_2, + 0, + { 16, 16, 0 }, + BoundBoxXYZ({ 16, 16, 0 }, { 16, 16, 2 }) }, { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_SW_SE_SEQ_2, 0, { 16, 16, 0 }, - { 16, 16, 27 }, - { 16, 16, 0 } }, + BoundBoxXYZ({ 16, 16, 27 }, { 16, 16, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SW_SE_SEQ_3, 0, { 6, 0, 0 }, { 6, 0, 0 }, { 20, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_SW_SE_SEQ_3, 0, { 6, 0, 0 }, { 6, 0, 27 }, { 20, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SW_SE_SEQ_3, + 0, + { 6, 0, 0 }, + BoundBoxXYZ({ 6, 0, 0 }, { 20, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_SW_SE_SEQ_3, + 0, + { 6, 0, 0 }, + BoundBoxXYZ({ 6, 0, 27 }, { 20, 32, 0 }) }, }, }, { { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NW_SW_SEQ_0, 0, { 0, 0, 0 }, { 6, 0, 0 }, { 20, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NW_SW_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 6, 0, 0 }, { 20, 32, 2 }) }, {}, }, { @@ -748,35 +843,62 @@ static void ClassicWoodenRCTrackRightQuarterTurn3Bank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NW_SW_SEQ_2, 0, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NW_SW_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 16, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NW_SW_SEQ_3, 0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NW_SW_SEQ_3, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 6, 0 }, { 32, 20, 2 }) }, {}, }, }, { { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NE_NW_SEQ_0, 0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_NE_NW_SEQ_0, 0, { 0, 0, 0 }, { 0, 6, 27 }, { 32, 20, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NE_NW_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 6, 0 }, { 32, 20, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_NE_NW_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 6, 27 }, { 32, 20, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NE_NW_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_NE_NW_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NE_NW_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 16, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_NE_NW_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 16, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NE_NW_SEQ_3, 0, { 0, 0, 0 }, { 6, 0, 0 }, { 20, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_NE_NW_SEQ_3, 0, { 0, 0, 0 }, { 6, 0, 27 }, { 20, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_NE_NW_SEQ_3, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 6, 0, 0 }, { 20, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_FRONT_NE_NW_SEQ_3, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 6, 0, 27 }, { 20, 32, 0 }) }, }, }, { { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SE_NE_SEQ_0, 0, { 6, 0, 0 }, { 6, 0, 0 }, { 20, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SE_NE_SEQ_0, + 0, + { 6, 0, 0 }, + BoundBoxXYZ({ 6, 0, 0 }, { 20, 32, 2 }) }, {}, }, { @@ -784,24 +906,30 @@ static void ClassicWoodenRCTrackRightQuarterTurn3Bank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SE_NE_SEQ_2, 0, { 0, 16, 0 }, { 0, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SE_NE_SEQ_2, + 0, + { 0, 16, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 16, 16, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SE_NE_SEQ_3, 0, { 0, 6, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, + { SPR_CLASSIC_WOODEN_RC_BANKED_QUARTER_TURN_3_SE_NE_SEQ_3, + 0, + { 0, 6, 0 }, + BoundBoxXYZ({ 0, 6, 0 }, { 32, 20, 2 }) }, {}, }, }, }; - static constexpr const int8_t supportType[4][4] = { + static constexpr int8_t supportType[4][4] = { { 4, -1, -1, 4 }, { 5, -1, -1, 5 }, { 2, -1, -1, 2 }, { 3, -1, -1, 3 }, }; - static constexpr const int blockedSegments[4] = { + static constexpr int blockedSegments[4] = { SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, 0, SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, @@ -834,18 +962,27 @@ static void ClassicWoodenRCTrackLeftEighthBankToDiag( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][5][2] = { + static constexpr SpriteBoundBox2 imageIds[4][5][2] = { { { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_0_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_0_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 32, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_0_SEQ_1, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_0_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 16, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_0_SEQ_2, 0, { 0, 0, 0 }, { 0, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_0_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 16, 16, 2 }) }, {}, }, { @@ -853,47 +990,79 @@ static void ClassicWoodenRCTrackLeftEighthBankToDiag( {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_0_SEQ_4, 0, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_0_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 16, 0 }, { 16, 16, 2 }) }, {}, }, }, { { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_1_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_1_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_1_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_1_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 32, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_1_SEQ_1, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 34, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_1_SEQ_1, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_1_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 34, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_1_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_1_SEQ_2, 0, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_1_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 16, 0 }, { 16, 16, 2 }) }, { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_1_SEQ_2, 0, { 0, 0, 0 }, - { 16, 16, 27 }, - { 16, 16, 0 } }, + BoundBoxXYZ({ 16, 16, 27 }, { 16, 16, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_1_SEQ_4, 0, { 0, 0, 0 }, { 16, 0, 0 }, { 18, 16, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_1_SEQ_4, 0, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_1_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 18, 16, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_1_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 27 }, { 16, 16, 0 }) }, }, }, { { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_2_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_2_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 32, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_2_SEQ_1, 0, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_2_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 32, 16, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_2_SEQ_2, 0, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_2_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 16, 2 }) }, {}, }, { @@ -901,42 +1070,69 @@ static void ClassicWoodenRCTrackLeftEighthBankToDiag( {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_2_SEQ_4, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_2_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 16, 2 }) }, {}, }, }, { { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_3_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_3_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_3_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_3_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 32, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_3_SEQ_1, 0, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_3_SEQ_1, 0, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_3_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_3_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 27 }, { 16, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_3_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_3_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_3_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 16, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_3_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 16, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_3_SEQ_4, 0, { 0, 0, 0 }, { 0, 16, 0 }, { 16, 16, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_3_SEQ_4, 0, { 0, 0, 0 }, { 0, 16, 27 }, { 16, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_3_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 16, 16, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_LEFT_BANKED_FRONT_3_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 16, 27 }, { 16, 16, 0 }) }, }, }, }; - static constexpr const int8_t supportType[4][5] = { + static constexpr int8_t supportType[4][5] = { { 0, 0, 3, 5, -1 }, { 1, 1, 4, 2, -1 }, { 0, 0, 5, 3, -1 }, { 1, 1, 2, 4, -1 }, }; - static constexpr const int blockedSegments[5] = { + static constexpr int blockedSegments[5] = { SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, @@ -965,48 +1161,73 @@ static void ClassicWoodenRCTrackRightEighthBankToDiag( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][5][2] = { + static constexpr SpriteBoundBox2 imageIds[4][5][2] = { { { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_0_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_0_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_0_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_0_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 32, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_0_SEQ_1, 0, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_0_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 32, 16, 2 }) }, { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_0_SEQ_1, 0, { 0, 0, 0 }, - { 0, 16, 27 }, - { 32, 16, 0 } }, + BoundBoxXYZ({ 0, 16, 27 }, { 32, 16, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_0_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_0_SEQ_2, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_0_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 16, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_0_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 16, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_0_SEQ_4, 0, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_0_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 16, 2 }) }, { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_0_SEQ_4, 0, { 0, 0, 0 }, - { 16, 0, 27 }, - { 16, 16, 0 } }, + BoundBoxXYZ({ 16, 0, 27 }, { 16, 16, 0 }) }, }, }, { { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_1_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_1_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 32, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_1_SEQ_1, 0, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_1_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 32, 0 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_1_SEQ_2, 0, { 0, 0, 0 }, { 0, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_1_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 16, 16, 2 }) }, {}, }, { @@ -1014,47 +1235,79 @@ static void ClassicWoodenRCTrackRightEighthBankToDiag( {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_1_SEQ_4, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_1_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 16, 2 }) }, {}, }, }, { { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_2_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_2_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_2_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_2_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 32, 32, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_2_SEQ_1, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 34, 16, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_2_SEQ_1, 0, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_2_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 34, 16, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_2_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 32, 16, 0 }) }, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_2_SEQ_2, 0, { 0, 0, 0 }, { 4, 4, 0 }, { 28, 28, 2 } }, - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_2_SEQ_2, 0, { 0, 0, 0 }, { 4, 4, 27 }, { 28, 28, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_2_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 4, 4, 0 }, { 28, 28, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_2_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 4, 4, 27 }, { 28, 28, 0 }) }, }, { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_2_SEQ_4, 0, { 0, 0, 0 }, { 0, 16, 0 }, { 16, 18, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_2_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 16, 0 }, { 16, 18, 2 }) }, { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_FRONT_2_SEQ_4, 0, { 0, 0, 0 }, - { 0, 16, 27 }, - { 16, 16, 0 } }, + BoundBoxXYZ({ 0, 16, 27 }, { 16, 16, 0 }) }, }, }, { { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_3_SEQ_0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_3_SEQ_0, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 32, 2 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_3_SEQ_1, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_3_SEQ_1, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 32, 0 }) }, {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_3_SEQ_2, 0, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_3_SEQ_2, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 16, 2 }) }, {}, }, { @@ -1062,20 +1315,23 @@ static void ClassicWoodenRCTrackRightEighthBankToDiag( {}, }, { - { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_3_SEQ_4, 0, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 } }, + { SPR_CLASSIC_WOODEN_RC_ORTHO_TO_DIAG_RIGHT_BANKED_3_SEQ_4, + 0, + { 0, 0, 0 }, + BoundBoxXYZ({ 16, 16, 0 }, { 16, 16, 2 }) }, {}, }, }, }; - static constexpr const int8_t supportType[4][5] = { + static constexpr int8_t supportType[4][5] = { { 0, 0, 2, 4, -1 }, { 1, 1, 3, 5, -1 }, { 0, 0, 4, 2, -1 }, { 1, 1, 5, 3, -1 }, }; - static constexpr const int blockedSegments[5] = { + static constexpr int blockedSegments[5] = { SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, @@ -1120,15 +1376,21 @@ static void ClassicWoodenRCTrackDiagFlatToLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][4][2] = { + static constexpr SpriteBoundBox2 imageIds[4][4][2] = { { { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_0, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_FRONT_0, 0, { -16, -16, 0 }, { -16, -16, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_FRONT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 27 }, { 32, 32, 0 }) }, }, { {}, @@ -1153,7 +1415,10 @@ static void ClassicWoodenRCTrackDiagFlatToLeftBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_1, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_1, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, }, @@ -1167,8 +1432,14 @@ static void ClassicWoodenRCTrackDiagFlatToLeftBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_2, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 23, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_FRONT_2, 0, { -16, -16, 0 }, { -16, -16, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 23, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_FRONT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 27 }, { 32, 32, 0 }) }, }, { {}, @@ -1177,7 +1448,10 @@ static void ClassicWoodenRCTrackDiagFlatToLeftBank( }, { { - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_3, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_LEFT_3, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, { @@ -1195,7 +1469,7 @@ static void ClassicWoodenRCTrackDiagFlatToLeftBank( }, }; - static constexpr const int8_t supportType[4][4] = { + static constexpr int8_t supportType[4][4] = { { -1, 2, 4, -1 }, { -1, 3, 5, -1 }, { -1, 4, 2, -1 }, @@ -1218,15 +1492,21 @@ static void ClassicWoodenRCTrackDiagFlatToRightBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][4][2] = { + static constexpr SpriteBoundBox2 imageIds[4][4][2] = { { { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_0, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_FRONT_0, 0, { -16, -16, 0 }, { -16, -16, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_FRONT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 27 }, { 32, 32, 0 }) }, }, { {}, @@ -1251,7 +1531,10 @@ static void ClassicWoodenRCTrackDiagFlatToRightBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_1, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_1, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, }, @@ -1265,8 +1548,14 @@ static void ClassicWoodenRCTrackDiagFlatToRightBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_2, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 23, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_FRONT_2, 0, { -16, -16, 0 }, { -16, -16, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 23, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_FRONT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 27 }, { 32, 32, 0 }) }, }, { {}, @@ -1275,7 +1564,10 @@ static void ClassicWoodenRCTrackDiagFlatToRightBank( }, { { - { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_3, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_FLAT_TO_BANK_RIGHT_3, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, { @@ -1293,7 +1585,7 @@ static void ClassicWoodenRCTrackDiagFlatToRightBank( }, }; - static constexpr const int8_t supportType[4][4] = { + static constexpr int8_t supportType[4][4] = { { -1, 2, 4, -1 }, { -1, 3, 5, -1 }, { -1, 4, 2, -1 }, @@ -1330,15 +1622,18 @@ static void ClassicWoodenRCTrackDiagLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][4][2] = { + static constexpr SpriteBoundBox2 imageIds[4][4][2] = { { { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_0, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_FRONT_0, 0, { -16, -16, 0 }, { -16, -16, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_0, 0, { -16, -16, 0 }, BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_FRONT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 27 }, { 32, 32, 0 }) }, }, { {}, @@ -1363,7 +1658,7 @@ static void ClassicWoodenRCTrackDiagLeftBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_1, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_1, 0, { -16, -16, 0 }, BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, }, @@ -1377,8 +1672,11 @@ static void ClassicWoodenRCTrackDiagLeftBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_2, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 23, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_FRONT_2, 0, { -16, -16, 0 }, { -16, -16, 27 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_2, 0, { -16, -16, 0 }, BoundBoxXYZ({ -16, -16, 0 }, { 32, 23, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_FRONT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 27 }, { 32, 32, 0 }) }, }, { {}, @@ -1387,7 +1685,7 @@ static void ClassicWoodenRCTrackDiagLeftBank( }, { { - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_3, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_3, 0, { -16, -16, 0 }, BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, { @@ -1405,7 +1703,7 @@ static void ClassicWoodenRCTrackDiagLeftBank( }, }; - static constexpr const int8_t supportType[4][4] = { + static constexpr int8_t supportType[4][4] = { { -1, 2, 4, -1 }, { -1, 3, 5, -1 }, { -1, 4, 2, -1 }, @@ -1435,15 +1733,21 @@ static void ClassicWoodenRCTrackDiagLeftBankTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][4][2] = { + static constexpr SpriteBoundBox2 imageIds[4][4][2] = { { { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_0, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_FRONT_0, 0, { -16, -16, 0 }, { -16, -16, 35 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_FRONT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 35 }, { 32, 32, 0 }) }, }, { {}, @@ -1468,7 +1772,10 @@ static void ClassicWoodenRCTrackDiagLeftBankTo25DegUp( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_1, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_1, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, }, @@ -1482,8 +1789,14 @@ static void ClassicWoodenRCTrackDiagLeftBankTo25DegUp( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_2, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 23, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_FRONT_2, 0, { -16, -16, 0 }, { -16, -16, 35 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 23, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_FRONT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 35 }, { 32, 32, 0 }) }, }, { {}, @@ -1492,7 +1805,10 @@ static void ClassicWoodenRCTrackDiagLeftBankTo25DegUp( }, { { - { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_3, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_LEFT_BANK_TO_25_UP_3, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, { @@ -1510,7 +1826,7 @@ static void ClassicWoodenRCTrackDiagLeftBankTo25DegUp( }, }; - static constexpr const int8_t supportType[4][4] = { + static constexpr int8_t supportType[4][4] = { { -1, 2, 4, -1 }, { -1, 3, 5, -1 }, { -1, 4, 2, -1 }, @@ -1533,15 +1849,21 @@ static void ClassicWoodenRCTrackDiagRightBankTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][4][2] = { + static constexpr SpriteBoundBox2 imageIds[4][4][2] = { { { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_0, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_FRONT_0, 0, { -16, -16, 0 }, { -16, -16, 35 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_FRONT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 35 }, { 32, 32, 0 }) }, }, { {}, @@ -1566,7 +1888,10 @@ static void ClassicWoodenRCTrackDiagRightBankTo25DegUp( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_1, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_1, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, }, @@ -1580,8 +1905,14 @@ static void ClassicWoodenRCTrackDiagRightBankTo25DegUp( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_2, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 23, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_FRONT_2, 0, { -16, -16, 0 }, { -16, -16, 35 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 23, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_FRONT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 35 }, { 32, 32, 0 }) }, }, { {}, @@ -1590,7 +1921,10 @@ static void ClassicWoodenRCTrackDiagRightBankTo25DegUp( }, { { - { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_3, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_RIGHT_BANK_TO_25_UP_3, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, { @@ -1608,7 +1942,7 @@ static void ClassicWoodenRCTrackDiagRightBankTo25DegUp( }, }; - static constexpr const int8_t supportType[4][4] = { + static constexpr int8_t supportType[4][4] = { { -1, 2, 4, -1 }, { -1, 3, 5, -1 }, { -1, 4, 2, -1 }, @@ -1631,15 +1965,21 @@ static void ClassicWoodenRCTrackDiag25DegUpToLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][4][2] = { + static constexpr SpriteBoundBox2 imageIds[4][4][2] = { { { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_0, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_FRONT_0, 0, { -16, -16, 0 }, { -16, -16, 35 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_FRONT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 35 }, { 32, 32, 0 }) }, }, { {}, @@ -1664,7 +2004,10 @@ static void ClassicWoodenRCTrackDiag25DegUpToLeftBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_1, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_1, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, }, @@ -1678,8 +2021,14 @@ static void ClassicWoodenRCTrackDiag25DegUpToLeftBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_2, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 23, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_FRONT_2, 0, { -16, -16, 0 }, { -16, -16, 35 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 23, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_FRONT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 35 }, { 32, 32, 0 }) }, }, { {}, @@ -1688,7 +2037,10 @@ static void ClassicWoodenRCTrackDiag25DegUpToLeftBank( }, { { - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_3, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_LEFT_BANK_3, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, { @@ -1706,7 +2058,7 @@ static void ClassicWoodenRCTrackDiag25DegUpToLeftBank( }, }; - static constexpr const int8_t supportType[4][4] = { + static constexpr int8_t supportType[4][4] = { { -1, 2, 4, -1 }, { -1, 3, 5, -1 }, { -1, 4, 2, -1 }, @@ -1729,15 +2081,21 @@ static void ClassicWoodenRCTrackDiag25DegUpToRightBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[4][4][2] = { + static constexpr SpriteBoundBox2 imageIds[4][4][2] = { { { {}, {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_0, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_FRONT_0, 0, { -16, -16, 0 }, { -16, -16, 35 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_FRONT_0, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 35 }, { 32, 32, 0 }) }, }, { {}, @@ -1762,7 +2120,10 @@ static void ClassicWoodenRCTrackDiag25DegUpToRightBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_1, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_1, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, }, @@ -1776,8 +2137,14 @@ static void ClassicWoodenRCTrackDiag25DegUpToRightBank( {}, }, { - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_2, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 23, 2 } }, - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_FRONT_2, 0, { -16, -16, 0 }, { -16, -16, 35 }, { 32, 32, 0 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 23, 2 }) }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_FRONT_2, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 35 }, { 32, 32, 0 }) }, }, { {}, @@ -1786,7 +2153,10 @@ static void ClassicWoodenRCTrackDiag25DegUpToRightBank( }, { { - { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_3, 0, { -16, -16, 0 }, { -16, -16, 0 }, { 32, 32, 2 } }, + { SPR_CLASSIC_WOODEN_RC_DIAG_25_UP_TO_RIGHT_BANK_3, + 0, + { -16, -16, 0 }, + BoundBoxXYZ({ -16, -16, 0 }, { 32, 32, 2 }) }, {}, }, { @@ -1804,7 +2174,7 @@ static void ClassicWoodenRCTrackDiag25DegUpToRightBank( }, }; - static constexpr const int8_t supportType[4][4] = { + static constexpr int8_t supportType[4][4] = { { -1, 2, 4, -1 }, { -1, 3, 5, -1 }, { -1, 4, 2, -1 }, diff --git a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp b/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp index 0b38c29a32..c7b7eff7ff 100644 --- a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp +++ b/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp @@ -77,7 +77,7 @@ static void CompactInvertedRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 26557, SPR_STATION_INVERTED_BAR_A_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 26558, SPR_STATION_INVERTED_BAR_A_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 26557, SPR_STATION_INVERTED_BAR_A_SW_NE }, diff --git a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp b/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp index b876de7beb..01cdb6f6b9 100644 --- a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp @@ -18,12 +18,12 @@ #include "../TrackData.h" #include "../TrackPaint.h" -static constexpr const uint32_t CORKSCREW_RC_BLOCK_BRAKE_SW_NE_OPEN = 16232; -static constexpr const uint32_t CORKSCREW_RC_BLOCK_BRAKE_NW_SE_OPEN = 16233; -static constexpr const uint32_t CORKSCREW_RC_BLOCK_BRAKE_SW_NE_CLOSED = 16234; -static constexpr const uint32_t CORKSCREW_RC_BLOCK_BRAKE_NW_SE_CLOSED = 16235; +static constexpr uint32_t CORKSCREW_RC_BLOCK_BRAKE_SW_NE_OPEN = 16232; +static constexpr uint32_t CORKSCREW_RC_BLOCK_BRAKE_NW_SE_OPEN = 16233; +static constexpr uint32_t CORKSCREW_RC_BLOCK_BRAKE_SW_NE_CLOSED = 16234; +static constexpr uint32_t CORKSCREW_RC_BLOCK_BRAKE_NW_SE_CLOSED = 16235; -static constexpr const uint32_t _CorkscrewRCBlockBrakeImages[NumOrthogonalDirections][2] = { +static constexpr uint32_t _CorkscrewRCBlockBrakeImages[NumOrthogonalDirections][2] = { { CORKSCREW_RC_BLOCK_BRAKE_SW_NE_OPEN, CORKSCREW_RC_BLOCK_BRAKE_SW_NE_CLOSED }, { CORKSCREW_RC_BLOCK_BRAKE_NW_SE_OPEN, CORKSCREW_RC_BLOCK_BRAKE_NW_SE_CLOSED }, { CORKSCREW_RC_BLOCK_BRAKE_SW_NE_OPEN, CORKSCREW_RC_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -98,7 +98,7 @@ static void CorkscrewRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { 16236, SPR_STATION_BASE_A_SW_NE }, { 16237, SPR_STATION_BASE_A_NW_SE }, { 16236, SPR_STATION_BASE_A_SW_NE }, @@ -9431,6 +9431,633 @@ static void CorkscrewRCTrackRightTwistUpToDown( } } +/** rct2: 0x00824FAC */ +static void LayDownRCTrackLeftFlyerTwistUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement) +{ + switch (trackSequence) + { + case 0: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26972), { 0, 6, height }, + { 32, 20, 3 }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26978), { 0, 6, height }, + { 32, 20, 3 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26971), { 0, 6, height }, + { 32, 20, 3 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26977), { 0, 6, height }, + { 32, 20, 3 }); + break; + } + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26973), { 0, 6, height + 24 }, + { { 0, 6, height + 24 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26979), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26970), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26976), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26974), { 0, 6, height + 24 }, + { { 0, 6, height + 24 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26980), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26969), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26975), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), + 0xFFFF, 0); + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); + + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height, TUNNEL_0); + break; + case 2: + PaintUtilPushTunnelLeft(session, height, TUNNEL_0); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + break; + } +} + +/** rct2: 0x00824FBC */ +static void LayDownRCTrackRightFlyerTwistUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement) +{ + switch (trackSequence) + { + case 0: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26984), { 0, 6, height }, + { 32, 20, 3 }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26990), { 0, 6, height }, + { 32, 20, 3 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26983), { 0, 6, height }, + { 32, 20, 3 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26989), { 0, 6, height }, + { 32, 20, 3 }); + break; + } + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26985), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26991), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26982), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26988), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26986), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26992), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26981), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26987), { 0, 6, height + 24 }, + { 32, 20, 3 }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), + 0xFFFF, 0); + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); + + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height, TUNNEL_0); + break; + case 2: + PaintUtilPushTunnelLeft(session, height, TUNNEL_0); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + break; + } +} + +/** rct2: 0x00824C3C */ +static void LayDownRCTrackFlyerHalfLoopUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement) +{ + switch (trackSequence) + { + case 0: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16594), { 0, 6, height }, + { 32, 20, 3 }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16602), { 0, 6, height }, + { 32, 20, 11 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16601), { 0, 6, height }, + { 32, 20, 9 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16609), { 0, 6, height }, + { 32, 20, 7 }); + break; + } + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16595), { 0, 0, height }, + { { 0, 6, height }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16603), { 0, 14, height }, + { { 28, 6, height }, { 3, 20, 63 } }); + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 15, height, session.TrackColours[SCHEME_SUPPORTS]); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16600), { 0, 6, height }, + { { 28, 6, height }, { 3, 20, 63 } }); + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16608), { 0, 6, height }, + { 32, 20, 3 }); + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); + break; + } + PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16596), { 16, 0, height }, + { 2, 16, 119 }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16604), { 12, 0, height }, + { { 12, 0, height }, { 3, 16, 119 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16599), { 10, 16, height }, + { 4, 12, 119 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16607), { 16, 16, height }, + { { 15, 6, height }, { 2, 16, 119 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 168, 0x20); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16597), { 0, 0, height + 32 }, + { 32, 16, 3 }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16605), { 0, 0, height + 32 }, + { 32, 16, 3 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16598), { 0, 16, height + 32 }, + { 32, 12, 3 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16606), { 0, 16, height + 32 }, + { 32, 12, 3 }); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + break; + } +} + +/** rct2: 0x00824C5C */ +static void LayDownRCTrackLeftFlyerCorkscrewUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement) +{ + switch (trackSequence) + { + case 0: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16610), { 0, 0, height }, + { { 0, 6, height + 4 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16613), { 0, 0, height }, + { { 0, 6, height + 4 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16616), { 0, 0, height }, + { { 0, 6, height + 4 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16619), { 0, 0, height }, + { { 0, 6, height + 4 }, { 32, 20, 3 } }); + break; + } + + if (direction == 2) + { + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), + 0xFFFF, 0); + } + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); + if (direction != 2) + { + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), + 0xFFFF, 0); + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); + } + PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16611), { 0, 0, height }, + { { 6, 6, height + 10 }, { 20, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16614), { 0, 0, height }, + { { 6, 6, height + 10 }, { 20, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16617), { 0, 0, height }, + { { 6, 6, height + 10 }, { 20, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16620), { 0, 0, height }, + { { 6, 6, height + 10 }, { 20, 20, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16612), { 0, 0, height }, + { { 6, 0, height + 24 }, { 20, 32, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16615), { 0, 0, height }, + { { 6, 0, height + 24 }, { 20, 32, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16618), { 0, 0, height }, + { { 6, 0, height + 24 }, { 20, 32, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16621), { 0, 0, height }, + { { 6, 0, height + 24 }, { 20, 32, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), + 0xFFFF, 0); + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 0, height + 35, session.TrackColours[SCHEME_SUPPORTS]); + + switch (direction) + { + case 2: + PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0); + break; + case 3: + PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + break; + } +} + +/** rct2: 0x00824C6C */ +static void LayDownRCTrackRightFlyerCorkscrewUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement) +{ + switch (trackSequence) + { + case 0: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16622), { 0, 0, height }, + { { 0, 6, height + 4 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16625), { 0, 0, height }, + { { 0, 6, height + 4 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16628), { 0, 0, height }, + { { 0, 6, height + 4 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16631), { 0, 0, height }, + { { 0, 6, height + 4 }, { 32, 20, 3 } }); + break; + } + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16623), { 0, 0, height }, + { { 6, 6, height + 10 }, { 20, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16626), { 0, 0, height }, + { { 6, 6, height + 10 }, { 20, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16629), { 0, 0, height }, + { { 6, 6, height + 10 }, { 20, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16632), { 0, 0, height }, + { { 6, 6, height + 10 }, { 20, 20, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16624), { 0, 0, height }, + { { 6, 0, height + 24 }, { 20, 32, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16627), { 0, 0, height }, + { { 6, 0, height + 24 }, { 20, 32, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16630), { 0, 0, height }, + { { 6, 0, height + 24 }, { 20, 32, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16633), { 0, 0, height }, + { { 6, 0, height + 24 }, { 20, 32, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), + 0xFFFF, 0); + MetalASupportsPaintSetup( + session, MetalSupportType::TubesInverted, 4, 0, height + 35, session.TrackColours[SCHEME_SUPPORTS]); + + switch (direction) + { + case 0: + PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0); + break; + case 1: + PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + break; + } +} + +static void LayDownRCTrackHalfLoopUninvertedDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement) +{ + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::FlyerHalfLoopInvertedUp); + function(session, ride, 3 - trackSequence, direction, height, trackElement); + return; +} + TRACK_PAINT_FUNCTION GetTrackPaintFunctionCorkscrewRC(int32_t trackType) { switch (trackType) @@ -9664,6 +10291,20 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionCorkscrewRC(int32_t trackType) return CorkscrewRCTrackLeftTwistUpToDown; case TrackElemType::RightTwistUpToDown: return CorkscrewRCTrackRightTwistUpToDown; + + // From Lay-down + case TrackElemType::LeftFlyerTwistUp: + return LayDownRCTrackLeftFlyerTwistUp; + case TrackElemType::RightFlyerTwistUp: + return LayDownRCTrackRightFlyerTwistUp; + case TrackElemType::FlyerHalfLoopUninvertedUp: + return LayDownRCTrackFlyerHalfLoopUp; + case TrackElemType::LeftFlyerCorkscrewUp: + return LayDownRCTrackLeftFlyerCorkscrewUp; + case TrackElemType::RightFlyerCorkscrewUp: + return LayDownRCTrackRightFlyerCorkscrewUp; + case TrackElemType::FlyerHalfLoopUninvertedDown: + return LayDownRCTrackHalfLoopUninvertedDown; } return nullptr; } diff --git a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp b/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp index 32d4801c4c..6d57190aea 100644 --- a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp @@ -144,7 +144,7 @@ static void FlyingRCTrackStation( { if (trackElement.IsInverted()) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 27131, SPR_STATION_INVERTED_BAR_C_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 27132, SPR_STATION_INVERTED_BAR_C_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 27131, SPR_STATION_INVERTED_BAR_C_SW_NE }, @@ -165,7 +165,7 @@ static void FlyingRCTrackStation( } else { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { 17154, 17150, SPR_STATION_BASE_A_SW_NE }, { 17155, 17151, SPR_STATION_BASE_A_NW_SE }, { 17154, 17150, SPR_STATION_BASE_A_SW_NE }, @@ -18695,14 +18695,14 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopUninvertedDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp(session, ride, 6 - trackSequence, direction, height, trackElement); + FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp(session, ride, 6 - trackSequence, direction, height, trackElement); } static void FlyingRCTrackRightFlyingLargeHalfLoopUninvertedDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp(session, ride, 6 - trackSequence, direction, height, trackElement); + FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp(session, ride, 6 - trackSequence, direction, height, trackElement); } TRACK_PAINT_FUNCTION GetTrackPaintFunctionFlyingRC(int32_t trackType) @@ -19027,10 +19027,10 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionFlyingRC(int32_t trackType) return BolligerMabillardTrackLeftLargeHalfLoopUp; case TrackElemType::RightFlyerLargeHalfLoopUninvertedUp: return BolligerMabillardTrackRightLargeHalfLoopUp; - case TrackElemType::RightFlyerLargeHalfLoopInvertedDown: - return BolligerMabillardTrackRightLargeHalfLoopDown; case TrackElemType::LeftFlyerLargeHalfLoopInvertedDown: return BolligerMabillardTrackLeftLargeHalfLoopDown; + case TrackElemType::RightFlyerLargeHalfLoopInvertedDown: + return BolligerMabillardTrackRightLargeHalfLoopDown; case TrackElemType::FlyerHalfLoopInvertedUp: return FlyingRCTrackHalfLoopInvertedUp; case TrackElemType::FlyerHalfLoopUninvertedDown: diff --git a/src/openrct2/ride/coaster/GigaCoaster.cpp b/src/openrct2/ride/coaster/GigaCoaster.cpp index e5648fed40..9a86ba20b8 100644 --- a/src/openrct2/ride/coaster/GigaCoaster.cpp +++ b/src/openrct2/ride/coaster/GigaCoaster.cpp @@ -19,16 +19,16 @@ #include "../TrackPaint.h" // Closed block brakes and regular brakes use the same images -static constexpr const uint32_t GIGA_COASTER_BRAKE_SW_NE_OPEN_1 = 18076; -static constexpr const uint32_t GIGA_COASTER_BRAKE_NW_SE_OPEN_1 = 18077; -static constexpr const uint32_t GIGA_COASTER_BRAKE_SW_NE_CLOSED_1 = 18078; -static constexpr const uint32_t GIGA_COASTER_BRAKE_NW_SE_CLOSED_1 = 18079; -static constexpr const uint32_t GIGA_COASTER_BRAKE_SW_NE_OPEN_2 = 18080; -static constexpr const uint32_t GIGA_COASTER_BRAKE_NW_SE_OPEN_2 = 18081; -static constexpr const uint32_t GIGA_COASTER_BRAKE_SW_NE_CLOSED_2 = 18082; -static constexpr const uint32_t GIGA_COASTER_BRAKE_NW_SE_CLOSED_2 = 18083; +static constexpr uint32_t GIGA_COASTER_BRAKE_SW_NE_OPEN_1 = 18076; +static constexpr uint32_t GIGA_COASTER_BRAKE_NW_SE_OPEN_1 = 18077; +static constexpr uint32_t GIGA_COASTER_BRAKE_SW_NE_CLOSED_1 = 18078; +static constexpr uint32_t GIGA_COASTER_BRAKE_NW_SE_CLOSED_1 = 18079; +static constexpr uint32_t GIGA_COASTER_BRAKE_SW_NE_OPEN_2 = 18080; +static constexpr uint32_t GIGA_COASTER_BRAKE_NW_SE_OPEN_2 = 18081; +static constexpr uint32_t GIGA_COASTER_BRAKE_SW_NE_CLOSED_2 = 18082; +static constexpr uint32_t GIGA_COASTER_BRAKE_NW_SE_CLOSED_2 = 18083; -static constexpr const uint32_t _GigaCoasterBrakeImages[NumOrthogonalDirections][2][2] = { +static constexpr uint32_t _GigaCoasterBrakeImages[NumOrthogonalDirections][2][2] = { { { GIGA_COASTER_BRAKE_SW_NE_OPEN_1, GIGA_COASTER_BRAKE_SW_NE_OPEN_2 }, { GIGA_COASTER_BRAKE_SW_NE_CLOSED_1, GIGA_COASTER_BRAKE_SW_NE_CLOSED_2 } }, { { GIGA_COASTER_BRAKE_NW_SE_OPEN_1, GIGA_COASTER_BRAKE_NW_SE_OPEN_2 }, @@ -128,7 +128,7 @@ static void GigaRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { 18084, SPR_STATION_BASE_A_SW_NE }, { 18085, SPR_STATION_BASE_A_NW_SE }, { 18084, SPR_STATION_BASE_A_SW_NE }, diff --git a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp b/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp index 1dc4faadea..062a673ed5 100644 --- a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp +++ b/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp @@ -100,7 +100,7 @@ static void HeartlineTwisterRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { 19732, SPR_STATION_BASE_B_SW_NE }, { 19733, SPR_STATION_BASE_B_NW_SE }, { 19732, SPR_STATION_BASE_B_SW_NE }, diff --git a/src/openrct2/ride/coaster/HybridCoaster.cpp b/src/openrct2/ride/coaster/HybridCoaster.cpp index b84f9fd2f6..41bdbbcf3d 100644 --- a/src/openrct2/ride/coaster/HybridCoaster.cpp +++ b/src/openrct2/ride/coaster/HybridCoaster.cpp @@ -60,7 +60,7 @@ namespace HybridRC PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { (SPR_G2_HYBRID_TRACK_BRAKE + 0), (SPR_G2_HYBRID_TRACK_BLOCK_BRAKE + 0), SPR_STATION_BASE_A_SW_NE }, { (SPR_G2_HYBRID_TRACK_BRAKE + 1), (SPR_G2_HYBRID_TRACK_BLOCK_BRAKE + 1), SPR_STATION_BASE_A_NW_SE }, { (SPR_G2_HYBRID_TRACK_BRAKE + 0), (SPR_G2_HYBRID_TRACK_BLOCK_BRAKE + 0), SPR_STATION_BASE_A_SW_NE }, @@ -134,7 +134,7 @@ namespace HybridRC { 2, 24, 93 }, { 32, 20, 3 }, }; - static constexpr const uint32_t imageIds[2][4] = { + static constexpr uint32_t imageIds[2][4] = { { SPR_G2_HYBRID_LIFT_TRACK_STEEP + 12, SPR_G2_HYBRID_LIFT_TRACK_STEEP + 13, @@ -452,7 +452,7 @@ namespace HybridRC { 2, 20, 31 }, { 2, 20, 31 }, }; - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_G2_HYBRID_TRACK_VERTICAL + 8, SPR_G2_HYBRID_TRACK_VERTICAL + 9, SPR_G2_HYBRID_TRACK_VERTICAL + 10, @@ -497,7 +497,7 @@ namespace HybridRC { 2, 20, 55 }, { 32, 20, 3 }, }; - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_G2_HYBRID_TRACK_VERTICAL + 0, SPR_G2_HYBRID_TRACK_VERTICAL + 1, SPR_G2_HYBRID_TRACK_VERTICAL + 2, @@ -548,7 +548,7 @@ namespace HybridRC { 2, 20, 31 }, { 32, 20, 3 }, }; - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_G2_HYBRID_TRACK_VERTICAL + 4, SPR_G2_HYBRID_TRACK_VERTICAL + 5, SPR_G2_HYBRID_TRACK_VERTICAL + 6, diff --git a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp b/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp index ad91e73bff..debf80f664 100644 --- a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp @@ -85,7 +85,7 @@ static void InvertedHairpinRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 17028, SPR_STATION_INVERTED_BAR_0_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 17029, SPR_STATION_INVERTED_BAR_0_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 17028, SPR_STATION_INVERTED_BAR_0_SW_NE }, diff --git a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp b/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp index b550389d64..d81d571d9b 100644 --- a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp @@ -56,7 +56,7 @@ static void InvertedImpulseRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 19662, SPR_STATION_INVERTED_BAR_B_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 19663, SPR_STATION_INVERTED_BAR_B_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 19662, SPR_STATION_INVERTED_BAR_B_SW_NE }, diff --git a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp b/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp index 48ecf934bd..077312e15c 100644 --- a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp @@ -76,7 +76,7 @@ static void InvertedRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 27131, SPR_STATION_INVERTED_BAR_C_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 27132, SPR_STATION_INVERTED_BAR_C_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 27131, SPR_STATION_INVERTED_BAR_C_SW_NE }, @@ -9020,7 +9020,7 @@ static void InvertedRCTrackRightLargeHalfLoopUp( } /** rct2: 0x008A9998 */ -static void InvertedRCTrackRightLargeHalfLoopDown( +static void InvertedRCTrackLeftLargeHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { @@ -9028,7 +9028,7 @@ static void InvertedRCTrackRightLargeHalfLoopDown( } /** rct2: 0x008A99A8 */ -static void InvertedRCTrackLeftLargeHalfLoopDown( +static void InvertedRCTrackRightLargeHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { @@ -10781,10 +10781,10 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedRC(int32_t trackType) return InvertedRCTrackLeftLargeHalfLoopUp; case TrackElemType::RightLargeHalfLoopUp: return InvertedRCTrackRightLargeHalfLoopUp; - case TrackElemType::RightLargeHalfLoopDown: - return InvertedRCTrackRightLargeHalfLoopDown; case TrackElemType::LeftLargeHalfLoopDown: return InvertedRCTrackLeftLargeHalfLoopDown; + case TrackElemType::RightLargeHalfLoopDown: + return InvertedRCTrackRightLargeHalfLoopDown; case TrackElemType::BlockBrakes: return InvertedRCTrackBlockBrakes; case TrackElemType::LeftBankedQuarterTurn3TileUp25: diff --git a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp index 3c544b6b5a..38993eb026 100644 --- a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp @@ -608,7 +608,7 @@ enum SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_E_W_PART_0_2 = 28382, }; -static constexpr const uint32_t junior_rc_track_pieces_flat[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_flat[3][4] = { { SPR_JUNIOR_RC_FLAT_SW_NE, SPR_JUNIOR_RC_FLAT_NW_SE, @@ -629,7 +629,7 @@ static constexpr const uint32_t junior_rc_track_pieces_flat[3][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_block_brake[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_block_brake[2][4] = { { SPR_JUNIOR_RC_FLAT_BLOCK_SW_NE, SPR_JUNIOR_RC_FLAT_BLOCK_NW_SE, @@ -644,7 +644,7 @@ static constexpr const uint32_t junior_rc_track_pieces_block_brake[2][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_station[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_station[2][4] = { { SPR_JUNIOR_RC_STATION_SW_NE, SPR_JUNIOR_RC_STATION_NW_SE, @@ -659,7 +659,7 @@ static constexpr const uint32_t junior_rc_track_pieces_station[2][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_25_deg_up[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_25_deg_up[3][4] = { { SPR_JUNIOR_RC_25_DEG_SW_NE, SPR_JUNIOR_RC_25_DEG_NW_SE, @@ -680,7 +680,7 @@ static constexpr const uint32_t junior_rc_track_pieces_25_deg_up[3][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_flat_to_25_deg_up[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_flat_to_25_deg_up[3][4] = { { SPR_JUNIOR_RC_FLAT_TO_25_DEG_UP_SW_NE, SPR_JUNIOR_RC_FLAT_TO_25_DEG_UP_NW_SE, @@ -701,7 +701,7 @@ static constexpr const uint32_t junior_rc_track_pieces_flat_to_25_deg_up[3][4] = }, }; -static constexpr const uint32_t junior_rc_track_pieces_25_deg_up_to_flat[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_25_deg_up_to_flat[3][4] = { { SPR_JUNIOR_RC_25_DEG_UP_TO_FLAT_SW_NE, SPR_JUNIOR_RC_25_DEG_UP_TO_FLAT_NW_SE, @@ -722,21 +722,21 @@ static constexpr const uint32_t junior_rc_track_pieces_25_deg_up_to_flat[3][4] = }, }; -static constexpr const uint32_t junior_rc_track_pieces_flat_to_left_bank[4][2] = { +static constexpr uint32_t junior_rc_track_pieces_flat_to_left_bank[4][2] = { { SPR_JUNIOR_RC_FLAT_TO_LEFT_BANK_SW_NE, SPR_JUNIOR_RC_FLAT_TO_LEFT_BANK_SW_NE_FRONT }, { SPR_JUNIOR_RC_FLAT_TO_LEFT_BANK_NW_SE, SPR_JUNIOR_RC_FLAT_TO_LEFT_BANK_NW_SE_FRONT }, { SPR_JUNIOR_RC_FLAT_TO_LEFT_BANK_NE_SW, 0 }, { SPR_JUNIOR_RC_FLAT_TO_LEFT_BANK_SE_NW, 0 } }; -static constexpr const uint32_t junior_rc_track_pieces_flat_to_right_bank[4][2] = { +static constexpr uint32_t junior_rc_track_pieces_flat_to_right_bank[4][2] = { { SPR_JUNIOR_RC_FLAT_TO_RIGHT_BANK_SW_NE, 0 }, { SPR_JUNIOR_RC_FLAT_TO_RIGHT_BANK_NW_SE, 0 }, { SPR_JUNIOR_RC_FLAT_TO_RIGHT_BANK_NE_SW, SPR_JUNIOR_RC_FLAT_TO_RIGHT_BANK_NE_SW_FRONT }, { SPR_JUNIOR_RC_FLAT_TO_RIGHT_BANK_SE_NW, SPR_JUNIOR_RC_FLAT_TO_RIGHT_BANK_SE_NW_FRONT }, }; -static constexpr const uint32_t junior_rc_track_pieces_flat_quarter_turn_5_tiles[4][5] = { +static constexpr uint32_t junior_rc_track_pieces_flat_quarter_turn_5_tiles[4][5] = { { SPR_JUNIOR_RC_FLAT_QUARTER_TURN_5_TILES_SW_SE_PART_0, SPR_JUNIOR_RC_FLAT_QUARTER_TURN_5_TILES_SW_SE_PART_1, @@ -767,7 +767,7 @@ static constexpr const uint32_t junior_rc_track_pieces_flat_quarter_turn_5_tiles }, }; -static constexpr const uint32_t junior_rc_track_pieces_banked_quarter_turn_5_tiles[4][5] = { +static constexpr uint32_t junior_rc_track_pieces_banked_quarter_turn_5_tiles[4][5] = { { SPR_JUNIOR_RC_BANKED_QUARTER_TURN_5_TILES_SW_SE_PART_0, SPR_JUNIOR_RC_BANKED_QUARTER_TURN_5_TILES_SW_SE_PART_1, @@ -798,42 +798,42 @@ static constexpr const uint32_t junior_rc_track_pieces_banked_quarter_turn_5_til }, }; -static constexpr const uint32_t junior_rc_track_pieces_left_banked_to_25_deg_up[4][2] = { +static constexpr uint32_t junior_rc_track_pieces_left_banked_to_25_deg_up[4][2] = { { SPR_JUNIOR_RC_LEFT_BANK_TO_25_DEG_UP_SW_NE, SPR_JUNIOR_RC_LEFT_BANK_TO_25_DEG_UP_SW_NE_FRONT }, { SPR_JUNIOR_RC_LEFT_BANK_TO_25_DEG_UP_NW_SE, SPR_JUNIOR_RC_LEFT_BANK_TO_25_DEG_UP_NW_SE_FRONT }, { SPR_JUNIOR_RC_LEFT_BANK_TO_25_DEG_UP_NE_SW, 0 }, { SPR_JUNIOR_RC_LEFT_BANK_TO_25_DEG_UP_SE_NW, 0 }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_banked_to_25_deg_up[4][2] = { +static constexpr uint32_t junior_rc_track_pieces_right_banked_to_25_deg_up[4][2] = { { SPR_JUNIOR_RC_RIGHT_BANK_TO_25_DEG_UP_SW_NE, 0 }, { SPR_JUNIOR_RC_RIGHT_BANK_TO_25_DEG_UP_NW_SE, 0 }, { SPR_JUNIOR_RC_RIGHT_BANK_TO_25_DEG_UP_NE_SW, SPR_JUNIOR_RC_RIGHT_BANK_TO_25_DEG_UP_NE_SW_FRONT }, { SPR_JUNIOR_RC_RIGHT_BANK_TO_25_DEG_UP_SE_NW, SPR_JUNIOR_RC_RIGHT_BANK_TO_25_DEG_UP_SE_NW_FRONT }, }; -static constexpr const uint32_t junior_rc_track_pieces_25_deg_up_to_left_bank[4][2] = { +static constexpr uint32_t junior_rc_track_pieces_25_deg_up_to_left_bank[4][2] = { { SPR_JUNIOR_RC_25_DEG_UP_TO_LEFT_BANK_SW_NE, SPR_JUNIOR_RC_25_DEG_UP_TO_LEFT_BANK_SW_NE_FRONT }, { SPR_JUNIOR_RC_25_DEG_UP_TO_LEFT_BANK_NW_SE, SPR_JUNIOR_RC_25_DEG_UP_TO_LEFT_BANK_NW_SE_FRONT }, { SPR_JUNIOR_RC_25_DEG_UP_TO_LEFT_BANK_NE_SW, 0 }, { SPR_JUNIOR_RC_25_DEG_UP_TO_LEFT_BANK_SE_NW, 0 }, }; -static constexpr const uint32_t junior_rc_track_pieces_25_deg_up_to_right_bank[4][2] = { +static constexpr uint32_t junior_rc_track_pieces_25_deg_up_to_right_bank[4][2] = { { SPR_JUNIOR_RC_25_DEG_UP_TO_RIGHT_BANK_SW_NE, 0 }, { SPR_JUNIOR_RC_25_DEG_UP_TO_RIGHT_BANK_NW_SE, 0 }, { SPR_JUNIOR_RC_25_DEG_UP_TO_RIGHT_BANK_NE_SW, SPR_JUNIOR_RC_25_DEG_UP_TO_RIGHT_BANK_NE_SW_FRONT }, { SPR_JUNIOR_RC_25_DEG_UP_TO_RIGHT_BANK_SE_NW, SPR_JUNIOR_RC_25_DEG_UP_TO_RIGHT_BANK_SE_NW_FRONT }, }; -static constexpr const uint32_t junior_rc_track_pieces_left_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_left_bank[4] = { SPR_JUNIOR_RC_LEFT_BANK_SW_NE, SPR_JUNIOR_RC_LEFT_BANK_NW_SE, SPR_JUNIOR_RC_LEFT_BANK_NE_SW, SPR_JUNIOR_RC_LEFT_BANK_SE_NW, }; -static constexpr const uint32_t junior_rc_track_pieces_left_quarter_turn_5_tiles_25_deg_up[2][4][5] = { +static constexpr uint32_t junior_rc_track_pieces_left_quarter_turn_5_tiles_25_deg_up[2][4][5] = { { { SPR_JUNIOR_RC_LEFT_QUARTER_TURN_5_TILES_25_DEG_UP_SW_SE_PART_0, @@ -896,7 +896,7 @@ static constexpr const uint32_t junior_rc_track_pieces_left_quarter_turn_5_tiles }, }; -static constexpr const CoordsXY junior_rc_left_quarter_turn_5_tiles_25_deg_up_offsets[4][5] = { +static constexpr CoordsXY junior_rc_left_quarter_turn_5_tiles_25_deg_up_offsets[4][5] = { { { 0, 6 }, { 0, 0 }, @@ -927,7 +927,7 @@ static constexpr const CoordsXY junior_rc_left_quarter_turn_5_tiles_25_deg_up_of }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_quarter_turn_5_tiles_25_deg_up[2][4][5] = { +static constexpr uint32_t junior_rc_track_pieces_right_quarter_turn_5_tiles_25_deg_up[2][4][5] = { { { SPR_JUNIOR_RC_RIGHT_QUARTER_TURN_5_TILES_25_DEG_UP_SW_SE_PART_0, @@ -990,7 +990,7 @@ static constexpr const uint32_t junior_rc_track_pieces_right_quarter_turn_5_tile }, }; -static constexpr const uint32_t junior_rc_track_pieces_s_bend_left[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_s_bend_left[2][4] = { { SPR_JUNIOR_RC_S_BEND_LEFT_SW_NE_PART_0, SPR_JUNIOR_RC_S_BEND_LEFT_SW_NE_PART_1, @@ -1005,7 +1005,7 @@ static constexpr const uint32_t junior_rc_track_pieces_s_bend_left[2][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_s_bend_right[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_s_bend_right[2][4] = { { SPR_JUNIOR_RC_S_BEND_RIGHT_SW_NE_PART_0, SPR_JUNIOR_RC_S_BEND_RIGHT_SW_NE_PART_1, @@ -1020,7 +1020,7 @@ static constexpr const uint32_t junior_rc_track_pieces_s_bend_right[2][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_flat_quarter_turn_3_tiles[4][3] = { +static constexpr uint32_t junior_rc_track_pieces_flat_quarter_turn_3_tiles[4][3] = { { SPR_JUNIOR_RC_QUARTER_TURN_3_TILES_SW_SE_PART_0, SPR_JUNIOR_RC_QUARTER_TURN_3_TILES_SW_SE_PART_1, @@ -1043,7 +1043,7 @@ static constexpr const uint32_t junior_rc_track_pieces_flat_quarter_turn_3_tiles }, }; -static constexpr const uint32_t junior_rc_track_pieces_banked_quarter_turn_3_tiles[4][3] = { +static constexpr uint32_t junior_rc_track_pieces_banked_quarter_turn_3_tiles[4][3] = { { SPR_JUNIOR_RC_BANKED_QUARTER_TURN_3_TILES_SW_SE_PART_0, SPR_JUNIOR_RC_BANKED_QUARTER_TURN_3_TILES_SW_SE_PART_1, @@ -1066,7 +1066,7 @@ static constexpr const uint32_t junior_rc_track_pieces_banked_quarter_turn_3_til }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_quarter_turn_3_tiles_25_deg_up[2][4][2] = { +static constexpr uint32_t junior_rc_track_pieces_right_quarter_turn_3_tiles_25_deg_up[2][4][2] = { { { SPR_JUNIOR_RC_RIGHT_QUARTER_TURN_3_TILES_25_DEG_UP_SW_SE_PART_0, SPR_JUNIOR_RC_RIGHT_QUARTER_TURN_3_TILES_25_DEG_UP_SW_SE_PART_1 }, @@ -1089,7 +1089,7 @@ static constexpr const uint32_t junior_rc_track_pieces_right_quarter_turn_3_tile }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_quarter_turn_3_tiles_25_deg_down[2][4][2] = { +static constexpr uint32_t junior_rc_track_pieces_right_quarter_turn_3_tiles_25_deg_down[2][4][2] = { { { SPR_JUNIOR_RC_RIGHT_QUARTER_TURN_3_TILES_25_DEG_DOWN_SW_SE_PART_0, SPR_JUNIOR_RC_RIGHT_QUARTER_TURN_3_TILES_25_DEG_DOWN_SW_SE_PART_1 }, @@ -1112,7 +1112,7 @@ static constexpr const uint32_t junior_rc_track_pieces_right_quarter_turn_3_tile }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_half_banked_helix_up_small_quarter_tiles[4][3][2] = { +static constexpr uint32_t junior_rc_track_pieces_right_half_banked_helix_up_small_quarter_tiles[4][3][2] = { { { SPR_JUNIOR_RC_RIGHT_HALF_BANKED_HELIX_UP_SMALL_SW_SE_PART_0 }, { SPR_JUNIOR_RC_RIGHT_HALF_BANKED_HELIX_UP_SMALL_SW_SE_PART_1 }, @@ -1137,7 +1137,7 @@ static constexpr const uint32_t junior_rc_track_pieces_right_half_banked_helix_u }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_half_banked_helix_down_small_quarter_tiles[4][3][2] = { +static constexpr uint32_t junior_rc_track_pieces_right_half_banked_helix_down_small_quarter_tiles[4][3][2] = { { { SPR_JUNIOR_RC_RIGHT_HALF_BANKED_HELIX_DOWN_SMALL_SW_SE_PART_0 }, { SPR_JUNIOR_RC_RIGHT_HALF_BANKED_HELIX_DOWN_SMALL_SW_SE_PART_1 }, @@ -1162,7 +1162,7 @@ static constexpr const uint32_t junior_rc_track_pieces_right_half_banked_helix_d }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_half_banked_helix_up_large_quarter_tiles[4][5][2] = { +static constexpr uint32_t junior_rc_track_pieces_right_half_banked_helix_up_large_quarter_tiles[4][5][2] = { { { SPR_JUNIOR_RC_RIGHT_HALF_BANKED_HELIX_UP_LARGE_SW_SE_PART_0 }, { SPR_JUNIOR_RC_RIGHT_HALF_BANKED_HELIX_UP_LARGE_SW_SE_PART_1 }, @@ -1195,7 +1195,7 @@ static constexpr const uint32_t junior_rc_track_pieces_right_half_banked_helix_u }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_half_banked_helix_down_large_quarter_tiles[4][5][2] = { +static constexpr uint32_t junior_rc_track_pieces_right_half_banked_helix_down_large_quarter_tiles[4][5][2] = { { { SPR_JUNIOR_RC_RIGHT_HALF_BANKED_HELIX_DOWN_LARGE_SW_SE_PART_0 }, { SPR_JUNIOR_RC_RIGHT_HALF_BANKED_HELIX_DOWN_LARGE_SW_SE_PART_1 }, @@ -1228,14 +1228,14 @@ static constexpr const uint32_t junior_rc_track_pieces_right_half_banked_helix_d }, }; -static constexpr const uint32_t junior_rc_track_pieces_brake[4] = { +static constexpr uint32_t junior_rc_track_pieces_brake[4] = { SPR_JUNIOR_RC_FLAT_SW_NE_BRAKED, SPR_JUNIOR_RC_FLAT_NW_SE_BRAKED, SPR_JUNIOR_RC_FLAT_SW_NE_BRAKED, SPR_JUNIOR_RC_FLAT_NW_SE_BRAKED, }; -static constexpr const uint32_t junior_rc_track_pieces_left_eight_to_diag[4][4] = { +static constexpr uint32_t junior_rc_track_pieces_left_eight_to_diag[4][4] = { { SPR_JUNIOR_RC_EIGHT_TO_DIAG_SW_N_PART_0, SPR_JUNIOR_RC_EIGHT_TO_DIAG_SW_N_PART_1, @@ -1262,7 +1262,7 @@ static constexpr const uint32_t junior_rc_track_pieces_left_eight_to_diag[4][4] }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_eight_to_diag[4][4] = { +static constexpr uint32_t junior_rc_track_pieces_right_eight_to_diag[4][4] = { { SPR_JUNIOR_RC_EIGHT_TO_DIAG_SW_E_PART_0, SPR_JUNIOR_RC_EIGHT_TO_DIAG_SW_E_PART_1, @@ -1289,7 +1289,7 @@ static constexpr const uint32_t junior_rc_track_pieces_right_eight_to_diag[4][4] }, }; -static constexpr const uint32_t junior_rc_track_pieces_left_eight_to_diag_bank[4][4] = { +static constexpr uint32_t junior_rc_track_pieces_left_eight_to_diag_bank[4][4] = { { SPR_JUNIOR_RC_EIGHT_TO_DIAG_BANK_SW_N_PART_0, SPR_JUNIOR_RC_EIGHT_TO_DIAG_BANK_SW_N_PART_1, @@ -1316,7 +1316,7 @@ static constexpr const uint32_t junior_rc_track_pieces_left_eight_to_diag_bank[4 }, }; -static constexpr const uint32_t junior_rc_track_pieces_right_eight_to_diag_bank[4][4] = { +static constexpr uint32_t junior_rc_track_pieces_right_eight_to_diag_bank[4][4] = { { SPR_JUNIOR_RC_EIGHT_TO_DIAG_BANK_SW_E_PART_0, SPR_JUNIOR_RC_EIGHT_TO_DIAG_BANK_SW_E_PART_1, @@ -1343,7 +1343,7 @@ static constexpr const uint32_t junior_rc_track_pieces_right_eight_to_diag_bank[ }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_flat[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_flat[3][4] = { { SPR_JUNIOR_RC_DIAG_FLAT_W_E, SPR_JUNIOR_RC_DIAG_FLAT_N_S, @@ -1364,7 +1364,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_flat[3][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_up[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_up[3][4] = { { SPR_JUNIOR_RC_DIAG_25_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_25_DEG_UP_N_S, @@ -1385,7 +1385,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_up[3][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_25_deg_up[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_flat_to_25_deg_up[3][4] = { { SPR_JUNIOR_RC_DIAG_FLAT_TO_25_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_FLAT_TO_25_DEG_UP_N_S, @@ -1406,7 +1406,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_25_deg_up[3] }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_60_deg_up[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_flat_to_60_deg_up[2][4] = { { SPR_JUNIOR_RC_DIAG_FLAT_TO_60_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_FLAT_TO_60_DEG_UP_N_S, @@ -1421,7 +1421,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_60_deg_up[2] }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_up_to_flat[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_up_to_flat[3][4] = { { SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_FLAT_W_E, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_FLAT_N_S, @@ -1442,7 +1442,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_up_to_flat[3] }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_up_to_flat[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_60_deg_up_to_flat[2][4] = { { SPR_JUNIOR_RC_DIAG_60_DEG_UP_TO_FLAT_W_E, SPR_JUNIOR_RC_DIAG_60_DEG_UP_TO_FLAT_N_S, @@ -1457,7 +1457,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_up_to_flat[2] }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_down[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_down[3][4] = { { SPR_JUNIOR_RC_DIAG_25_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_25_DEG_UP_S_N, @@ -1478,7 +1478,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_down[3][4] = }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_25_deg_down[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_flat_to_25_deg_down[3][4] = { { SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_FLAT_E_W, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_FLAT_S_N, @@ -1499,7 +1499,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_25_deg_down[ }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_60_deg_down[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_flat_to_60_deg_down[2][4] = { { SPR_JUNIOR_RC_DIAG_60_DEG_UP_TO_FLAT_E_W, SPR_JUNIOR_RC_DIAG_60_DEG_UP_TO_FLAT_S_N, @@ -1514,7 +1514,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_60_deg_down[ }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_down_to_flat[3][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_down_to_flat[3][4] = { { SPR_JUNIOR_RC_DIAG_FLAT_TO_25_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_FLAT_TO_25_DEG_UP_S_N, @@ -1535,7 +1535,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_down_to_flat[ }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_down_to_flat[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_60_deg_down_to_flat[2][4] = { { SPR_JUNIOR_RC_DIAG_FLAT_TO_60_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_FLAT_TO_60_DEG_UP_S_N, @@ -1550,105 +1550,105 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_down_to_flat[ }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_left_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_flat_to_left_bank[4] = { SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_W_E, SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_N_S, SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_E_W, SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_S_N, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_flat_to_right_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_flat_to_right_bank[4] = { SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_W_E, SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_N_S, SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_E_W, SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_S_N, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_right_bank_to_flat[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_right_bank_to_flat[4] = { SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_E_W, SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_S_N, SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_W_E, SPR_JUNIOR_RC_DIAG_FLAT_TO_LEFT_BANK_N_S, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_left_bank_to_flat[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_left_bank_to_flat[4] = { SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_E_W, SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_S_N, SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_W_E, SPR_JUNIOR_RC_DIAG_FLAT_TO_RIGHT_BANK_N_S, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_left_bank_to_25_deg_up[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_left_bank_to_25_deg_up[4] = { SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_N_S, SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_S_N, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_right_bank_to_25_deg_up[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_right_bank_to_25_deg_up[4] = { SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_N_S, SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_S_N, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_up_to_left_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_up_to_left_bank[4] = { SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_W_E, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_N_S, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_E_W, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_S_N, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_up_to_right_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_up_to_right_bank[4] = { SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_W_E, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_N_S, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_E_W, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_S_N, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_right_bank_to_25_deg_down[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_right_bank_to_25_deg_down[4] = { SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_E_W, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_S_N, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_W_E, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_LEFT_BANK_N_S, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_left_bank_to_25_deg_down[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_left_bank_to_25_deg_down[4] = { SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_E_W, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_S_N, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_W_E, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_RIGHT_BANK_N_S, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_down_to_right_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_down_to_right_bank[4] = { SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_S_N, SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_LEFT_BANK_TO_25_DEG_UP_N_S, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_down_to_left_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_down_to_left_bank[4] = { SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_S_N, SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_RIGHT_BANK_TO_25_DEG_UP_N_S, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_left_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_left_bank[4] = { SPR_JUNIOR_RC_DIAG_LEFT_BANK_W_E, SPR_JUNIOR_RC_DIAG_LEFT_BANK_N_S, SPR_JUNIOR_RC_DIAG_LEFT_BANK_E_W, SPR_JUNIOR_RC_DIAG_LEFT_BANK_S_N, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_right_bank[4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_right_bank[4] = { SPR_JUNIOR_RC_DIAG_LEFT_BANK_E_W, SPR_JUNIOR_RC_DIAG_LEFT_BANK_S_N, SPR_JUNIOR_RC_DIAG_LEFT_BANK_W_E, SPR_JUNIOR_RC_DIAG_LEFT_BANK_N_S, }; -static constexpr const uint32_t junior_rc_track_pieces_flat_to_60_deg_up[2][4][2] = { +static constexpr uint32_t junior_rc_track_pieces_flat_to_60_deg_up[2][4][2] = { { { SPR_JUNIOR_RC_FLAT_TO_60_DEG_UP_SW_NE, 0 }, { SPR_JUNIOR_RC_FLAT_TO_60_DEG_UP_NW_SE, SPR_JUNIOR_RC_FLAT_TO_60_DEG_UP_NW_SE_PART_0_2 }, @@ -1663,7 +1663,7 @@ static constexpr const uint32_t junior_rc_track_pieces_flat_to_60_deg_up[2][4][2 }, }; -static constexpr const uint32_t junior_rc_track_pieces_60_deg_up_to_flat[2][4][2] = { +static constexpr uint32_t junior_rc_track_pieces_60_deg_up_to_flat[2][4][2] = { { { SPR_JUNIOR_RC_60_DEG_UP_TO_FLAT_SW_NE, 0 }, { SPR_JUNIOR_RC_60_DEG_UP_TO_FLAT_NW_SE, SPR_JUNIOR_RC_60_DEG_UP_TO_FLAT_NW_SE_PART_0_2 }, @@ -1678,7 +1678,7 @@ static constexpr const uint32_t junior_rc_track_pieces_60_deg_up_to_flat[2][4][2 }, }; -static constexpr const uint32_t junior_rc_track_pieces_60_deg_up[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_60_deg_up[2][4] = { { SPR_JUNIOR_RC_60_DEG_SW_NE, SPR_JUNIOR_RC_60_DEG_NW_SE, @@ -1693,7 +1693,7 @@ static constexpr const uint32_t junior_rc_track_pieces_60_deg_up[2][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_25_deg_up_to_60_deg_up[2][4][2] = { +static constexpr uint32_t junior_rc_track_pieces_25_deg_up_to_60_deg_up[2][4][2] = { { { SPR_JUNIOR_RC_25_DEG_TO_60_DEG_UP_SW_NE, 0 }, { SPR_JUNIOR_RC_25_DEG_TO_60_DEG_UP_NW_SE, SPR_JUNIOR_RC_25_DEG_TO_60_DEG_UP_NW_SE_PART_0_2 }, @@ -1708,7 +1708,7 @@ static constexpr const uint32_t junior_rc_track_pieces_25_deg_up_to_60_deg_up[2] }, }; -static constexpr const uint32_t junior_rc_track_pieces_60_deg_up_to_25_deg_up[2][4][2] = { +static constexpr uint32_t junior_rc_track_pieces_60_deg_up_to_25_deg_up[2][4][2] = { { { SPR_JUNIOR_RC_60_DEG_TO_25_DEG_UP_SW_NE, 0 }, { SPR_JUNIOR_RC_60_DEG_TO_25_DEG_UP_NW_SE, SPR_JUNIOR_RC_60_DEG_TO_25_DEG_UP_NW_SE_PART_0_2 }, @@ -1723,7 +1723,7 @@ static constexpr const uint32_t junior_rc_track_pieces_60_deg_up_to_25_deg_up[2] } }; -static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_up[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_60_deg_up[2][4] = { { SPR_JUNIOR_RC_DIAG_60_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_60_DEG_UP_N_S, @@ -1738,7 +1738,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_up[2][4] = { }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_down[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_60_deg_down[2][4] = { { SPR_JUNIOR_RC_DIAG_60_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_60_DEG_UP_S_N, @@ -1753,7 +1753,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_down[2][4] = }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_up_to_60_deg_up[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_up_to_60_deg_up[2][4] = { { SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_60_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_60_DEG_UP_N_S, @@ -1768,7 +1768,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_up_to_60_deg_ }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_up_to_25_deg_up[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_60_deg_up_to_25_deg_up[2][4] = { { SPR_JUNIOR_RC_DIAG_60_DEG_UP_TO_25_DEG_UP_W_E, SPR_JUNIOR_RC_DIAG_60_DEG_UP_TO_25_DEG_UP_N_S, @@ -1783,7 +1783,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_up_to_25_deg_ }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_down_to_60_deg_down[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_25_deg_down_to_60_deg_down[2][4] = { { SPR_JUNIOR_RC_DIAG_60_DEG_UP_TO_25_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_60_DEG_UP_TO_25_DEG_UP_S_N, @@ -1798,7 +1798,7 @@ static constexpr const uint32_t junior_rc_track_pieces_diag_25_deg_down_to_60_de }, }; -static constexpr const uint32_t junior_rc_track_pieces_diag_60_deg_down_to_25_deg_down[2][4] = { +static constexpr uint32_t junior_rc_track_pieces_diag_60_deg_down_to_25_deg_down[2][4] = { { SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_60_DEG_UP_E_W, SPR_JUNIOR_RC_DIAG_25_DEG_UP_TO_60_DEG_UP_S_N, @@ -1991,7 +1991,7 @@ void JuniorRCPaintTrack25DegUpToFlat( PaintUtilSetGeneralSupportHeight(session, height + 40, 0x20); } -static constexpr const int8_t junior_rc_track_right_quarter_turn_5_tiles_support_height_offset[][7] = { +static constexpr int8_t junior_rc_track_right_quarter_turn_5_tiles_support_height_offset[][7] = { { 0, 0, 0, 0, 0, 0, -1 }, { -1, 0, 0, 0, 0, 0, 0 }, { 0 }, @@ -2073,7 +2073,7 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const uint8_t junior_rc_left_quarter_turn_5_tiles_to_right_turn_map[] = { +static constexpr uint8_t junior_rc_left_quarter_turn_5_tiles_to_right_turn_map[] = { 6, 4, 5, 3, 1, 2, 0, }; @@ -2196,7 +2196,7 @@ static void JuniorRCRightBankToFlatPaintSetup( JuniorRCFlatToLeftBankPaintSetup(session, ride, trackSequence, (direction + 2) % 4, height, trackElement); } -static constexpr const CoordsXY junior_rc_banked_right_quarter_turn_5_tiles_bound_lengths[4][5] = { +static constexpr CoordsXY junior_rc_banked_right_quarter_turn_5_tiles_bound_lengths[4][5] = { { { 32, 20 }, { 32, 16 }, @@ -2227,7 +2227,7 @@ static constexpr const CoordsXY junior_rc_banked_right_quarter_turn_5_tiles_boun }, }; -static constexpr const CoordsXYZ junior_rc_banked_right_quarter_turn_5_tiles_bound_offsets[4][5] = { +static constexpr CoordsXYZ junior_rc_banked_right_quarter_turn_5_tiles_bound_offsets[4][5] = { { { 0, 6, 0 }, { 0, 16, 0 }, @@ -2641,14 +2641,14 @@ static void JuniorRC25DegDownToRightBankPaintSetup( JuniorRCLeftBankTo25DegUpPaintSetup(session, ride, trackSequence, (direction + 2) % 4, height, trackElement); } -static constexpr const CoordsXYZ junior_rc_left_bank_bound_lengths[4] = { +static constexpr CoordsXYZ junior_rc_left_bank_bound_lengths[4] = { { 32, 1, 26 }, { 1, 32, 26 }, { 32, 20, 1 }, { 20, 32, 1 }, }; -static constexpr const CoordsXY junior_rc_left_bank_bound_offsets[4] = { +static constexpr CoordsXY junior_rc_left_bank_bound_offsets[4] = { { 0, 27 }, { 27, 0 }, { 0, 6 }, @@ -3152,7 +3152,7 @@ static void JuniorRCLeftQuarterTurn3TilesPaintSetup( JuniorRCRightQuarterTurn3TilesPaintSetup(session, ride, trackSequence, (direction + 1) % 4, height, trackElement); } -static constexpr const CoordsXY junior_rc_right_quarter_turn_3_tiles_bank_bound_lengths[4][3] = { +static constexpr CoordsXY junior_rc_right_quarter_turn_3_tiles_bank_bound_lengths[4][3] = { { { 32, 20 }, { 16, 16 }, @@ -3175,7 +3175,7 @@ static constexpr const CoordsXY junior_rc_right_quarter_turn_3_tiles_bank_bound_ }, }; -static constexpr const CoordsXYZ junior_rc_right_quarter_turn_3_tiles_bank_offsets[4][3] = { +static constexpr CoordsXYZ junior_rc_right_quarter_turn_3_tiles_bank_offsets[4][3] = { { { 0, 6, 0 }, { 16, 16, 0 }, @@ -3451,7 +3451,7 @@ static void JuniorRCRightQuarterTurn3Tiles25DegDownPaintSetup( isChained ? JuniorRCChainType::FrictionWheels : JuniorRCChainType::None); } -static constexpr const uint8_t junior_rc_left_quarter_turn_3_tiles_to_right_turn_map[] = { +static constexpr uint8_t junior_rc_left_quarter_turn_3_tiles_to_right_turn_map[] = { 3, 1, 2, @@ -4058,7 +4058,7 @@ static void JuniorRCRightEighthToOrthogonalPaintSetup( JuniorRCLeftEighthToDiagPaintSetup(session, ride, trackSequence, (direction + 3) % 4, height, trackElement); } -static constexpr const CoordsXY junior_rc_left_eighth_to_diag_bank_bound_lengths[4][4] = { +static constexpr CoordsXY junior_rc_left_eighth_to_diag_bank_bound_lengths[4][4] = { { { 32, 1 }, { 32, 16 }, @@ -4085,7 +4085,7 @@ static constexpr const CoordsXY junior_rc_left_eighth_to_diag_bank_bound_lengths }, }; -static constexpr const CoordsXYZ junior_rc_left_eighth_to_diag_bank_bound_offsets[4][4] = { +static constexpr CoordsXYZ junior_rc_left_eighth_to_diag_bank_bound_offsets[4][4] = { { { 0, 27, 0 }, { 0, 0, 0 }, @@ -4112,7 +4112,7 @@ static constexpr const CoordsXYZ junior_rc_left_eighth_to_diag_bank_bound_offset }, }; -static constexpr const int8_t junior_rc_left_eighth_to_diag_bank_thickness[4][4] = { +static constexpr int8_t junior_rc_left_eighth_to_diag_bank_thickness[4][4] = { { 26, 1, @@ -4203,7 +4203,7 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const CoordsXY junior_rc_right_eighth_to_diag_bank_bound_lengths[4][4] = { +static constexpr CoordsXY junior_rc_right_eighth_to_diag_bank_bound_lengths[4][4] = { { { 32, 20 }, { 16, 16 }, @@ -4230,7 +4230,7 @@ static constexpr const CoordsXY junior_rc_right_eighth_to_diag_bank_bound_length }, }; -static constexpr const CoordsXYZ junior_rc_right_eighth_to_diag_bank_bound_offsets[4][4] = { +static constexpr CoordsXYZ junior_rc_right_eighth_to_diag_bank_bound_offsets[4][4] = { { { 0, 6, 0 }, { 0, 0, 0 }, @@ -4257,7 +4257,7 @@ static constexpr const CoordsXYZ junior_rc_right_eighth_to_diag_bank_bound_offse }, }; -static constexpr const int8_t junior_rc_right_eighth_to_diag_bank_thickness[4][4] = { +static constexpr int8_t junior_rc_right_eighth_to_diag_bank_thickness[4][4] = { { 1, 1, @@ -4368,14 +4368,14 @@ static void JuniorRCRightEighthToOrthogonalBankPaintSetup( JuniorRCLeftEighthToDiagBankPaintSetup(session, ride, trackSequence, (direction + 3) % 4, height, trackElement); } -static constexpr const int32_t junior_rc_diag_blocked_segments[] = { +static constexpr int32_t junior_rc_diag_blocked_segments[] = { SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4 | SEGMENT_BC, SEGMENT_C4 | SEGMENT_CC | SEGMENT_C8 | SEGMENT_B4, SEGMENT_D0 | SEGMENT_C4 | SEGMENT_C0 | SEGMENT_D4, SEGMENT_D0 | SEGMENT_C4 | SEGMENT_B8 | SEGMENT_C8, }; -static constexpr const uint8_t junior_rc_diag_support_segment[] = { +static constexpr uint8_t junior_rc_diag_support_segment[] = { 1, 0, 2, @@ -5064,14 +5064,14 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup( PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); } -static constexpr const CoordsXYZ junior_rc_diag_left_bank_bound_offsets[4] = { +static constexpr CoordsXYZ junior_rc_diag_left_bank_bound_offsets[4] = { { -16, -16, 27 }, { -16, -16, 0 }, { -16, -16, 0 }, { -16, -16, 0 }, }; -static constexpr const CoordsXYZ junior_rc_diag_right_bank_bound_offsets[4] = { +static constexpr CoordsXYZ junior_rc_diag_right_bank_bound_offsets[4] = { { -16, -16, 0 }, { -16, -16, 0 }, { -16, -16, 27 }, @@ -5124,28 +5124,28 @@ static void JuniorRCDiagRightBankPaintSetup( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const CoordsXY junior_rc_60_deg_up_bound_offsets[4] = { +static constexpr CoordsXY junior_rc_60_deg_up_bound_offsets[4] = { { 0, 6 }, { 10, 29 }, { 29, 10 }, { 6, 0 }, }; -static constexpr const CoordsXY junior_rc_60_deg_up_tile_offsets[4] = { +static constexpr CoordsXY junior_rc_60_deg_up_tile_offsets[4] = { { 0, 6 }, { 6, 0 }, { 0, 6 }, { 6, 0 }, }; -static constexpr const int8_t junior_rc_60_deg_up_bound_thickness[4] = { +static constexpr int8_t junior_rc_60_deg_up_bound_thickness[4] = { 1, 75, 75, 1, }; -static constexpr const CoordsXY junior_rc_60_deg_up_bound_lengths[4] = { +static constexpr CoordsXY junior_rc_60_deg_up_bound_lengths[4] = { { 32, 20 }, { 10, 1 }, { 1, 10 }, @@ -5210,21 +5210,21 @@ static void JuniorRC60DegDownPaintSetup( JuniorRC60DegUpPaintSetup(session, ride, trackSequence, (direction + 2) % 4, height, trackElement); } -static constexpr const CoordsXY junior_rc_25_deg_up_to_60_deg_up_bound_lengths[4][2] = { +static constexpr CoordsXY junior_rc_25_deg_up_to_60_deg_up_bound_lengths[4][2] = { { { 32, 20 }, { 0, 0 } }, { { 10, 32 }, { 2, 32 } }, { { 32, 10 }, { 32, 2 } }, { { 20, 32 }, { 0, 0 } }, }; -static constexpr const int8_t junior_rc_25_deg_up_to_60_deg_up_bound_thickness[4] = { +static constexpr int8_t junior_rc_25_deg_up_to_60_deg_up_bound_thickness[4] = { 1, 43, 43, 1, }; -static constexpr const CoordsXY junior_rc_25_deg_up_to_60_deg_up_bound_offsets[4][2] = { +static constexpr CoordsXY junior_rc_25_deg_up_to_60_deg_up_bound_offsets[4][2] = { { { 0, 6 }, { 0, 0 } }, { { 10, 0 }, { 4, 0 } }, { { 0, 10 }, { 0, 4 } }, @@ -5579,35 +5579,35 @@ static void JuniorRCDiag60DegDownTo25DegDownPaintSetup( isChained ? JuniorRCChainType::FrictionWheels : JuniorRCChainType::None); } -static constexpr const CoordsXY junior_rc_flat_to_60_deg_up_bound_lengths[4][2] = { +static constexpr CoordsXY junior_rc_flat_to_60_deg_up_bound_lengths[4][2] = { { { 32, 24 }, { 0, 0 } }, { { 10, 1 }, { 2, 32 } }, { { 1, 10 }, { 32, 2 } }, { { 24, 32 }, { 0, 0 } }, }; -static constexpr const int8_t junior_rc_flat_to_60_deg_up_bound_thickness[4] = { +static constexpr int8_t junior_rc_flat_to_60_deg_up_bound_thickness[4] = { 1, 43, 43, 1, }; -static constexpr const CoordsXY junior_rc_flat_to_60_deg_up_bound_offsets[4][2] = { +static constexpr CoordsXY junior_rc_flat_to_60_deg_up_bound_offsets[4][2] = { { { 0, 4 }, { 0, 0 } }, { { 10, 0 }, { 4, 0 } }, { { 0, 10 }, { 0, 4 } }, { { 4, 0 }, { 0, 0 } }, }; -static constexpr const CoordsXY junior_rc_flat_to_60_deg_up_tile_offsets[4][2] = { +static constexpr CoordsXY junior_rc_flat_to_60_deg_up_tile_offsets[4][2] = { { { 12, -10 }, { 0, 0 } }, { { 22, 9 }, { 12, -11 } }, { { 30, 7 }, { 5, 0 } }, { { 12, -12 }, { 0, 0 } }, }; -static constexpr const CoordsXY junior_rc_60_deg_up_to_flat_tile_offsets[4][2] = { +static constexpr CoordsXY junior_rc_60_deg_up_to_flat_tile_offsets[4][2] = { { { 13, -9 }, { 0, 0 } }, { { 32, 9 }, { -7, -11 } }, { { 22, 18 }, { 2, -19 } }, @@ -5850,7 +5850,7 @@ static void JuniorRCTrackOnRidePhoto( const TrackElement& trackElement) { auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(junior_rc_track_pieces_flat[0][direction]); - constexpr const int8_t photoCameraOffset = -1; + constexpr int8_t photoCameraOffset = -1; switch (direction) { diff --git a/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp b/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp index 8591d0ef03..115839110a 100644 --- a/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp @@ -25,64 +25,9 @@ static void LayDownRCTrackFlat( { if (!trackElement.IsInverted()) { - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16226), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16227), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16228), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16229), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - else - { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16224), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16225), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Flat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -143,7 +88,7 @@ static void LayDownRCTrackStation( { if (trackElement.IsInverted()) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 26557, SPR_STATION_INVERTED_BAR_A_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 26558, SPR_STATION_INVERTED_BAR_A_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 26557, SPR_STATION_INVERTED_BAR_A_SW_NE }, @@ -163,38 +108,15 @@ static void LayDownRCTrackStation( session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::TubesInverted); TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9); + PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } else { - static constexpr const uint32_t imageIds[4][3] = { - { 16236, 16232, SPR_STATION_BASE_A_SW_NE }, - { 16237, 16233, SPR_STATION_BASE_A_NW_SE }, - { 16236, 16232, SPR_STATION_BASE_A_SW_NE }, - { 16237, 16233, SPR_STATION_BASE_A_NW_SE }, - }; - - if (trackElement.GetTrackType() == TrackElemType::EndStation) - { - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]), { 0, 0, height }, - { { 0, 6, height + 3 }, { 32, 20, 1 } }); - } - else - { - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 0, height }, - { { 0, 6, height + 3 }, { 32, 20, 1 } }); - } - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height }, - { 32, 32, 1 }); - TrackPaintUtilDrawStationMetalSupports2( - session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::TubesInverted); - TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); + auto function = GetTrackPaintFunctionCorkscrewRC(trackElement.GetTrackType()); + function(session, ride, trackSequence, direction, height, trackElement); + return; } - PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } /** rct2: 0x0082492C */ @@ -204,79 +126,9 @@ static void LayDownRCTrack25DegUp( { if (!trackElement.IsInverted()) { - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16314), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16315), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16316), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16317), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16286), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16287), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16288), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16289), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Up25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -377,79 +229,9 @@ static void LayDownRCTrack60DegUp( { if (!trackElement.IsInverted()) { - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16330), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16331), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 98 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16332), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 98 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16333), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16302), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16303), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 98 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16304), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 98 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16305), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Up60); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -497,79 +279,9 @@ static void LayDownRCTrackFlatTo25DegUp( { if (!trackElement.IsInverted()) { - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16306), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16307), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16308), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16309), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16278), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16279), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16280), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16281), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::FlatToUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -670,91 +382,9 @@ static void LayDownRCTrack25DegUpTo60DegUp( { if (!trackElement.IsInverted()) { - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16318), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16319), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16322), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 66 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16320), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16323), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 66 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16321), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16290), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16291), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16294), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 66 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16292), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16295), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 66 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16293), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Up25ToUp60); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -808,91 +438,9 @@ static void LayDownRCTrack60DegUpTo25DegUp( { if (!trackElement.IsInverted()) { - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16324), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16325), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16328), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 66 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16326), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16329), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 66 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16327), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16296), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16297), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16300), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 66 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16298), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16301), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 66 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16299), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Up60ToUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -970,79 +518,9 @@ static void LayDownRCTrack25DegUpToFlat( { if (!trackElement.IsInverted()) { - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16310), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16311), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16312), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16313), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16282), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16283), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16284), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16285), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - } - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 40, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Up25ToFlat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -1191,178 +669,9 @@ static void LayDownRCTrackLeftQuarterTurn5( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16343), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16348), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16353), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16338), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16342), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16347), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16352), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16337), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16341), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16346), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16351), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16336), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 5: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16340), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16345), { 0, 0, height }, - { { 0, 0, height }, { 16, 32, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16350), { 0, 0, height }, - { { 0, 0, height }, { 16, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16335), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16339), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16344), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16349), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16334), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 2: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 3: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftQuarterTurn5Tiles); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -1563,44 +872,9 @@ static void LayDownRCTrackFlatToLeftBank( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16238), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16246), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16239), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16247), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16240), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16241), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - } - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::FlatToLeftBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -1650,44 +924,9 @@ static void LayDownRCTrackFlatToRightBank( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16242), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16243), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16244), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16248), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16245), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16249), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - } - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::FlatToRightBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -1737,44 +976,9 @@ static void LayDownRCTrackLeftBankToFlat( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16244), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16248), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16245), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16249), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16242), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16243), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - } - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftBankToFlat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -1824,44 +1028,9 @@ static void LayDownRCTrackRightBankToFlat( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16240), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16241), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16238), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16246), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16239), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16247), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - } - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::RightBankToFlat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -1911,184 +1080,9 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16363), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16374), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16368), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16373), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16358), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16362), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16367), { 0, 0, height }, - { { 0, 0, height + 27 }, { 32, 16, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16372), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16357), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16361), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16366), { 0, 0, height }, - { { 16, 16, height + 27 }, { 16, 16, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16371), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16356), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 5: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16360), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16365), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 32, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16370), { 0, 0, height }, - { { 0, 0, height }, { 16, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16355), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16359), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16364), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16369), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16375), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16354), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 2: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 3: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::BankedLeftQuarterTurn5Tiles); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -2289,51 +1283,9 @@ static void LayDownRCTrackLeftBankTo25DegUp( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16250), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16254), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 34 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16251), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16255), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 34 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16252), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16253), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftBankToUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -2407,51 +1359,9 @@ static void LayDownRCTrackRightBankTo25DegUp( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16256), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16257), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16258), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16260), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 34 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16259), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16261), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 34 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::RightBankToUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -2525,51 +1435,9 @@ static void LayDownRCTrack25DegUpToLeftBank( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16262), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16266), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 34 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16263), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16267), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 34 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16264), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16265), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 40, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Up25ToLeftBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -2643,51 +1511,9 @@ static void LayDownRCTrack25DegUpToRightBank( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16268), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16269), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16270), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16272), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 34 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16271), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16273), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 34 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0); - } - else - { - PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 40, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Up25ToRightBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -2793,38 +1619,9 @@ static void LayDownRCTrackLeftBank( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16274), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16275), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16276), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16277), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - } - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -2882,178 +1679,9 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16510), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16515), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16520), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16525), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 1: - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16511), { 0, 0, height }, - { 32, 16, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16516), { 0, 0, height }, - { 32, 16, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16521), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16526), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16512), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16517), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16522), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16527), { 0, 0, height }, - { 16, 16, 3 }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20); - break; - case 4: - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 5: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16513), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16518), { 0, 0, height }, - { 16, 32, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16523), { 0, 0, height }, - { 16, 32, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16528), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16514), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16519), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16524), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16529), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 2: - PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2); - break; - case 3: - PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftQuarterTurn5TilesUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -3245,178 +1873,9 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16490), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16495), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16500), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16505), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 1: - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16491), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16496), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16501), { 0, 0, height }, - { 32, 16, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16506), { 0, 0, height }, - { 32, 16, 3 }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16492), { 0, 0, height }, - { 16, 16, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16497), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16502), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16507), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20); - break; - case 4: - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 5: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16493), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16498), { 0, 0, height }, - { 16, 32, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16503), { 0, 0, height }, - { 16, 32, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16508), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16494), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16499), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16504), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16509), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 0: - PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2); - break; - case 1: - PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::RightQuarterTurn5TilesUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -3626,152 +2085,9 @@ static void LayDownRCTrackSBendLeft( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16402), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16406), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16405), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16409), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16403), { 0, 0, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 5, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16407), { 0, 0, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 6, 1, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16404), { 0, 0, height }, - { { 0, 6, height }, { 32, 26, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16408), { 0, 0, height }, - { { 0, 6, height }, { 32, 26, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16404), { 0, 0, height }, - { { 0, 6, height }, { 32, 26, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16408), { 0, 0, height }, - { { 0, 6, height }, { 32, 26, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16403), { 0, 0, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 5, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16407), { 0, 0, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 6, 1, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16405), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16409), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16402), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16406), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 1: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 2: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::SBendLeft); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -3953,152 +2269,9 @@ static void LayDownRCTrackSBendRight( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16410), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16414), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16413), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16417), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16411), { 0, 0, height }, - { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 8, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16415), { 0, 0, height }, - { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16412), { 0, 0, height }, - { 32, 26, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16416), { 0, 0, height }, - { 32, 26, 3 }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16412), { 0, 0, height }, - { 32, 26, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16416), { 0, 0, height }, - { 32, 26, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16411), { 0, 0, height }, - { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 8, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16415), { 0, 0, height }, - { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16413), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16417), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16410), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16414), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 1: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 2: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::SBendRight); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -4273,562 +2446,6 @@ static void LayDownRCTrackSBendRight( } } -/** rct2: 0x00824B6C */ -static void LayDownRCTrackLeftVerticalLoop( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16562), { 0, 6, height }, - { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16570), { 0, 6, height }, - { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16569), { 0, 6, height }, - { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16577), { 0, 6, height }, - { 32, 20, 7 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16563), { 0, 0, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16571), { 0, 14, height }, - { 32, 2, 63 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 15, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16568), { 0, 6, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16576), { 0, 6, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 10, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16564), { 16, 0, height }, - { { 16, 0, height }, { 3, 16, 119 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16572), { 12, 0, height }, - { { 12, 0, height }, { 3, 16, 119 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16567), { 10, 16, height }, - { { 10, 16, height }, { 4, 16, 119 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16575), { 16, 16, height }, - { { 16, 16, height }, { 2, 16, 119 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 168, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16565), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16573), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16566), { 0, 16, height + 32 }, - { 32, 16, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16574), { 0, 16, height + 32 }, - { 32, 16, 3 }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 4: - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 5: - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16566), { 0, 16, height + 32 }, - { 32, 16, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16574), { 0, 16, height + 32 }, - { 32, 16, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16565), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16573), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 7: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16567), { 10, 16, height }, - { { 10, 16, height }, { 4, 16, 119 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16575), { 16, 16, height }, - { { 16, 16, height }, { 2, 16, 119 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16564), { 16, 0, height }, - { { 16, 0, height }, { 3, 16, 119 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16572), { 12, 0, height }, - { { 12, 0, height }, { 3, 16, 119 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 168, 0x20); - break; - case 8: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16568), { 0, 6, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16576), { 0, 6, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 10, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16563), { 0, 0, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16571), { 0, 14, height }, - { 32, 2, 63 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 15, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 9: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16569), { 0, 6, height }, - { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16577), { 0, 6, height }, - { 32, 20, 7 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16562), { 0, 6, height }, - { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16570), { 0, 6, height }, - { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - switch (direction) - { - case 1: - PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1); - break; - case 2: - PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - } -} - -/** rct2: 0x00824B7C */ -static void LayDownRCTrackRightVerticalLoop( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16593), { 0, 6, height }, - { 32, 20, 7 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16585), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16586), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16578), { 0, 6, height }, - { 32, 20, 3 }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16592), { 0, 6, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16584), { 0, 6, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16587), { 0, 14, height }, - { 32, 2, 63 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16579), { 0, 0, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16591), { 16, 16, height }, - { { 16, 16, height }, { 2, 16, 119 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16583), { 10, 16, height }, - { { 10, 16, height }, { 4, 16, 119 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16588), { 12, 0, height }, - { { 12, 0, height }, { 3, 16, 119 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16580), { 16, 0, height }, - { { 16, 0, height }, { 2, 16, 119 } }); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 168, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16590), { 0, 16, height + 32 }, - { 32, 16, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16582), { 0, 16, height + 32 }, - { 32, 16, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16589), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16581), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 4: - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 5: - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16589), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16581), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16590), { 0, 16, height + 32 }, - { 32, 16, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16582), { 0, 16, height + 32 }, - { 32, 16, 3 }); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 7: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16588), { 12, 0, height }, - { { 12, 0, height }, { 3, 16, 119 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16580), { 16, 0, height }, - { { 16, 0, height }, { 2, 16, 119 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16591), { 16, 16, height }, - { { 16, 16, height }, { 2, 16, 119 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16583), { 10, 16, height }, - { { 10, 16, height }, { 4, 16, 119 } }); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 168, 0x20); - break; - case 8: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16587), { 0, 14, height }, - { 32, 2, 63 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16579), { 0, 0, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16592), { 0, 6, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16584), { 0, 6, height }, - { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 9: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16586), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16578), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16593), { 0, 6, height }, - { 32, 20, 7 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16585), { 0, 6, height }, - { 32, 20, 3 }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 1: - PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1); - break; - case 2: - PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - } - - TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence); -} - /** rct2: 0x00824BBC */ static void LayDownRCTrackLeftQuarterTurn3( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -5709,1250 +3326,6 @@ static void LayDownRCTrackRightQuarterTurn325DegDown( LayDownRCTrackLeftQuarterTurn325DegUp(session, ride, trackSequence, (direction - 1) & 3, height, trackElement); } -/** rct2: 0x00824C9C */ -static void LayDownRCTrackLeftHalfBankedHelixUpSmall( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16481), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16488), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16484), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16487), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16478), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 2, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16480), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16483), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 16, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16486), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16477), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16479), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16482), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16485), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16489), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16476), { 0, 0, height }, - { { 6, 0, height + 8 }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 2: - PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0); - break; - case 3: - PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16478), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16481), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16488), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16484), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16487), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 2, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 0: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 1: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 5: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16477), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16480), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16483), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 16, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16486), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 7: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16476), { 0, 0, height }, - { { 0, 6, height + 8 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16479), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16482), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16485), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16489), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } -} - -/** rct2: 0x00824CAC */ -static void LayDownRCTrackRightHalfBankedHelixUpSmall( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16462), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16465), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16468), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16471), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16475), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 2, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16463), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16466), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16469), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 16, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16472), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16464), { 0, 0, height }, - { { 6, 0, height + 8 }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16467), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16474), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16470), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16473), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 0: - PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0); - break; - case 1: - PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16465), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16468), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16471), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16475), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16462), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 2, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 2: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 3: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 5: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16466), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16469), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 16, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16472), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16463), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 7: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16467), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16474), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16470), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16473), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16464), { 0, 0, height }, - { { 0, 6, height + 8 }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } -} - -/** rct2: 0x00824CBC */ -static void LayDownRCTrackLeftHalfBankedHelixDownSmall( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - if (trackSequence >= 4) - { - trackSequence -= 4; - direction = (direction - 1) & 3; - } - trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence]; - LayDownRCTrackRightHalfBankedHelixUpSmall(session, ride, trackSequence, (direction + 1) & 3, height, trackElement); -} - -/** rct2: 0x00824CCC */ -static void LayDownRCTrackRightHalfBankedHelixDownSmall( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - if (trackSequence >= 4) - { - trackSequence -= 4; - direction = (direction + 1) & 3; - } - trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence]; - LayDownRCTrackLeftHalfBankedHelixUpSmall(session, ride, trackSequence, (direction - 1) & 3, height, trackElement); -} - -/** rct2: 0x00824CDC */ -static void LayDownRCTrackLeftHalfBankedHelixUpLarge( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16449), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16460), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16454), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16459), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16444), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 1, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16448), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16453), { 0, 0, height }, - { { 0, 0, height + 27 }, { 32, 16, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16458), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16443), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16447), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16452), { 0, 0, height }, - { { 16, 16, height + 27 }, { 16, 16, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16457), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16442), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 5: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16446), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16451), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 32, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16456), { 0, 0, height }, - { { 0, 0, height }, { 16, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16441), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16445), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16450), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16455), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16461), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16440), { 0, 0, height }, - { { 6, 0, height + 8 }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 2: - PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0); - break; - case 3: - PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 7: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16444), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16449), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16460), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16454), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16459), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 1, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 0: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 1: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 8: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 9: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16443), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16448), { 0, 0, height }, - { { 0, 0, height }, { 16, 32, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16453), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 32, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16458), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 10: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16442), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16447), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16452), { 0, 0, height }, - { { 16, 16, height + 27 }, { 16, 16, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16457), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 11: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 12: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16441), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16446), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16451), { 0, 0, height }, - { { 0, 0, height + 27 }, { 32, 16, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16456), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 13: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16440), { 0, 0, height }, - { { 0, 6, height + 8 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16445), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16450), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16455), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16461), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } -} - -/** rct2: 0x00824CEC */ -static void LayDownRCTrackRightHalfBankedHelixUpLarge( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16418), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16423), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16428), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16433), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16439), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 1, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16419), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16424), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16429), { 0, 0, height }, - { { 0, 0, height + 27 }, { 32, 16, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16434), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16420), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16425), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16430), { 0, 0, height }, - { { 16, 16, height + 27 }, { 16, 16, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16435), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 5: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16421), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16426), { 0, 0, height }, - { { 0, 0, height }, { 16, 32, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16431), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 32, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16436), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16422), { 0, 0, height }, - { { 6, 0, height + 8 }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16427), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16438), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16432), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16437), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 0: - PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0); - break; - case 1: - PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 7: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16423), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16428), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16433), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16439), { 0, 0, height }, - { { 27, 0, height }, { 1, 32, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16418), { 0, 0, height }, - { { 6, 0, height }, { 20, 32, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 1, height, session.TrackColours[SCHEME_SUPPORTS]); - switch (direction) - { - case 2: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 3: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 8: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 9: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16424), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16429), { 0, 0, height }, - { { 0, 0, height + 27 }, { 16, 32, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16434), { 0, 0, height }, - { { 0, 0, height }, { 16, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16419), { 0, 0, height }, - { { 16, 0, height }, { 16, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 10: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16425), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16430), { 0, 0, height }, - { { 16, 16, height + 27 }, { 16, 16, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16435), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16420), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 11: - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 12: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16426), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16431), { 0, 0, height }, - { { 0, 0, height + 27 }, { 32, 16, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16436), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16421), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 13: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16427), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16438), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16432), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16437), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16422), { 0, 0, height }, - { { 0, 6, height + 8 }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } -} - -/** rct2: 0x00824CFC */ -static void LayDownRCTrackLeftHalfBankedHelixDownLarge( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - if (trackSequence >= 7) - { - trackSequence -= 7; - direction = (direction - 1) & 3; - } - trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence]; - LayDownRCTrackRightHalfBankedHelixUpLarge(session, ride, trackSequence, (direction + 1) & 3, height, trackElement); -} - -/** rct2: 0x00824D0C */ -static void LayDownRCTrackRightHalfBankedHelixDownLarge( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - if (trackSequence >= 7) - { - trackSequence -= 7; - direction = (direction + 1) & 3; - } - trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence]; - LayDownRCTrackLeftHalfBankedHelixUpLarge(session, ride, trackSequence, (direction - 1) & 3, height, trackElement); -} - /** rct2: 0x00824D3C */ static void LayDownRCTrackLeftQuarterTurn160DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -6960,41 +3333,9 @@ static void LayDownRCTrackLeftQuarterTurn160DegUp( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16555), { 0, 0, height }, - { { 2, 2, height }, { 28, 28, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16559), { 0, 0, height }, - { { 2, 2, height + 99 }, { 28, 28, 1 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16556), { 0, 0, height }, - { { 2, 2, height }, { 28, 28, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16560), { 0, 0, height }, - { { 2, 2, height + 99 }, { 28, 28, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16557), { 0, 0, height }, - { { 2, 2, height }, { 28, 28, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16561), { 0, 0, height }, - { { 2, 2, height + 99 }, { 28, 28, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16554), { 0, 0, height }, - { { 2, 2, height }, { 28, 28, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16558), { 0, 0, height }, - { { 2, 2, height + 99 }, { 28, 28, 1 } }); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftQuarterTurn1TileUp60); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -7033,10 +3374,11 @@ static void LayDownRCTrackLeftQuarterTurn160DegUp( { { 2, 2, height + 99 }, { 28, 28, 1 } }); break; } + + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } - TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); - PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } /** rct2: 0x00824D1C */ @@ -7046,41 +3388,9 @@ static void LayDownRCTrackRightQuarterTurn160DegUp( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16546), { 0, 0, height }, - { { 2, 2, height }, { 28, 28, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16550), { 0, 0, height }, - { { 2, 2, height + 99 }, { 28, 28, 1 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16547), { 0, 0, height }, - { { 2, 2, height }, { 28, 28, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16551), { 0, 0, height }, - { { 2, 2, height + 99 }, { 28, 28, 1 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16548), { 0, 0, height }, - { { 2, 2, height }, { 28, 28, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16552), { 0, 0, height }, - { { 2, 2, height + 99 }, { 28, 28, 1 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16549), { 0, 0, height }, - { { 2, 2, height }, { 28, 28, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16553), { 0, 0, height }, - { { 2, 2, height + 99 }, { 28, 28, 1 } }); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::RightQuarterTurn1TileUp60); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -7149,30 +3459,9 @@ static void LayDownRCTrackBrakes( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16230), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16231), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - } - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::Brakes); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -7212,57 +3501,9 @@ static void LayDownRCTrackOnRidePhoto( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 5, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 8, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16224), { 0, 0, height }, - { { 0, 6, height + 3 }, { 32, 20, 0 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 6, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16225), { 0, 0, height }, - { { 0, 6, height + 3 }, { 32, 20, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 5, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 8, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16224), { 0, 0, height }, - { { 0, 6, height + 3 }, { 32, 20, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 6, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16225), { 0, 0, height }, - { { 0, 6, height + 3 }, { 32, 20, 0 } }); - break; - } - TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::OnRidePhoto); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -7327,147 +3568,9 @@ static void LayDownRCTrackLeftEighthToDiag( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16740), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16744), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16748), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16752), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16741), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16745), { 0, 0, height }, - { { 0, 0, height }, { 34, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16749), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16753), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16742), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16746), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16750), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16754), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16743), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16747), { 0, 0, height }, - { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16751), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16755), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftEighthToDiag); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -7637,147 +3740,9 @@ static void LayDownRCTrackRightEighthToDiag( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16724), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16728), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16732), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16736), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16725), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16729), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16733), { 0, 0, height }, - { { 0, 0, height }, { 34, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16737), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16726), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16730), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16734), { 0, 0, height }, - { { 4, 4, height }, { 28, 28, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16738), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16727), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16731), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16735), { 0, 0, height }, - { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16739), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::RightEighthToDiag); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -7965,147 +3930,9 @@ static void LayDownRCTrackLeftEighthBankToDiag( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16772), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16776), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16780), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16784), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16773), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16777), { 0, 0, height }, - { { 0, 0, height + 27 }, { 34, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16781), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16785), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16774), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16778), { 0, 0, height }, - { { 16, 16, height + 27 }, { 16, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16782), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16786), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16775), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16779), { 0, 0, height }, - { { 0, 16, height + 27 }, { 16, 18, 0 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16783), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16787), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftEighthBankToDiag); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -8275,147 +4102,9 @@ static void LayDownRCTrackRightEighthBankToDiag( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16756), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16760), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16764), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16768), { 0, 0, height }, - { { 0, 27, height }, { 32, 1, 26 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16757), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16761), { 0, 0, height }, - { { 0, 16, height }, { 32, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16765), { 0, 0, height }, - { { 0, 0, height + 27 }, { 34, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16769), { 0, 0, height }, - { { 0, 0, height }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16758), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16762), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16766), { 0, 0, height }, - { { 4, 4, height + 27 }, { 28, 28, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16770), { 0, 0, height }, - { { 0, 16, height }, { 16, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 4: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16759), { 0, 0, height }, - { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16763), { 0, 0, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16767), { 0, 0, height }, - { { 0, 16, height + 27 }, { 16, 18, 0 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16771), { 0, 0, height }, - { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::RightEighthBankToDiag); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -8603,145 +4292,9 @@ static void LayDownRCTrackDiagFlat( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16699), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16637), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16696), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16634), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16698), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16636), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16697), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16635), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagFlat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -8887,145 +4440,9 @@ static void LayDownRCTrackDiag25DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16711), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16649), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16708), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16646), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16710), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16648), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16709), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16647), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -9171,145 +4588,9 @@ static void LayDownRCTrackDiag60DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16723), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16661), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16720), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16658), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16722), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16660), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 32, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16721), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 36, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 32, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 36, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 32, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16659), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 36, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 32, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 36, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagUp60); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -9403,145 +4684,9 @@ static void LayDownRCTrackDiagFlatTo25DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16703), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16641), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16700), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16638), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16702), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16640), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16701), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16639), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagFlatToUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -9687,145 +4832,9 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16715), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16653), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16712), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16650), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16714), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16652), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16713), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16651), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagUp25ToUp60); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -9919,145 +4928,9 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16719), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16657), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16716), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16654), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16718), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16656), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 21, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16717), { -16, -16, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 21, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 21, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 21, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 21, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16655), { -16, -16, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 21, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 21, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 21, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagUp60ToUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -10151,145 +5024,9 @@ static void LayDownRCTrackDiag25DegUpToFlat( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16707), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16645), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16704), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16642), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16706), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16644), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16705), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16643), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagUp25ToFlat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -10435,145 +5172,9 @@ static void LayDownRCTrackDiag25DegDown( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16709), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16647), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16710), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16648), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16708), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16646), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16711), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16649), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagDown25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -10663,145 +5264,9 @@ static void LayDownRCTrackDiag60DegDown( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16721), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16659), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16722), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16660), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16720), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16658), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 24, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16723), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 28, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 24, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 28, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 24, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16661), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 28, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 24, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 28, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagDown60); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -10895,141 +5360,9 @@ static void LayDownRCTrackDiagFlatTo25DegDown( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16705), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16643), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16706), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16644), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16704), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16642), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16707), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16645), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagFlatToDown25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -11116,145 +5449,9 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16717), { -16, -16, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16655), { -16, -16, height }, - { { 0, 0, height }, { 16, 16, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16718), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16656), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16716), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16654), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 17, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16719), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 17, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 17, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 17, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 17, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16657), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 17, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 17, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 17, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagDown25ToDown60); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -11348,145 +5545,9 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16713), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16651), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16714), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16652), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16712), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16650), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16715), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16653), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagDown60ToDown25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -11576,145 +5637,9 @@ static void LayDownRCTrackDiag25DegDownToFlat( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - if (trackElement.HasChain()) - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16701), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16639), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 1: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16702), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16640), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 2: - if (trackElement.HasChain()) - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16700), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - else - { - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16638), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 3: - if (trackElement.HasChain()) - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16703), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - else - { - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16641), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagDown25ToFlat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -11804,78 +5729,9 @@ static void LayDownRCTrackDiagFlatToLeftBank( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16669), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16666), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16670), { -16, -16, height }, - { { -16, -16, height + 27 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16668), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16667), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagFlatToLeftBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -11966,78 +5822,9 @@ static void LayDownRCTrackDiagFlatToRightBank( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16674), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16671), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16673), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16675), { -16, -16, height }, - { { -16, -16, height + 27 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16672), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagFlatToRightBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -12128,78 +5915,9 @@ static void LayDownRCTrackDiagLeftBankToFlat( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16672), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16673), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16675), { -16, -16, height }, - { { -16, -16, height + 27 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16671), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16674), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagLeftBankToFlat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -12290,78 +6008,9 @@ static void LayDownRCTrackDiagRightBankToFlat( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16667), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16668), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16666), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16670), { -16, -16, height }, - { { -16, -16, height + 27 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16669), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagRightBankToFlat); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -12452,78 +6101,9 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16689), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16686), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16690), { -16, -16, height }, - { { -16, -16, height + 35 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16688), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16687), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagLeftBankToUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -12613,78 +6193,9 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16694), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16691), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16693), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16695), { -16, -16, height }, - { { -16, -16, height + 35 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16692), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagRightBankToUp25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -12774,78 +6285,9 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16679), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16676), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16680), { -16, -16, height }, - { { -16, -16, height + 35 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16678), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16677), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagUp25ToLeftBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -12935,78 +6377,9 @@ static void LayDownRCTrackDiag25DegUpToRightBank( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16684), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16681), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16683), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16685), { -16, -16, height }, - { { -16, -16, height + 35 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16682), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagUp25ToRightBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -13096,74 +6469,9 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16682), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16683), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16685), { -16, -16, height }, - { { -16, -16, height + 35 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16681), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - break; - case 3: - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16684), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagLeftBankToDown25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -13250,74 +6558,9 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16677), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16678), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16676), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16680), { -16, -16, height }, - { { -16, -16, height + 35 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - break; - case 3: - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16679), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 4, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagRightBankToDown25); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -13404,78 +6647,9 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16692), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16693), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16695), { -16, -16, height }, - { { -16, -16, height + 35 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16691), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16694), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagDown25ToLeftBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -13565,78 +6739,9 @@ static void LayDownRCTrackDiag25DegDownToRightBank( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16687), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16688), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16686), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16690), { -16, -16, height }, - { { -16, -16, height + 35 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16689), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagDown25ToRightBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -13726,75 +6831,9 @@ static void LayDownRCTrackDiagLeftBank( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16665), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16662), { -16, -16, height }, - { { -16, -16, height + 27 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16664), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16663), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagLeftBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -13885,75 +6924,9 @@ static void LayDownRCTrackDiagRightBank( { if (!trackElement.IsInverted()) { - switch (trackSequence) - { - case 0: - switch (direction) - { - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16663), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16664), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16662), { -16, -16, height }, - { { -16, -16, height + 27 }, { 32, 32, 0 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 3: - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16665), { -16, -16, height }, - { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 0, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 2, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::DiagRightBank); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -14037,244 +7010,6 @@ static void LayDownRCTrackDiagRightBank( } } -/** rct2: 0x00824FAC */ -static void LayDownRCTrackLeftFlyerTwistUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26972), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26978), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26971), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26977), { 0, 6, height }, - { 32, 20, 3 }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26973), { 0, 6, height + 24 }, - { { 0, 6, height + 24 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26979), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26970), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26976), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26974), { 0, 6, height + 24 }, - { { 0, 6, height + 24 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26980), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26969), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26975), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - } - - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); - - switch (direction) - { - case 1: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 2: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } -} - -/** rct2: 0x00824FBC */ -static void LayDownRCTrackRightFlyerTwistUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26984), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26990), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26983), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26989), { 0, 6, height }, - { 32, 20, 3 }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26985), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26991), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26982), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26988), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26986), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26992), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26981), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(26987), { 0, 6, height + 24 }, - { 32, 20, 3 }); - break; - } - - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); - - switch (direction) - { - case 1: - PaintUtilPushTunnelRight(session, height, TUNNEL_0); - break; - case 2: - PaintUtilPushTunnelLeft(session, height, TUNNEL_0); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); - break; - } -} - /** rct2: 0x00824FCC */ static void LayDownRCTrackLeftFlyerTwistDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -14513,147 +7248,6 @@ static void LayDownRCTrackRightFlyerTwistDown( } } -/** rct2: 0x00824C3C */ -static void LayDownRCTrackFlyerHalfLoopUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16594), { 0, 6, height }, - { 32, 20, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16602), { 0, 6, height }, - { 32, 20, 11 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16601), { 0, 6, height }, - { 32, 20, 9 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16609), { 0, 6, height }, - { 32, 20, 7 }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16595), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16603), { 0, 14, height }, - { { 28, 6, height }, { 3, 20, 63 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 15, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16600), { 0, 6, height }, - { { 28, 6, height }, { 3, 20, 63 } }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16608), { 0, 6, height }, - { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); - break; - } - PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16596), { 16, 0, height }, - { 2, 16, 119 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16604), { 12, 0, height }, - { { 12, 0, height }, { 3, 16, 119 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16599), { 10, 16, height }, - { 4, 12, 119 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16607), { 16, 16, height }, - { { 15, 6, height }, { 2, 16, 119 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 168, 0x20); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16597), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16605), { 0, 0, height + 32 }, - { 32, 16, 3 }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16598), { 0, 16, height + 32 }, - { 32, 12, 3 }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16606), { 0, 16, height + 32 }, - { 32, 12, 3 }); - break; - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } -} - /** rct2: 0x00824C4C */ static void LayDownRCTrackFlyerHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -14795,245 +7389,6 @@ static void LayDownRCTrackFlyerHalfLoopDown( } } -/** rct2: 0x00824C5C */ -static void LayDownRCTrackLeftFlyerCorkscrewUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16610), { 0, 0, height }, - { { 0, 6, height + 4 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16613), { 0, 0, height }, - { { 0, 6, height + 4 }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16616), { 0, 0, height }, - { { 0, 6, height + 4 }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16619), { 0, 0, height }, - { { 0, 6, height + 4 }, { 32, 20, 3 } }); - break; - } - - if (direction == 2) - { - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction != 2) - { - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), - 0xFFFF, 0); - } - - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16611), { 0, 0, height }, - { { 6, 6, height + 10 }, { 20, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16614), { 0, 0, height }, - { { 6, 6, height + 10 }, { 20, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16617), { 0, 0, height }, - { { 6, 6, height + 10 }, { 20, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16620), { 0, 0, height }, - { { 6, 6, height + 10 }, { 20, 20, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16612), { 0, 0, height }, - { { 6, 0, height + 24 }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16615), { 0, 0, height }, - { { 6, 0, height + 24 }, { 20, 32, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16618), { 0, 0, height }, - { { 6, 0, height + 24 }, { 20, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16621), { 0, 0, height }, - { { 6, 0, height + 24 }, { 20, 32, 3 } }); - break; - } - - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height + 35, session.TrackColours[SCHEME_SUPPORTS]); - - switch (direction) - { - case 2: - PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0); - break; - case 3: - PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } -} - -/** rct2: 0x00824C6C */ -static void LayDownRCTrackRightFlyerCorkscrewUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16622), { 0, 0, height }, - { { 0, 6, height + 4 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16625), { 0, 0, height }, - { { 0, 6, height + 4 }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16628), { 0, 0, height }, - { { 0, 6, height + 4 }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16631), { 0, 0, height }, - { { 0, 6, height + 4 }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16623), { 0, 0, height }, - { { 6, 6, height + 10 }, { 20, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16626), { 0, 0, height }, - { { 6, 6, height + 10 }, { 20, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16629), { 0, 0, height }, - { { 6, 6, height + 10 }, { 20, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16632), { 0, 0, height }, - { { 6, 6, height + 10 }, { 20, 20, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16624), { 0, 0, height }, - { { 6, 0, height + 24 }, { 20, 32, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16627), { 0, 0, height }, - { { 6, 0, height + 24 }, { 20, 32, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16630), { 0, 0, height }, - { { 6, 0, height + 24 }, { 20, 32, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16633), { 0, 0, height }, - { { 6, 0, height + 24 }, { 20, 32, 3 } }); - break; - } - - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), - 0xFFFF, 0); - MetalASupportsPaintSetup( - session, MetalSupportType::TubesInverted, 4, 0, height + 35, session.TrackColours[SCHEME_SUPPORTS]); - - switch (direction) - { - case 0: - PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0); - break; - case 1: - PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0); - break; - } - PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); - break; - } -} - /** rct2: 0x00824C7C */ static void LayDownRCTrackLeftFlyerCorkscrewDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, @@ -15153,7 +7508,9 @@ static void LayDownRCTrackRightFlyerCorkscrewDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - LayDownRCTrackLeftFlyerCorkscrewUp(session, ride, 2 - trackSequence, (direction + 3) % 4, height, trackElement); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::LeftFlyerCorkscrewUp); + function(session, ride, 2 - trackSequence, (direction + 3) % 4, height, trackElement); + return; } /** rct2: 0x00824FEC */ @@ -15163,26 +7520,9 @@ static void LayDownRCTrackBlockBrakes( { if (!trackElement.IsInverted()) { - switch (direction) - { - case 0: - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16232), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 1: - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(16233), { 0, 0, height }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup(session, MetalSupportType::TubesInverted, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); + auto function = GetTrackPaintFunctionCorkscrewRC(TrackElemType::BlockBrakes); + function(session, ride, trackSequence, direction, height, trackElement); + return; } else { @@ -15942,6 +8282,7 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( break; } } + static void LayDownRCTrackHalfLoopInvertedUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) @@ -16093,13 +8434,6 @@ static void LayDownRCTrackHalfLoopInvertedUp( } } -static void LayDownRCTrackHalfLoopUninvertedDown( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement) -{ - LayDownRCTrackHalfLoopInvertedUp(session, ride, 3 - trackSequence, direction, height, trackElement); -} - TRACK_PAINT_FUNCTION GetTrackPaintFunctionLayDownRC(int32_t trackType) { switch (trackType) @@ -16182,10 +8516,6 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionLayDownRC(int32_t trackType) return LayDownRCTrackSBendLeft; case TrackElemType::SBendRight: return LayDownRCTrackSBendRight; - case TrackElemType::LeftVerticalLoop: - return LayDownRCTrackLeftVerticalLoop; - case TrackElemType::RightVerticalLoop: - return LayDownRCTrackRightVerticalLoop; case TrackElemType::LeftQuarterTurn3Tiles: return LayDownRCTrackLeftQuarterTurn3; case TrackElemType::RightQuarterTurn3Tiles: @@ -16202,22 +8532,6 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionLayDownRC(int32_t trackType) return LayDownRCTrackLeftQuarterTurn325DegDown; case TrackElemType::RightQuarterTurn3TilesDown25: return LayDownRCTrackRightQuarterTurn325DegDown; - case TrackElemType::LeftHalfBankedHelixUpSmall: - return LayDownRCTrackLeftHalfBankedHelixUpSmall; - case TrackElemType::RightHalfBankedHelixUpSmall: - return LayDownRCTrackRightHalfBankedHelixUpSmall; - case TrackElemType::LeftHalfBankedHelixDownSmall: - return LayDownRCTrackLeftHalfBankedHelixDownSmall; - case TrackElemType::RightHalfBankedHelixDownSmall: - return LayDownRCTrackRightHalfBankedHelixDownSmall; - case TrackElemType::LeftHalfBankedHelixUpLarge: - return LayDownRCTrackLeftHalfBankedHelixUpLarge; - case TrackElemType::RightHalfBankedHelixUpLarge: - return LayDownRCTrackRightHalfBankedHelixUpLarge; - case TrackElemType::LeftHalfBankedHelixDownLarge: - return LayDownRCTrackLeftHalfBankedHelixDownLarge; - case TrackElemType::RightHalfBankedHelixDownLarge: - return LayDownRCTrackRightHalfBankedHelixDownLarge; case TrackElemType::LeftQuarterTurn1TileUp60: return LayDownRCTrackLeftQuarterTurn160DegUp; case TrackElemType::RightQuarterTurn1TileUp60: @@ -16300,29 +8614,20 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionLayDownRC(int32_t trackType) return LayDownRCTrackDiagLeftBank; case TrackElemType::DiagRightBank: return LayDownRCTrackDiagRightBank; - case TrackElemType::LeftFlyerTwistUp: - return LayDownRCTrackLeftFlyerTwistUp; - case TrackElemType::RightFlyerTwistUp: - return LayDownRCTrackRightFlyerTwistUp; + case TrackElemType::BlockBrakes: + return LayDownRCTrackBlockBrakes; + + // Inverted only case TrackElemType::LeftFlyerTwistDown: return LayDownRCTrackLeftFlyerTwistDown; case TrackElemType::RightFlyerTwistDown: return LayDownRCTrackRightFlyerTwistDown; - case TrackElemType::FlyerHalfLoopUninvertedUp: - return LayDownRCTrackFlyerHalfLoopUp; case TrackElemType::FlyerHalfLoopInvertedDown: return LayDownRCTrackFlyerHalfLoopDown; - case TrackElemType::LeftFlyerCorkscrewUp: - return LayDownRCTrackLeftFlyerCorkscrewUp; - case TrackElemType::RightFlyerCorkscrewUp: - return LayDownRCTrackRightFlyerCorkscrewUp; case TrackElemType::LeftFlyerCorkscrewDown: return LayDownRCTrackLeftFlyerCorkscrewDown; case TrackElemType::RightFlyerCorkscrewDown: return LayDownRCTrackRightFlyerCorkscrewDown; - case TrackElemType::BlockBrakes: - return LayDownRCTrackBlockBrakes; - case TrackElemType::LeftQuarterBankedHelixLargeUp: return LayDownRCTrackLeftQuarterBankedHelixLargeUp; case TrackElemType::RightQuarterBankedHelixLargeUp: @@ -16331,11 +8636,8 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionLayDownRC(int32_t trackType) return LayDownRCTrackLeftQuarterBankedHelixLargeDown; case TrackElemType::RightQuarterBankedHelixLargeDown: return LayDownRCTrackRightQuarterBankedHelixLargeDown; - case TrackElemType::FlyerHalfLoopInvertedUp: return LayDownRCTrackHalfLoopInvertedUp; - case TrackElemType::FlyerHalfLoopUninvertedDown: - return LayDownRCTrackHalfLoopUninvertedDown; } return GetTrackPaintFunctionCorkscrewRC(trackType); } diff --git a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp b/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp index 28414ffb38..e1f4b9b842 100644 --- a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp @@ -18,12 +18,12 @@ #include "../TrackData.h" #include "../TrackPaint.h" -static constexpr const uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_OPEN = 15020; -static constexpr const uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_OPEN = 15021; -static constexpr const uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_CLOSED = 15022; -static constexpr const uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_CLOSED = 15023; +static constexpr uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_OPEN = 15020; +static constexpr uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_OPEN = 15021; +static constexpr uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_CLOSED = 15022; +static constexpr uint32_t LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_CLOSED = 15023; -static constexpr const uint32_t _LimLauncherBlockBrakeImages[NumOrthogonalDirections][2] = { +static constexpr uint32_t _LimLauncherBlockBrakeImages[NumOrthogonalDirections][2] = { { LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_OPEN, LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_CLOSED }, { LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_OPEN, LIM_LAUNCHED_RC_BLOCK_BRAKE_NW_SE_CLOSED }, { LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_OPEN, LIM_LAUNCHED_RC_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -35,7 +35,7 @@ static void LimLaunchedRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { 15018, SPR_STATION_BASE_B_SW_NE }, { 15019, SPR_STATION_BASE_B_NW_SE }, { 15018, SPR_STATION_BASE_B_SW_NE }, @@ -5207,14 +5207,14 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( } } -static void LimLaunchedRCTrackRightLargeHalfLoopDown( +static void LimLaunchedRCTrackLeftLargeHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { LimLaunchedRCTrackRightLargeHalfLoopUp(session, ride, 6 - trackSequence, direction, height, trackElement); } -static void LimLaunchedRCTrackLeftLargeHalfLoopDown( +static void LimLaunchedRCTrackRightLargeHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { @@ -5938,10 +5938,10 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionLimLaunchedRC(int32_t trackType) return LimLaunchedRCTrackLeftLargeHalfLoopUp; case TrackElemType::RightLargeHalfLoopUp: return LimLaunchedRCTrackRightLargeHalfLoopUp; - case TrackElemType::RightLargeHalfLoopDown: - return LimLaunchedRCTrackRightLargeHalfLoopDown; case TrackElemType::LeftLargeHalfLoopDown: return LimLaunchedRCTrackLeftLargeHalfLoopDown; + case TrackElemType::RightLargeHalfLoopDown: + return LimLaunchedRCTrackRightLargeHalfLoopDown; case TrackElemType::LeftLargeCorkscrewUp: return LimLaunchedRCTrackLeftLargeCorkscrewUp; case TrackElemType::RightLargeCorkscrewUp: diff --git a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp index 115337d774..1964af1394 100644 --- a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp @@ -91,13 +91,13 @@ static void LoopingRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIdsFrictionWheels[4][2] = { + static constexpr uint32_t imageIdsFrictionWheels[4][2] = { { SPR_LOOPING_RC_BOOSTER_NE_SW, SPR_STATION_BASE_B_SW_NE }, { SPR_LOOPING_RC_BOOSTER_NW_SE, SPR_STATION_BASE_B_NW_SE }, { SPR_LOOPING_RC_BOOSTER_NE_SW, SPR_STATION_BASE_B_SW_NE }, { SPR_LOOPING_RC_BOOSTER_NW_SE, SPR_STATION_BASE_B_NW_SE }, }; - static constexpr const uint32_t imageIdsShuttleLaunch[4][2] = { + static constexpr uint32_t imageIdsShuttleLaunch[4][2] = { { SPR_LOOPING_RC_FLAT_CHAINED_SW_NE, SPR_STATION_BASE_B_SW_NE }, { SPR_LOOPING_RC_FLAT_CHAINED_NW_SE, SPR_STATION_BASE_B_NW_SE }, { SPR_LOOPING_RC_FLAT_CHAINED_SW_NE, SPR_STATION_BASE_B_SW_NE }, diff --git a/src/openrct2/ride/coaster/MineRide.cpp b/src/openrct2/ride/coaster/MineRide.cpp index 6bd0b619f8..be4d81fa4c 100644 --- a/src/openrct2/ride/coaster/MineRide.cpp +++ b/src/openrct2/ride/coaster/MineRide.cpp @@ -57,7 +57,7 @@ static void MineRideTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { 19338, SPR_STATION_BASE_A_SW_NE }, { 19339, SPR_STATION_BASE_A_NW_SE }, { 19338, SPR_STATION_BASE_A_SW_NE }, diff --git a/src/openrct2/ride/coaster/MineTrainCoaster.cpp b/src/openrct2/ride/coaster/MineTrainCoaster.cpp index 7829b6b8cb..e40be7ec65 100644 --- a/src/openrct2/ride/coaster/MineTrainCoaster.cpp +++ b/src/openrct2/ride/coaster/MineTrainCoaster.cpp @@ -18,12 +18,12 @@ #include "../TrackData.h" #include "../TrackPaint.h" -static constexpr const uint32_t MINE_TRAIN_BLOCK_BRAKE_SW_NE_OPEN = 20060; -static constexpr const uint32_t MINE_TRAIN_BLOCK_BRAKE_NW_SE_OPEN = 20061; -static constexpr const uint32_t MINE_TRAIN_BLOCK_BRAKE_SW_NE_CLOSED = 20062; -static constexpr const uint32_t MINE_TRAIN_BLOCK_BRAKE_NW_SE_CLOSED = 20063; +static constexpr uint32_t MINE_TRAIN_BLOCK_BRAKE_SW_NE_OPEN = 20060; +static constexpr uint32_t MINE_TRAIN_BLOCK_BRAKE_NW_SE_OPEN = 20061; +static constexpr uint32_t MINE_TRAIN_BLOCK_BRAKE_SW_NE_CLOSED = 20062; +static constexpr uint32_t MINE_TRAIN_BLOCK_BRAKE_NW_SE_CLOSED = 20063; -static constexpr const uint32_t _MineTrainBlockBrakeImages[NumOrthogonalDirections][2] = { +static constexpr uint32_t _MineTrainBlockBrakeImages[NumOrthogonalDirections][2] = { { MINE_TRAIN_BLOCK_BRAKE_SW_NE_OPEN, MINE_TRAIN_BLOCK_BRAKE_SW_NE_CLOSED }, { MINE_TRAIN_BLOCK_BRAKE_NW_SE_OPEN, MINE_TRAIN_BLOCK_BRAKE_NW_SE_CLOSED }, { MINE_TRAIN_BLOCK_BRAKE_SW_NE_OPEN, MINE_TRAIN_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -107,7 +107,7 @@ static void MineTrainRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { 20064, SPR_STATION_BASE_B_SW_NE }, { 20065, SPR_STATION_BASE_B_NW_SE }, { 20064, SPR_STATION_BASE_B_SW_NE }, diff --git a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp b/src/openrct2/ride/coaster/MiniRollerCoaster.cpp index 48d75331b4..4dfed21d54 100644 --- a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/MiniRollerCoaster.cpp @@ -18,12 +18,12 @@ #include "../TrackData.h" #include "../TrackPaint.h" -static constexpr const uint32_t MINI_RC_BLOCK_BRAKE_SW_NE_OPEN = 18742; -static constexpr const uint32_t MINI_RC_BLOCK_BRAKE_NW_SE_OPEN = 18743; -static constexpr const uint32_t MINI_RC_BLOCK_BRAKE_SW_NE_CLOSED = 18744; -static constexpr const uint32_t MINI_RC_BLOCK_BRAKE_NW_SE_CLOSED = 18745; +static constexpr uint32_t MINI_RC_BLOCK_BRAKE_SW_NE_OPEN = 18742; +static constexpr uint32_t MINI_RC_BLOCK_BRAKE_NW_SE_OPEN = 18743; +static constexpr uint32_t MINI_RC_BLOCK_BRAKE_SW_NE_CLOSED = 18744; +static constexpr uint32_t MINI_RC_BLOCK_BRAKE_NW_SE_CLOSED = 18745; -static constexpr const uint32_t _MiniRCBlockBrakeImages[NumOrthogonalDirections][2] = { +static constexpr uint32_t _MiniRCBlockBrakeImages[NumOrthogonalDirections][2] = { { MINI_RC_BLOCK_BRAKE_SW_NE_OPEN, MINI_RC_BLOCK_BRAKE_SW_NE_CLOSED }, { MINI_RC_BLOCK_BRAKE_NW_SE_OPEN, MINI_RC_BLOCK_BRAKE_NW_SE_CLOSED }, { MINI_RC_BLOCK_BRAKE_SW_NE_OPEN, MINI_RC_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -119,7 +119,7 @@ static void MiniRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { 18746, SPR_STATION_BASE_A_SW_NE }, { 18747, SPR_STATION_BASE_A_NW_SE }, { 18746, SPR_STATION_BASE_A_SW_NE }, diff --git a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp index 37489d75b3..2f6704bce6 100644 --- a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp +++ b/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp @@ -88,7 +88,7 @@ static void MiniSuspendedRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 28433, SPR_STATION_INVERTED_BAR_E_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 28434, SPR_STATION_INVERTED_BAR_E_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 28433, SPR_STATION_INVERTED_BAR_E_SW_NE }, diff --git a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp b/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp index aeefbff3f7..aa239a9986 100644 --- a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp @@ -18,20 +18,20 @@ #include "../TrackData.h" #include "../TrackPaint.h" -static constexpr const uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_OPEN = 15812; -static constexpr const uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_OPEN = 15813; -static constexpr const uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_CLOSED = 15814; -static constexpr const uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_CLOSED = 15815; +static constexpr uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_OPEN = 15812; +static constexpr uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_OPEN = 15813; +static constexpr uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_CLOSED = 15814; +static constexpr uint32_t MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_CLOSED = 15815; -static constexpr const uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_OPEN = 16220; -static constexpr const uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_OPEN = 16221; -static constexpr const uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED = 16222; -static constexpr const uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED = 16223; +static constexpr uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_OPEN = 16220; +static constexpr uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_OPEN = 16221; +static constexpr uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED = 16222; +static constexpr uint32_t MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED = 16223; -static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_OPEN = 26551; -static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_OPEN = 26552; -static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED = 26553; -static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED = 26554; +static constexpr uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_OPEN = 26551; +static constexpr uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_OPEN = 26552; +static constexpr uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED = 26553; +static constexpr uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED = 26554; /** rct2: 0x00792D88 */ static void MultiDimensionRCTrackFlat( @@ -126,7 +126,7 @@ static void MultiDimensionRCTrackStation( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[NumOrthogonalDirections][3] = { + static constexpr uint32_t imageIds[NumOrthogonalDirections][3] = { { 15810, MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_CLOSED }, { 15811, MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_STATION_BLOCK_BRAKE_NW_SE_CLOSED }, { 15810, MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_STATION_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -12462,7 +12462,7 @@ static void MultiDimensionRCTrackBlockBrakes( if (!trackElement.IsInverted()) { - static constexpr const uint32_t imageIds[NumOrthogonalDirections][2] = { + static constexpr uint32_t imageIds[NumOrthogonalDirections][2] = { { MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED }, { MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED }, { MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_NON_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -12479,7 +12479,7 @@ static void MultiDimensionRCTrackBlockBrakes( } else { - static constexpr const uint32_t imageIds[NumOrthogonalDirections][2] = { + static constexpr uint32_t imageIds[NumOrthogonalDirections][2] = { { MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED }, { MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_OPEN, MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED }, { MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_OPEN, MULTI_DIM_INVERTED_BLOCK_BRAKE_SW_NE_CLOSED }, diff --git a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp b/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp index 07e147a106..55520a2673 100644 --- a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp +++ b/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp @@ -89,14 +89,14 @@ enum SPR_AIR_POWERED_VERTICAL_RC_FLAT_NW_SE = 22227, }; -static constexpr const uint32_t reverse_freefall_rc_track_pieces_station[4] = { +static constexpr uint32_t reverse_freefall_rc_track_pieces_station[4] = { SPR_REVERSE_FREEFALL_RC_STATION_SW_NE, SPR_REVERSE_FREEFALL_RC_STATION_NW_SE, SPR_REVERSE_FREEFALL_RC_STATION_SW_NE, SPR_REVERSE_FREEFALL_RC_STATION_NW_SE, }; -static constexpr const uint32_t reverse_freefall_rc_track_pieces_slope[7][4] = { +static constexpr uint32_t reverse_freefall_rc_track_pieces_slope[7][4] = { { SPR_REVERSE_FREEFALL_RC_SLOPE_SW_NE_0, SPR_REVERSE_FREEFALL_RC_SLOPE_NW_SE_0, @@ -136,7 +136,7 @@ static constexpr const uint32_t reverse_freefall_rc_track_pieces_slope[7][4] = { }, }; -static constexpr const uint32_t reverse_freefall_rc_track_pieces_slope_supports[7][4] = { +static constexpr uint32_t reverse_freefall_rc_track_pieces_slope_supports[7][4] = { { SPR_REVERSE_FREEFALL_RC_SLOPE_SUPPORTS_SW_NE_0, SPR_REVERSE_FREEFALL_RC_SLOPE_SUPPORTS_NW_SE_0, @@ -181,14 +181,14 @@ static constexpr const uint32_t reverse_freefall_rc_track_pieces_slope_supports[ }, }; -static constexpr const uint32_t reverse_freefall_rc_track_pieces_vertical[4] = { +static constexpr uint32_t reverse_freefall_rc_track_pieces_vertical[4] = { SPR_REVERSE_FREEFALL_RC_VERTICAL_SW_NE, SPR_REVERSE_FREEFALL_RC_VERTICAL_NW_SE, SPR_REVERSE_FREEFALL_RC_VERTICAL_NE_SW, SPR_REVERSE_FREEFALL_RC_VERTICAL_SE_NW, }; -static constexpr const uint32_t reverse_freefall_rc_track_pieces_vertical_supports[4] = { +static constexpr uint32_t reverse_freefall_rc_track_pieces_vertical_supports[4] = { SPR_REVERSE_FREEFALL_RC_VERTICAL_SUPPORTS_SW_NE, SPR_REVERSE_FREEFALL_RC_VERTICAL_SUPPORTS_NW_SE, SPR_REVERSE_FREEFALL_RC_VERTICAL_SUPPORTS_NE_SW, @@ -260,10 +260,10 @@ static void PaintReverseFreefallRCSlope( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const int8_t bbHeights03[] = { 1, 6, 14, 37, 64 }; - static constexpr const int8_t bbHeights12[] = { 1, 6, 14, 27, 59 }; - static constexpr const int32_t supportHeights[] = { 48, 64, 128, 176, 208, 240, 240 }; - static constexpr const int32_t tunnelOffsets03[] = { 0, 0, 0, 16, 64 }; + static constexpr int8_t bbHeights03[] = { 1, 6, 14, 37, 64 }; + static constexpr int8_t bbHeights12[] = { 1, 6, 14, 27, 59 }; + static constexpr int32_t supportHeights[] = { 48, 64, 128, 176, 208, 240, 240 }; + static constexpr int32_t tunnelOffsets03[] = { 0, 0, 0, 16, 64 }; auto supportsImageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex( reverse_freefall_rc_track_pieces_slope_supports[trackSequence][direction]); @@ -394,7 +394,7 @@ static void PaintReverseFreefallRCOnridePhoto( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_AIR_POWERED_VERTICAL_RC_FLAT_SW_NE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_NW_SE, SPR_AIR_POWERED_VERTICAL_RC_FLAT_SW_NE, diff --git a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp b/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp index 6979eff951..997715e0fa 100644 --- a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp @@ -99,7 +99,7 @@ static void ReverserRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { 21506, SPR_STATION_BASE_A_SW_NE }, { 21507, SPR_STATION_BASE_A_NW_SE }, { 21506, SPR_STATION_BASE_A_SW_NE }, diff --git a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp b/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp index 1944a57f55..ffc8b44d85 100644 --- a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp @@ -148,7 +148,7 @@ static void SideFrictionRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { 21610, 21611, 21610, diff --git a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp b/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp index 3b91d4af4f..0d524f7585 100644 --- a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp @@ -96,7 +96,7 @@ namespace SingleRailRC PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { (SPR_G2_SINGLE_RAIL_TRACK_BRAKE + 0), (SPR_G2_SINGLE_RAIL_TRACK_BLOCK_BRAKE + 0), SPR_STATION_BASE_B_SW_NE }, { (SPR_G2_SINGLE_RAIL_TRACK_BRAKE + 1), (SPR_G2_SINGLE_RAIL_TRACK_BLOCK_BRAKE + 1), SPR_STATION_BASE_B_NW_SE }, { (SPR_G2_SINGLE_RAIL_TRACK_BRAKE + 0), (SPR_G2_SINGLE_RAIL_TRACK_BLOCK_BRAKE + 0), SPR_STATION_BASE_B_SW_NE }, @@ -13829,14 +13829,14 @@ namespace SingleRailRC } } - static void TrackRightLargeHalfLoopDown( + static void TrackLeftLargeHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { TrackRightLargeHalfLoopUp(session, ride, 6 - trackSequence, direction, height, trackElement); } - static void TrackLeftLargeHalfLoopDown( + static void TrackRightLargeHalfLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { @@ -17817,10 +17817,10 @@ namespace SingleRailRC return TrackLeftLargeHalfLoopUp; case TrackElemType::RightLargeHalfLoopUp: return TrackRightLargeHalfLoopUp; - case TrackElemType::RightLargeHalfLoopDown: - return TrackRightLargeHalfLoopDown; case TrackElemType::LeftLargeHalfLoopDown: return TrackLeftLargeHalfLoopDown; + case TrackElemType::RightLargeHalfLoopDown: + return TrackRightLargeHalfLoopDown; case TrackElemType::FlatToUp60: return TrackFlatTo60DegUp; case TrackElemType::Up60ToFlat: diff --git a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp b/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp index c427e5dc19..dc73abd592 100644 --- a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp @@ -18,12 +18,12 @@ #include "../TrackData.h" #include "../TrackPaint.h" -static constexpr const uint32_t STAND_UP_BLOCK_BRAKE_SW_NE_OPEN = 25571; -static constexpr const uint32_t STAND_UP_BLOCK_BRAKE_NW_SE_OPEN = 25572; -static constexpr const uint32_t STAND_UP_BLOCK_BRAKE_SW_NE_CLOSED = 25573; -static constexpr const uint32_t STAND_UP_BLOCK_BRAKE_NW_SE_CLOSED = 25574; +static constexpr uint32_t STAND_UP_BLOCK_BRAKE_SW_NE_OPEN = 25571; +static constexpr uint32_t STAND_UP_BLOCK_BRAKE_NW_SE_OPEN = 25572; +static constexpr uint32_t STAND_UP_BLOCK_BRAKE_SW_NE_CLOSED = 25573; +static constexpr uint32_t STAND_UP_BLOCK_BRAKE_NW_SE_CLOSED = 25574; -static constexpr const uint32_t _StandUpBlockBrakeImages[NumOrthogonalDirections][2] = { +static constexpr uint32_t _StandUpBlockBrakeImages[NumOrthogonalDirections][2] = { { STAND_UP_BLOCK_BRAKE_SW_NE_OPEN, STAND_UP_BLOCK_BRAKE_SW_NE_CLOSED }, { STAND_UP_BLOCK_BRAKE_NW_SE_OPEN, STAND_UP_BLOCK_BRAKE_NW_SE_CLOSED }, { STAND_UP_BLOCK_BRAKE_SW_NE_OPEN, STAND_UP_BLOCK_BRAKE_SW_NE_CLOSED }, @@ -92,7 +92,7 @@ static void StandUpRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { 25567, SPR_STATION_BASE_A_SW_NE }, { 25568, SPR_STATION_BASE_A_NW_SE }, { 25567, SPR_STATION_BASE_A_SW_NE }, diff --git a/src/openrct2/ride/coaster/Steeplechase.cpp b/src/openrct2/ride/coaster/Steeplechase.cpp index c8e9e6eb68..fa7493a8b4 100644 --- a/src/openrct2/ride/coaster/Steeplechase.cpp +++ b/src/openrct2/ride/coaster/Steeplechase.cpp @@ -71,7 +71,7 @@ static void SteeplechaseTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { 28635, SPR_STATION_BASE_B_SW_NE }, { 28636, SPR_STATION_BASE_B_NW_SE }, { 28635, SPR_STATION_BASE_B_SW_NE }, diff --git a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp b/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp index 32feb69be5..9bfba14150 100644 --- a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp +++ b/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp @@ -76,7 +76,7 @@ static void SuspendedSwingingRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 25963, SPR_STATION_INVERTED_BAR_D_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 25964, SPR_STATION_INVERTED_BAR_D_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 25963, SPR_STATION_INVERTED_BAR_D_SW_NE }, diff --git a/src/openrct2/ride/coaster/VirginiaReel.cpp b/src/openrct2/ride/coaster/VirginiaReel.cpp index 8c4d715a11..c4c016ac67 100644 --- a/src/openrct2/ride/coaster/VirginiaReel.cpp +++ b/src/openrct2/ride/coaster/VirginiaReel.cpp @@ -17,7 +17,7 @@ #include "../VehiclePaint.h" // 0x009927E6: -static constexpr const VehicleBoundBox _virginiaReelBoundbox[] = { +static constexpr VehicleBoundBox _virginiaReelBoundbox[] = { { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, @@ -73,63 +73,63 @@ enum SPR_VIRGINIA_REEL_25_DEG_UP_LIFT_HILL_SE_NW = 21503, }; -static constexpr const uint32_t virginia_reel_track_pieces_flat[4] = { +static constexpr uint32_t virginia_reel_track_pieces_flat[4] = { SPR_VIRGINIA_REEL_FLAT_SW_NE, SPR_VIRGINIA_REEL_FLAT_NW_SE, SPR_VIRGINIA_REEL_FLAT_SW_NE, SPR_VIRGINIA_REEL_FLAT_NW_SE, }; -static constexpr const uint32_t virginia_reel_track_pieces_flat_lift_hill[4] = { +static constexpr uint32_t virginia_reel_track_pieces_flat_lift_hill[4] = { SPR_VIRGINIA_REEL_FLAT_LIFT_HILL_SW_NE, SPR_VIRGINIA_REEL_FLAT_LIFT_HILL_NW_SE, SPR_VIRGINIA_REEL_FLAT_LIFT_HILL_NE_SW, SPR_VIRGINIA_REEL_FLAT_LIFT_HILL_SE_NW, }; -static constexpr const uint32_t virginia_reel_track_pieces_flat_to_25_deg_up[4] = { +static constexpr uint32_t virginia_reel_track_pieces_flat_to_25_deg_up[4] = { SPR_VIRGINIA_REEL_FLAT_TO_25_DEG_UP_SW_NE, SPR_VIRGINIA_REEL_FLAT_TO_25_DEG_UP_NW_SE, SPR_VIRGINIA_REEL_FLAT_TO_25_DEG_UP_NE_SW, SPR_VIRGINIA_REEL_FLAT_TO_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t virginia_reel_track_pieces_flat_to_25_deg_up_lift_hill[4] = { +static constexpr uint32_t virginia_reel_track_pieces_flat_to_25_deg_up_lift_hill[4] = { SPR_VIRGINIA_REEL_FLAT_TO_25_DEG_UP_LIFT_HILL_SW_NE, SPR_VIRGINIA_REEL_FLAT_TO_25_DEG_UP_LIFT_HILL_NW_SE, SPR_VIRGINIA_REEL_FLAT_TO_25_DEG_UP_LIFT_HILL_NE_SW, SPR_VIRGINIA_REEL_FLAT_TO_25_DEG_UP_LIFT_HILL_SE_NW, }; -static constexpr const uint32_t virginia_reel_track_pieces_25_deg_up_to_flat[4] = { +static constexpr uint32_t virginia_reel_track_pieces_25_deg_up_to_flat[4] = { SPR_VIRGINIA_REEL_25_DEG_UP_TO_FLAT_SW_NE, SPR_VIRGINIA_REEL_25_DEG_UP_TO_FLAT_NW_SE, SPR_VIRGINIA_REEL_25_DEG_UP_TO_FLAT_NE_SW, SPR_VIRGINIA_REEL_25_DEG_UP_TO_FLAT_SE_NW, }; -static constexpr const uint32_t virginia_reel_track_pieces_25_deg_up_to_flat_lift_hill[4] = { +static constexpr uint32_t virginia_reel_track_pieces_25_deg_up_to_flat_lift_hill[4] = { SPR_VIRGINIA_REEL_25_DEG_UP_TO_FLAT_LIFT_HILL_SW_NE, SPR_VIRGINIA_REEL_25_DEG_UP_TO_FLAT_LIFT_HILL_NW_SE, SPR_VIRGINIA_REEL_25_DEG_UP_TO_FLAT_LIFT_HILL_NE_SW, SPR_VIRGINIA_REEL_25_DEG_UP_TO_FLAT_LIFT_HILL_SE_NW, }; -static constexpr const uint32_t virginia_reel_track_pieces_25_deg_up[4] = { +static constexpr uint32_t virginia_reel_track_pieces_25_deg_up[4] = { SPR_VIRGINIA_REEL_25_DEG_UP_SW_NE, SPR_VIRGINIA_REEL_25_DEG_UP_NW_SE, SPR_VIRGINIA_REEL_25_DEG_UP_NE_SW, SPR_VIRGINIA_REEL_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t virginia_reel_track_pieces_25_deg_up_lift_hill[4] = { +static constexpr uint32_t virginia_reel_track_pieces_25_deg_up_lift_hill[4] = { SPR_VIRGINIA_REEL_25_DEG_UP_LIFT_HILL_SW_NE, SPR_VIRGINIA_REEL_25_DEG_UP_LIFT_HILL_NW_SE, SPR_VIRGINIA_REEL_25_DEG_UP_LIFT_HILL_NE_SW, SPR_VIRGINIA_REEL_25_DEG_UP_LIFT_HILL_SE_NW, }; -static constexpr const uint32_t virginia_reel_track_pieces_flat_quarter_turn_3_tiles[4][3] = { +static constexpr uint32_t virginia_reel_track_pieces_flat_quarter_turn_3_tiles[4][3] = { { SPR_VIRGINIA_REEL_FLAT_QUARTER_TURN_3_TILES_SW_SE_PART_0, SPR_VIRGINIA_REEL_FLAT_QUARTER_TURN_3_TILES_SW_SE_PART_1, @@ -152,7 +152,7 @@ static constexpr const uint32_t virginia_reel_track_pieces_flat_quarter_turn_3_t }, }; -static constexpr const uint32_t virginia_reel_track_pieces_flat_quarter_turn_1_tile[4] = { +static constexpr uint32_t virginia_reel_track_pieces_flat_quarter_turn_1_tile[4] = { SPR_VIRGINIA_REEL_FLAT_QUARTER_TURN_1_TILE_SW_NW, SPR_VIRGINIA_REEL_FLAT_QUARTER_TURN_1_TILE_NW_NE, SPR_VIRGINIA_REEL_FLAT_QUARTER_TURN_1_TILE_NE_SE, @@ -458,7 +458,7 @@ static void PaintVirginiaReelStation( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const uint8_t virginia_reel_left_quarter_turn_supports[] = { +static constexpr uint8_t virginia_reel_left_quarter_turn_supports[] = { 5, 2, 3, @@ -492,7 +492,7 @@ static void PaintVirginiaReelTrackLeftQuarterTurn3Tiles( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const uint8_t virginia_reel_right_quarter_turn_3_tiles_to_left_turn_map[] = { +static constexpr uint8_t virginia_reel_right_quarter_turn_3_tiles_to_left_turn_map[] = { 3, 1, 2, diff --git a/src/openrct2/ride/coaster/WildMouse.cpp b/src/openrct2/ride/coaster/WildMouse.cpp index b607b9a4c2..3c465de73a 100644 --- a/src/openrct2/ride/coaster/WildMouse.cpp +++ b/src/openrct2/ride/coaster/WildMouse.cpp @@ -149,14 +149,14 @@ enum SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_DOWN_SE_NE_PART_1 = 17025, }; -static constexpr const uint32_t _wild_mouse_brakes_image_ids[4] = { +static constexpr uint32_t _wild_mouse_brakes_image_ids[4] = { SPR_WILD_MOUSE_BRAKES_SW_NE, SPR_WILD_MOUSE_BRAKES_NW_SE, SPR_WILD_MOUSE_BRAKES_SW_NE, SPR_WILD_MOUSE_BRAKES_NW_SE, }; -static constexpr const uint32_t _wild_mouse_block_brakes_image_ids[NumOrthogonalDirections][2] = { +static constexpr uint32_t _wild_mouse_block_brakes_image_ids[NumOrthogonalDirections][2] = { { SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_OPEN, SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_CLOSED }, { SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE_OPEN, SPR_WILD_MOUSE_BLOCK_BRAKES_NW_SE_CLOSED }, { SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_OPEN, SPR_WILD_MOUSE_BLOCK_BRAKES_SW_NE_CLOSED }, @@ -168,7 +168,7 @@ static void WildMouseTrackFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_FLAT_SW_NE, SPR_WILD_MOUSE_FLAT_CHAIN_SW_NE }, { SPR_WILD_MOUSE_FLAT_NW_SE, SPR_WILD_MOUSE_FLAT_CHAIN_NW_SE }, { SPR_WILD_MOUSE_FLAT_SW_NE, SPR_WILD_MOUSE_FLAT_CHAIN_NE_SW }, @@ -192,7 +192,7 @@ static void WildMouseTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t baseImageIds[4] = { + static constexpr uint32_t baseImageIds[4] = { SPR_STATION_BASE_B_SW_NE, SPR_STATION_BASE_B_NW_SE, SPR_STATION_BASE_B_SW_NE, @@ -229,7 +229,7 @@ static void WildMouseTrack25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_25_DEG_SW_NE, SPR_WILD_MOUSE_25_DEG_CHAIN_SW_NE }, { SPR_WILD_MOUSE_25_DEG_NW_SE, SPR_WILD_MOUSE_25_DEG_CHAIN_NW_SE }, { SPR_WILD_MOUSE_25_DEG_NE_SW, SPR_WILD_MOUSE_25_DEG_CHAIN_NE_SW }, @@ -261,7 +261,7 @@ static void WildMouseTrack60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_60_DEG_SW_NE, SPR_WILD_MOUSE_60_DEG_CHAIN_SW_NE }, { SPR_WILD_MOUSE_60_DEG_NW_SE, SPR_WILD_MOUSE_60_DEG_CHAIN_NW_SE }, { SPR_WILD_MOUSE_60_DEG_NE_SW, SPR_WILD_MOUSE_60_DEG_CHAIN_NE_SW }, @@ -307,7 +307,7 @@ static void WildMouseTrackFlatTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_FLAT_TO_25_DEG_SW_NE, SPR_WILD_MOUSE_FLAT_TO_25_DEG_CHAIN_SW_NE }, { SPR_WILD_MOUSE_FLAT_TO_25_DEG_NW_SE, SPR_WILD_MOUSE_FLAT_TO_25_DEG_CHAIN_NW_SE }, { SPR_WILD_MOUSE_FLAT_TO_25_DEG_NE_SW, SPR_WILD_MOUSE_FLAT_TO_25_DEG_CHAIN_NE_SW }, @@ -339,13 +339,13 @@ static void WildMouseTrack25DegUpTo60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_25_DEG_TO_60_DEG_SW_NE, SPR_WILD_MOUSE_25_DEG_TO_60_DEG_CHAIN_SW_NE }, { SPR_WILD_MOUSE_25_DEG_TO_60_DEG_NW_SE, SPR_WILD_MOUSE_25_DEG_TO_60_DEG_CHAIN_NW_SE }, { SPR_WILD_MOUSE_25_DEG_TO_60_DEG_NE_SW, SPR_WILD_MOUSE_25_DEG_TO_60_DEG_CHAIN_NE_SW }, { SPR_WILD_MOUSE_25_DEG_TO_60_DEG_SE_NW, SPR_WILD_MOUSE_25_DEG_TO_60_DEG_CHAIN_SE_NW }, }; - static constexpr const uint32_t frontImageIds[4][2] = { + static constexpr uint32_t frontImageIds[4][2] = { { 0, 0 }, { SPR_WILD_MOUSE_25_DEG_TO_60_DEG_FRONT_NW_SE, SPR_WILD_MOUSE_25_DEG_TO_60_DEG_CHAIN_FRONT_NW_SE }, { SPR_WILD_MOUSE_25_DEG_TO_60_DEG_FRONT_NE_SW, SPR_WILD_MOUSE_25_DEG_TO_60_DEG_CHAIN_FRONT_NE_SW }, @@ -386,13 +386,13 @@ static void WildMouseTrack60DegUpTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_60_DEG_TO_25_DEG_SW_NE, SPR_WILD_MOUSE_60_DEG_TO_25_DEG_CHAIN_SW_NE }, { SPR_WILD_MOUSE_60_DEG_TO_25_DEG_NW_SE, SPR_WILD_MOUSE_60_DEG_TO_25_DEG_CHAIN_NW_SE }, { SPR_WILD_MOUSE_60_DEG_TO_25_DEG_NE_SW, SPR_WILD_MOUSE_60_DEG_TO_25_DEG_CHAIN_NE_SW }, { SPR_WILD_MOUSE_60_DEG_TO_25_DEG_SE_NW, SPR_WILD_MOUSE_60_DEG_TO_25_DEG_CHAIN_SE_NW }, }; - static constexpr const uint32_t frontImageIds[4][2] = { + static constexpr uint32_t frontImageIds[4][2] = { { 0, 0 }, { SPR_WILD_MOUSE_60_DEG_TO_25_DEG_FRONT_NW_SE, SPR_WILD_MOUSE_60_DEG_TO_25_DEG_CHAIN_FRONT_NW_SE }, { SPR_WILD_MOUSE_60_DEG_TO_25_DEG_FRONT_NE_SW, SPR_WILD_MOUSE_60_DEG_TO_25_DEG_CHAIN_FRONT_NE_SW }, @@ -433,7 +433,7 @@ static void WildMouseTrack25DegUpToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_25_DEG_TO_FLAT_SW_NE, SPR_WILD_MOUSE_25_DEG_TO_FLAT_CHAIN_SW_NE }, { SPR_WILD_MOUSE_25_DEG_TO_FLAT_NW_SE, SPR_WILD_MOUSE_25_DEG_TO_FLAT_CHAIN_NW_SE }, { SPR_WILD_MOUSE_25_DEG_TO_FLAT_NE_SW, SPR_WILD_MOUSE_25_DEG_TO_FLAT_CHAIN_NE_SW }, @@ -512,7 +512,7 @@ static void WildMouseTrackRightQuarterTurn3( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][3] = { + static constexpr SpriteBb imageIds[4][3] = { { { SPR_WILD_MOUSE_QUARTER_TURN_3_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 3 } }, { SPR_WILD_MOUSE_QUARTER_TURN_3_SW_SE_PART_1, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 3 } }, @@ -568,7 +568,7 @@ static void WildMouseTrackRightQuarterTurn325DegDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][2] = { + static constexpr SpriteBb imageIds[4][2] = { { { SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_DOWN_SW_SE_PART_0, { 0, 6, 0 }, { 0, 0, 0 }, { 32, 20, 3 } }, { SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_DOWN_SW_SE_PART_1, { 6, 0, 0 }, { 0, 0, 0 }, { 20, 32, 3 } }, @@ -586,7 +586,7 @@ static void WildMouseTrackRightQuarterTurn325DegDown( { SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_DOWN_SE_NE_PART_1, { 0, 6, 0 }, { 0, 0, 0 }, { 32, 20, 3 } }, }, }; - static constexpr const int16_t generalSupportHeights[] = { 72, 56, 56, 72 }; + static constexpr int16_t generalSupportHeights[] = { 72, 56, 56, 72 }; if (trackSequence == 0 || trackSequence == 3) { @@ -635,7 +635,7 @@ static void WildMouseTrackRightQuarterTurn325DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][2] = { + static constexpr SpriteBb imageIds[4][2] = { { { SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_UP_SW_SE_PART_0, { 0, 6, 0 }, { 0, 0, 0 }, { 32, 20, 3 } }, { SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_UP_SW_SE_PART_1, { 6, 0, 0 }, { 0, 0, 0 }, { 20, 32, 3 } }, @@ -653,7 +653,7 @@ static void WildMouseTrackRightQuarterTurn325DegUp( { SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_UP_SE_NE_PART_1, { 0, 6, 0 }, { 0, 0, 0 }, { 32, 20, 3 } }, }, }; - static constexpr const int16_t generalSupportHeights[] = { 72, 56, 56, 72 }; + static constexpr int16_t generalSupportHeights[] = { 72, 56, 56, 72 }; if (trackSequence == 0 || trackSequence == 3) { @@ -721,7 +721,7 @@ static void WildMouseTrackLeftQuarterTurn1( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_WILD_MOUSE_QUARTER_TURN_1_SW_NE, SPR_WILD_MOUSE_QUARTER_TURN_1_NW_SE, SPR_WILD_MOUSE_QUARTER_TURN_1_NE_SW, @@ -764,13 +764,13 @@ static void WildMouseTrackFlatTo60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_FLAT_TO_60_DEG_SW_NE, SPR_WILD_MOUSE_FLAT_TO_60_DEG_CHAIN_SW_NE }, { SPR_WILD_MOUSE_FLAT_TO_60_DEG_NW_SE, SPR_WILD_MOUSE_FLAT_TO_60_DEG_CHAIN_NW_SE }, { SPR_WILD_MOUSE_FLAT_TO_60_DEG_NE_SW, SPR_WILD_MOUSE_FLAT_TO_60_DEG_CHAIN_NE_SW }, { SPR_WILD_MOUSE_FLAT_TO_60_DEG_SE_NW, SPR_WILD_MOUSE_FLAT_TO_60_DEG_CHAIN_SE_NW }, }; - static constexpr const uint32_t frontImageIds[4][2] = { + static constexpr uint32_t frontImageIds[4][2] = { { 0, 0 }, { SPR_WILD_MOUSE_FLAT_TO_60_DEG_FRONT_NW_SE, SPR_WILD_MOUSE_FLAT_TO_60_DEG_CHAIN_FRONT_NW_SE }, { SPR_WILD_MOUSE_FLAT_TO_60_DEG_FRONT_NE_SW, SPR_WILD_MOUSE_FLAT_TO_60_DEG_CHAIN_FRONT_NE_SW }, @@ -811,13 +811,13 @@ static void WildMouseTrack60DegUpToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WILD_MOUSE_60_DEG_TO_FLAT_SW_NE, SPR_WILD_MOUSE_60_DEG_TO_FLAT_CHAIN_SW_NE }, { SPR_WILD_MOUSE_60_DEG_TO_FLAT_NW_SE, SPR_WILD_MOUSE_60_DEG_TO_FLAT_CHAIN_NW_SE }, { SPR_WILD_MOUSE_60_DEG_TO_FLAT_NE_SW, SPR_WILD_MOUSE_60_DEG_TO_FLAT_CHAIN_NE_SW }, { SPR_WILD_MOUSE_60_DEG_TO_FLAT_SE_NW, SPR_WILD_MOUSE_60_DEG_TO_FLAT_CHAIN_SE_NW }, }; - static constexpr const uint32_t frontImageIds[4][2] = { + static constexpr uint32_t frontImageIds[4][2] = { { 0, 0 }, { SPR_WILD_MOUSE_60_DEG_TO_FLAT_FRONT_NW_SE, SPR_WILD_MOUSE_60_DEG_TO_FLAT_CHAIN_FRONT_NW_SE }, { SPR_WILD_MOUSE_60_DEG_TO_FLAT_FRONT_NE_SW, SPR_WILD_MOUSE_60_DEG_TO_FLAT_CHAIN_FRONT_NE_SW }, @@ -898,7 +898,7 @@ static void WildMouseTrackRotationControlToggle( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_WILD_MOUSE_ROTATION_CONTROL_TOGGLE_SW_NE, SPR_WILD_MOUSE_ROTATION_CONTROL_TOGGLE_NW_SE, SPR_WILD_MOUSE_ROTATION_CONTROL_TOGGLE_SW_NE, diff --git a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp b/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp index beacf0cb26..a48a0cbc86 100644 --- a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp @@ -12,6 +12,7 @@ #include "../../config/Config.h" #include "../../drawing/Drawing.h" #include "../../interface/Viewport.h" +#include "../../paint/Boundbox.h" #include "../../paint/Paint.h" #include "../../paint/Supports.h" #include "../../paint/tile_element/Paint.Surface.h" @@ -434,14 +435,14 @@ enum SPR_WOODEN_RC_STATION_RAILS_NW_SE = 24840, }; -static constexpr const uint32_t _wooden_rc_block_brakes_image_ids[4][3] = { +static constexpr uint32_t _wooden_rc_block_brakes_image_ids[4][3] = { { SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_OPEN, SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_CLOSED, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_SW_NE }, { SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_OPEN, SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_CLOSED, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_NW_SE }, { SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_OPEN, SPR_WOODEN_RC_BLOCK_BRAKES_SW_NE_CLOSED, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_SW_NE }, { SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_OPEN, SPR_WOODEN_RC_BLOCK_BRAKES_NW_SE_CLOSED, SPR_WOODEN_RC_BLOCK_BRAKES_RAILS_NW_SE }, }; -static constexpr const uint32_t _wooden_rc_station_block_brakes_image_ids[4][2] = { +static constexpr uint32_t _wooden_rc_station_block_brakes_image_ids[4][2] = { { SPR_G2_WOODEN_RC_STATION_BLOCK_BRAKE_OPEN_SW_NE, SPR_G2_WOODEN_RC_STATION_BLOCK_BRAKE_CLOSED_SW_NE }, { SPR_G2_WOODEN_RC_STATION_BLOCK_BRAKE_OPEN_NW_SE, SPR_G2_WOODEN_RC_STATION_BLOCK_BRAKE_CLOSED_NW_SE }, { SPR_G2_WOODEN_RC_STATION_BLOCK_BRAKE_OPEN_SW_NE, SPR_G2_WOODEN_RC_STATION_BLOCK_BRAKE_CLOSED_SW_NE }, @@ -459,13 +460,13 @@ static void WoodenRCTrackFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WOODEN_RC_FLAT_SW_NE, SPR_WOODEN_RC_FLAT_CHAIN_SW_NE }, { SPR_WOODEN_RC_FLAT_NW_SE, SPR_WOODEN_RC_FLAT_CHAIN_NW_SE }, { SPR_WOODEN_RC_FLAT_SW_NE, SPR_WOODEN_RC_FLAT_CHAIN_NE_SW }, { SPR_WOODEN_RC_FLAT_NW_SE, SPR_WOODEN_RC_FLAT_CHAIN_SE_NW }, }; - static constexpr const uint32_t railsImageIds[4][2] = { + static constexpr uint32_t railsImageIds[4][2] = { { SPR_WOODEN_RC_FLAT_RAILS_SW_NE, SPR_WOODEN_RC_FLAT_CHAIN_RAILS_SW_NE }, { SPR_WOODEN_RC_FLAT_RAILS_NW_SE, SPR_WOODEN_RC_FLAT_CHAIN_RAILS_NW_SE }, { SPR_WOODEN_RC_FLAT_RAILS_SW_NE, SPR_WOODEN_RC_FLAT_CHAIN_RAILS_NE_SW }, @@ -487,7 +488,7 @@ static void WoodenRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t stationImageIds[4][2] = { + static constexpr uint32_t stationImageIds[4][2] = { { SPR_WOODEN_RC_STATION_SW_NE, SPR_WOODEN_RC_STATION_RAILS_SW_NE }, { SPR_WOODEN_RC_STATION_NW_SE, SPR_WOODEN_RC_STATION_RAILS_NW_SE }, { SPR_WOODEN_RC_STATION_SW_NE, SPR_WOODEN_RC_STATION_RAILS_SW_NE }, @@ -521,7 +522,7 @@ static void WoodenRCTrack25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][4] = { + static constexpr uint32_t imageIds[2][4][4] = { { { SPR_WOODEN_RC_25_DEG_SW_NE, @@ -607,14 +608,14 @@ static void WoodenRCTrack60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIdsChained[4][2] = { + static constexpr uint32_t imageIdsChained[4][2] = { { SPR_G2_WOODEN_RC_60_SWNE_CHAINED, SPR_WOODEN_RC_60_DEG_RAILS_SW_NE }, { SPR_G2_WOODEN_RC_60_SWNE_CHAINED_BACK, SPR_WOODEN_RC_60_DEG_RAILS_NW_SE }, { SPR_G2_WOODEN_RC_60_SENW_CHAINED_BACK, SPR_WOODEN_RC_60_DEG_RAILS_NE_SW }, { SPR_G2_WOODEN_RC_60_SENW_CHAINED, SPR_WOODEN_RC_60_DEG_RAILS_SE_NW }, }; - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WOODEN_RC_60_DEG_SW_NE, SPR_WOODEN_RC_60_DEG_RAILS_SW_NE }, { SPR_WOODEN_RC_60_DEG_NW_SE, SPR_WOODEN_RC_60_DEG_RAILS_NW_SE }, { SPR_WOODEN_RC_60_DEG_NE_SW, SPR_WOODEN_RC_60_DEG_RAILS_NE_SW }, @@ -673,7 +674,7 @@ static void WoodenRCTrackFlatTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][4] = { + static constexpr uint32_t imageIds[2][4][4] = { { { SPR_WOODEN_RC_FLAT_TO_25_DEG_SW_NE, @@ -759,7 +760,7 @@ static void WoodenRCTrack25DegUpTo60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIdsChained[4][4] = { + static constexpr uint32_t imageIdsChained[4][4] = { { SPR_G2_WOODEN_RC_25_60_SWNE_CHAINED, SPR_WOODEN_RC_25_DEG_TO_60_DEG_RAILS_SW_NE, @@ -786,7 +787,7 @@ static void WoodenRCTrack25DegUpTo60DegUp( }, }; - static constexpr const uint32_t imageIds[4][4] = { + static constexpr uint32_t imageIds[4][4] = { { SPR_WOODEN_RC_25_DEG_TO_60_DEG_SW_NE, SPR_WOODEN_RC_25_DEG_TO_60_DEG_RAILS_SW_NE, @@ -870,7 +871,7 @@ static void WoodenRCTrack60DegUpTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIdsChained[4][4] = { + static constexpr uint32_t imageIdsChained[4][4] = { { SPR_G2_WOODEN_RC_60_25_SWNE_CHAINED, SPR_WOODEN_RC_60_DEG_TO_25_DEG_RAILS_SW_NE, @@ -897,7 +898,7 @@ static void WoodenRCTrack60DegUpTo25DegUp( }, }; - static constexpr const uint32_t imageIds[4][4] = { + static constexpr uint32_t imageIds[4][4] = { { SPR_WOODEN_RC_60_DEG_TO_25_DEG_SW_NE, SPR_WOODEN_RC_60_DEG_TO_25_DEG_RAILS_SW_NE, @@ -982,7 +983,7 @@ static void WoodenRCTrack25DegUpToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][4] = { + static constexpr uint32_t imageIds[2][4][4] = { { { SPR_WOODEN_RC_25_DEG_TO_FLAT_SW_NE, @@ -1121,57 +1122,50 @@ static void WoodenRCTrackRightQuarterTurn5( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[2][4][7] = { + static constexpr SpriteBoundBox2 imageIds[2][4][7] = { { { { SPR_WOODEN_RC_QUARTER_TURN_5_SW_SE_SEQ_0, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SW_SE_SEQ_0, { 0, 2, 0 }, - { 0, 2, 0 }, - { 32, 32, 2 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 32, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_SW_SE_SEQ_2, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SW_SE_SEQ_2, { 0, 16, 0 }, - { 0, 16, 0 }, - { 32, 16, 2 }, + BoundBoxXYZ({ 0, 16, 0 }, { 32, 16, 2 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_SW_SE_SEQ_3, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SW_SE_SEQ_3, { 0, 0, 0 }, - { 0, 0, 0 }, - { 16, 16, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 16, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_SW_SE_SEQ_5, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SW_SE_SEQ_5, { 16, 0, 0 }, - { 16, 0, 0 }, - { 16, 32, 2 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 32, 2 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_SW_SE_SEQ_6, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SW_SE_SEQ_6, { 2, 0, 0 }, - { 2, 0, 0 }, - { 32, 32, 2 }, + BoundBoxXYZ({ 2, 0, 0 }, { 32, 32, 2 }), }, }, { @@ -1179,50 +1173,43 @@ static void WoodenRCTrackRightQuarterTurn5( SPR_WOODEN_RC_QUARTER_TURN_5_NW_SW_SEQ_0, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NW_SW_SEQ_0, { 2, 0, 0 }, - { 2, 0, 0 }, - { 32, 32, 2 }, + BoundBoxXYZ({ 2, 0, 0 }, { 32, 32, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_NW_SW_SEQ_2, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NW_SW_SEQ_2, { 16, 0, 0 }, - { 16, 0, 0 }, - { 16, 34, 2 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 34, 2 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_NW_SW_SEQ_3, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NW_SW_SEQ_3, { 0, 16, 0 }, - { 0, 16, 0 }, - { 16, 16, 2 }, + BoundBoxXYZ({ 0, 16, 0 }, { 16, 16, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_NW_SW_SEQ_5, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NW_SW_SEQ_5, { 0, 0, 0 }, - { 0, 0, 0 }, - { 32, 16, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 16, 2 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_NW_SW_SEQ_6, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NW_SW_SEQ_6, { 0, 2, 0 }, - { 0, 2, 0 }, - { 32, 27, 2 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 27, 2 }), }, }, { @@ -1230,50 +1217,43 @@ static void WoodenRCTrackRightQuarterTurn5( SPR_WOODEN_RC_QUARTER_TURN_5_NE_NW_SEQ_0, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NE_NW_SEQ_0, { 0, 2, 0 }, - { 0, 2, 0 }, - { 32, 27, 2 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 27, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_NE_NW_SEQ_2, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NE_NW_SEQ_2, { 0, 0, 0 }, - { 0, 0, 0 }, - { 32, 16, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 16, 2 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_NE_NW_SEQ_3, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NE_NW_SEQ_3, { 16, 16, 0 }, - { 16, 16, 0 }, - { 16, 16, 2 }, + BoundBoxXYZ({ 16, 16, 0 }, { 16, 16, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_NE_NW_SEQ_5, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NE_NW_SEQ_5, { 0, 0, 0 }, - { 0, 0, 0 }, - { 16, 32, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 32, 2 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_NE_NW_SEQ_6, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_NE_NW_SEQ_6, { 2, 0, 0 }, - { 2, 0, 0 }, - { 27, 32, 2 }, + BoundBoxXYZ({ 2, 0, 0 }, { 27, 32, 2 }), }, }, { @@ -1281,50 +1261,43 @@ static void WoodenRCTrackRightQuarterTurn5( SPR_WOODEN_RC_QUARTER_TURN_5_SE_NE_SEQ_0, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SE_NE_SEQ_0, { 2, 0, 0 }, - { 2, 0, 0 }, - { 27, 32, 2 }, + BoundBoxXYZ({ 2, 0, 0 }, { 27, 32, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_SE_NE_SEQ_2, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SE_NE_SEQ_2, { 0, 0, 0 }, - { 0, 0, 0 }, - { 16, 32, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 32, 2 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_SE_NE_SEQ_3, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SE_NE_SEQ_3, { 16, 0, 0 }, - { 16, 0, 0 }, - { 16, 16, 2 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 16, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_SE_NE_SEQ_5, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SE_NE_SEQ_5, { 0, 16, 0 }, - { 0, 16, 0 }, - { 32, 16, 2 }, + BoundBoxXYZ({ 0, 16, 0 }, { 32, 16, 2 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_SE_NE_SEQ_6, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_SE_NE_SEQ_6, { 0, 2, 0 }, - { 0, 2, 0 }, - { 32, 32, 2 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 32, 2 }), }, }, }, @@ -1334,120 +1307,106 @@ static void WoodenRCTrackRightQuarterTurn5( SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_SW_SE_SEQ_0, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_0, { 0, 2, 0 }, - { 0, 2, 27 }, - { 32, 32, 0 }, + BoundBoxXYZ({ 0, 2, 27 }, { 32, 32, 0 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_SW_SE_SEQ_2, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_2, { 0, 16, 0 }, - { 0, 16, 27 }, - { 32, 16, 0 }, + BoundBoxXYZ({ 0, 16, 27 }, { 32, 16, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_SW_SE_SEQ_3, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_3, { 0, 0, 0 }, - { 0, 0, 27 }, - { 16, 16, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 16, 0 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_SW_SE_SEQ_5, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_5, { 16, 0, 0 }, - { 16, 0, 27 }, - { 16, 32, 0 }, + BoundBoxXYZ({ 16, 0, 27 }, { 16, 32, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_SW_SE_SEQ_6, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_6, { 2, 0, 0 }, - { 2, 0, 27 }, - { 32, 32, 0 }, + BoundBoxXYZ({ 2, 0, 27 }, { 32, 32, 0 }), }, }, { - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, }, { { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_NE_NW_SEQ_0, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_0, { 0, 2, 0 }, - { 0, 2, 27 }, - { 32, 27, 0 }, + BoundBoxXYZ({ 0, 2, 27 }, { 32, 27, 0 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_NE_NW_SEQ_2, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_2, { 0, 0, 0 }, - { 0, 0, 27 }, - { 32, 16, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 32, 16, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_NE_NW_SEQ_3, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_3, { 16, 16, 0 }, - { 16, 16, 27 }, - { 16, 16, 0 }, + BoundBoxXYZ({ 16, 16, 27 }, { 16, 16, 0 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_NE_NW_SEQ_5, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_5, { 0, 0, 0 }, - { 0, 0, 27 }, - { 16, 32, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 32, 0 }), }, { SPR_WOODEN_RC_QUARTER_TURN_5_FRONT_NE_NW_SEQ_6, SPR_WOODEN_RC_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_6, { 2, 0, 0 }, - { 2, 0, 27 }, - { 27, 32, 0 }, + BoundBoxXYZ({ 2, 0, 27 }, { 27, 32, 0 }), }, }, { - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, }, }, }; @@ -1514,7 +1473,7 @@ static void WoodenRCTrackFlatToLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4] = { + static constexpr uint32_t imageIds[4][4] = { { SPR_WOODEN_RC_FLAT_TO_LEFT_BANK_SW_NE, SPR_WOODEN_RC_FLAT_TO_LEFT_BANK_RAILS_SW_NE, @@ -1562,7 +1521,7 @@ static void WoodenRCTrackFlatToRightBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4] = { + static constexpr uint32_t imageIds[4][4] = { { SPR_WOODEN_RC_FLAT_TO_RIGHT_BANK_SW_NE, SPR_WOODEN_RC_FLAT_TO_RIGHT_BANK_RAILS_SW_NE, @@ -1627,57 +1586,50 @@ static void WoodenRCTrackBankedRightQuarterTurn5( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBoundBox2 imageIds[2][4][7] = { + static constexpr SpriteBoundBox2 imageIds[2][4][7] = { { { { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_0, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SW_SE_SEQ_0, { 0, 0, 0 }, - { 0, 2, 0 }, - { 32, 32, 2 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 32, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_2, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SW_SE_SEQ_2, { 0, 0, 0 }, - { 0, 16, 0 }, - { 32, 16, 2 }, + BoundBoxXYZ({ 0, 16, 0 }, { 32, 16, 2 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_3, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SW_SE_SEQ_3, { 0, 0, 0 }, - { 0, 0, 0 }, - { 16, 16, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 16, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_5, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SW_SE_SEQ_5, { 0, 0, 0 }, - { 16, 0, 0 }, - { 16, 32, 2 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 32, 2 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SW_SE_SEQ_6, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SW_SE_SEQ_6, { 0, 0, 0 }, - { 2, 0, 0 }, - { 32, 32, 2 }, + BoundBoxXYZ({ 2, 0, 0 }, { 32, 32, 2 }), }, }, { @@ -1685,50 +1637,43 @@ static void WoodenRCTrackBankedRightQuarterTurn5( SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_0, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NW_SW_SEQ_0, { 0, 0, 0 }, - { 2, 0, 0 }, - { 32, 32, 2 }, + BoundBoxXYZ({ 2, 0, 0 }, { 32, 32, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_2, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NW_SW_SEQ_2, { 0, 0, 0 }, - { 16, 0, 0 }, - { 16, 32, 2 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 32, 2 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_3, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NW_SW_SEQ_3, { 0, 0, 0 }, - { 0, 16, 0 }, - { 16, 16, 2 }, + BoundBoxXYZ({ 0, 16, 0 }, { 16, 16, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_5, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NW_SW_SEQ_5, { 0, 0, 0 }, - { 0, 0, 0 }, - { 32, 16, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 16, 2 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NW_SW_SEQ_6, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NW_SW_SEQ_6, { 0, 0, 0 }, - { 0, 2, 0 }, - { 32, 27, 2 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 27, 2 }), }, }, { @@ -1736,50 +1681,43 @@ static void WoodenRCTrackBankedRightQuarterTurn5( SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_0, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NE_NW_SEQ_0, { 0, 0, 0 }, - { 0, 2, 0 }, - { 32, 27, 2 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 27, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_2, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NE_NW_SEQ_2, { 0, 0, 0 }, - { 0, 0, 0 }, - { 32, 16, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 32, 16, 2 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_3, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NE_NW_SEQ_3, { 0, 0, 0 }, - { 16, 16, 0 }, - { 16, 16, 2 }, + BoundBoxXYZ({ 16, 16, 0 }, { 16, 16, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_5, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NE_NW_SEQ_5, { 0, 0, 0 }, - { 0, 0, 0 }, - { 16, 32, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 32, 2 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_NE_NW_SEQ_6, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_NE_NW_SEQ_6, { 0, 0, 0 }, - { 2, 0, 0 }, - { 27, 32, 2 }, + BoundBoxXYZ({ 2, 0, 0 }, { 27, 32, 2 }), }, }, { @@ -1787,50 +1725,43 @@ static void WoodenRCTrackBankedRightQuarterTurn5( SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_0, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SE_NE_SEQ_0, { 0, 0, 0 }, - { 2, 0, 0 }, - { 27, 32, 2 }, + BoundBoxXYZ({ 2, 0, 0 }, { 27, 32, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_2, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SE_NE_SEQ_2, { 0, 0, 0 }, - { 0, 0, 0 }, - { 16, 32, 2 }, + BoundBoxXYZ({ 0, 0, 0 }, { 16, 32, 2 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_3, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SE_NE_SEQ_3, { 0, 0, 0 }, - { 16, 0, 0 }, - { 16, 16, 2 }, + BoundBoxXYZ({ 16, 0, 0 }, { 16, 16, 2 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_5, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SE_NE_SEQ_5, { 0, 0, 0 }, - { 0, 16, 0 }, - { 32, 16, 2 }, + BoundBoxXYZ({ 0, 16, 0 }, { 32, 16, 2 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_SE_NE_SEQ_6, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_SE_NE_SEQ_6, { 0, 0, 0 }, - { 0, 2, 0 }, - { 32, 32, 2 }, + BoundBoxXYZ({ 0, 2, 0 }, { 32, 32, 2 }), }, }, }, @@ -1840,120 +1771,106 @@ static void WoodenRCTrackBankedRightQuarterTurn5( SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_0, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_0, { 0, 0, 0 }, - { 0, 2, 27 }, - { 32, 32, 0 }, + BoundBoxXYZ({ 0, 2, 27 }, { 32, 32, 0 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_2, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_2, { 0, 0, 0 }, - { 0, 16, 27 }, - { 32, 16, 0 }, + BoundBoxXYZ({ 0, 16, 27 }, { 32, 16, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_3, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_3, { 0, 0, 0 }, - { 0, 0, 27 }, - { 16, 16, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 16, 0 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_5, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_5, { 0, 0, 0 }, - { 16, 0, 27 }, - { 16, 32, 0 }, + BoundBoxXYZ({ 16, 0, 27 }, { 16, 32, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_SW_SE_SEQ_6, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_SW_SE_SEQ_6, { 0, 0, 0 }, - { 2, 0, 27 }, - { 32, 32, 0 }, + BoundBoxXYZ({ 2, 0, 27 }, { 32, 32, 0 }), }, }, { - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, }, { { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_0, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_0, { 0, 0, 0 }, - { 0, 2, 27 }, - { 32, 27, 0 }, + BoundBoxXYZ({ 0, 2, 27 }, { 32, 27, 0 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_2, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_2, { 0, 0, 0 }, - { 0, 0, 27 }, - { 32, 16, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 32, 16, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_3, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_3, { 0, 0, 0 }, - { 16, 16, 27 }, - { 16, 16, 0 }, + BoundBoxXYZ({ 16, 16, 27 }, { 16, 16, 0 }), }, { 0, 0, { 0, 0, 0 }, - { 0, 0, 0 }, - { 0, 0, 0 }, + BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_5, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_5, { 0, 0, 0 }, - { 0, 0, 27 }, - { 16, 32, 0 }, + BoundBoxXYZ({ 0, 0, 27 }, { 16, 32, 0 }), }, { SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_FRONT_NE_NW_SEQ_6, SPR_WOODEN_RC_BANKED_QUARTER_TURN_5_RAILS_FRONT_NE_NW_SEQ_6, { 0, 0, 0 }, - { 2, 0, 27 }, - { 27, 32, 0 }, + BoundBoxXYZ({ 2, 0, 27 }, { 27, 32, 0 }), }, }, { - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, - { 0, 0, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, + { 0, 0, { 0, 0, 0 }, BoundBoxXYZ({ 0, 0, 0 }, { 0, 0, 0 }) }, }, }, }; @@ -2020,7 +1937,7 @@ static void WoodenRCTrackLeftBankTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4] = { + static constexpr uint32_t imageIds[4][4] = { { SPR_WOODEN_RC_LEFT_BANK_TO_25_DEG_SW_NE, SPR_WOODEN_RC_LEFT_BANK_TO_25_DEG_RAILS_SW_NE, @@ -2075,7 +1992,7 @@ static void WoodenRCTrackRightBankTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4] = { + static constexpr uint32_t imageIds[4][4] = { { SPR_WOODEN_RC_RIGHT_BANK_TO_25_DEG_SW_NE, SPR_WOODEN_RC_RIGHT_BANK_TO_25_DEG_RAILS_SW_NE, @@ -2130,7 +2047,7 @@ static void WoodenRCTrack25DegUpToLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4] = { + static constexpr uint32_t imageIds[4][4] = { { SPR_WOODEN_RC_25_DEG_TO_LEFT_BANK_SW_NE, SPR_WOODEN_RC_25_DEG_TO_LEFT_BANK_RAILS_SW_NE, @@ -2185,7 +2102,7 @@ static void WoodenRCTrack25DegUpToRightBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4] = { + static constexpr uint32_t imageIds[4][4] = { { SPR_WOODEN_RC_25_DEG_TO_RIGHT_BANK_SW_NE, SPR_WOODEN_RC_25_DEG_TO_RIGHT_BANK_RAILS_SW_NE, @@ -2276,7 +2193,7 @@ static void WoodenRCTrackLeftBank( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WOODEN_RC_LEFT_BANK_SW_NE, SPR_WOODEN_RC_LEFT_BANK_RAILS_SW_NE }, { SPR_WOODEN_RC_LEFT_BANK_NW_SE, SPR_WOODEN_RC_LEFT_BANK_RAILS_NW_SE }, { SPR_WOODEN_RC_LEFT_BANK_NE_SW, SPR_WOODEN_RC_LEFT_BANK_RAILS_NE_SW }, @@ -7120,7 +7037,7 @@ static void WoodenRCTrackBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WOODEN_RC_BRAKES_SW_NE, SPR_WOODEN_RC_BRAKES_RAILS_SW_NE }, { SPR_WOODEN_RC_BRAKES_NW_SE, SPR_WOODEN_RC_BRAKES_RAILS_NW_SE }, { SPR_WOODEN_RC_BRAKES_SW_NE, SPR_WOODEN_RC_BRAKES_RAILS_SW_NE }, @@ -14837,13 +14754,13 @@ static void WoodenRCTrackBooster( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_G2_WOODEN_RC_BOOSTER_SW_NE, SPR_G2_WOODEN_RC_BOOSTER_NW_SE, SPR_G2_WOODEN_RC_BOOSTER_SW_NE, SPR_G2_WOODEN_RC_BOOSTER_NW_SE, }; - static constexpr const uint32_t railsImageIds[4] = { + static constexpr uint32_t railsImageIds[4] = { SPR_WOODEN_RC_FLAT_CHAIN_RAILS_SW_NE, SPR_WOODEN_RC_FLAT_CHAIN_RAILS_NW_SE, SPR_WOODEN_RC_FLAT_CHAIN_RAILS_NE_SW, diff --git a/src/openrct2/ride/coaster/WoodenRollerCoaster.h b/src/openrct2/ride/coaster/WoodenRollerCoaster.h index d5248f9901..de75205293 100644 --- a/src/openrct2/ride/coaster/WoodenRollerCoaster.h +++ b/src/openrct2/ride/coaster/WoodenRollerCoaster.h @@ -9,6 +9,8 @@ #pragma once +#include "../../drawing/ImageId.hpp" +#include "../../paint/Boundbox.h" #include "../../paint/Paint.h" #include "../../world/Location.hpp" #include "../TrackPaint.h" @@ -17,11 +19,10 @@ struct SpriteBoundBox2 { - uint32_t sprite_id_a; - uint32_t sprite_id_b; + ImageIndex ImageIdA; + ImageIndex ImageIdB; CoordsXYZ offset; - CoordsXYZ bb_offset; - CoordsXYZ bb_size; + ::BoundBoxXYZ BoundBox; }; template ImageId WoodenRCGetTrackColour(const PaintSession& session) @@ -50,19 +51,19 @@ PaintStruct* WoodenRCTrackPaint( template void WoodenRCTrackPaintBb(PaintSession& session, const SpriteBoundBox2* bb, int16_t height) { - if (bb->sprite_id_a == 0) + if (bb->ImageIdA == 0) return; - ImageId imageId = WoodenRCGetTrackColour(session).WithIndex(bb->sprite_id_a); + ImageId imageId = WoodenRCGetTrackColour(session).WithIndex(bb->ImageIdA); PaintAddImageAsParent( session, imageId, { bb->offset.x, bb->offset.y, height + bb->offset.z }, - { { bb->bb_offset.x, bb->bb_offset.y, height + bb->bb_offset.z }, bb->bb_size }); - if (bb->sprite_id_b != 0) + { { bb->BoundBox.offset.x, bb->BoundBox.offset.y, height + bb->BoundBox.offset.z }, bb->BoundBox.length }); + if (bb->ImageIdB != 0) { - ImageId railsImageId = WoodenRCGetRailsColour(session).WithIndex(bb->sprite_id_b); + ImageId railsImageId = WoodenRCGetRailsColour(session).WithIndex(bb->ImageIdB); PaintAddImageAsChild( session, railsImageId, { bb->offset.x, bb->offset.y, height + bb->offset.z }, - { { bb->bb_offset, height + bb->bb_offset.z }, bb->bb_size }); + { { bb->BoundBox.offset, height + bb->BoundBox.offset.z }, bb->BoundBox.length }); } } diff --git a/src/openrct2/ride/coaster/WoodenWildMouse.cpp b/src/openrct2/ride/coaster/WoodenWildMouse.cpp index c8de6b8db7..8970499691 100644 --- a/src/openrct2/ride/coaster/WoodenWildMouse.cpp +++ b/src/openrct2/ride/coaster/WoodenWildMouse.cpp @@ -125,7 +125,7 @@ static void WoodenWildMouseTrackFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_WOODEN_WILD_MOUSE_FLAT_SW_NE, SPR_WOODEN_WILD_MOUSE_FLAT_NW_SE, SPR_WOODEN_WILD_MOUSE_FLAT_SW_NE, @@ -149,7 +149,7 @@ static void WoodenWildMouseTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_WOODEN_WILD_MOUSE_FLAT_SW_NE, SPR_STATION_BASE_B_SW_NE }, { SPR_WOODEN_WILD_MOUSE_FLAT_NW_SE, SPR_STATION_BASE_B_NW_SE }, { SPR_WOODEN_WILD_MOUSE_FLAT_SW_NE, SPR_STATION_BASE_B_SW_NE }, @@ -174,7 +174,7 @@ static void WoodenWildMouseTrack25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4] = { + static constexpr uint32_t imageIds[2][4] = { { SPR_WOODEN_WILD_MOUSE_25_DEG_SW_NE, SPR_WOODEN_WILD_MOUSE_25_DEG_NW_SE, @@ -213,7 +213,7 @@ static void WoodenWildMouseTrack60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4] = { + static constexpr uint32_t imageIds[2][4] = { { SPR_WOODEN_WILD_MOUSE_60_DEG_SW_NE, SPR_WOODEN_WILD_MOUSE_60_DEG_NW_SE, @@ -260,7 +260,7 @@ static void WoodenWildMouseTrackFlatTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4] = { + static constexpr uint32_t imageIds[2][4] = { { SPR_WOODEN_WILD_MOUSE_FLAT_TO_25_DEG_SW_NE, SPR_WOODEN_WILD_MOUSE_FLAT_TO_25_DEG_NW_SE, @@ -299,7 +299,7 @@ static void WoodenWildMouseTrack25DegUpTo60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][2] = { + static constexpr uint32_t imageIds[2][4][2] = { { { SPR_WOODEN_WILD_MOUSE_25_DEG_TO_60_DEG_SW_NE, 0 }, { SPR_WOODEN_WILD_MOUSE_25_DEG_TO_60_DEG_NW_SE, SPR_WOODEN_WILD_MOUSE_25_DEG_TO_60_DEG_FRONT_NW_SE }, @@ -349,7 +349,7 @@ static void WoodenWildMouseTrack60DegTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][2] = { + static constexpr uint32_t imageIds[2][4][2] = { { { SPR_WOODEN_WILD_MOUSE_60_DEG_TO_25_DEG_SW_NE, 0 }, { SPR_WOODEN_WILD_MOUSE_60_DEG_TO_25_DEG_NW_SE, SPR_WOODEN_WILD_MOUSE_60_DEG_TO_25_DEG_FRONT_NW_SE }, @@ -400,7 +400,7 @@ static void WoodenWildMouseTrack25DegUpToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4] = { + static constexpr uint32_t imageIds[2][4] = { { SPR_WOODEN_WILD_MOUSE_25_DEG_TO_FLAT_SW_NE, SPR_WOODEN_WILD_MOUSE_25_DEG_TO_FLAT_NW_SE, @@ -486,7 +486,7 @@ static void WoodenWildMouseTrackRightQuarterTurn3( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][3] = { + static constexpr SpriteBb imageIds[4][3] = { { { SPR_WOODEN_WILD_MOUSE_QUARTER_TURN_3_SW_SE_PART_0, { 0, 6, 0 }, { 0, 0, 0 }, { 32, 20, 1 } }, { SPR_WOODEN_WILD_MOUSE_QUARTER_TURN_3_SW_SE_PART_1, { 16, 16, 0 }, { 0, 0, 0 }, { 16, 16, 1 } }, @@ -551,7 +551,7 @@ static void WoodenWildMouseTrackLeftQuarterTurn1( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4] = { + static constexpr uint32_t imageIds[4] = { SPR_WOODEN_WILD_MOUSE_QUARTER_TURN_1_SW_NE, SPR_WOODEN_WILD_MOUSE_QUARTER_TURN_1_NW_SE, SPR_WOODEN_WILD_MOUSE_QUARTER_TURN_1_NE_SW, @@ -594,7 +594,7 @@ static void WoodenWildMouseTrackFlatTo60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][2] = { + static constexpr uint32_t imageIds[2][4][2] = { { { SPR_WOODEN_WILD_MOUSE_FLAT_TO_60_DEG_SW_NE, 0 }, { SPR_WOODEN_WILD_MOUSE_FLAT_TO_60_DEG_NW_SE, SPR_WOODEN_WILD_MOUSE_FLAT_TO_60_DEG_FRONT_NW_SE }, @@ -644,7 +644,7 @@ static void WoodenWildMouseTrack60DegUpToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][2] = { + static constexpr uint32_t imageIds[2][4][2] = { { { SPR_WOODEN_WILD_MOUSE_60_DEG_TO_FLAT_SW_NE, 0 }, { SPR_WOODEN_WILD_MOUSE_60_DEG_TO_FLAT_NW_SE, SPR_WOODEN_WILD_MOUSE_60_DEG_TO_FLAT_FRONT_NW_SE }, diff --git a/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h b/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h index 5cfa20f9dc..701eddabbc 100644 --- a/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h +++ b/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor AirPoweredVerticalCoasterRTD = +constexpr RideTypeDescriptor AirPoweredVerticalCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/AlpineCoaster.h b/src/openrct2/ride/coaster/meta/AlpineCoaster.h index 0576724196..155291bd82 100644 --- a/src/openrct2/ride/coaster/meta/AlpineCoaster.h +++ b/src/openrct2/ride/coaster/meta/AlpineCoaster.h @@ -13,7 +13,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor AlpineCoasterRTD = +constexpr RideTypeDescriptor AlpineCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/BobsleighCoaster.h b/src/openrct2/ride/coaster/meta/BobsleighCoaster.h index 02a2fe73b1..a7134fe934 100644 --- a/src/openrct2/ride/coaster/meta/BobsleighCoaster.h +++ b/src/openrct2/ride/coaster/meta/BobsleighCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor BobsleighCoasterRTD = +constexpr RideTypeDescriptor BobsleighCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -48,6 +48,7 @@ constexpr const RideTypeDescriptor BobsleighCoasterRTD = { COLOUR_WHITE, COLOUR_BRIGHT_RED, COLOUR_WHITE }, { COLOUR_LIGHT_BLUE, COLOUR_WHITE, COLOUR_BLACK }, { COLOUR_YELLOW, COLOUR_BRIGHT_RED, COLOUR_BLACK }, + { COLOUR_TAN_DARK, COLOUR_DARK_ORANGE, COLOUR_DULL_BROWN_LIGHT }, // Reptilian )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_BOBSLEIGH_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_BOBSLEIGH_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h b/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h index 946bb23650..72d6cc9f34 100644 --- a/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor ClassicMiniRollerCoasterRTD = +constexpr RideTypeDescriptor ClassicMiniRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h b/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h index 0af9f01d23..b74888ee3b 100644 --- a/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor ClassicWoodenRollerCoasterRTD = +constexpr RideTypeDescriptor ClassicWoodenRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor ClassicWoodenRollerCoasterRTD = SET_FIELD(NameConvention, { RideComponentType::Train, RideComponentType::Track, RideComponentType::Station }), SET_FIELD(EnumName, nameof(RIDE_TYPE_CLASSIC_WOODEN_ROLLER_COASTER)), SET_FIELD(AvailableBreakdowns, (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE)), - SET_FIELD(Heights, { 41, 24, 8, 11, }), + SET_FIELD(Heights, { 24, 24, 8, 11, }), SET_FIELD(MaxMass, 19), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 3, 5 }), SET_FIELD(RatingsMultipliers, { 52, 33, 4 }), diff --git a/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h b/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h index b91aaeffc8..c473c94516 100644 --- a/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h +++ b/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor CompactInvertedCoasterRTD = +constexpr RideTypeDescriptor CompactInvertedCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -59,7 +59,7 @@ constexpr const RideTypeDescriptor CompactInvertedCoasterRTD = { RIDE_RATING(3, 15), RIDE_RATING(2, 80), RIDE_RATING(3, 20) }, 21, -1, - false, + true, { { RatingsModifierType::BonusLength, 6000, 764, 0, 0 }, { RatingsModifierType::BonusSynchronisation, 0, RIDE_RATING(0, 42), RIDE_RATING(0, 05), 0 }, diff --git a/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h b/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h index 131fa3271c..82b5afaddc 100644 --- a/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor CorkscrewRollerCoasterRTD = +constexpr RideTypeDescriptor CorkscrewRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h b/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h index ef86f3ec79..cbd39e5920 100644 --- a/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h @@ -16,7 +16,7 @@ // clang-format off // Non-inverted variant -constexpr const RideTypeDescriptor FlyingRollerCoasterRTD = +constexpr RideTypeDescriptor FlyingRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_FLYING_ROLLER_COASTER_ALT), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -50,6 +50,7 @@ constexpr const RideTypeDescriptor FlyingRollerCoasterRTD = { COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN, COLOUR_TEAL }, { COLOUR_TEAL, COLOUR_TEAL, COLOUR_BORDEAUX_RED }, { COLOUR_BRIGHT_RED, COLOUR_BRIGHT_RED, COLOUR_DARK_PURPLE }, + { COLOUR_DULL_GREEN_DARK, COLOUR_SATURATED_GREEN_LIGHT, COLOUR_AQUA_DARK }, { COLOUR_BORDEAUX_RED_DARK, COLOUR_BORDEAUX_RED_DARK, COLOUR_SATURATED_BROWN }, // FLY { COLOUR_LIGHT_BLUE, COLOUR_DARK_BLUE, COLOUR_ICY_BLUE }, // Manta { COLOUR_YELLOW, COLOUR_BRIGHT_RED, COLOUR_LIGHT_ORANGE } // Tatsu @@ -87,7 +88,7 @@ constexpr const RideTypeDescriptor FlyingRollerCoasterRTD = }; // Inverted variant -constexpr const RideTypeDescriptor FlyingRollerCoasterAltRTD = +constexpr RideTypeDescriptor FlyingRollerCoasterAltRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_NONE), diff --git a/src/openrct2/ride/coaster/meta/GigaCoaster.h b/src/openrct2/ride/coaster/meta/GigaCoaster.h index 3ee3015d06..21845f0c6b 100644 --- a/src/openrct2/ride/coaster/meta/GigaCoaster.h +++ b/src/openrct2/ride/coaster/meta/GigaCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor GigaCoasterRTD = +constexpr RideTypeDescriptor GigaCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -50,6 +50,7 @@ constexpr const RideTypeDescriptor GigaCoasterRTD = { COLOUR_WHITE, COLOUR_WHITE, COLOUR_YELLOW }, { COLOUR_YELLOW, COLOUR_YELLOW, COLOUR_BORDEAUX_RED }, { COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_BLACK }, + { COLOUR_BRIGHT_YELLOW, COLOUR_YELLOW, COLOUR_DARK_GREEN }, // Mega-Lite / 蓝月飞车 )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_GIGA_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_GIGA_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h b/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h index dba7753a3f..253c8aea2d 100644 --- a/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h +++ b/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor HeartlineTwisterCoasterRTD = +constexpr RideTypeDescriptor HeartlineTwisterCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/HybridCoaster.h b/src/openrct2/ride/coaster/meta/HybridCoaster.h index 84df477584..416710cec4 100644 --- a/src/openrct2/ride/coaster/meta/HybridCoaster.h +++ b/src/openrct2/ride/coaster/meta/HybridCoaster.h @@ -13,7 +13,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor HybridCoasterRTD = +constexpr RideTypeDescriptor HybridCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -43,9 +43,13 @@ constexpr const RideTypeDescriptor HybridCoasterRTD = SET_FIELD(PhotoItem, ShopItem::Photo), SET_FIELD(BonusValue, 120), SET_FIELD(ColourPresets, TRACK_COLOUR_PRESETS( - { COLOUR_LIGHT_ORANGE, COLOUR_LIGHT_ORANGE, COLOUR_DARK_BROWN}, - { COLOUR_BRIGHT_RED, COLOUR_BRIGHT_RED, COLOUR_SATURATED_BROWN}, - { COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_WHITE} + { COLOUR_LIGHT_ORANGE, COLOUR_LIGHT_ORANGE, COLOUR_DARK_BROWN }, // Medusa + { COLOUR_BRIGHT_RED, COLOUR_BRIGHT_RED, COLOUR_GREY }, // Storm Chaser + { COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_WHITE }, // Hakugei + { COLOUR_BORDEAUX_RED_DARK, COLOUR_BORDEAUX_RED_DARK, COLOUR_DARK_BROWN }, // Zadra + { COLOUR_SATURATED_BROWN, COLOUR_SATURATED_BROWN, COLOUR_DARK_BROWN }, // Untamed + { COLOUR_SATURATED_PURPLE_DARK, COLOUR_SATURATED_PURPLE_DARK, COLOUR_SATURATED_BROWN }, // Iron Gwazi + { COLOUR_BORDEAUX_RED_DARK, COLOUR_BORDEAUX_RED_DARK, COLOUR_BLACK }, // Wildcat's Revenge )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_HYBRID_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_HYBRID_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/HyperTwister.h b/src/openrct2/ride/coaster/meta/HyperTwister.h index b452690555..e260ed06b2 100644 --- a/src/openrct2/ride/coaster/meta/HyperTwister.h +++ b/src/openrct2/ride/coaster/meta/HyperTwister.h @@ -16,7 +16,7 @@ #include "../BolligerMabillardTrack.hpp" // clang-format off -constexpr const RideTypeDescriptor HyperTwisterRTD = +constexpr RideTypeDescriptor HyperTwisterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor HyperTwisterRTD = SET_FIELD(NameConvention, { RideComponentType::Train, RideComponentType::Track, RideComponentType::Station}), SET_FIELD(EnumName, nameof(RIDE_TYPE_HYPER_TWISTER)), SET_FIELD(AvailableBreakdowns, (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE)), - SET_FIELD(Heights, { 54, 24, 8, 9, }), + SET_FIELD(Heights, { 61, 24, 8, 9, }), SET_FIELD(MaxMass, 31), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 5, 8 }), SET_FIELD(RatingsMultipliers, { 52, 36, 10 }), @@ -52,6 +52,7 @@ constexpr const RideTypeDescriptor HyperTwisterRTD = { COLOUR_WHITE, COLOUR_WHITE, COLOUR_LIGHT_BLUE }, { COLOUR_DARK_GREEN, COLOUR_MOSS_GREEN, COLOUR_DARK_BROWN }, { COLOUR_BORDEAUX_RED, COLOUR_LIGHT_ORANGE, COLOUR_WHITE }, + { COLOUR_DARK_PURPLE, COLOUR_SATURATED_PURPLE_DARK, COLOUR_AQUA_DARK }, // Mako )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_TWISTER_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_TWISTER_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/Hypercoaster.h b/src/openrct2/ride/coaster/meta/Hypercoaster.h index 983a5f2acc..6312a8e169 100644 --- a/src/openrct2/ride/coaster/meta/Hypercoaster.h +++ b/src/openrct2/ride/coaster/meta/Hypercoaster.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor HypercoasterRTD = +constexpr RideTypeDescriptor HypercoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -49,6 +49,8 @@ constexpr const RideTypeDescriptor HypercoasterRTD = { COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_WHITE }, { COLOUR_BLACK, COLOUR_BORDEAUX_RED, COLOUR_BLACK }, { COLOUR_WHITE, COLOUR_WHITE, COLOUR_DARK_GREEN }, + { COLOUR_DULL_GREEN_LIGHT, COLOUR_DULL_GREEN_LIGHT, COLOUR_BLACK }, // Phantom's Revenge (Old) + { COLOUR_SATURATED_PURPLE_DARK, COLOUR_SATURATED_PURPLE_DARK, COLOUR_BLACK }, // Phantom's Revenge (New) )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_CORKSCREW_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_CORKSCREW_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h b/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h index c4b18c553c..9c52c22f55 100644 --- a/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h +++ b/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor InvertedHairpinCoasterRTD = +constexpr RideTypeDescriptor InvertedHairpinCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h b/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h index eb15961b05..13d895c120 100644 --- a/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h +++ b/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor InvertedImpulseCoasterRTD = +constexpr RideTypeDescriptor InvertedImpulseCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -46,9 +46,10 @@ constexpr const RideTypeDescriptor InvertedImpulseCoasterRTD = SET_FIELD(PhotoItem, ShopItem::Photo2), SET_FIELD(BonusValue, 75), SET_FIELD(ColourPresets, TRACK_COLOUR_PRESETS( - { COLOUR_BRIGHT_YELLOW, COLOUR_BRIGHT_YELLOW, COLOUR_BRIGHT_RED }, { COLOUR_BLACK, COLOUR_ICY_BLUE, COLOUR_BLACK }, { COLOUR_WHITE, COLOUR_WHITE, COLOUR_YELLOW }, + { COLOUR_BRIGHT_YELLOW, COLOUR_BRIGHT_YELLOW, COLOUR_BORDEAUX_RED }, // Volcano: The Blast Coaster + { COLOUR_BRIGHT_YELLOW, COLOUR_BRIGHT_YELLOW, COLOUR_TEAL }, // Wicked Twister )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_INVERTED_IMPULSE_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_INVERTED_IMPULSE_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h b/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h index c443e880de..77afe84790 100644 --- a/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor InvertedRollerCoasterRTD = +constexpr RideTypeDescriptor InvertedRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor InvertedRollerCoasterRTD = SET_FIELD(NameConvention, { RideComponentType::Train, RideComponentType::Track, RideComponentType::Station }), SET_FIELD(EnumName, nameof(RIDE_TYPE_INVERTED_ROLLER_COASTER)), SET_FIELD(AvailableBreakdowns, (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE)), - SET_FIELD(Heights, { 38, 40, 29, 8, }), + SET_FIELD(Heights, { 42, 40, 29, 8, }), SET_FIELD(MaxMass, 27), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 5, 7 }), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), @@ -48,10 +48,12 @@ constexpr const RideTypeDescriptor InvertedRollerCoasterRTD = SET_FIELD(ColourPresets,TRACK_COLOUR_PRESETS( { COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED, COLOUR_BLACK }, { COLOUR_WHITE, COLOUR_YELLOW, COLOUR_WHITE }, - { COLOUR_SALMON_PINK, COLOUR_SALMON_PINK, COLOUR_GREY }, { COLOUR_BLACK, COLOUR_BRIGHT_RED, COLOUR_BLACK }, { COLOUR_SATURATED_BROWN, COLOUR_WHITE, COLOUR_SATURATED_BROWN }, { COLOUR_YELLOW, COLOUR_YELLOW, COLOUR_BLACK }, + { COLOUR_BLACK, COLOUR_BLACK, COLOUR_DULL_PURPLE_LIGHT }, // Great Bear + { COLOUR_DARK_BLUE, COLOUR_DARK_BLUE, COLOUR_SATURATED_BROWN_LIGHT }, // Montu / Oziris + { COLOUR_DARK_PINK, COLOUR_DARK_PINK, COLOUR_SATURATED_PURPLE_DARK }, // Banshee (Renders) )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_INVERTED_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_INVERTED_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h b/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h index 30b7c84d16..b585c09235 100644 --- a/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor JuniorRollerCoasterRTD = +constexpr RideTypeDescriptor JuniorRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h b/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h index b15b5781a5..f15cee5bcd 100644 --- a/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor LIMLaunchedRollerCoasterRTD = +constexpr RideTypeDescriptor LIMLaunchedRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -49,6 +49,9 @@ constexpr const RideTypeDescriptor LIMLaunchedRollerCoasterRTD = { COLOUR_BRIGHT_GREEN, COLOUR_BRIGHT_GREEN, COLOUR_WHITE }, { COLOUR_BRIGHT_RED, COLOUR_BRIGHT_RED, COLOUR_DARK_BROWN }, { COLOUR_YELLOW, COLOUR_YELLOW, COLOUR_SATURATED_GREEN }, + { COLOUR_BRIGHT_GREEN, COLOUR_SATURATED_GREEN_LIGHT, COLOUR_SATURATED_PURPLE_DARK}, // Joker's Jinx + { COLOUR_SATURATED_GREEN_LIGHT, COLOUR_GRASS_GREEN_LIGHT , COLOUR_AQUA_DARK}, // Poltergeist + { COLOUR_GREY, COLOUR_DARK_BROWN , COLOUR_BLACK}, // Flight of Fear )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_LIM_LAUNCHED_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_LIM_LAUNCHED_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h b/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h index 237a6395c8..3d20dba063 100644 --- a/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor LayDownRollerCoasterRTD = +constexpr RideTypeDescriptor LayDownRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -81,7 +81,7 @@ constexpr const RideTypeDescriptor LayDownRollerCoasterRTD = }), }; -constexpr const RideTypeDescriptor LayDownRollerCoasterAltRTD = +constexpr RideTypeDescriptor LayDownRollerCoasterAltRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_NONE), diff --git a/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h b/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h index a69b149857..0109d89716 100644 --- a/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor LoopingRollerCoasterRTD = +constexpr RideTypeDescriptor LoopingRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -53,6 +53,7 @@ constexpr const RideTypeDescriptor LoopingRollerCoasterRTD = { COLOUR_LIGHT_PURPLE, COLOUR_LIGHT_PURPLE, COLOUR_DARK_GREEN }, { COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN, COLOUR_LIGHT_BROWN }, { COLOUR_GREY, COLOUR_LIGHT_ORANGE, COLOUR_GREY }, + { COLOUR_GRASS_GREEN_LIGHT, COLOUR_SATURATED_GREEN_LIGHT, COLOUR_AQUA_DARK }, // Mindbender )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_LOOPING_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_LOOPING_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/MineRide.h b/src/openrct2/ride/coaster/meta/MineRide.h index 44f595d88f..f71f37901e 100644 --- a/src/openrct2/ride/coaster/meta/MineRide.h +++ b/src/openrct2/ride/coaster/meta/MineRide.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MineRideRTD = +constexpr RideTypeDescriptor MineRideRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/MineTrainCoaster.h b/src/openrct2/ride/coaster/meta/MineTrainCoaster.h index 2ca341aafc..ed2f21df27 100644 --- a/src/openrct2/ride/coaster/meta/MineTrainCoaster.h +++ b/src/openrct2/ride/coaster/meta/MineTrainCoaster.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MineTrainCoasterRTD = +constexpr RideTypeDescriptor MineTrainCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h b/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h index 52c9bb0e54..ab62c08b75 100644 --- a/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MiniRollerCoasterRTD = +constexpr RideTypeDescriptor MiniRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h b/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h index 0398a729e6..518101b467 100644 --- a/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h +++ b/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MiniSuspendedCoasterRTD = +constexpr RideTypeDescriptor MiniSuspendedCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h b/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h index 258c64ef8a..d10375fd20 100644 --- a/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MultiDimensionRollerCoasterRTD = +constexpr RideTypeDescriptor MultiDimensionRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -47,9 +47,10 @@ constexpr const RideTypeDescriptor MultiDimensionRollerCoasterRTD = SET_FIELD(PhotoItem, ShopItem::Photo2), SET_FIELD(BonusValue, 100), SET_FIELD(ColourPresets, TRACK_COLOUR_PRESETS( - { COLOUR_BRIGHT_PINK, COLOUR_YELLOW, COLOUR_YELLOW }, - { COLOUR_LIGHT_PURPLE, COLOUR_BRIGHT_RED, COLOUR_BRIGHT_RED }, - { COLOUR_BORDEAUX_RED, COLOUR_WHITE, COLOUR_WHITE }, + { COLOUR_BRIGHT_PINK, COLOUR_YELLOW, COLOUR_YELLOW }, // X + { COLOUR_BRIGHT_RED, COLOUR_BRIGHT_RED, COLOUR_BLACK }, // X2 + { COLOUR_BORDEAUX_RED_DARK, COLOUR_DARK_YELLOW, COLOUR_OLIVE_DARK }, // Dinoconda + { COLOUR_BLACK, COLOUR_BLACK, COLOUR_GREY }, // Eejanaika )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_MULTI_DIMENSION_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_MULTI_DIMENSION_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), @@ -83,7 +84,7 @@ constexpr const RideTypeDescriptor MultiDimensionRollerCoasterRTD = }), }; -constexpr const RideTypeDescriptor MultiDimensionRollerCoasterAltRTD = +constexpr RideTypeDescriptor MultiDimensionRollerCoasterAltRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_NONE), diff --git a/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h b/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h index d4186997d5..40935d0fd3 100644 --- a/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h +++ b/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor ReverseFreefallCoasterRTD = +constexpr RideTypeDescriptor ReverseFreefallCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h b/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h index 8610d9f92d..2ae929c8a2 100644 --- a/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor ReverserRollerCoasterRTD = +constexpr RideTypeDescriptor ReverserRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h b/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h index 7cdccf1609..89cb17a04a 100644 --- a/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SideFrictionRollerCoasterRTD = +constexpr RideTypeDescriptor SideFrictionRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor SideFrictionRollerCoasterRTD = SET_FIELD(NameConvention, { RideComponentType::Train, RideComponentType::Track, RideComponentType::Station }), SET_FIELD(EnumName, nameof(RIDE_TYPE_SIDE_FRICTION_ROLLER_COASTER)), SET_FIELD(AvailableBreakdowns, (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE)), - SET_FIELD(Heights, { 15, 24, 4, 11, }), + SET_FIELD(Heights, { 18, 24, 4, 11, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 3, 4 }), SET_FIELD(RatingsMultipliers, { 48, 28, 7 }), @@ -49,6 +49,7 @@ constexpr const RideTypeDescriptor SideFrictionRollerCoasterRTD = { COLOUR_WHITE, COLOUR_DARK_BROWN, COLOUR_WHITE }, { COLOUR_SATURATED_BROWN, COLOUR_WHITE, COLOUR_SATURATED_BROWN }, { COLOUR_DARK_BROWN, COLOUR_LIGHT_BROWN, COLOUR_DARK_BROWN }, + { COLOUR_WHITE, COLOUR_DULL_GREEN_DARK, COLOUR_WHITE }, // Leap-The-Dips )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_SIDE_FRICTION_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_SIDE_FRICTION_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h b/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h index 999a958b15..311857e7d3 100644 --- a/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h @@ -13,7 +13,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SingleRailRollerCoasterRTD = +constexpr RideTypeDescriptor SingleRailRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/SpinningWildMouse.h b/src/openrct2/ride/coaster/meta/SpinningWildMouse.h index 63f23a89e9..7d44756c77 100644 --- a/src/openrct2/ride/coaster/meta/SpinningWildMouse.h +++ b/src/openrct2/ride/coaster/meta/SpinningWildMouse.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SpinningWildMouseRTD = +constexpr RideTypeDescriptor SpinningWildMouseRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h b/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h index daf46affd6..77094e6869 100644 --- a/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SpiralRollerCoasterRTD = +constexpr RideTypeDescriptor SpiralRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h b/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h index 44982d3056..8a784bcf40 100644 --- a/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor StandUpRollerCoasterRTD = +constexpr RideTypeDescriptor StandUpRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/SteelWildMouse.h b/src/openrct2/ride/coaster/meta/SteelWildMouse.h index 749136dc2e..8deb717596 100644 --- a/src/openrct2/ride/coaster/meta/SteelWildMouse.h +++ b/src/openrct2/ride/coaster/meta/SteelWildMouse.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SteelWildMouseRTD = +constexpr RideTypeDescriptor SteelWildMouseRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/Steeplechase.h b/src/openrct2/ride/coaster/meta/Steeplechase.h index 3e7f15fb51..44b731b807 100644 --- a/src/openrct2/ride/coaster/meta/Steeplechase.h +++ b/src/openrct2/ride/coaster/meta/Steeplechase.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SteeplechaseRTD = +constexpr RideTypeDescriptor SteeplechaseRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h b/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h index 16a89c5976..3a62700aba 100644 --- a/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h +++ b/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SuspendedSwingingCoasterRTD = +constexpr RideTypeDescriptor SuspendedSwingingCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h b/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h index 16646d3e8f..697b52aae2 100644 --- a/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h @@ -17,7 +17,7 @@ #include "../BolligerMabillardTrack.hpp" // clang-format off -constexpr const RideTypeDescriptor TwisterRollerCoasterRTD = +constexpr RideTypeDescriptor TwisterRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -49,10 +49,10 @@ constexpr const RideTypeDescriptor TwisterRollerCoasterRTD = SET_FIELD(BonusValue, 120), SET_FIELD(ColourPresets, TRACK_COLOUR_PRESETS( { COLOUR_YELLOW, COLOUR_YELLOW, COLOUR_BORDEAUX_RED }, - { COLOUR_AQUAMARINE, COLOUR_AQUAMARINE, COLOUR_DARK_PURPLE }, { COLOUR_WHITE, COLOUR_WHITE, COLOUR_LIGHT_BLUE }, - { COLOUR_DARK_GREEN, COLOUR_MOSS_GREEN, COLOUR_DARK_BROWN }, { COLOUR_BORDEAUX_RED, COLOUR_LIGHT_ORANGE, COLOUR_WHITE }, + { COLOUR_LIGHT_BLUE, COLOUR_YELLOW, COLOUR_DARK_PINK }, // Scream + { COLOUR_DARK_ORANGE, COLOUR_DARK_ORANGE, COLOUR_BLACK }, // Rougarou )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_TWISTER_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_TWISTER_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h b/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h index 30bc44c7ad..2d2c087025 100644 --- a/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h +++ b/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h @@ -17,7 +17,7 @@ #include "../BolligerMabillardTrack.hpp" // clang-format off -constexpr const RideTypeDescriptor VerticalDropCoasterRTD = +constexpr RideTypeDescriptor VerticalDropCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor VerticalDropCoasterRTD = SET_FIELD(NameConvention, { RideComponentType::Train, RideComponentType::Track, RideComponentType::Station }), SET_FIELD(EnumName, nameof(RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER)), SET_FIELD(AvailableBreakdowns, (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE)), - SET_FIELD(Heights, { 53, 24, 8, 11, }), + SET_FIELD(Heights, { 55, 24, 8, 11, }), SET_FIELD(MaxMass, 25), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 4, 5 }), SET_FIELD(RatingsMultipliers, { 52, 38, 10 }), @@ -49,6 +49,9 @@ constexpr const RideTypeDescriptor VerticalDropCoasterRTD = SET_FIELD(ColourPresets, TRACK_COLOUR_PRESETS( { COLOUR_BLACK, COLOUR_GREY, COLOUR_BLACK }, { COLOUR_DARK_GREEN, COLOUR_DARK_GREEN, COLOUR_GREY }, + { COLOUR_DARK_ORANGE, COLOUR_DARK_ORANGE, COLOUR_DULL_GREEN_DARK }, // Yukon Striker + { COLOUR_LIGHT_ORANGE, COLOUR_DARK_ORANGE, COLOUR_DARK_BLUE }, // Valravn + { COLOUR_GREY, COLOUR_BRIGHT_RED, COLOUR_YELLOW }, // Dr. Diabolical's Cliffhanger )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_VERTICAL_DROP_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_VERTICAL_DROP_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/VirginiaReel.h b/src/openrct2/ride/coaster/meta/VirginiaReel.h index c5bc3d284f..1ecc84ad98 100644 --- a/src/openrct2/ride/coaster/meta/VirginiaReel.h +++ b/src/openrct2/ride/coaster/meta/VirginiaReel.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor VirginiaReelRTD = +constexpr RideTypeDescriptor VirginiaReelRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/coaster/meta/WaterCoaster.h b/src/openrct2/ride/coaster/meta/WaterCoaster.h index 6e013ff539..db69e7b22a 100644 --- a/src/openrct2/ride/coaster/meta/WaterCoaster.h +++ b/src/openrct2/ride/coaster/meta/WaterCoaster.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor WaterCoasterRTD = +constexpr RideTypeDescriptor WaterCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -49,6 +49,7 @@ constexpr const RideTypeDescriptor WaterCoasterRTD = { COLOUR_DARK_GREEN, COLOUR_DARK_GREEN, COLOUR_BLACK }, { COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_BORDEAUX_RED }, { COLOUR_WHITE, COLOUR_WHITE, COLOUR_DARK_PURPLE }, + { COLOUR_DULL_BROWN_LIGHT, COLOUR_DULL_BROWN_LIGHT, COLOUR_DARK_BROWN }, // De Vliegende Hollander )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_WATER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_WATER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h b/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h index 5e8f3cc071..ca322fc53e 100644 --- a/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor WoodenRollerCoasterRTD = +constexpr RideTypeDescriptor WoodenRollerCoasterRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), @@ -50,7 +50,9 @@ constexpr const RideTypeDescriptor WoodenRollerCoasterRTD = { COLOUR_BRIGHT_RED, COLOUR_BLACK, COLOUR_GREY }, { COLOUR_YELLOW, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN }, { COLOUR_TEAL, COLOUR_BORDEAUX_RED, COLOUR_WHITE }, - { COLOUR_LIGHT_BLUE, COLOUR_BLACK, COLOUR_BLACK }, + { COLOUR_LIGHT_BLUE, COLOUR_BLACK, COLOUR_DARK_BROWN }, + { COLOUR_SATURATED_BROWN_LIGHT, COLOUR_TAN_DARK, COLOUR_LIGHT_BROWN }, // Generic GCI + { COLOUR_TAN_DARK, COLOUR_DULL_BROWN_DARK, COLOUR_GREY }, // The Voyage /* Change supports to "minetrain" if possible in the future. */ )), SET_FIELD(ColourPreview, { SPR_RIDE_DESIGN_PREVIEW_WOODEN_ROLLER_COASTER_TRACK, SPR_RIDE_DESIGN_PREVIEW_WOODEN_ROLLER_COASTER_SUPPORTS }), SET_FIELD(ColourKey, RideColourKey::Ride), diff --git a/src/openrct2/ride/coaster/meta/WoodenWildMouse.h b/src/openrct2/ride/coaster/meta/WoodenWildMouse.h index 006d37e274..4c265be56d 100644 --- a/src/openrct2/ride/coaster/meta/WoodenWildMouse.h +++ b/src/openrct2/ride/coaster/meta/WoodenWildMouse.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor WoodenWildMouseRTD = +constexpr RideTypeDescriptor WoodenWildMouseRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_ROLLERCOASTER), diff --git a/src/openrct2/ride/gentle/CarRide.cpp b/src/openrct2/ride/gentle/CarRide.cpp index 6bf65726b8..51132a2c91 100644 --- a/src/openrct2/ride/gentle/CarRide.cpp +++ b/src/openrct2/ride/gentle/CarRide.cpp @@ -69,70 +69,70 @@ enum SprCarRideQuarterTurn3TilesSeNePart2 = 28820, }; -static constexpr const uint32_t CarRideTrackPiecesFlat[4] = { +static constexpr uint32_t CarRideTrackPiecesFlat[4] = { SprCarRideFlatSwNe, SprCarRideFlatNwSe, SprCarRideFlatSwNe, SprCarRideFlatNwSe, }; -static constexpr const uint32_t CarRideTrackPiecesLogBumps[4] = { +static constexpr uint32_t CarRideTrackPiecesLogBumps[4] = { SprCarRideLogBumpsSwNe, SprCarRideLogBumpsNwSe, SprCarRideLogBumpsSwNe, SprCarRideLogBumpsNwSe, }; -static constexpr const uint32_t CarRideTrackPieces25DegUp[4] = { +static constexpr uint32_t CarRideTrackPieces25DegUp[4] = { SprCarRide25DegUpSwNe, SprCarRide25DegUpNwSe, SprCarRide25DegUpNeSw, SprCarRide25DegUpSeNw, }; -static constexpr const uint32_t CarRideTrackPiecesFlatTo25DegUp[4] = { +static constexpr uint32_t CarRideTrackPiecesFlatTo25DegUp[4] = { SprCarRideFlatTo25DegUpSwNe, SprCarRideFlatTo25DegUpNwSe, SprCarRideFlatTo25DegUpNeSw, SprCarRideFlatTo25DegUpSeNw, }; -static constexpr const uint32_t CarRideTrackPieces25DegUpToFlat[4] = { +static constexpr uint32_t CarRideTrackPieces25DegUpToFlat[4] = { SprCarRideDegUpToFlatSwNe, SprCarRideDegUpToFlatNwSe, SprCarRideDegUpToFlatNeSw, SprCarRideDegUpToFlatSeNw, }; -static constexpr const uint32_t CarRideTrackPieces60DegUp[4] = { +static constexpr uint32_t CarRideTrackPieces60DegUp[4] = { SprCarRide60DegUpSwNe, SprCarRide60DegUpNwSe, SprCarRide60DegUpNeSw, SprCarRide60DegUpSeNw, }; -static constexpr const uint32_t CarRideTrackPieces25DegUpTo60DegUp[4][2] = { +static constexpr uint32_t CarRideTrackPieces25DegUpTo60DegUp[4][2] = { { SprCarRide25DegUpTo60DegUpSwNe, 0 }, { SprCarRide25DegUpTo60DegUpNwSe, SprCarRide25DegUpTo60DegUpFrontNwSe }, { SprCarRide25DegUpTo60DegUpNeSw, SprCarRide25DegUpTo60DegUpFrontNeSw }, { SprCarRide25DegUpTo60DegUpSeNw, 0 }, }; -static constexpr const uint32_t CarRideTrackPieces60DegUpTo25DegUp[4][2] = { +static constexpr uint32_t CarRideTrackPieces60DegUpTo25DegUp[4][2] = { { SprCarRide60DegUpTo25DegUpSwNe, 0 }, { SprCarRide60DegUpTo25DegUpNwSe, SprCarRide60DegUpTo25DegUpFrontNwSe }, { SprCarRide60DegUpTo25DegUpNeSw, SprCarRide60DegUpTo25DegUpFrontNeSw }, { SprCarRide60DegUpTo25DegUpSeNw, 0 }, }; -static constexpr const uint32_t CarRideTrackPiecesLeftQuarterTurn1Tile[4] = { +static constexpr uint32_t CarRideTrackPiecesLeftQuarterTurn1Tile[4] = { SprCarRideQuarterTurn1TileSwNw, SprCarRideQuarterTurn1TileNwNe, SprCarRideQuarterTurn1TileNeSe, SprCarRideQuarterTurn1TileSeSw, }; -static constexpr const uint32_t CarRideTrackPiecesQuarterTurn3Tiles[4][3] = { +static constexpr uint32_t CarRideTrackPiecesQuarterTurn3Tiles[4][3] = { { SprCarRideQuarterTurn3TilesSwSePart0, SprCarRideQuarterTurn3TilesSwSePart1, diff --git a/src/openrct2/ride/gentle/CrookedHouse.cpp b/src/openrct2/ride/gentle/CrookedHouse.cpp index 95782c451f..bbb943caeb 100644 --- a/src/openrct2/ride/gentle/CrookedHouse.cpp +++ b/src/openrct2/ride/gentle/CrookedHouse.cpp @@ -18,7 +18,7 @@ #include "../Track.h" #include "../TrackPaint.h" -static constexpr const BoundBoxXY CrookedHouseData[] = { +static constexpr BoundBoxXY CrookedHouseData[] = { { { 6, 0 }, { 42, 24 }, diff --git a/src/openrct2/ride/gentle/Dodgems.cpp b/src/openrct2/ride/gentle/Dodgems.cpp index a376d1bc1e..f45a4f8a2f 100644 --- a/src/openrct2/ride/gentle/Dodgems.cpp +++ b/src/openrct2/ride/gentle/Dodgems.cpp @@ -27,7 +27,7 @@ enum SprDodgemsFenceTopLeft = 21937 }; -static constexpr const uint32_t DodgemsFenceSprites[] = { +static constexpr uint32_t DodgemsFenceSprites[] = { SprDodgemsFenceTopRight, SprDodgemsFenceBottomRight, SprDodgemsFenceBottomLeft, diff --git a/src/openrct2/ride/gentle/FerrisWheel.cpp b/src/openrct2/ride/gentle/FerrisWheel.cpp index 52953d20d7..daf8c7951f 100644 --- a/src/openrct2/ride/gentle/FerrisWheel.cpp +++ b/src/openrct2/ride/gentle/FerrisWheel.cpp @@ -19,14 +19,14 @@ #include "../TrackPaint.h" #include "../Vehicle.h" -static constexpr const uint8_t Edges1X4NeSw[] = { +static constexpr uint8_t Edges1X4NeSw[] = { EDGE_NW | EDGE_SE, EDGE_NW | EDGE_SE | EDGE_NE, EDGE_NW | EDGE_SE, EDGE_NW | EDGE_SE | EDGE_SW, }; -static constexpr const uint8_t Edges1X4NwSe[] = { +static constexpr uint8_t Edges1X4NwSe[] = { EDGE_NE | EDGE_SW, EDGE_NE | EDGE_SW | EDGE_NW, EDGE_NE | EDGE_SW, diff --git a/src/openrct2/ride/gentle/FlyingSaucers.cpp b/src/openrct2/ride/gentle/FlyingSaucers.cpp index 75719a9516..85edd9d86f 100644 --- a/src/openrct2/ride/gentle/FlyingSaucers.cpp +++ b/src/openrct2/ride/gentle/FlyingSaucers.cpp @@ -24,7 +24,7 @@ enum SprFlyingSaucersFenceNw = 21924, }; -static constexpr const uint32_t FlyingSaucersFenceSprites[] = { +static constexpr uint32_t FlyingSaucersFenceSprites[] = { SprFlyingSaucersFenceNe, SprFlyingSaucersFenceSe, SprFlyingSaucersFenceSw, diff --git a/src/openrct2/ride/gentle/GhostTrain.cpp b/src/openrct2/ride/gentle/GhostTrain.cpp index 18e9837af2..aa4ab0f49c 100644 --- a/src/openrct2/ride/gentle/GhostTrain.cpp +++ b/src/openrct2/ride/gentle/GhostTrain.cpp @@ -67,42 +67,42 @@ enum SprGhostTrainTrackBrakesNwSe = 28882 }; -static constexpr const uint32_t GhostTrainTrackPiecesFlat[4] = { +static constexpr uint32_t GhostTrainTrackPiecesFlat[4] = { SprGhostTrainTrackFlatSwNe, SprGhostTrainTrackFlatNwSe, SprGhostTrainTrackFlatSwNe, SprGhostTrainTrackFlatNwSe, }; -static constexpr const uint32_t GhostTrainTrackPiecesFlatTo25DegUp[4][2] = { +static constexpr uint32_t GhostTrainTrackPiecesFlatTo25DegUp[4][2] = { { SprGhostTrainTrackFlatTo25DegUpSwNe, SprGhostTrainTrackFlatTo25DegUpFrontSwNe }, { SprGhostTrainTrackFlatTo25DegUpNwSe, SprGhostTrainTrackFlatTo25DegUpFrontNwSe }, { SprGhostTrainTrackFlatTo25DegUpNeSw, SprGhostTrainTrackFlatTo25DegUpFrontNeSw }, { SprGhostTrainTrackFlatTo25DegUpSeNw, SprGhostTrainTrackFlatTo25DegUpFrontSeNw }, }; -static constexpr const uint32_t GhostTrainTrackPieces25DegUpToFlat[4][2] = { +static constexpr uint32_t GhostTrainTrackPieces25DegUpToFlat[4][2] = { { SprGhostTrainTrack25DegUpToFlatSwNe, SprGhostTrainTrack25DegUpToFlatFrontSwNe }, { SprGhostTrainTrack25DegUpToFlatNwSe, SprGhostTrainTrack25DegUpToFlatFrontNwSe }, { SprGhostTrainTrack25DegUpToFlatNeSw, SprGhostTrainTrack25DegUpToFlatFrontNeSw }, { SprGhostTrainTrack25DegUpToFlatSeNw, SprGhostTrainTrack25DegUpToFlatFrontSeNw }, }; -static constexpr const uint32_t GhostTrainTrackPieces25DegUp[4][2] = { +static constexpr uint32_t GhostTrainTrackPieces25DegUp[4][2] = { { SprGhostTrainTrack25DegUpSwNe, SprGhostTrainTrack25DegUpFrontSwNe }, { SprGhostTrainTrack25DegUpNwSe, SprGhostTrainTrack25DegUpFrontNwSe }, { SprGhostTrainTrack25DegUpNeSw, SprGhostTrainTrack25DegUpFrontNeSw }, { SprGhostTrainTrack25DegUpSeNw, SprGhostTrainTrack25DegUpFrontSeNw }, }; -static constexpr const uint32_t GhostTrainTrackPiecesQuarterTurn1Tile[4] = { +static constexpr uint32_t GhostTrainTrackPiecesQuarterTurn1Tile[4] = { SprGhostTrainQuarterTurn1TileSwNw, SprGhostTrainQuarterTurn1TileNwNe, SprGhostTrainQuarterTurn1TileNeSe, SprGhostTrainQuarterTurn1TileSeSw, }; -static constexpr const uint32_t GhostTrainTrackPiecesQuarterTurn3Tiles[4][3] = { +static constexpr uint32_t GhostTrainTrackPiecesQuarterTurn3Tiles[4][3] = { { SprGhostTrainQuarterTurn3TilesSwSePart0, SprGhostTrainQuarterTurn3TilesSwSePart1, @@ -125,21 +125,21 @@ static constexpr const uint32_t GhostTrainTrackPiecesQuarterTurn3Tiles[4][3] = { }, }; -static constexpr const uint32_t ghost_train_track_pieces_spinning_tunnel_track[4] = { +static constexpr uint32_t ghost_train_track_pieces_spinning_tunnel_track[4] = { SprGhostTrainSpinningTunnelTrackSwNe, SprGhostTrainSpinningTunnelTrackNwSe, SprGhostTrainSpinningTunnelTrackSwNe, SprGhostTrainSpinningTunnelTrackNwSe, }; -static constexpr const uint32_t GhostTrainTrackPiecesBrakes[4] = { +static constexpr uint32_t GhostTrainTrackPiecesBrakes[4] = { SprGhostTrainTrackBrakesSwNe, SprGhostTrainTrackBrakesNwSe, SprGhostTrainTrackBrakesSwNe, SprGhostTrainTrackBrakesNwSe, }; -static constexpr const uint8_t DoorOpeningOutwardsToImage[] = { +static constexpr uint8_t DoorOpeningOutwardsToImage[] = { TUNNEL_DOORS_2, // Closed TUNNEL_DOORS_2, // Unused? TUNNEL_DOORS_3, // Half open @@ -149,7 +149,7 @@ static constexpr const uint8_t DoorOpeningOutwardsToImage[] = { TUNNEL_DOORS_2, // Unused? }; -static constexpr const uint8_t DoorOpeningInwardsToImage[] = { +static constexpr uint8_t DoorOpeningInwardsToImage[] = { TUNNEL_DOORS_2, // Closed TUNNEL_DOORS_2, // Unused? TUNNEL_DOORS_5, // Half open @@ -373,7 +373,7 @@ static void PaintGhostTrainStation( { ImageId imageId; - static constexpr const std::array imageIds = { + static constexpr std::array imageIds = { SPR_STATION_BASE_B_SW_NE, SPR_STATION_BASE_B_NW_SE, SPR_STATION_BASE_B_SW_NE, diff --git a/src/openrct2/ride/gentle/Maze.cpp b/src/openrct2/ride/gentle/Maze.cpp index 50a4502f53..be2f4e62b8 100644 --- a/src/openrct2/ride/gentle/Maze.cpp +++ b/src/openrct2/ride/gentle/Maze.cpp @@ -155,31 +155,26 @@ static void MazePaintSetup( if (mazeEntry & (MAZE_ENTRY_FLAG_12 | MAZE_ENTRY_FLAG_13)) PaintAddImageAsParent(session, imageId, { 30, 0, height }, { { 30, 1, height + 2 }, { 1, 1, 9 } }); + imageId = baseImage.WithIndexOffset(SprMazeOffsetColumnTopLeft); if (mazeEntry & (MAZE_ENTRY_FLAG_0 | MAZE_ENTRY_FLAG_13 | MAZE_ENTRY_FLAG_14)) - PaintAddImageAsParent( - session, ImageId(baseImageId + SprMazeOffsetColumnTopLeft), { 14, 0, height }, - { { 15, 1, height + 2 }, { 2, 1, 9 } }); + PaintAddImageAsParent(session, imageId, { 14, 0, height }, { { 15, 1, height + 2 }, { 2, 1, 9 } }); + imageId = baseImage.WithIndexOffset(SprMazeOffsetColumnBottomRight); if (mazeEntry & (MAZE_ENTRY_FLAG_5 | MAZE_ENTRY_FLAG_6 | MAZE_ENTRY_FLAG_8)) - PaintAddImageAsParent( - session, ImageId(baseImageId + SprMazeOffsetColumnBottomRight), { 14, 30, height }, - { { 15, 30, height + 2 }, { 2, 1, 9 } }); + PaintAddImageAsParent(session, imageId, { 14, 30, height }, { { 15, 30, height + 2 }, { 2, 1, 9 } }); + imageId = baseImage.WithIndexOffset(SprMazeOffsetColumnTopRight); if (mazeEntry & (MAZE_ENTRY_FLAG_1 | MAZE_ENTRY_FLAG_2 | MAZE_ENTRY_FLAG_4)) - PaintAddImageAsParent( - session, ImageId(baseImageId + SprMazeOffsetColumnTopRight), { 0, 14, height }, - { { 1, 15, height + 2 }, { 1, 2, 9 } }); + PaintAddImageAsParent(session, imageId, { 0, 14, height }, { { 1, 15, height + 2 }, { 1, 2, 9 } }); + imageId = baseImage.WithIndexOffset(SprMazeOffsetColumnBottomLeft); if (mazeEntry & (MAZE_ENTRY_FLAG_9 | MAZE_ENTRY_FLAG_10 | MAZE_ENTRY_FLAG_12)) - PaintAddImageAsParent( - session, ImageId(baseImageId + SprMazeOffsetColumnBottomLeft), { 30, 14, height }, - { { 30, 15, height + 2 }, { 1, 2, 9 } }); + PaintAddImageAsParent(session, imageId, { 30, 14, height }, { { 30, 15, height + 2 }, { 1, 2, 9 } }); if (mazeEntry & (MAZE_ENTRY_FLAG_2 | MAZE_ENTRY_FLAG_6 | MAZE_ENTRY_FLAG_10 | MAZE_ENTRY_FLAG_14)) { - PaintAddImageAsParent( - session, ImageId(baseImageId + SprMazeOffsetColumnCentre), { 14, 14, height }, - { { 15, 15, height + 2 }, { 2, 2, 8 } }); + imageId = baseImage.WithIndexOffset(SprMazeOffsetColumnCentre); + PaintAddImageAsParent(session, imageId, { 14, 14, height }, { { 15, 15, height + 2 }, { 2, 2, 8 } }); PaintUtilSetSegmentSupportHeight(session, SEGMENT_C4, height + 12, 0x20); } diff --git a/src/openrct2/ride/gentle/MerryGoRound.cpp b/src/openrct2/ride/gentle/MerryGoRound.cpp index 3ac04bf425..7e1e868af3 100644 --- a/src/openrct2/ride/gentle/MerryGoRound.cpp +++ b/src/openrct2/ride/gentle/MerryGoRound.cpp @@ -17,11 +17,11 @@ #include "../TrackPaint.h" #include "../Vehicle.h" -static constexpr const uint32_t MerryGoRoundRiderOffsets[] = { +static constexpr uint32_t MerryGoRoundRiderOffsets[] = { 0, 32, 64, 96, 16, 48, 80, 112, }; -static constexpr const uint16_t MerryGoRoundBreakdownVibration[] = { +static constexpr uint16_t MerryGoRoundBreakdownVibration[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 0, }; diff --git a/src/openrct2/ride/gentle/MiniGolf.cpp b/src/openrct2/ride/gentle/MiniGolf.cpp index 315599e980..3f5ad5bb25 100644 --- a/src/openrct2/ride/gentle/MiniGolf.cpp +++ b/src/openrct2/ride/gentle/MiniGolf.cpp @@ -186,7 +186,7 @@ enum SprMiniGolfHoleETrimPart3SwNw = 14556, }; -static constexpr const uint32_t MiniGolfTrackSprites25DegUp[][3] = { +static constexpr uint32_t MiniGolfTrackSprites25DegUp[][3] = { { SprMiniGolf25DegUpSwNe, SprMiniGolf25DegUpFenceBackSwNe, @@ -209,7 +209,7 @@ static constexpr const uint32_t MiniGolfTrackSprites25DegUp[][3] = { }, }; -static constexpr const uint32_t MiniGolfTrackSpritesFlatTo25DegUp[][3] = { +static constexpr uint32_t MiniGolfTrackSpritesFlatTo25DegUp[][3] = { { SprMiniGolfFlatTo25DegUpSwNe, SprMiniGolfFlatTo25DegUpFenceBackSwNe, @@ -232,7 +232,7 @@ static constexpr const uint32_t MiniGolfTrackSpritesFlatTo25DegUp[][3] = { }, }; -static constexpr const uint32_t MiniGolfTrackSprites25DegUpToFlat[][3] = { +static constexpr uint32_t MiniGolfTrackSprites25DegUpToFlat[][3] = { { SprMiniGolf25DegUpToFlatSwNe, SprMiniGolf25DegUpToFlatFenceBackSwNe, @@ -255,21 +255,21 @@ static constexpr const uint32_t MiniGolfTrackSprites25DegUpToFlat[][3] = { }, }; -static constexpr const uint32_t MiniGolfTrackSpritesQuarterTurn1Tile[] = { +static constexpr uint32_t MiniGolfTrackSpritesQuarterTurn1Tile[] = { SprMiniGolfQuarterTurn1TileSwNw, SprMiniGolfQuarterTurn1TileNwNe, SprMiniGolfQuarterTurn1TileNeSe, SprMiniGolfQuarterTurn1TileSeSw, }; -static constexpr const uint32_t MiniGolfTrackSpritesQuarterTurn1TileFenceFront[] = { +static constexpr uint32_t MiniGolfTrackSpritesQuarterTurn1TileFenceFront[] = { SprMiniGolfQuarterTurn1TileFenceFrontSwNw, SprMiniGolfQuarterTurn1TileFenceFrontNwNe, SprMiniGolfQuarterTurn1TileFenceFrontNeSe, SprMiniGolfQuarterTurn1TileFenceFrontSeSw, }; -static constexpr const uint32_t MiniGolfTrackSpritesHoleA[4][2][2] = { +static constexpr uint32_t MiniGolfTrackSpritesHoleA[4][2][2] = { { { SprMiniGolfHoleABasePart1SwNe, SprMiniGolfHoleATrimPart1SwNe }, { SprMiniGolfHoleABasePart2SwNe, SprMiniGolfHoleATrimPart2SwNe }, @@ -288,7 +288,7 @@ static constexpr const uint32_t MiniGolfTrackSpritesHoleA[4][2][2] = { }, }; -static constexpr const uint32_t MiniGolfTrackSpritesHoleB[4][2][2] = { +static constexpr uint32_t MiniGolfTrackSpritesHoleB[4][2][2] = { { { SprMiniGolfHoleBBasePart1SwNe, SprMiniGolfHoleBTrimPart1SwNe }, { SprMiniGolfHoleBBasePart2SwNe, SprMiniGolfHoleBTrimPart2SwNe }, @@ -307,7 +307,7 @@ static constexpr const uint32_t MiniGolfTrackSpritesHoleB[4][2][2] = { }, }; -static constexpr const uint32_t MiniGolfTrackSpritesHoleC[][2][2] = { +static constexpr uint32_t MiniGolfTrackSpritesHoleC[][2][2] = { { { SprMiniGolfHoleCBasePart1SwNe, SprMiniGolfHoleCTrimPart1SwNe }, { SprMiniGolfHoleCBasePart2SwNe, SprMiniGolfHoleCTrimPart2SwNe }, @@ -326,7 +326,7 @@ static constexpr const uint32_t MiniGolfTrackSpritesHoleC[][2][2] = { }, }; -static constexpr const uint32_t MiniGolfTrackSpritesHoleD[][3][2] = { +static constexpr uint32_t MiniGolfTrackSpritesHoleD[][3][2] = { { { SprMiniGolfHoleDBasePart1SwSe, SprMiniGolfHoleDTrimPart1SwSe }, { SprMiniGolfHoleDBasePart2SwSe, SprMiniGolfHoleDTrimPart2SwSe }, @@ -349,7 +349,7 @@ static constexpr const uint32_t MiniGolfTrackSpritesHoleD[][3][2] = { }, }; -static constexpr const uint32_t MiniGolfTrackSpritesHoleE[][3][2] = { +static constexpr uint32_t MiniGolfTrackSpritesHoleE[][3][2] = { { { SprMiniGolfHoleEBasePart1SwNw, SprMiniGolfHoleETrimPart1SwNw }, { SprMiniGolfHoleEBasePart2SwNw, SprMiniGolfHoleETrimPart2SwNw }, @@ -374,47 +374,47 @@ static constexpr const uint32_t MiniGolfTrackSpritesHoleE[][3][2] = { /** rct2: 0x00933471 */ // clang-format off -static constexpr const uint8_t MiniGolfPeepAnimationFramesWalk[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesWalk[] = { 0, 1, 2, 3, 4, 5, }; /** rct2: 0x00933478 */ -static constexpr const uint8_t MiniGolfPeepAnimationFramesPlaceBallDownwards[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesPlaceBallDownwards[] = { 12, 13, 14, 15, }; /** rct2: 0x009334B5 */ -static constexpr const uint8_t MiniGolfPeepAnimationFramesSwing[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesSwing[] = { 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 33, 33, 33, 34, }; /** rct2: 0x0093347D */ -static constexpr const uint8_t MiniGolfPeepAnimationFramesSwingLeft[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesSwingLeft[] = { 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 9, }; /** rct2: 0x0093348D */ -static constexpr const uint8_t MiniGolfPeepAnimationFramesPickupBall[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesPickupBall[] = { 12, 13, 14, 15, 14, 13, 12, }; /** rct2: 0x00933495 */ -static constexpr const uint8_t MiniGolfPeepAnimationFramesJump[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesJump[] = { 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, }; /** rct2: 0x009334A5 */ -static constexpr const uint8_t MiniGolfPeepAnimationFramesPlaceBallUpwards[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesPlaceBallUpwards[] = { 15, 14, 13, 12, }; /** rct2: 0x009334C5 */ -static constexpr const uint8_t MiniGolfPeepAnimationFramesPutt[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesPutt[] = { 35, 36, 36, 36, 36, 36, 35, 35, 35, 35, }; /** rct2: 0x009334AA */ -static constexpr const uint8_t MiniGolfPeepAnimationFramesPuttLeft[] = { +static constexpr uint8_t MiniGolfPeepAnimationFramesPuttLeft[] = { 10, 11, 11, 11, 11, 11, 10, 10, 10, 10, }; diff --git a/src/openrct2/ride/gentle/MiniHelicopters.cpp b/src/openrct2/ride/gentle/MiniHelicopters.cpp index 2b0fa28acc..4d60d604fc 100644 --- a/src/openrct2/ride/gentle/MiniHelicopters.cpp +++ b/src/openrct2/ride/gentle/MiniHelicopters.cpp @@ -272,7 +272,7 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const uint8_t MiniHelicoptersRightQuarterTurn3TilesToLeftTurnMap[] = { +static constexpr uint8_t MiniHelicoptersRightQuarterTurn3TilesToLeftTurnMap[] = { 3, 1, 2, diff --git a/src/openrct2/ride/gentle/MonorailCycles.cpp b/src/openrct2/ride/gentle/MonorailCycles.cpp index 696faa6758..6880b43a62 100644 --- a/src/openrct2/ride/gentle/MonorailCycles.cpp +++ b/src/openrct2/ride/gentle/MonorailCycles.cpp @@ -70,12 +70,12 @@ enum SprMonorailCyclesSBendRightNwSePart3 = 16869, }; -static constexpr const uint32_t MonorailCyclesTrackPiecesFlat[2] = { +static constexpr uint32_t MonorailCyclesTrackPiecesFlat[2] = { SprMonorailCyclesFlatSwNe, SprMonorailCyclesFlatNwSe, }; -static constexpr const uint32_t MonorailCyclesTrackPiecesFlatQuarterTurn5Tiles[4][5] = { +static constexpr uint32_t MonorailCyclesTrackPiecesFlatQuarterTurn5Tiles[4][5] = { { SprMonorailCyclesFlatQuarterTurn5TilesSwSePart0, SprMonorailCyclesFlatQuarterTurn5TilesSwSePart1, @@ -106,7 +106,7 @@ static constexpr const uint32_t MonorailCyclesTrackPiecesFlatQuarterTurn5Tiles[4 }, }; -static constexpr const uint32_t MonorailCyclesTrackPiecesSBendLeft[2][4] = { +static constexpr uint32_t MonorailCyclesTrackPiecesSBendLeft[2][4] = { { SprMonorailCyclesSBendLeftSwNePart0, SprMonorailCyclesSBendLeftSwNePart1, @@ -121,7 +121,7 @@ static constexpr const uint32_t MonorailCyclesTrackPiecesSBendLeft[2][4] = { }, }; -static constexpr const uint32_t MonorailCyclesTrackPiecesSBendRight[2][4] = { +static constexpr uint32_t MonorailCyclesTrackPiecesSBendRight[2][4] = { { SprMonorailCyclesSBendRightSwNePart0, SprMonorailCyclesSBendRightSwNePart1, @@ -136,7 +136,7 @@ static constexpr const uint32_t MonorailCyclesTrackPiecesSBendRight[2][4] = { }, }; -static constexpr const uint32_t MonorailCyclesTrackPiecesFlatQuarterTurn3Tiles[4][3] = { +static constexpr uint32_t MonorailCyclesTrackPiecesFlatQuarterTurn3Tiles[4][3] = { { SprMonorailCyclesFlatQuarterTurn3TilesSwSePart0, SprMonorailCyclesFlatQuarterTurn3TilesSwSePart1, @@ -254,7 +254,7 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const uint8_t monorail_cycles_right_quarter_turn_3_tiles_to_left_turn_map[] = { +static constexpr uint8_t monorail_cycles_right_quarter_turn_3_tiles_to_left_turn_map[] = { 3, 1, 2, @@ -270,14 +270,14 @@ static void PaintMonorailCyclesTrackRightQuarterTurn3Tiles( PaintMonorailCyclesTrackLeftQuarterTurn3Tiles(session, ride, trackSequence, (direction + 3) % 4, height, trackElement); } -static constexpr const int8_t MonorailCyclesTrackRightQuarterTurn5TilesSupportHeightOffset[][7] = { +static constexpr int8_t MonorailCyclesTrackRightQuarterTurn5TilesSupportHeightOffset[][7] = { { -2, 0, -2, 0, 0, -3, -1 }, { -3, 0, 0, 0, 0, 0, 0 }, { 0 }, { 0, 0, 0, 0, 0, -2, -3 }, }; -static constexpr const int8_t MonorailCyclesTrackRightQuarterTurn5TilesSupportSpecial[][7] = { +static constexpr int8_t MonorailCyclesTrackRightQuarterTurn5TilesSupportSpecial[][7] = { { 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 1 }, { 0, 0, 1, 0, 0, 1, 1 }, diff --git a/src/openrct2/ride/gentle/SpaceRings.cpp b/src/openrct2/ride/gentle/SpaceRings.cpp index d382252680..5222bd60a6 100644 --- a/src/openrct2/ride/gentle/SpaceRings.cpp +++ b/src/openrct2/ride/gentle/SpaceRings.cpp @@ -25,7 +25,7 @@ enum SprSpaceRingsFenceNw = 22149, }; -static constexpr const uint32_t SpaceRingsFenceSprites[] = { +static constexpr uint32_t SpaceRingsFenceSprites[] = { SprSpaceRingsFenceNe, SprSpaceRingsFenceSe, SprSpaceRingsFenceSw, diff --git a/src/openrct2/ride/gentle/meta/CarRide.h b/src/openrct2/ride/gentle/meta/CarRide.h index a26d559d46..1b75948d64 100644 --- a/src/openrct2/ride/gentle/meta/CarRide.h +++ b/src/openrct2/ride/gentle/meta/CarRide.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor CarRideRTD = +constexpr RideTypeDescriptor CarRideRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), diff --git a/src/openrct2/ride/gentle/meta/Circus.h b/src/openrct2/ride/gentle/meta/Circus.h index 3132d8d7ce..3c0f85a131 100644 --- a/src/openrct2/ride/gentle/meta/Circus.h +++ b/src/openrct2/ride/gentle/meta/Circus.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor CircusRTD = +constexpr RideTypeDescriptor CircusRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -24,10 +24,11 @@ constexpr const RideTypeDescriptor CircusRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionCircus), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_MUSIC_ON_DEFAULT | - RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | + RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | + RIDE_TYPE_FLAG_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Circus)), SET_FIELD(DefaultMode, RideMode::Circus), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/gentle/meta/CrookedHouse.h b/src/openrct2/ride/gentle/meta/CrookedHouse.h index 9a4105bb79..d3029647a4 100644 --- a/src/openrct2/ride/gentle/meta/CrookedHouse.h +++ b/src/openrct2/ride/gentle/meta/CrookedHouse.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor CrookedHouseRTD = +constexpr RideTypeDescriptor CrookedHouseRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -24,9 +24,10 @@ constexpr const RideTypeDescriptor CrookedHouseRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionCrookedHouse), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | + RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_ALLOW_MUSIC | + RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::CrookedHouse)), SET_FIELD(DefaultMode, RideMode::CrookedHouse), diff --git a/src/openrct2/ride/gentle/meta/Dodgems.h b/src/openrct2/ride/gentle/meta/Dodgems.h index 5cf3ae6b27..a8a9d0a5e2 100644 --- a/src/openrct2/ride/gentle/meta/Dodgems.h +++ b/src/openrct2/ride/gentle/meta/Dodgems.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor DodgemsRTD = +constexpr RideTypeDescriptor DodgemsRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -25,10 +25,11 @@ constexpr const RideTypeDescriptor DodgemsRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack4x4), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionDodgems), - SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | - RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG_ALLOW_MUSIC | - RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SLIGHTLY_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | + RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_MUSIC_ON_DEFAULT | + RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | + RIDE_TYPE_FLAG_SLIGHTLY_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Dodgems)), SET_FIELD(DefaultMode, RideMode::Dodgems), SET_FIELD(OperatingSettings, { 20, 180, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/gentle/meta/FerrisWheel.h b/src/openrct2/ride/gentle/meta/FerrisWheel.h index 453f659856..1430053a78 100644 --- a/src/openrct2/ride/gentle/meta/FerrisWheel.h +++ b/src/openrct2/ride/gentle/meta/FerrisWheel.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor FerrisWheelRTD = +constexpr RideTypeDescriptor FerrisWheelRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -24,10 +24,11 @@ constexpr const RideTypeDescriptor FerrisWheelRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x4C), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionFerrisWheel), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | - RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_SLIGHTLY_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | + RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | + RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + RIDE_TYPE_FLAG_SLIGHTLY_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::ForwardRotation, RideMode::BackwardRotation)), SET_FIELD(DefaultMode, RideMode::ForwardRotation), SET_FIELD(OperatingSettings, { 1, 3, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/gentle/meta/FlyingSaucers.h b/src/openrct2/ride/gentle/meta/FlyingSaucers.h index e9308d823d..a267ccffe8 100644 --- a/src/openrct2/ride/gentle/meta/FlyingSaucers.h +++ b/src/openrct2/ride/gentle/meta/FlyingSaucers.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor FlyingSaucersRTD = +constexpr RideTypeDescriptor FlyingSaucersRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -24,11 +24,12 @@ constexpr const RideTypeDescriptor FlyingSaucersRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack4x4), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionFlyingSaucers), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | - RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_HAS_NO_TRACK | + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL | + RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | - RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | + RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Dodgems)), SET_FIELD(DefaultMode, RideMode::Dodgems), SET_FIELD(OperatingSettings, { 20, 180, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/gentle/meta/GhostTrain.h b/src/openrct2/ride/gentle/meta/GhostTrain.h index dc506379b9..378593419a 100644 --- a/src/openrct2/ride/gentle/meta/GhostTrain.h +++ b/src/openrct2/ride/gentle/meta/GhostTrain.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor GhostTrainRTD = +constexpr RideTypeDescriptor GhostTrainRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), diff --git a/src/openrct2/ride/gentle/meta/HauntedHouse.h b/src/openrct2/ride/gentle/meta/HauntedHouse.h index 1e33059fe7..447447f010 100644 --- a/src/openrct2/ride/gentle/meta/HauntedHouse.h +++ b/src/openrct2/ride/gentle/meta/HauntedHouse.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor HauntedHouseRTD = +constexpr RideTypeDescriptor HauntedHouseRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -24,9 +24,10 @@ constexpr const RideTypeDescriptor HauntedHouseRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionHauntedHouse), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | + RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_ALLOW_MUSIC | + RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::HauntedHouse)), SET_FIELD(DefaultMode, RideMode::HauntedHouse), diff --git a/src/openrct2/ride/gentle/meta/Maze.h b/src/openrct2/ride/gentle/meta/Maze.h index 92772f7fd5..0f1a8328dd 100644 --- a/src/openrct2/ride/gentle/meta/Maze.h +++ b/src/openrct2/ride/gentle/meta/Maze.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MazeRTD = +constexpr RideTypeDescriptor MazeRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), diff --git a/src/openrct2/ride/gentle/meta/MerryGoRound.h b/src/openrct2/ride/gentle/meta/MerryGoRound.h index bee3a74958..b26c2119ba 100644 --- a/src/openrct2/ride/gentle/meta/MerryGoRound.h +++ b/src/openrct2/ride/gentle/meta/MerryGoRound.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MerryGoRoundRTD = +constexpr RideTypeDescriptor MerryGoRoundRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -24,10 +24,11 @@ constexpr const RideTypeDescriptor MerryGoRoundRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMerryGoRound), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG_ALLOW_MUSIC | - RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | + RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_MUSIC_ON_DEFAULT | + RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Rotation)), SET_FIELD(DefaultMode, RideMode::Rotation), SET_FIELD(OperatingSettings, { 4, 25, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/gentle/meta/MiniGolf.h b/src/openrct2/ride/gentle/meta/MiniGolf.h index ff93fd3bad..0653e8df9a 100644 --- a/src/openrct2/ride/gentle/meta/MiniGolf.h +++ b/src/openrct2/ride/gentle/meta/MiniGolf.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MiniGolfRTD = +constexpr RideTypeDescriptor MiniGolfRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), diff --git a/src/openrct2/ride/gentle/meta/MiniHelicopters.h b/src/openrct2/ride/gentle/meta/MiniHelicopters.h index cf7fcf9634..0cf53f7e37 100644 --- a/src/openrct2/ride/gentle/meta/MiniHelicopters.h +++ b/src/openrct2/ride/gentle/meta/MiniHelicopters.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MiniHelicoptersRTD = +constexpr RideTypeDescriptor MiniHelicoptersRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), diff --git a/src/openrct2/ride/gentle/meta/MonorailCycles.h b/src/openrct2/ride/gentle/meta/MonorailCycles.h index bb265fbed6..a7d4bb7a84 100644 --- a/src/openrct2/ride/gentle/meta/MonorailCycles.h +++ b/src/openrct2/ride/gentle/meta/MonorailCycles.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MonorailCyclesRTD = +constexpr RideTypeDescriptor MonorailCyclesRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), diff --git a/src/openrct2/ride/gentle/meta/MonsterTrucks.h b/src/openrct2/ride/gentle/meta/MonsterTrucks.h index 7ce9b5f597..73342ab313 100644 --- a/src/openrct2/ride/gentle/meta/MonsterTrucks.h +++ b/src/openrct2/ride/gentle/meta/MonsterTrucks.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MonsterTrucksRTD = +constexpr RideTypeDescriptor MonsterTrucksRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), diff --git a/src/openrct2/ride/gentle/meta/ObservationTower.h b/src/openrct2/ride/gentle/meta/ObservationTower.h index b87c0d8f5e..b5ec0c2aa4 100644 --- a/src/openrct2/ride/gentle/meta/ObservationTower.h +++ b/src/openrct2/ride/gentle/meta/ObservationTower.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor ObservationTowerRTD = +constexpr RideTypeDescriptor ObservationTowerRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), diff --git a/src/openrct2/ride/gentle/meta/SpaceRings.h b/src/openrct2/ride/gentle/meta/SpaceRings.h index 5bc6ae6017..34f88cefa3 100644 --- a/src/openrct2/ride/gentle/meta/SpaceRings.h +++ b/src/openrct2/ride/gentle/meta/SpaceRings.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SpaceRingsRTD = +constexpr RideTypeDescriptor SpaceRingsRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -25,7 +25,7 @@ constexpr const RideTypeDescriptor SpaceRingsRTD = SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSpaceRings), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | + RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_SLIGHTLY_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::SpaceRings)), diff --git a/src/openrct2/ride/gentle/meta/SpiralSlide.h b/src/openrct2/ride/gentle/meta/SpiralSlide.h index 1d57a2ba20..dc2a694c01 100644 --- a/src/openrct2/ride/gentle/meta/SpiralSlide.h +++ b/src/openrct2/ride/gentle/meta/SpiralSlide.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SpiralSlideRTD = +constexpr RideTypeDescriptor SpiralSlideRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_GENTLE), @@ -24,9 +24,10 @@ constexpr const RideTypeDescriptor SpiralSlideRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack2x2), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSpiralSlide), - SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | - RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_TRACK_NO_WALLS | - RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | + SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | + RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | + RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_ALLOW_MUSIC | + RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY | RIDE_TYPE_FLAG_IS_SPIRAL_SLIDE), SET_FIELD(RideModes, EnumsToFlags(RideMode::SingleRidePerAdmission, RideMode::UnlimitedRidesPerAdmission)), SET_FIELD(DefaultMode, RideMode::SingleRidePerAdmission), diff --git a/src/openrct2/ride/shops/meta/CashMachine.h b/src/openrct2/ride/shops/meta/CashMachine.h index 9777b990eb..6d32b05800 100644 --- a/src/openrct2/ride/shops/meta/CashMachine.h +++ b/src/openrct2/ride/shops/meta/CashMachine.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor CashMachineRTD = +constexpr RideTypeDescriptor CashMachineRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_SHOP), @@ -23,8 +23,9 @@ constexpr const RideTypeDescriptor CashMachineRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_IS_CASH_MACHINE | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | + RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_IS_CASH_MACHINE | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | + RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::ShopStall)), SET_FIELD(DefaultMode, RideMode::ShopStall), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/shops/meta/DrinkStall.h b/src/openrct2/ride/shops/meta/DrinkStall.h index 5d3e9e7686..ae43c8ea80 100644 --- a/src/openrct2/ride/shops/meta/DrinkStall.h +++ b/src/openrct2/ride/shops/meta/DrinkStall.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor DrinkStallRTD = +constexpr RideTypeDescriptor DrinkStallRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_SHOP), @@ -23,9 +23,10 @@ constexpr const RideTypeDescriptor DrinkStallRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_SELLS_DRINKS | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | + RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_SELLS_DRINKS | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY | + RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN), SET_FIELD(RideModes, EnumsToFlags(RideMode::ShopStall)), SET_FIELD(DefaultMode, RideMode::ShopStall), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/shops/meta/FirstAid.h b/src/openrct2/ride/shops/meta/FirstAid.h index f3dc8ea1da..119206ff88 100644 --- a/src/openrct2/ride/shops/meta/FirstAid.h +++ b/src/openrct2/ride/shops/meta/FirstAid.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor FirstAidRTD = +constexpr RideTypeDescriptor FirstAidRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_SHOP), @@ -23,9 +23,10 @@ constexpr const RideTypeDescriptor FirstAidRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionFacility), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_IS_FIRST_AID | - RIDE_TYPE_FLAG_PEEP_SHOULD_GO_INSIDE_FACILITY | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | + RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_IS_FIRST_AID | RIDE_TYPE_FLAG_PEEP_SHOULD_GO_INSIDE_FACILITY | + RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::ShopStall)), SET_FIELD(DefaultMode, RideMode::ShopStall), SET_FIELD(OperatingSettings, { 8, 8, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/shops/meta/FoodStall.h b/src/openrct2/ride/shops/meta/FoodStall.h index 95c4d05e00..13c68c4370 100644 --- a/src/openrct2/ride/shops/meta/FoodStall.h +++ b/src/openrct2/ride/shops/meta/FoodStall.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor FoodStallRTD = +constexpr RideTypeDescriptor FoodStallRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_SHOP), @@ -23,9 +23,10 @@ constexpr const RideTypeDescriptor FoodStallRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_SELLS_FOOD | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | + RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_SELLS_FOOD | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY | + RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN), SET_FIELD(RideModes, EnumsToFlags(RideMode::ShopStall)), SET_FIELD(DefaultMode, RideMode::ShopStall), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/shops/meta/InformationKiosk.h b/src/openrct2/ride/shops/meta/InformationKiosk.h index a8a32d78fe..0ff7ff75cb 100644 --- a/src/openrct2/ride/shops/meta/InformationKiosk.h +++ b/src/openrct2/ride/shops/meta/InformationKiosk.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor InformationKioskRTD = +constexpr RideTypeDescriptor InformationKioskRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_SHOP), @@ -23,9 +23,10 @@ constexpr const RideTypeDescriptor InformationKioskRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1B), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | - RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | - RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | + RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | + RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | + RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::ShopStall)), SET_FIELD(DefaultMode, RideMode::ShopStall), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/shops/meta/Shop.h b/src/openrct2/ride/shops/meta/Shop.h index 508eebd52a..f05ffd9f16 100644 --- a/src/openrct2/ride/shops/meta/Shop.h +++ b/src/openrct2/ride/shops/meta/Shop.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor ShopRTD = +constexpr RideTypeDescriptor ShopRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_SHOP), @@ -23,9 +23,10 @@ constexpr const RideTypeDescriptor ShopRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | - RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | - RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | + RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | + RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | + RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::ShopStall)), SET_FIELD(DefaultMode, RideMode::ShopStall), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/shops/meta/Toilets.h b/src/openrct2/ride/shops/meta/Toilets.h index a04101289e..d3b6f305e2 100644 --- a/src/openrct2/ride/shops/meta/Toilets.h +++ b/src/openrct2/ride/shops/meta/Toilets.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor ToiletsRTD = +constexpr RideTypeDescriptor ToiletsRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_SHOP), @@ -23,9 +23,10 @@ constexpr const RideTypeDescriptor ToiletsRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionFacility), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_PEEP_SHOULD_GO_INSIDE_FACILITY | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_IS_TOILET | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | + RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_PEEP_SHOULD_GO_INSIDE_FACILITY | RIDE_TYPE_FLAG_IN_RIDE | + RIDE_TYPE_FLAG_IS_TOILET | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::ShopStall)), SET_FIELD(DefaultMode, RideMode::ShopStall), SET_FIELD(OperatingSettings, { 4, 4, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/thrill/GoKarts.cpp b/src/openrct2/ride/thrill/GoKarts.cpp index 2b17b0d8dc..e57418d552 100644 --- a/src/openrct2/ride/thrill/GoKarts.cpp +++ b/src/openrct2/ride/thrill/GoKarts.cpp @@ -89,35 +89,35 @@ enum SPR_GO_KARTS_START_LIGHTS_GREEN_SE_NW = 20819, }; -static constexpr const uint32_t go_karts_track_pieces_starting_grid_end[4][2] = { +static constexpr uint32_t go_karts_track_pieces_starting_grid_end[4][2] = { { SPR_GO_KARTS_STARTING_GRID_END_SW_NE, SPR_GO_KARTS_STARTING_GRID_END_FRONT_SW_NE }, { SPR_GO_KARTS_STARTING_GRID_END_NW_SE, SPR_GO_KARTS_STARTING_GRID_END_FRONT_NW_SE }, { SPR_GO_KARTS_STARTING_GRID_END_NE_SW, SPR_GO_KARTS_STARTING_GRID_END_FRONT_NE_SW }, { SPR_GO_KARTS_STARTING_GRID_END_SE_NW, SPR_GO_KARTS_STARTING_GRID_END_FRONT_SE_NW }, }; -static constexpr const uint32_t go_karts_track_pieces_starting_grid[4][2] = { +static constexpr uint32_t go_karts_track_pieces_starting_grid[4][2] = { { SPR_GO_KARTS_STARTING_GRID_SW_NE, SPR_GO_KARTS_STARTING_GRID_FRONT_SW_NE }, { SPR_GO_KARTS_STARTING_GRID_NW_SE, SPR_GO_KARTS_STARTING_GRID_FRONT_NW_SE }, { SPR_GO_KARTS_STARTING_GRID_NE_SW, SPR_GO_KARTS_STARTING_GRID_FRONT_NE_SW }, { SPR_GO_KARTS_STARTING_GRID_SE_NW, SPR_GO_KARTS_STARTING_GRID_FRONT_SE_NW }, }; -static constexpr const uint32_t go_karts_track_pieces_25_deg_up[4][2] = { +static constexpr uint32_t go_karts_track_pieces_25_deg_up[4][2] = { { SPR_GO_KARTS_25_DEG_UP_SW_NE, SPR_GO_KARTS_25_DEG_UP_FRONT_SW_NE }, { SPR_GO_KARTS_25_DEG_UP_NW_SE, SPR_GO_KARTS_25_DEG_UP_FRONT_NW_SE }, { SPR_GO_KARTS_25_DEG_UP_NE_SW, SPR_GO_KARTS_25_DEG_UP_FRONT_NE_SW }, { SPR_GO_KARTS_25_DEG_UP_SE_NW, SPR_GO_KARTS_25_DEG_UP_FRONT_SE_NW }, }; -static constexpr const uint32_t go_karts_track_pieces_flat_to_25_deg_up[4][2] = { +static constexpr uint32_t go_karts_track_pieces_flat_to_25_deg_up[4][2] = { { SPR_GO_KARTS_FLAT_TO_25_DEG_UP_SW_NE, SPR_GO_KARTS_FLAT_TO_25_DEG_UP_FRONT_SW_NE }, { SPR_GO_KARTS_FLAT_TO_25_DEG_UP_NW_SE, SPR_GO_KARTS_FLAT_TO_25_DEG_UP_FRONT_NW_SE }, { SPR_GO_KARTS_FLAT_TO_25_DEG_UP_NE_SW, SPR_GO_KARTS_FLAT_TO_25_DEG_UP_FRONT_NE_SW }, { SPR_GO_KARTS_FLAT_TO_25_DEG_UP_SE_NW, SPR_GO_KARTS_FLAT_TO_25_DEG_UP_FRONT_SE_NW }, }; -static constexpr const uint32_t go_karts_track_pieces_25_deg_up_to_flat[4][2] = { +static constexpr uint32_t go_karts_track_pieces_25_deg_up_to_flat[4][2] = { { SPR_GO_KARTS_25_DEG_UP_TO_FLAT_SW_NE, SPR_GO_KARTS_25_DEG_UP_TO_FLAT_FRONT_SW_NE }, { SPR_GO_KARTS_25_DEG_UP_TO_FLAT_NW_SE, SPR_GO_KARTS_25_DEG_UP_TO_FLAT_FRONT_NW_SE }, { SPR_GO_KARTS_25_DEG_UP_TO_FLAT_NE_SW, SPR_GO_KARTS_25_DEG_UP_TO_FLAT_FRONT_NE_SW }, diff --git a/src/openrct2/ride/thrill/MagicCarpet.cpp b/src/openrct2/ride/thrill/MagicCarpet.cpp index 012ecb031d..19542c8b84 100644 --- a/src/openrct2/ride/thrill/MagicCarpet.cpp +++ b/src/openrct2/ride/thrill/MagicCarpet.cpp @@ -37,16 +37,16 @@ enum SPR_MAGIC_CARPET_PENDULUM_SW = 22102, }; -static constexpr const int16_t MagicCarpetOscillationZ[] = { +static constexpr int16_t MagicCarpetOscillationZ[] = { -2, -1, 1, 5, 10, 16, 23, 30, 37, 45, 52, 59, 65, 70, 74, 76, 77, 76, 74, 70, 65, 59, 52, 45, 37, 30, 23, 16, 10, 5, 1, -1, }; -static constexpr const int8_t MagicCarpetOscillationXY[] = { +static constexpr int8_t MagicCarpetOscillationXY[] = { 0, 6, 12, 18, 23, 27, 30, 31, 32, 31, 30, 27, 23, 18, 12, 6, 0, -5, -11, -17, -22, -26, -29, -30, -31, -30, -29, -26, -22, -17, -11, -5, }; -static constexpr const BoundBoxXY MagicCarpetBounds[] = { +static constexpr BoundBoxXY MagicCarpetBounds[] = { { { 0, 8 }, { 32, 16 } }, { { 8, 0 }, { 16, 32 } }, { { 0, 8 }, { 32, 16 } }, diff --git a/src/openrct2/ride/thrill/SwingingInverterShip.cpp b/src/openrct2/ride/thrill/SwingingInverterShip.cpp index 454c978787..df1712dc92 100644 --- a/src/openrct2/ride/thrill/SwingingInverterShip.cpp +++ b/src/openrct2/ride/thrill/SwingingInverterShip.cpp @@ -20,7 +20,7 @@ #include "../Vehicle.h" /** rct2: 0x01428010 */ -static constexpr const uint32_t SwingingInverterShipBaseSpriteOffset[] = { +static constexpr uint32_t SwingingInverterShipBaseSpriteOffset[] = { 0, 16, 0, @@ -28,7 +28,7 @@ static constexpr const uint32_t SwingingInverterShipBaseSpriteOffset[] = { }; /** rct2: 0x01428020 */ -static constexpr const uint32_t SwingingInverterShipAnimatingBaseSpriteOffset[] = { +static constexpr uint32_t SwingingInverterShipAnimatingBaseSpriteOffset[] = { 32, 33, 32, @@ -36,7 +36,7 @@ static constexpr const uint32_t SwingingInverterShipAnimatingBaseSpriteOffset[] }; /** rct2: 0x01428020 */ -static constexpr const BoundBoxXY SwingingInverterShipBounds[] = { +static constexpr BoundBoxXY SwingingInverterShipBounds[] = { { { 0, 8 }, { 32, 16 } }, { { 8, 0 }, { 16, 32 } }, { { 0, 8 }, { 32, 16 } }, @@ -51,7 +51,7 @@ enum SPR_SWINGING_INVERTER_SHIP_FRAME_3 = 22001, }; -static constexpr const uint32_t SwingingInverterShipFrameSprites[] = { +static constexpr uint32_t SwingingInverterShipFrameSprites[] = { SPR_SWINGING_INVERTER_SHIP_FRAME_0, SPR_SWINGING_INVERTER_SHIP_FRAME_1, SPR_SWINGING_INVERTER_SHIP_FRAME_2, diff --git a/src/openrct2/ride/thrill/SwingingShip.cpp b/src/openrct2/ride/thrill/SwingingShip.cpp index dab39ae2f3..b228dce4b4 100644 --- a/src/openrct2/ride/thrill/SwingingShip.cpp +++ b/src/openrct2/ride/thrill/SwingingShip.cpp @@ -20,14 +20,14 @@ #include "../Vehicle.h" // 1 2 0 3 4 -static constexpr const uint8_t track_map_1x5[][5] = { +static constexpr uint8_t track_map_1x5[][5] = { { 0, 1, 2, 3, 4 }, { 0, 4, 3, 2, 1 }, { 0, 4, 3, 2, 1 }, { 0, 1, 2, 3, 4 }, }; /** rct2: 0x008A83B0 */ -static constexpr const uint32_t SwingingShipBaseSpriteOffset[] = { +static constexpr uint32_t SwingingShipBaseSpriteOffset[] = { 0, 9, 0, @@ -35,7 +35,7 @@ static constexpr const uint32_t SwingingShipBaseSpriteOffset[] = { }; /** rct2: 0x008A83C0 */ -static constexpr const BoundBoxXY SwingingShipData[] = { +static constexpr BoundBoxXY SwingingShipData[] = { { { 1, 8 }, { 31, 16 } }, { { 8, 1 }, { 16, 31 } }, { { 1, 8 }, { 31, 16 } }, @@ -50,7 +50,7 @@ enum SPR_SWINGING_SHIP_FRAME_FRONT_NW_SE = 21997, }; -static constexpr const uint32_t SwingingShipFrameSprites[][2] = { +static constexpr uint32_t SwingingShipFrameSprites[][2] = { { SPR_SWINGING_SHIP_FRAME_SW_NE, SPR_SWINGING_SHIP_FRAME_FRONT_SW_NE }, { SPR_SWINGING_SHIP_FRAME_NW_SE, SPR_SWINGING_SHIP_FRAME_FRONT_NW_SE }, }; diff --git a/src/openrct2/ride/thrill/meta/3DCinema.h b/src/openrct2/ride/thrill/meta/3DCinema.h index 2f9c97b723..253904a018 100644 --- a/src/openrct2/ride/thrill/meta/3DCinema.h +++ b/src/openrct2/ride/thrill/meta/3DCinema.h @@ -15,7 +15,7 @@ // clang-format off // C++ does not allow names to start with a number, hence the absence of the '3D' prefix. -constexpr const RideTypeDescriptor CinemaRTD = +constexpr RideTypeDescriptor CinemaRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), @@ -24,10 +24,11 @@ constexpr const RideTypeDescriptor CinemaRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), SET_FIELD(TrackPaintFunction, GetTrackPaintFunction3dCinema), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | - RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | + RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | + RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::MouseTails3DFilm, RideMode::StormChasers3DFilm, RideMode::SpaceRaiders3DFilm)), SET_FIELD(DefaultMode, RideMode::MouseTails3DFilm), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/thrill/meta/Enterprise.h b/src/openrct2/ride/thrill/meta/Enterprise.h index 39f0a10098..3dffd48fcb 100644 --- a/src/openrct2/ride/thrill/meta/Enterprise.h +++ b/src/openrct2/ride/thrill/meta/Enterprise.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor EnterpriseRTD = +constexpr RideTypeDescriptor EnterpriseRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), @@ -23,11 +23,11 @@ constexpr const RideTypeDescriptor EnterpriseRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack4x4), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionEnterprise), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | - RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | - RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | + RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | + RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Rotation)), SET_FIELD(DefaultMode, RideMode::Rotation), SET_FIELD(OperatingSettings, { 10, 20, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/thrill/meta/GoKarts.h b/src/openrct2/ride/thrill/meta/GoKarts.h index 6eecb2cb98..d930a83294 100644 --- a/src/openrct2/ride/thrill/meta/GoKarts.h +++ b/src/openrct2/ride/thrill/meta/GoKarts.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor GoKartsRTD = +constexpr RideTypeDescriptor GoKartsRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), diff --git a/src/openrct2/ride/thrill/meta/LaunchedFreefall.h b/src/openrct2/ride/thrill/meta/LaunchedFreefall.h index b5644ab2e6..19b9ae22c7 100644 --- a/src/openrct2/ride/thrill/meta/LaunchedFreefall.h +++ b/src/openrct2/ride/thrill/meta/LaunchedFreefall.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor LaunchedFreefallRTD = +constexpr RideTypeDescriptor LaunchedFreefallRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), diff --git a/src/openrct2/ride/thrill/meta/MagicCarpet.h b/src/openrct2/ride/thrill/meta/MagicCarpet.h index ba3c09829d..c34d8983f4 100644 --- a/src/openrct2/ride/thrill/meta/MagicCarpet.h +++ b/src/openrct2/ride/thrill/meta/MagicCarpet.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MagicCarpetRTD = +constexpr RideTypeDescriptor MagicCarpetRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), @@ -24,8 +24,8 @@ constexpr const RideTypeDescriptor MagicCarpetRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x4A), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMagicCarpet), - SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | - RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | + SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | + RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), diff --git a/src/openrct2/ride/thrill/meta/MotionSimulator.h b/src/openrct2/ride/thrill/meta/MotionSimulator.h index d3e33c94c7..dada40f5c6 100644 --- a/src/openrct2/ride/thrill/meta/MotionSimulator.h +++ b/src/openrct2/ride/thrill/meta/MotionSimulator.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MotionSimulatorRTD = +constexpr RideTypeDescriptor MotionSimulatorRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), @@ -23,11 +23,11 @@ constexpr const RideTypeDescriptor MotionSimulatorRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack2x2), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMotionsimulator), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | - RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_SLIGHTLY_INTERESTING_TO_LOOK_AT | - RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | + RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | + RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + RIDE_TYPE_FLAG_SLIGHTLY_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::FilmAvengingAviators, RideMode::FilmThrillRiders)), SET_FIELD(DefaultMode, RideMode::FilmAvengingAviators), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/thrill/meta/RotoDrop.h b/src/openrct2/ride/thrill/meta/RotoDrop.h index 34caa17903..264c756add 100644 --- a/src/openrct2/ride/thrill/meta/RotoDrop.h +++ b/src/openrct2/ride/thrill/meta/RotoDrop.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor RotoDropRTD = +constexpr RideTypeDescriptor RotoDropRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), diff --git a/src/openrct2/ride/thrill/meta/SwingingInverterShip.h b/src/openrct2/ride/thrill/meta/SwingingInverterShip.h index 51c8fdb110..cc7b2564d6 100644 --- a/src/openrct2/ride/thrill/meta/SwingingInverterShip.h +++ b/src/openrct2/ride/thrill/meta/SwingingInverterShip.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SwingingInverterShipRTD = +constexpr RideTypeDescriptor SwingingInverterShipRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), @@ -24,10 +24,11 @@ constexpr const RideTypeDescriptor SwingingInverterShipRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x4B), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSwingingInverterShip), - SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | - RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | - RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | - RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | + RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | + RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | + RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Swing)), SET_FIELD(DefaultMode, RideMode::Swing), SET_FIELD(OperatingSettings, { 7, 15, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/thrill/meta/SwingingShip.h b/src/openrct2/ride/thrill/meta/SwingingShip.h index 1bf9374e59..cb62249c08 100644 --- a/src/openrct2/ride/thrill/meta/SwingingShip.h +++ b/src/openrct2/ride/thrill/meta/SwingingShip.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SwingingShipRTD = +constexpr RideTypeDescriptor SwingingShipRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), @@ -24,11 +24,12 @@ constexpr const RideTypeDescriptor SwingingShipRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x5), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSwingingShip), - SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | - RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | - RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | - RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | - RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | + RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | + RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | + RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | + RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | + RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Swing)), SET_FIELD(DefaultMode, RideMode::Swing), SET_FIELD(OperatingSettings, { 7, 25, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/thrill/meta/TopSpin.h b/src/openrct2/ride/thrill/meta/TopSpin.h index 5e5085d1c2..753976353e 100644 --- a/src/openrct2/ride/thrill/meta/TopSpin.h +++ b/src/openrct2/ride/thrill/meta/TopSpin.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor TopSpinRTD = +constexpr RideTypeDescriptor TopSpinRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), @@ -24,10 +24,11 @@ constexpr const RideTypeDescriptor TopSpinRTD = SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionTopspin), - SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | - RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | - RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | - RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), + SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | + RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | + RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | + RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | + RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Beginners, RideMode::Intense, RideMode::Berserk)), SET_FIELD(DefaultMode, RideMode::Beginners), SET_FIELD(OperatingSettings, { 0, 0, 0, 0, 0, 0 }), diff --git a/src/openrct2/ride/thrill/meta/Twist.h b/src/openrct2/ride/thrill/meta/Twist.h index b122c9cfed..c1ba98e20c 100644 --- a/src/openrct2/ride/thrill/meta/Twist.h +++ b/src/openrct2/ride/thrill/meta/Twist.h @@ -14,7 +14,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor TwistRTD = +constexpr RideTypeDescriptor TwistRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_THRILL), @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor TwistRTD = SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionTwist), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | - RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | + RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_SINGLE_SESSION | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::Rotation)), diff --git a/src/openrct2/ride/transport/Lift.cpp b/src/openrct2/ride/transport/Lift.cpp index 1e19a9c131..ffe3c4f4d7 100644 --- a/src/openrct2/ride/transport/Lift.cpp +++ b/src/openrct2/ride/transport/Lift.cpp @@ -28,7 +28,7 @@ enum SPR_LIFT_CAGE_NW_FRONT = 15003, }; -static constexpr const uint32_t lift_cage_sprites[][2] = { +static constexpr uint32_t lift_cage_sprites[][2] = { { SPR_LIFT_CAGE_BACK, SPR_LIFT_CAGE_FRONT }, { SPR_LIFT_CAGE_NE_BACK, SPR_LIFT_CAGE_NE_FRONT }, { SPR_LIFT_CAGE_SE_BACK, SPR_LIFT_CAGE_SE_FRONT }, { SPR_LIFT_CAGE_SW_BACK, SPR_LIFT_CAGE_SW_FRONT }, { SPR_LIFT_CAGE_NW_BACK, SPR_LIFT_CAGE_NW_FRONT }, diff --git a/src/openrct2/ride/transport/MiniatureRailway.cpp b/src/openrct2/ride/transport/MiniatureRailway.cpp index 8635e7aa5b..37953f64f1 100644 --- a/src/openrct2/ride/transport/MiniatureRailway.cpp +++ b/src/openrct2/ride/transport/MiniatureRailway.cpp @@ -134,35 +134,35 @@ enum SPR_MINIATURE_RAILWAY_DIAG_25_DEG_UP_S_N = 23452, }; -static constexpr const uint32_t miniature_railway_track_floor[4] = { +static constexpr uint32_t miniature_railway_track_floor[4] = { SPR_FLOOR_PLANKS, SPR_FLOOR_PLANKS_90_DEG, SPR_FLOOR_PLANKS, SPR_FLOOR_PLANKS_90_DEG, }; -static constexpr const uint32_t miniature_railway_track_pieces_flat[4] = { +static constexpr uint32_t miniature_railway_track_pieces_flat[4] = { SPR_MINIATURE_RAILWAY_FLAT_SW_NE, SPR_MINIATURE_RAILWAY_FLAT_NW_SE, SPR_MINIATURE_RAILWAY_FLAT_SW_NE, SPR_MINIATURE_RAILWAY_FLAT_NW_SE, }; -static constexpr const uint32_t miniature_railway_station_floor[4] = { +static constexpr uint32_t miniature_railway_station_floor[4] = { SPR_STATION_BASE_A_SW_NE, SPR_STATION_BASE_A_NW_SE, SPR_STATION_BASE_A_SW_NE, SPR_STATION_BASE_A_NW_SE, }; -static constexpr const uint32_t miniature_railway_track_pieces_flat_station[4] = { +static constexpr uint32_t miniature_railway_track_pieces_flat_station[4] = { SPR_MINIATURE_RAILWAY_FLAT_NO_BASE_SW_NE, SPR_MINIATURE_RAILWAY_FLAT_NO_BASE_NW_SE, SPR_MINIATURE_RAILWAY_FLAT_NO_BASE_SW_NE, SPR_MINIATURE_RAILWAY_FLAT_NO_BASE_NW_SE, }; -static constexpr const uint32_t miniature_railway_track_pieces_flat_quarter_turn_5_tiles[4][5] = { +static constexpr uint32_t miniature_railway_track_pieces_flat_quarter_turn_5_tiles[4][5] = { { SPR_MINIATURE_RAILWAY_QUARTER_TURN_5_TILES_SW_SE_PART_0, SPR_MINIATURE_RAILWAY_QUARTER_TURN_5_TILES_SW_SE_PART_1, @@ -193,28 +193,28 @@ static constexpr const uint32_t miniature_railway_track_pieces_flat_quarter_turn }, }; -static constexpr const uint32_t miniature_railway_track_pieces_25_deg_up[4] = { +static constexpr uint32_t miniature_railway_track_pieces_25_deg_up[4] = { SPR_MINIATURE_RAILWAY_25_DEG_UP_SW_NE, SPR_MINIATURE_RAILWAY_25_DEG_UP_NW_SE, SPR_MINIATURE_RAILWAY_25_DEG_UP_NE_SW, SPR_MINIATURE_RAILWAY_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t miniature_railway_track_pieces_flat_to_25_deg_up[4] = { +static constexpr uint32_t miniature_railway_track_pieces_flat_to_25_deg_up[4] = { SPR_MINIATURE_RAILWAY_FLAT_TO_25_DEG_UP_SW_NE, SPR_MINIATURE_RAILWAY_FLAT_TO_25_DEG_UP_NW_SE, SPR_MINIATURE_RAILWAY_FLAT_TO_25_DEG_UP_NE_SW, SPR_MINIATURE_RAILWAY_FLAT_TO_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t miniature_railway_track_pieces_25_deg_up_to_flat[4] = { +static constexpr uint32_t miniature_railway_track_pieces_25_deg_up_to_flat[4] = { SPR_MINIATURE_RAILWAY_25_DEG_UP_TO_FLAT_SW_NE, SPR_MINIATURE_RAILWAY_25_DEG_UP_TO_FLAT_NW_SE, SPR_MINIATURE_RAILWAY_25_DEG_UP_TO_FLAT_NE_SW, SPR_MINIATURE_RAILWAY_25_DEG_UP_TO_FLAT_SE_NW, }; -static constexpr const uint32_t miniature_railway_track_pieces_s_bend_left[2][4] = { +static constexpr uint32_t miniature_railway_track_pieces_s_bend_left[2][4] = { { SPR_MINIATURE_RAILWAY_S_BEND_LEFT_SW_NE_PART_0, SPR_MINIATURE_RAILWAY_S_BEND_LEFT_SW_NE_PART_1, @@ -229,7 +229,7 @@ static constexpr const uint32_t miniature_railway_track_pieces_s_bend_left[2][4] }, }; -static constexpr const uint32_t miniature_railway_track_pieces_s_bend_right[2][4] = { +static constexpr uint32_t miniature_railway_track_pieces_s_bend_right[2][4] = { { SPR_MINIATURE_RAILWAY_S_BEND_RIGHT_SW_NE_PART_0, SPR_MINIATURE_RAILWAY_S_BEND_RIGHT_SW_NE_PART_1, @@ -244,7 +244,7 @@ static constexpr const uint32_t miniature_railway_track_pieces_s_bend_right[2][4 }, }; -static constexpr const uint32_t miniature_railway_track_pieces_flat_quarter_turn_3_tiles[4][3] = { +static constexpr uint32_t miniature_railway_track_pieces_flat_quarter_turn_3_tiles[4][3] = { { SPR_MINIATURE_RAILWAY_QUARTER_TURN_3_TILES_SW_SE_PART_0, SPR_MINIATURE_RAILWAY_QUARTER_TURN_3_TILES_SW_SE_PART_1, @@ -267,7 +267,7 @@ static constexpr const uint32_t miniature_railway_track_pieces_flat_quarter_turn }, }; -static constexpr const uint32_t miniature_railway_track_pieces_right_eight_to_diag[4][4] = { +static constexpr uint32_t miniature_railway_track_pieces_right_eight_to_diag[4][4] = { { SPR_MINIATURE_RAILWAY_EIGHT_TO_DIAG_SW_E_PART_0, SPR_MINIATURE_RAILWAY_EIGHT_TO_DIAG_SW_E_PART_1, @@ -294,7 +294,7 @@ static constexpr const uint32_t miniature_railway_track_pieces_right_eight_to_di }, }; -static constexpr const CoordsXYZ miniature_railway_track_pieces_right_eight_to_diag_bounds[4][4] = { +static constexpr CoordsXYZ miniature_railway_track_pieces_right_eight_to_diag_bounds[4][4] = { { { 32, 32, 2 }, { 32, 16, 2 }, @@ -321,7 +321,7 @@ static constexpr const CoordsXYZ miniature_railway_track_pieces_right_eight_to_d }, }; -static constexpr const CoordsXY miniature_railway_track_pieces_right_eight_to_diag_offset[4][4] = { +static constexpr CoordsXY miniature_railway_track_pieces_right_eight_to_diag_offset[4][4] = { { { 0, 0 }, { 0, 16 }, @@ -348,7 +348,7 @@ static constexpr const CoordsXY miniature_railway_track_pieces_right_eight_to_di }, }; -static constexpr const uint32_t miniature_railway_track_pieces_left_eight_to_diag[4][4] = { +static constexpr uint32_t miniature_railway_track_pieces_left_eight_to_diag[4][4] = { { SPR_MINIATURE_RAILWAY_EIGHT_TO_DIAG_SW_N_PART_0, SPR_MINIATURE_RAILWAY_EIGHT_TO_DIAG_SW_N_PART_1, @@ -375,7 +375,7 @@ static constexpr const uint32_t miniature_railway_track_pieces_left_eight_to_dia }, }; -static constexpr const CoordsXYZ miniature_railway_track_pieces_left_eight_to_diag_bounds[4][4] = { +static constexpr CoordsXYZ miniature_railway_track_pieces_left_eight_to_diag_bounds[4][4] = { { { 32, 32, 2 }, { 32, 16, 2 }, @@ -402,7 +402,7 @@ static constexpr const CoordsXYZ miniature_railway_track_pieces_left_eight_to_di }, }; -static constexpr const CoordsXY miniature_railway_track_pieces_left_eight_to_diag_offset[4][4] = { +static constexpr CoordsXY miniature_railway_track_pieces_left_eight_to_diag_offset[4][4] = { { { 0, 0 }, { 0, 0 }, @@ -429,7 +429,7 @@ static constexpr const CoordsXY miniature_railway_track_pieces_left_eight_to_dia }, }; -static constexpr const CoordsXYZ miniature_railway_track_pieces_right_eight_to_orthog_bounds[4][4] = { +static constexpr CoordsXYZ miniature_railway_track_pieces_right_eight_to_orthog_bounds[4][4] = { { { 32, 32, 2 }, { 32, 16, 2 }, @@ -456,7 +456,7 @@ static constexpr const CoordsXYZ miniature_railway_track_pieces_right_eight_to_o }, }; -static constexpr const CoordsXY miniature_railway_track_pieces_right_eight_to_orthog_offset[4][4] = { +static constexpr CoordsXY miniature_railway_track_pieces_right_eight_to_orthog_offset[4][4] = { { { 0, 0 }, { 0, 0 }, @@ -483,7 +483,7 @@ static constexpr const CoordsXY miniature_railway_track_pieces_right_eight_to_or }, }; -static constexpr const CoordsXYZ miniature_railway_track_pieces_left_eight_to_orthog_bounds[4][4] = { +static constexpr CoordsXYZ miniature_railway_track_pieces_left_eight_to_orthog_bounds[4][4] = { { { 32, 32, 2 }, { 32, 16, 2 }, @@ -510,7 +510,7 @@ static constexpr const CoordsXYZ miniature_railway_track_pieces_left_eight_to_or }, }; -static constexpr const CoordsXY miniature_railway_track_pieces_left_eight_to_orthog_offset[4][4] = { +static constexpr CoordsXY miniature_railway_track_pieces_left_eight_to_orthog_offset[4][4] = { { { 0, 0 }, { 0, 16 }, @@ -537,28 +537,28 @@ static constexpr const CoordsXY miniature_railway_track_pieces_left_eight_to_ort }, }; -static constexpr const uint32_t miniature_railway_track_pieces_diag_flat[4] = { +static constexpr uint32_t miniature_railway_track_pieces_diag_flat[4] = { SPR_MINIATURE_RAILWAY_DIAG_FLAT_W_E, SPR_MINIATURE_RAILWAY_DIAG_FLAT_N_S, SPR_MINIATURE_RAILWAY_DIAG_FLAT_E_W, SPR_MINIATURE_RAILWAY_DIAG_FLAT_S_N, }; -static constexpr const uint32_t miniature_railway_track_pieces_diag_flat_to_25_deg_up[4] = { +static constexpr uint32_t miniature_railway_track_pieces_diag_flat_to_25_deg_up[4] = { SPR_MINIATURE_RAILWAY_DIAG_FLAT_TO_25_DEG_UP_W_E, SPR_MINIATURE_RAILWAY_DIAG_FLAT_TO_25_DEG_UP_N_S, SPR_MINIATURE_RAILWAY_DIAG_FLAT_TO_25_DEG_UP_E_W, SPR_MINIATURE_RAILWAY_DIAG_FLAT_TO_25_DEG_UP_S_N, }; -static constexpr const uint32_t miniature_railway_track_pieces_diag_25_deg_up_to_flat[4] = { +static constexpr uint32_t miniature_railway_track_pieces_diag_25_deg_up_to_flat[4] = { SPR_MINIATURE_RAILWAY_DIAG_25_DEG_UP_TO_FLAT_W_E, SPR_MINIATURE_RAILWAY_DIAG_25_DEG_UP_TO_FLAT_N_S, SPR_MINIATURE_RAILWAY_DIAG_25_DEG_UP_TO_FLAT_E_W, SPR_MINIATURE_RAILWAY_DIAG_25_DEG_UP_TO_FLAT_S_N, }; -static constexpr const uint32_t miniature_railway_track_pieces_diag_25_deg_up[4] = { +static constexpr uint32_t miniature_railway_track_pieces_diag_25_deg_up[4] = { SPR_MINIATURE_RAILWAY_DIAG_25_DEG_UP_W_E, SPR_MINIATURE_RAILWAY_DIAG_25_DEG_UP_N_S, SPR_MINIATURE_RAILWAY_DIAG_25_DEG_UP_E_W, @@ -839,7 +839,7 @@ static void PaintMiniatureRailwayTrack25DegDownToFlat( PaintMiniatureRailwayTrackFlatTo25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement); } -static constexpr const CoordsXY miniature_railway_right_quarter_turn_5_tiles_offsets[4][5] = { +static constexpr CoordsXY miniature_railway_right_quarter_turn_5_tiles_offsets[4][5] = { { { 0, 2 }, { 0, 16 }, @@ -870,7 +870,7 @@ static constexpr const CoordsXY miniature_railway_right_quarter_turn_5_tiles_off }, }; -static constexpr const CoordsXYZ miniature_railway_right_quarter_turn_5_tiles_bound_offsets[4][5] = { +static constexpr CoordsXYZ miniature_railway_right_quarter_turn_5_tiles_bound_offsets[4][5] = { { { 0, 2, 0 }, { 0, 16, 0 }, @@ -901,7 +901,7 @@ static constexpr const CoordsXYZ miniature_railway_right_quarter_turn_5_tiles_bo }, }; -static constexpr const CoordsXY miniature_railway_right_quarter_turn_5_tiles_bound_lengths[4][5] = { +static constexpr CoordsXY miniature_railway_right_quarter_turn_5_tiles_bound_lengths[4][5] = { { { 32, 32 }, { 32, 16 }, @@ -932,7 +932,7 @@ static constexpr const CoordsXY miniature_railway_right_quarter_turn_5_tiles_bou }, }; -static constexpr const uint32_t miniature_railway_right_quarter_turn_5_tiles_track_floor[4][5] = { +static constexpr uint32_t miniature_railway_right_quarter_turn_5_tiles_track_floor[4][5] = { { SPR_FLOOR_PLANKS, SPR_FLOOR_PLANKS_S_SEGMENT, @@ -963,14 +963,14 @@ static constexpr const uint32_t miniature_railway_right_quarter_turn_5_tiles_tra }, }; -static constexpr const int8_t right_quarter_turn_5_supports_type[4][7] = { +static constexpr int8_t right_quarter_turn_5_supports_type[4][7] = { { 0, -1, 4, 2, -1, 4, 1 }, { 1, -1, 5, 3, -1, 5, 0 }, { 0, -1, 2, 4, -1, 2, 1 }, { 1, -1, 3, 5, -1, 3, 0 }, }; -static constexpr const int8_t miniature_railway_right_quarter_turn_5_tiles_sprite_map[] = { +static constexpr int8_t miniature_railway_right_quarter_turn_5_tiles_sprite_map[] = { 0, -1, 1, 2, -1, 3, 4, }; @@ -1072,14 +1072,14 @@ static void PaintMiniatureRailwayTrackLeftQuarterTurn5Tiles( PaintMiniatureRailwayTrackRightQuarterTurn5Tiles(session, ride, trackSequence, (direction + 1) % 4, height, trackElement); } -static constexpr const int8_t s_bend_left_supports_type[4][4] = { +static constexpr int8_t s_bend_left_supports_type[4][4] = { { 0, 5, 3, 0 }, { 1, 2, 4, 1 }, { 0, 5, 3, 0 }, { 1, 2, 4, 1 }, }; -static constexpr const uint32_t miniature_railway_s_bend_left_tiles_track_floor[2][4] = { +static constexpr uint32_t miniature_railway_s_bend_left_tiles_track_floor[2][4] = { { SPR_FLOOR_PLANKS, SPR_FLOOR_PLANKS_W_SEGMENT, @@ -1107,14 +1107,14 @@ static void PaintMiniatureRailwayTrackSBendLeft( bool isSupported = WoodenASupportsPaintSetup( session, s_bend_left_supports_type[direction][trackSequence], 0, height, session.TrackColours[SCHEME_SUPPORTS]); - static constexpr const CoordsXY offsetList[] = { + static constexpr CoordsXY offsetList[] = { { 0, 2 }, { 0, 0 }, { 0, 6 }, { 0, 2 }, }; - static constexpr const CoordsXY boundsList[] = { + static constexpr CoordsXY boundsList[] = { { 32, 27 }, { 32, 26 }, { 32, 26 }, @@ -1181,14 +1181,14 @@ static void PaintMiniatureRailwayTrackSBendLeft( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const int8_t s_bend_right_supports_type[4][4] = { +static constexpr int8_t s_bend_right_supports_type[4][4] = { { 0, 4, 2, 0 }, { 1, 5, 3, 1 }, { 0, 4, 2, 0 }, { 1, 5, 3, 1 }, }; -static constexpr const uint32_t miniature_railway_s_bend_right_tiles_track_floor[2][4] = { +static constexpr uint32_t miniature_railway_s_bend_right_tiles_track_floor[2][4] = { { SPR_FLOOR_PLANKS, SPR_FLOOR_PLANKS_S_SEGMENT, @@ -1216,14 +1216,14 @@ static void PaintMiniatureRailwayTrackSBendRight( bool isSupported = WoodenASupportsPaintSetup( session, s_bend_right_supports_type[direction][trackSequence], 0, height, session.TrackColours[SCHEME_SUPPORTS]); - static constexpr const CoordsXY offsetList[] = { + static constexpr CoordsXY offsetList[] = { { 0, 2 }, { 0, 6 }, { 0, 0 }, { 0, 2 }, }; - static constexpr const CoordsXY boundsList[] = { + static constexpr CoordsXY boundsList[] = { { 32, 27 }, { 32, 26 }, { 32, 26 }, @@ -1290,7 +1290,7 @@ static void PaintMiniatureRailwayTrackSBendRight( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const uint32_t miniature_railway_right_quarter_turn_3_tile_track_floor[4][3] = { +static constexpr uint32_t miniature_railway_right_quarter_turn_3_tile_track_floor[4][3] = { { SPR_FLOOR_PLANKS_S_SEGMENT, 0, @@ -1313,7 +1313,7 @@ static constexpr const uint32_t miniature_railway_right_quarter_turn_3_tile_trac }, }; -static constexpr const CoordsXYZ miniature_railway_right_quarter_turn_3_tile_bound_offsets[4][3] = { +static constexpr CoordsXYZ miniature_railway_right_quarter_turn_3_tile_bound_offsets[4][3] = { { { 0, 6, 0 }, { 16, 16, 0 }, @@ -1344,7 +1344,7 @@ static void PaintMiniatureRailwayTrackRightQuarterTurn3Tiles( bool isSupported = false; if (trackSequence != 1 && trackSequence != 2) { - static constexpr const uint8_t supportType[] = { 4, 5, 2, 3 }; + static constexpr uint8_t supportType[] = { 4, 5, 2, 3 }; isSupported = WoodenASupportsPaintSetup( session, supportType[direction], 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1370,7 +1370,7 @@ static void PaintMiniatureRailwayTrackRightQuarterTurn3Tiles( miniature_railway_right_quarter_turn_3_tile_track_floor, nullptr, defaultRightQuarterTurn3TilesBoundLengths, miniature_railway_right_quarter_turn_3_tile_bound_offsets); - static constexpr const int8_t _right_quarter_turn_3_tiles_sprite_map[] = { 0, -1, 1, 2 }; + static constexpr int8_t _right_quarter_turn_3_tiles_sprite_map[] = { 0, -1, 1, 2 }; int32_t index = _right_quarter_turn_3_tiles_sprite_map[trackSequence]; @@ -1412,11 +1412,11 @@ static void PaintMiniatureRailwayTrackLeftQuarterTurn3Tiles( PaintMiniatureRailwayTrackRightQuarterTurn3Tiles(session, ride, trackSequence, (direction + 1) % 4, height, trackElement); } -static constexpr const int8_t paint_miniature_railway_eighth_to_diag_index[] = { +static constexpr int8_t paint_miniature_railway_eighth_to_diag_index[] = { 0, 1, 2, -1, 3, }; -static constexpr const uint32_t miniature_railway_floor_track_pieces_left_eight_to_diag[4][5] = { +static constexpr uint32_t miniature_railway_floor_track_pieces_left_eight_to_diag[4][5] = { { SPR_FLOOR_PLANKS, SPR_FLOOR_PLANKS, @@ -1447,7 +1447,7 @@ static constexpr const uint32_t miniature_railway_floor_track_pieces_left_eight_ }, }; -static constexpr const CoordsXYZ miniature_railway_track_floor_pieces_left_eight_to_diag_bounds[4][5] = { +static constexpr CoordsXYZ miniature_railway_track_floor_pieces_left_eight_to_diag_bounds[4][5] = { { { 32, 32, 2 }, { 32, 16, 2 }, @@ -1478,7 +1478,7 @@ static constexpr const CoordsXYZ miniature_railway_track_floor_pieces_left_eight }, }; -static constexpr const CoordsXY miniature_railway_track_floor_pieces_left_eight_to_diag_offset[4][5] = { +static constexpr CoordsXY miniature_railway_track_floor_pieces_left_eight_to_diag_offset[4][5] = { { { 0, 0 }, { 0, 0 }, @@ -1580,7 +1580,7 @@ static void PaintMiniatureRailwayTrackLeftEighthToDiag( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -static constexpr const uint32_t miniature_railway_floor_track_pieces_right_eight_to_diag[4][5] = { +static constexpr uint32_t miniature_railway_floor_track_pieces_right_eight_to_diag[4][5] = { { SPR_FLOOR_PLANKS_90_DEG, SPR_FLOOR_PLANKS_90_DEG, @@ -1611,7 +1611,7 @@ static constexpr const uint32_t miniature_railway_floor_track_pieces_right_eight }, }; -static constexpr const CoordsXYZ miniature_railway_track_floor_pieces_right_eight_to_diag_bounds[4][5] = { +static constexpr CoordsXYZ miniature_railway_track_floor_pieces_right_eight_to_diag_bounds[4][5] = { { { 32, 32, 2 }, { 32, 16, 2 }, @@ -1642,7 +1642,7 @@ static constexpr const CoordsXYZ miniature_railway_track_floor_pieces_right_eigh }, }; -static constexpr const CoordsXY miniature_railway_track_floor_pieces_right_eight_to_diag_offset[4][5] = { +static constexpr CoordsXY miniature_railway_track_floor_pieces_right_eight_to_diag_offset[4][5] = { { { 0, 0 }, { 0, 16 }, @@ -1763,14 +1763,14 @@ static void PaintMiniatureRailwayTrackRightEighthToOrthogonal( PaintMiniatureRailwayTrackLeftEighthToDiag(session, ride, trackSequence, (direction + 3) % 4, height, trackElement); } -static constexpr const bool miniature_railway_diag_image_segment[][4] = { +static constexpr bool miniature_railway_diag_image_segment[][4] = { { false, true, false, false }, { false, false, false, true }, { false, false, true, false }, { true, false, false, false }, }; -static constexpr const std::optional _diagSupportTypes[NumOrthogonalDirections][4] = { +static constexpr std::optional _diagSupportTypes[NumOrthogonalDirections][4] = { { std::nullopt, WoodenSupportSubType::Corner0, WoodenSupportSubType::Corner2, WoodenSupportSubType::NeSw }, { std::nullopt, WoodenSupportSubType::Corner1, WoodenSupportSubType::Corner3, WoodenSupportSubType::NwSe }, { std::nullopt, WoodenSupportSubType::Corner2, WoodenSupportSubType::Corner0, WoodenSupportSubType::NeSw }, @@ -1784,7 +1784,7 @@ struct FloorDescriptor CoordsXY bound_offset; }; -static constexpr const FloorDescriptor floors[] = { +static constexpr FloorDescriptor floors[] = { { SPR_FLOOR_PLANKS, { 32, 32 }, { 0, 0 } }, { SPR_FLOOR_PLANKS_90_DEG, { 32, 32 }, { 0, 0 } }, // -16,-16(1:3) { SPR_FLOOR_PLANKS_N_SEGMENT, { 32, 32 }, { -16, -16 } }, @@ -1908,7 +1908,7 @@ static void MiniatureRailwayTrackDiag25DegUp( floorBoundOffset = { -16, -16 }; } - static constexpr const int8_t offsetsB[4][4][2] = { + static constexpr int8_t offsetsB[4][4][2] = { { { 0, 0 }, { +8, +16 }, { +8, +8 }, { +8, +8 } }, { { 0, 0 }, { -8, -8 }, { -8, -8 }, { +8, +8 } }, { { 0, 0 }, { +8, +8 }, { +8, +16 }, { +8, +8 } }, @@ -1922,7 +1922,7 @@ static void MiniatureRailwayTrackDiag25DegUp( uint32_t imageId = miniature_railway_track_pieces_diag_25_deg_up[direction]; bool drawRail = miniature_railway_diag_image_segment[direction][trackSequence]; - static constexpr const int8_t offsetB[] = { +8, 0, +8, +8 }; + static constexpr int8_t offsetB[] = { +8, 0, +8, +8 }; if (hasSupports) { PaintAddImageAsParent( diff --git a/src/openrct2/ride/transport/Monorail.cpp b/src/openrct2/ride/transport/Monorail.cpp index 7109bd4b95..df981b36a4 100644 --- a/src/openrct2/ride/transport/Monorail.cpp +++ b/src/openrct2/ride/transport/Monorail.cpp @@ -133,14 +133,14 @@ enum SPR_MONORAIL_DIAG_25_DEG_UP_S_N = 23340, }; -static constexpr const uint32_t monorail_track_pieces_flat[4] = { +static constexpr uint32_t monorail_track_pieces_flat[4] = { SPR_MONORAIL_FLAT_SW_NE, SPR_MONORAIL_FLAT_NW_SE, SPR_MONORAIL_FLAT_SW_NE, SPR_MONORAIL_FLAT_NW_SE, }; -static constexpr const uint32_t monorail_track_pieces_flat_quarter_turn_5_tiles[4][5] = { +static constexpr uint32_t monorail_track_pieces_flat_quarter_turn_5_tiles[4][5] = { { SPR_MONORAIL_QUARTER_TURN_5_TILES_SW_SE_PART_0, SPR_MONORAIL_QUARTER_TURN_5_TILES_SW_SE_PART_1, @@ -171,28 +171,28 @@ static constexpr const uint32_t monorail_track_pieces_flat_quarter_turn_5_tiles[ }, }; -static constexpr const uint32_t monorail_track_pieces_25_deg_up[4] = { +static constexpr uint32_t monorail_track_pieces_25_deg_up[4] = { SPR_MONORAIL_25_DEG_UP_SW_NE, SPR_MONORAIL_25_DEG_UP_NW_SE, SPR_MONORAIL_25_DEG_UP_NE_SW, SPR_MONORAIL_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t monorail_track_pieces_flat_to_25_deg_up[4] = { +static constexpr uint32_t monorail_track_pieces_flat_to_25_deg_up[4] = { SPR_MONORAIL_FLAT_TO_25_DEG_UP_SW_NE, SPR_MONORAIL_FLAT_TO_25_DEG_UP_NW_SE, SPR_MONORAIL_FLAT_TO_25_DEG_UP_NE_SW, SPR_MONORAIL_FLAT_TO_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t monorail_track_pieces_25_deg_up_to_flat[4] = { +static constexpr uint32_t monorail_track_pieces_25_deg_up_to_flat[4] = { SPR_MONORAIL_25_DEG_UP_TO_FLAT_SW_NE, SPR_MONORAIL_25_DEG_UP_TO_FLAT_NW_SE, SPR_MONORAIL_25_DEG_UP_TO_FLAT_NE_SW, SPR_MONORAIL_25_DEG_UP_TO_FLAT_SE_NW, }; -static constexpr const uint32_t monorail_track_pieces_s_bend_left[2][4] = { +static constexpr uint32_t monorail_track_pieces_s_bend_left[2][4] = { { SPR_MONORAIL_S_BEND_LEFT_SW_NE_PART_0, SPR_MONORAIL_S_BEND_LEFT_SW_NE_PART_1, @@ -207,7 +207,7 @@ static constexpr const uint32_t monorail_track_pieces_s_bend_left[2][4] = { }, }; -static constexpr const uint32_t monorail_track_pieces_s_bend_right[2][4] = { +static constexpr uint32_t monorail_track_pieces_s_bend_right[2][4] = { { SPR_MONORAIL_S_BEND_RIGHT_SW_NE_PART_0, SPR_MONORAIL_S_BEND_RIGHT_SW_NE_PART_1, @@ -222,7 +222,7 @@ static constexpr const uint32_t monorail_track_pieces_s_bend_right[2][4] = { }, }; -static constexpr const uint32_t monorail_track_pieces_flat_quarter_turn_3_tiles[4][3] = { +static constexpr uint32_t monorail_track_pieces_flat_quarter_turn_3_tiles[4][3] = { { SPR_MONORAIL_QUARTER_TURN_3_TILES_SW_SE_PART_0, SPR_MONORAIL_QUARTER_TURN_3_TILES_SW_SE_PART_1, @@ -245,7 +245,7 @@ static constexpr const uint32_t monorail_track_pieces_flat_quarter_turn_3_tiles[ }, }; -static constexpr const uint32_t ghost_train_track_pieces_right_eight_to_diag[4][4] = { +static constexpr uint32_t ghost_train_track_pieces_right_eight_to_diag[4][4] = { { SPR_MONORAIL_EIGHT_TO_DIAG_SW_E_PART_0, SPR_MONORAIL_EIGHT_TO_DIAG_SW_E_PART_1, @@ -272,7 +272,7 @@ static constexpr const uint32_t ghost_train_track_pieces_right_eight_to_diag[4][ }, }; -static constexpr const BoundBoxXY GhostTrainTrackPiecesRightEightToDiagBoxes[4][4] = { +static constexpr BoundBoxXY GhostTrainTrackPiecesRightEightToDiagBoxes[4][4] = { { { { 0, 6 }, { 32, 20 } }, { { 0, 16 }, { 32, 16 } }, @@ -301,7 +301,7 @@ static constexpr const BoundBoxXY GhostTrainTrackPiecesRightEightToDiagBoxes[4][ }, }; -static constexpr const uint32_t ghost_train_track_pieces_left_eight_to_diag[4][4] = { +static constexpr uint32_t ghost_train_track_pieces_left_eight_to_diag[4][4] = { { SPR_MONORAIL_EIGHT_TO_DIAG_SW_N_PART_0, SPR_MONORAIL_EIGHT_TO_DIAG_SW_N_PART_1, @@ -328,7 +328,7 @@ static constexpr const uint32_t ghost_train_track_pieces_left_eight_to_diag[4][4 }, }; -static constexpr const BoundBoxXY GhostTrainTrackPiecesLeftEightToDiagBoxes[4][4] = { +static constexpr BoundBoxXY GhostTrainTrackPiecesLeftEightToDiagBoxes[4][4] = { { { { 0, 6 }, { 32, 20 } }, { { 0, 0 }, { 32, 16 } }, @@ -355,28 +355,28 @@ static constexpr const BoundBoxXY GhostTrainTrackPiecesLeftEightToDiagBoxes[4][4 }, }; -static constexpr const uint32_t monorail_track_pieces_diag_flat[4] = { +static constexpr uint32_t monorail_track_pieces_diag_flat[4] = { SPR_MONORAIL_DIAG_FLAT_W_E, SPR_MONORAIL_DIAG_FLAT_N_S, SPR_MONORAIL_DIAG_FLAT_E_W, SPR_MONORAIL_DIAG_FLAT_S_N, }; -static constexpr const uint32_t monorail_track_pieces_diag_flat_to_25_deg_up[4] = { +static constexpr uint32_t monorail_track_pieces_diag_flat_to_25_deg_up[4] = { SPR_MONORAIL_DIAG_FLAT_TO_25_DEG_UP_W_E, SPR_MONORAIL_DIAG_FLAT_TO_25_DEG_UP_N_S, SPR_MONORAIL_DIAG_FLAT_TO_25_DEG_UP_E_W, SPR_MONORAIL_DIAG_FLAT_TO_25_DEG_UP_S_N, }; -static constexpr const uint32_t monorail_track_pieces_diag_25_deg_up_to_flat[4] = { +static constexpr uint32_t monorail_track_pieces_diag_25_deg_up_to_flat[4] = { SPR_MONORAIL_DIAG_25_DEG_UP_TO_FLAT_W_E, SPR_MONORAIL_DIAG_25_DEG_UP_TO_FLAT_N_S, SPR_MONORAIL_DIAG_25_DEG_UP_TO_FLAT_E_W, SPR_MONORAIL_DIAG_25_DEG_UP_TO_FLAT_S_N, }; -static constexpr const uint32_t monorail_track_pieces_diag_25_deg_up[4] = { +static constexpr uint32_t monorail_track_pieces_diag_25_deg_up[4] = { SPR_MONORAIL_DIAG_25_DEG_UP_W_E, SPR_MONORAIL_DIAG_25_DEG_UP_N_S, SPR_MONORAIL_DIAG_25_DEG_UP_E_W, @@ -927,7 +927,7 @@ static void PaintMonorailTrackLeftQuarterTurn3Tiles( PaintMonorailTrackRightQuarterTurn3Tiles(session, ride, trackSequence, (direction + 1) % 4, height, trackElement); } -static constexpr const int8_t paint_monorail_eighth_to_diag_index[] = { +static constexpr int8_t paint_monorail_eighth_to_diag_index[] = { 0, 1, 2, -1, 3, }; @@ -1083,21 +1083,21 @@ static void PaintMonorailTrackRightEighthToOrthogonal( PaintMonorailTrackLeftEighthToDiag(session, ride, trackSequence, (direction + 3) % 4, height, trackElement); } -static constexpr const bool monorail_diag_image_segment[][4] = { +static constexpr bool monorail_diag_image_segment[][4] = { { false, true, false, false }, { false, false, false, true }, { false, false, true, false }, { true, false, false, false }, }; -static constexpr const uint8_t monorail_diag_support_segment[] = { +static constexpr uint8_t monorail_diag_support_segment[] = { 1, 0, 2, 3, }; -static constexpr const int32_t monorail_diag_blocked_segments[] = { +static constexpr int32_t monorail_diag_blocked_segments[] = { SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4 | SEGMENT_BC, SEGMENT_C4 | SEGMENT_CC | SEGMENT_C8 | SEGMENT_B4, SEGMENT_D0 | SEGMENT_C4 | SEGMENT_C0 | SEGMENT_D4, diff --git a/src/openrct2/ride/transport/SuspendedMonorail.cpp b/src/openrct2/ride/transport/SuspendedMonorail.cpp index 7b025feb5a..892f4b1dbb 100644 --- a/src/openrct2/ride/transport/SuspendedMonorail.cpp +++ b/src/openrct2/ride/transport/SuspendedMonorail.cpp @@ -56,7 +56,7 @@ static void SuspendedMonorailTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_STATION_BASE_C_SW_NE, 25853, SPR_STATION_INVERTED_BAR_F_SW_NE }, { SPR_STATION_BASE_C_NW_SE, 25854, SPR_STATION_INVERTED_BAR_F_NW_SE }, { SPR_STATION_BASE_C_SW_NE, 25853, SPR_STATION_INVERTED_BAR_F_SW_NE }, diff --git a/src/openrct2/ride/transport/meta/Chairlift.h b/src/openrct2/ride/transport/meta/Chairlift.h index ec0ee5e6b7..a1e30d3edd 100644 --- a/src/openrct2/ride/transport/meta/Chairlift.h +++ b/src/openrct2/ride/transport/meta/Chairlift.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor ChairliftRTD = +constexpr RideTypeDescriptor ChairliftRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_TRANSPORT), diff --git a/src/openrct2/ride/transport/meta/Lift.h b/src/openrct2/ride/transport/meta/Lift.h index b622c44769..4b65f71828 100644 --- a/src/openrct2/ride/transport/meta/Lift.h +++ b/src/openrct2/ride/transport/meta/Lift.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor LiftRTD = +constexpr RideTypeDescriptor LiftRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_TRANSPORT), diff --git a/src/openrct2/ride/transport/meta/MiniatureRailway.h b/src/openrct2/ride/transport/meta/MiniatureRailway.h index 9da7b3b491..29ed7b5f40 100644 --- a/src/openrct2/ride/transport/meta/MiniatureRailway.h +++ b/src/openrct2/ride/transport/meta/MiniatureRailway.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MiniatureRailwayRTD = +constexpr RideTypeDescriptor MiniatureRailwayRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_TRANSPORT), diff --git a/src/openrct2/ride/transport/meta/Monorail.h b/src/openrct2/ride/transport/meta/Monorail.h index f2005464e3..7749f36781 100644 --- a/src/openrct2/ride/transport/meta/Monorail.h +++ b/src/openrct2/ride/transport/meta/Monorail.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor MonorailRTD = +constexpr RideTypeDescriptor MonorailRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_TRANSPORT), diff --git a/src/openrct2/ride/transport/meta/SuspendedMonorail.h b/src/openrct2/ride/transport/meta/SuspendedMonorail.h index 2517c5c5cf..238405bb5b 100644 --- a/src/openrct2/ride/transport/meta/SuspendedMonorail.h +++ b/src/openrct2/ride/transport/meta/SuspendedMonorail.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SuspendedMonorailRTD = +constexpr RideTypeDescriptor SuspendedMonorailRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_TRANSPORT), diff --git a/src/openrct2/ride/water/DingySlide.cpp b/src/openrct2/ride/water/DingySlide.cpp index 7fd8f17271..f01670fc82 100644 --- a/src/openrct2/ride/water/DingySlide.cpp +++ b/src/openrct2/ride/water/DingySlide.cpp @@ -352,7 +352,7 @@ static void DinghySlideTrackFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][2] = { + static constexpr uint32_t imageIds[2][4][2] = { { { SPR_DINGHY_SLIDE_FLAT_SW_NE, SPR_DINGHY_SLIDE_FLAT_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_FLAT_NW_SE, SPR_DINGHY_SLIDE_FLAT_FRONT_NW_SE }, @@ -390,7 +390,7 @@ static void DinghySlideTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_STATION_SW_NE, SPR_STATION_BASE_B_SW_NE }, { SPR_DINGHY_SLIDE_STATION_NW_SE, SPR_STATION_BASE_B_NW_SE }, { SPR_DINGHY_SLIDE_STATION_SW_NE, SPR_STATION_BASE_B_SW_NE }, @@ -421,7 +421,7 @@ static void DinghySlideTrack25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][2] = { + static constexpr uint32_t imageIds[2][4][2] = { { { SPR_DINGHY_SLIDE_25_DEG_SW_NE, SPR_DINGHY_SLIDE_25_DEG_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_25_DEG_NW_SE, SPR_DINGHY_SLIDE_25_DEG_FRONT_NW_SE }, @@ -466,7 +466,7 @@ static void DinghySlideTrack60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_60_DEG_SW_NE, SPR_DINGHY_SLIDE_60_DEG_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_60_DEG_NW_SE, SPR_DINGHY_SLIDE_60_DEG_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_60_DEG_NE_SW, SPR_DINGHY_SLIDE_60_DEG_FRONT_NE_SW }, @@ -502,7 +502,7 @@ static void DinghySlideTrackFlatTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][2] = { + static constexpr uint32_t imageIds[2][4][2] = { { { SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_SW_NE, SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_NW_SE, SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_FRONT_NW_SE }, @@ -547,7 +547,7 @@ static void DinghySlideTrack25DegUpTo60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_SW_NE, SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_NW_SE, SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_NE_SW, SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_FRONT_NE_SW }, @@ -583,7 +583,7 @@ static void DinghySlideTrack60DegUpTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_SW_NE, SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_NW_SE, SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_NE_SW, SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_FRONT_NE_SW }, @@ -619,7 +619,7 @@ static void DinghySlideTrack25DegUpToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[2][4][2] = { + static constexpr uint32_t imageIds[2][4][2] = { { { SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_SW_NE, SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_NW_SE, SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_FRONT_NW_SE }, @@ -699,7 +699,7 @@ static void DinghySlideTrackRightQuarterTurn5( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][5] = { + static constexpr SpriteBb imageIds[4][5] = { { { SPR_DINGHY_SLIDE_QUARTER_TURN_5_SW_SE_PART_0, { 0, 2, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, { SPR_DINGHY_SLIDE_QUARTER_TURN_5_SW_SE_PART_1, { 0, 16, 0 }, { 0, 16, 0 }, { 32, 16, 2 } }, @@ -729,7 +729,7 @@ static void DinghySlideTrackRightQuarterTurn5( { SPR_DINGHY_SLIDE_QUARTER_TURN_5_SE_NE_PART_4, { 0, 2, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, }, }; - static constexpr const SpriteBb frontImageIds[4][5] = { + static constexpr SpriteBb frontImageIds[4][5] = { { { SPR_DINGHY_SLIDE_QUARTER_TURN_5_FRONT_SW_SE_PART_0, { 0, 2, 0 }, { 0, 6, 27 }, { 32, 30, 0 } }, { SPR_DINGHY_SLIDE_QUARTER_TURN_5_FRONT_SW_SE_PART_1, { 0, 16, 0 }, { 0, 16, 27 }, { 32, 16, 0 } }, @@ -840,7 +840,7 @@ static void DinghySlideTrackSBendLeft( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4][2] = { + static constexpr uint32_t imageIds[4][4][2] = { { { SPR_DINGHY_SLIDE_S_BEND_SW_SE_SW_SEQ_3, SPR_DINGHY_SLIDE_S_BEND_FRONT_NE_NW_NE_SEQ_0 }, { SPR_DINGHY_SLIDE_S_BEND_SW_SE_SW_SEQ_2, SPR_DINGHY_SLIDE_S_BEND_FRONT_NE_NW_NE_SEQ_1 }, @@ -945,7 +945,7 @@ static void DinghySlideTrackSBendRight( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4][2] = { + static constexpr uint32_t imageIds[4][4][2] = { { { SPR_DINGHY_SLIDE_S_BEND_SW_NW_SW_SEQ_3, SPR_DINGHY_SLIDE_S_BEND_FRONT_NE_SE_NE_SEQ_0 }, { SPR_DINGHY_SLIDE_S_BEND_SW_NW_SW_SEQ_2, SPR_DINGHY_SLIDE_S_BEND_FRONT_NE_SE_NE_SEQ_1 }, @@ -1048,7 +1048,7 @@ static void DinghySlideTrackRightQuarterTurn3( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][3] = { + static constexpr SpriteBb imageIds[4][3] = { { { SPR_DINGHY_SLIDE_QUARTER_TURN_3_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, { SPR_DINGHY_SLIDE_QUARTER_TURN_3_SW_SE_PART_1, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 } }, @@ -1070,7 +1070,7 @@ static void DinghySlideTrackRightQuarterTurn3( { SPR_DINGHY_SLIDE_QUARTER_TURN_3_SE_NE_PART_2, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, }, }; - static constexpr const SpriteBb frontImageIds[4][3] = { + static constexpr SpriteBb frontImageIds[4][3] = { { { SPR_DINGHY_SLIDE_QUARTER_TURN_3_FRONT_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 27 }, { 32, 20, 0 } }, { SPR_DINGHY_SLIDE_QUARTER_TURN_3_FRONT_SW_SE_PART_1, { 0, 0, 0 }, { 16, 16, 27 }, { 16, 16, 0 } }, @@ -1137,7 +1137,7 @@ static void DinghySlideTrackFlatCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_FLAT_COVERED_SW_NE, SPR_DINGHY_SLIDE_FLAT_COVERED_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_FLAT_COVERED_NW_SE, SPR_DINGHY_SLIDE_FLAT_COVERED_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_FLAT_COVERED_SW_NE, SPR_DINGHY_SLIDE_FLAT_COVERED_FRONT_SW_NE }, @@ -1166,7 +1166,7 @@ static void DinghySlideTrack25DegUpCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_25_DEG_COVERED_SW_NE, SPR_DINGHY_SLIDE_25_DEG_COVERED_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_25_DEG_COVERED_NW_SE, SPR_DINGHY_SLIDE_25_DEG_COVERED_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_25_DEG_COVERED_NE_SW, SPR_DINGHY_SLIDE_25_DEG_COVERED_FRONT_NE_SW }, @@ -1202,7 +1202,7 @@ static void DinghySlideTrack60DegUpCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_60_DEG_COVERED_SW_NE, SPR_DINGHY_SLIDE_60_DEG_COVERED_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_60_DEG_COVERED_NW_SE, SPR_DINGHY_SLIDE_60_DEG_COVERED_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_60_DEG_COVERED_NE_SW, SPR_DINGHY_SLIDE_60_DEG_COVERED_FRONT_NE_SW }, @@ -1238,7 +1238,7 @@ static void DinghySlideTrackFlatTo25DegUpCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_COVERED_SW_NE, SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_COVERED_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_COVERED_NW_SE, SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_COVERED_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_COVERED_NE_SW, SPR_DINGHY_SLIDE_FLAT_TO_25_DEG_COVERED_FRONT_NE_SW }, @@ -1274,7 +1274,7 @@ static void DinghySlideTrack25DegUpTo60DegUpCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_COVERED_SW_NE, SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_COVERED_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_COVERED_NW_SE, SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_COVERED_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_COVERED_NE_SW, SPR_DINGHY_SLIDE_25_DEG_TO_60_DEG_COVERED_FRONT_NE_SW }, @@ -1310,7 +1310,7 @@ static void DinghySlideTrack60DegUpTo25DegUpCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_COVERED_SW_NE, SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_COVERED_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_COVERED_NW_SE, SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_COVERED_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_COVERED_NE_SW, SPR_DINGHY_SLIDE_60_DEG_TO_25_DEG_COVERED_FRONT_NE_SW }, @@ -1346,7 +1346,7 @@ static void DinghySlideTrack25DegUpToFlatCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_COVERED_SW_NE, SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_COVERED_FRONT_SW_NE }, { SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_COVERED_NW_SE, SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_COVERED_FRONT_NW_SE }, { SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_COVERED_NE_SW, SPR_DINGHY_SLIDE_25_DEG_TO_FLAT_COVERED_FRONT_NE_SW }, @@ -1417,7 +1417,7 @@ static void DinghySlideTrackRightQuarterTurn5Covered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][5] = { + static constexpr SpriteBb imageIds[4][5] = { { { SPR_DINGHY_SLIDE_QUARTER_TURN_5_COVERED_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, { SPR_DINGHY_SLIDE_QUARTER_TURN_5_COVERED_SW_SE_PART_1, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 } }, @@ -1447,7 +1447,7 @@ static void DinghySlideTrackRightQuarterTurn5Covered( { SPR_DINGHY_SLIDE_QUARTER_TURN_5_COVERED_SE_NE_PART_4, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, }, }; - static constexpr const SpriteBb frontImageIds[4][5] = { + static constexpr SpriteBb frontImageIds[4][5] = { { { SPR_DINGHY_SLIDE_QUARTER_TURN_5_COVERED_FRONT_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 27 }, { 32, 30, 0 } }, { SPR_DINGHY_SLIDE_QUARTER_TURN_5_COVERED_FRONT_SW_SE_PART_1, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 } }, @@ -1551,7 +1551,7 @@ static void DinghySlideTrackSBendLeftCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4][2] = { + static constexpr uint32_t imageIds[4][4][2] = { { { SPR_DINGHY_SLIDE_S_BEND_COVERED_SW_SE_SW_SEQ_3, SPR_DINGHY_SLIDE_S_BEND_COVERED_FRONT_NE_NW_NE_SEQ_0 }, { SPR_DINGHY_SLIDE_S_BEND_COVERED_SW_SE_SW_SEQ_2, SPR_DINGHY_SLIDE_S_BEND_COVERED_FRONT_NE_NW_NE_SEQ_1 }, @@ -1656,7 +1656,7 @@ static void DinghySlideTrackSBendRightCovered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4][2] = { + static constexpr uint32_t imageIds[4][4][2] = { { { SPR_DINGHY_SLIDE_S_BEND_COVERED_SW_NW_SW_SEQ_3, SPR_DINGHY_SLIDE_S_BEND_COVERED_FRONT_NE_SE_NE_SEQ_0 }, { SPR_DINGHY_SLIDE_S_BEND_COVERED_SW_NW_SW_SEQ_2, SPR_DINGHY_SLIDE_S_BEND_COVERED_FRONT_NE_SE_NE_SEQ_1 }, @@ -1759,7 +1759,7 @@ static void DinghySlideTrackRightQuarterTurn3Covered( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const SpriteBb imageIds[4][3] = { + static constexpr SpriteBb imageIds[4][3] = { { { SPR_DINGHY_SLIDE_QUARTER_TURN_3_COVERED_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, { SPR_DINGHY_SLIDE_QUARTER_TURN_3_COVERED_SW_SE_PART_1, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 } }, @@ -1781,7 +1781,7 @@ static void DinghySlideTrackRightQuarterTurn3Covered( { SPR_DINGHY_SLIDE_QUARTER_TURN_3_COVERED_SE_NE_PART_2, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 2 } }, }, }; - static constexpr const SpriteBb frontImageIds[4][3] = { + static constexpr SpriteBb frontImageIds[4][3] = { { { SPR_DINGHY_SLIDE_QUARTER_TURN_3_COVERED_FRONT_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 27 }, { 32, 20, 0 } }, { SPR_DINGHY_SLIDE_QUARTER_TURN_3_COVERED_FRONT_SW_SE_PART_1, { 0, 0, 0 }, { 16, 16, 27 }, { 16, 16, 0 } }, diff --git a/src/openrct2/ride/water/LogFlume.cpp b/src/openrct2/ride/water/LogFlume.cpp index bccebb56a3..1624a03400 100644 --- a/src/openrct2/ride/water/LogFlume.cpp +++ b/src/openrct2/ride/water/LogFlume.cpp @@ -154,7 +154,7 @@ enum SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_0 = 21131, }; -static constexpr const uint32_t LogFlumeTrackFlatImageIds[4][2] = { +static constexpr uint32_t LogFlumeTrackFlatImageIds[4][2] = { { SPR_LOG_FLUME_FLAT_SW_NE, SPR_LOG_FLUME_FLAT_FRONT_SW_NE }, { SPR_LOG_FLUME_FLAT_NW_SE, SPR_LOG_FLUME_FLAT_FRONT_NW_SE }, { SPR_LOG_FLUME_FLAT_NE_SW, SPR_LOG_FLUME_FLAT_FRONT_NE_SW }, @@ -223,7 +223,7 @@ static void PaintLogFlumeTrack25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_LOG_FLUME_25_DEG_UP_SW_NE, SPR_LOG_FLUME_25_DEG_UP_FRONT_SW_NE }, { SPR_LOG_FLUME_25_DEG_UP_NW_SE, SPR_LOG_FLUME_25_DEG_UP_FRONT_NW_SE }, { SPR_LOG_FLUME_25_DEG_UP_NE_SW, SPR_LOG_FLUME_25_DEG_UP_FRONT_NE_SW }, @@ -258,7 +258,7 @@ static void PaintLogFlumeTrackFlatTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_SW_NE, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SW_NE }, { SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_NW_SE, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NW_SE }, { SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_NE_SW, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NE_SW }, @@ -293,7 +293,7 @@ static void PaintLogFlumeTrack25DegUpToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_SW_NE, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SW_NE }, { SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_NW_SE, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NW_SE }, { SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_NE_SW, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NE_SW }, @@ -328,7 +328,7 @@ static void PaintLogFlumeTrack25DegDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_LOG_FLUME_25_DEG_DOWN_SW_NE, SPR_LOG_FLUME_25_DEG_UP_FRONT_NE_SW }, { SPR_LOG_FLUME_25_DEG_DOWN_NW_SE, SPR_LOG_FLUME_25_DEG_UP_FRONT_SE_NW }, { SPR_LOG_FLUME_25_DEG_DOWN_NE_SW, SPR_LOG_FLUME_25_DEG_UP_FRONT_SW_NE }, @@ -363,7 +363,7 @@ static void PaintLogFlumeTrackFlatTo25DegDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_SW_NE, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NE_SW }, { SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_NW_SE, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SE_NW }, { SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_NE_SW, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SW_NE }, @@ -398,7 +398,7 @@ static void PaintLogFlumeTrack25DegDownToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_SW_NE, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NE_SW }, { SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_NW_SE, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SE_NW }, { SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_NE_SW, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SW_NE }, @@ -433,7 +433,7 @@ static void PaintLogFlumeTrackSBendLeft( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4][2] = { + static constexpr uint32_t imageIds[4][4][2] = { { { SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_0 }, { SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_1 }, @@ -538,7 +538,7 @@ static void PaintLogFlumeTrackSBendRight( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4][2] = { + static constexpr uint32_t imageIds[4][4][2] = { { { SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_0 }, { SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_1 }, @@ -641,14 +641,14 @@ static void PaintLogFlumeTrackLeftQuarterTurn3Tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_0, SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_2, SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_3 }, { SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_0, SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_2, SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_3 }, { SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_2, SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_3 }, { SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_2, SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_3 }, }; - static constexpr const uint32_t imageIdsFront[4][3] = { + static constexpr uint32_t imageIdsFront[4][3] = { { SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_2, @@ -720,14 +720,14 @@ static void PaintLogFlumeTrackRightQuarterTurn3Tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][3] = { + static constexpr uint32_t imageIds[4][3] = { { SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_2, SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_3 }, { SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_2, SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_3 }, { SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_0, SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_2, SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_3 }, { SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_0, SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_2, SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_3 } }; - static constexpr const uint32_t imageIdsFront[4][3] = { + static constexpr uint32_t imageIdsFront[4][3] = { { SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_2, @@ -829,7 +829,7 @@ static void PaintLogFlumeTrackReverser( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_LOG_FLUME_REVERSER_SW_NE, SPR_LOG_FLUME_REVERSER_FRONT_SW_NE }, { SPR_LOG_FLUME_REVERSER_NW_SE, SPR_LOG_FLUME_REVERSER_FRONT_NW_SE }, { SPR_LOG_FLUME_REVERSER_NE_SW, SPR_LOG_FLUME_REVERSER_FRONT_NE_SW }, @@ -856,7 +856,7 @@ static void LogFlumeTrack25Down60( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_G2_FLUME_25_60_NW_SE_BACK, SPR_G2_FLUME_25_60_NW_SE_BACK_WATER }, { SPR_G2_EMPTY, SPR_G2_FLUME_25_60_NW_SE }, { SPR_G2_EMPTY, SPR_G2_FLUME_25_60_NE_SW }, @@ -897,7 +897,7 @@ static void LogFlumeTrack60Down( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_G2_FLUME_60_NW_SE_BACK, SPR_G2_EMPTY }, { SPR_G2_EMPTY, SPR_G2_FLUME_60_NW_SE }, { SPR_G2_EMPTY, SPR_G2_FLUME_60_NE_SW }, @@ -938,7 +938,7 @@ static void LogFlumeTrack60Down25( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][2] = { + static constexpr uint32_t imageIds[4][2] = { { SPR_G2_FLUME_60_25_NW_SE_BACK, SPR_G2_FLUME_60_25_NW_SE_BACK_WATER }, { SPR_G2_EMPTY, SPR_G2_FLUME_60_25_NW_SE }, { SPR_G2_EMPTY, SPR_G2_FLUME_60_25_NE_SW }, diff --git a/src/openrct2/ride/water/RiverRapids.cpp b/src/openrct2/ride/water/RiverRapids.cpp index 481f0852a8..07d301188b 100644 --- a/src/openrct2/ride/water/RiverRapids.cpp +++ b/src/openrct2/ride/water/RiverRapids.cpp @@ -21,7 +21,7 @@ #ifndef NO_VEHICLES // 0x0099279E: -static constexpr const VehicleBoundBox _riverRapidsBoundbox[] = { +static constexpr VehicleBoundBox _riverRapidsBoundbox[] = { { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, @@ -131,41 +131,41 @@ enum SPR_RIVER_RAPIDS_RAPIDS_WHIRLPOOL_FRAME_0 = 21278, }; -static constexpr const uint32_t river_rapids_track_pieces_25_deg_up[][2] = { +static constexpr uint32_t river_rapids_track_pieces_25_deg_up[][2] = { { SPR_RIVER_RAPIDS_25_DEG_UP_SW_NE, SPR_RIVER_RAPIDS_25_DEG_UP_FRONT_SW_NE }, { SPR_RIVER_RAPIDS_25_DEG_UP_NW_SE, SPR_RIVER_RAPIDS_25_DEG_UP_FRONT_NW_SE }, { SPR_RIVER_RAPIDS_25_DEG_UP_NE_SW, SPR_RIVER_RAPIDS_25_DEG_UP_FRONT_NE_SW }, { SPR_RIVER_RAPIDS_25_DEG_UP_SE_NW, SPR_RIVER_RAPIDS_25_DEG_UP_FRONT_SE_NW }, }; -static constexpr const uint32_t river_rapids_track_pieces_flat_to_25_deg_up[][2] = { +static constexpr uint32_t river_rapids_track_pieces_flat_to_25_deg_up[][2] = { { SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_UP_SW_NE, SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_UP_FRONT_SW_NE }, { SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_UP_NW_SE, SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_UP_FRONT_NW_SE }, { SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_UP_NE_SW, SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_UP_FRONT_NE_SW }, { SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_UP_SE_NW, SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_UP_FRONT_SE_NW }, }; -static constexpr const uint32_t river_rapids_track_pieces_25_deg_up_to_flat[][2] = { +static constexpr uint32_t river_rapids_track_pieces_25_deg_up_to_flat[][2] = { { SPR_RIVER_RAPIDS_25_DEG_UP_TO_FLAT_SW_NE, SPR_RIVER_RAPIDS_25_DEG_UP_TO_FLAT_FRONT_SW_NE }, { SPR_RIVER_RAPIDS_25_DEG_UP_TO_FLAT_NW_SE, SPR_RIVER_RAPIDS_25_DEG_UP_TO_FLAT_FRONT_NW_SE }, { SPR_RIVER_RAPIDS_25_DEG_UP_TO_FLAT_NE_SW, SPR_RIVER_RAPIDS_25_DEG_UP_TO_FLAT_FRONT_NE_SW }, { SPR_RIVER_RAPIDS_25_DEG_UP_TO_FLAT_SE_NW, SPR_RIVER_RAPIDS_25_DEG_UP_TO_FLAT_FRONT_SE_NW }, }; -static constexpr const uint32_t river_rapids_track_pieces_25_deg_down[][2] = { +static constexpr uint32_t river_rapids_track_pieces_25_deg_down[][2] = { { SPR_RIVER_RAPIDS_25_DEG_DOWN_SW_NE, SPR_RIVER_RAPIDS_25_DEG_DOWN_FRONT_SW_NE }, { SPR_RIVER_RAPIDS_25_DEG_DOWN_NW_SE, SPR_RIVER_RAPIDS_25_DEG_DOWN_FRONT_NW_SE }, { SPR_RIVER_RAPIDS_25_DEG_DOWN_NE_SW, SPR_RIVER_RAPIDS_25_DEG_DOWN_FRONT_NE_SW }, { SPR_RIVER_RAPIDS_25_DEG_DOWN_SE_NW, SPR_RIVER_RAPIDS_25_DEG_DOWN_FRONT_SE_NW }, }; -static constexpr const uint32_t river_rapids_track_pieces_flat_to_25_deg_down[][2] = { +static constexpr uint32_t river_rapids_track_pieces_flat_to_25_deg_down[][2] = { { SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_DOWN_SW_NE, SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_DOWN_FRONT_SW_NE }, { SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_DOWN_NW_SE, SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_DOWN_FRONT_NW_SE }, { SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_DOWN_NE_SW, SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_DOWN_FRONT_NE_SW }, { SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_DOWN_SE_NW, SPR_RIVER_RAPIDS_FLAT_TO_25_DEG_DOWN_FRONT_SE_NW }, }; -static constexpr const uint32_t river_rapids_track_pieces_25_deg_down_to_flat[][2] = { +static constexpr uint32_t river_rapids_track_pieces_25_deg_down_to_flat[][2] = { { SPR_RIVER_RAPIDS_25_DEG_DOWN_TO_FLAT_SW_NE, SPR_RIVER_RAPIDS_25_DEG_DOWN_TO_FLAT_FRONT_SW_NE }, { SPR_RIVER_RAPIDS_25_DEG_DOWN_TO_FLAT_NW_SE, SPR_RIVER_RAPIDS_25_DEG_DOWN_TO_FLAT_FRONT_NW_SE }, { SPR_RIVER_RAPIDS_25_DEG_DOWN_TO_FLAT_NE_SW, SPR_RIVER_RAPIDS_25_DEG_DOWN_TO_FLAT_FRONT_NE_SW }, diff --git a/src/openrct2/ride/water/SplashBoats.cpp b/src/openrct2/ride/water/SplashBoats.cpp index ec3cec1f0e..56ec60e072 100644 --- a/src/openrct2/ride/water/SplashBoats.cpp +++ b/src/openrct2/ride/water/SplashBoats.cpp @@ -224,133 +224,133 @@ enum SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_0 = 20995, }; -static constexpr const uint32_t SplashBoats25DegUpImageId[4] = { +static constexpr uint32_t SplashBoats25DegUpImageId[4] = { SPR_SPLASH_BOATS_25_DEG_UP_SW_NE, SPR_SPLASH_BOATS_25_DEG_UP_NW_SE, SPR_SPLASH_BOATS_25_DEG_UP_NE_SW, SPR_SPLASH_BOATS_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t SplashBoats25DegUpFrontImageId[4] = { +static constexpr uint32_t SplashBoats25DegUpFrontImageId[4] = { SPR_SPLASH_BOATS_25_DEG_UP_FRONT_SW_NE, SPR_SPLASH_BOATS_25_DEG_UP_FRONT_NW_SE, SPR_SPLASH_BOATS_25_DEG_UP_FRONT_NE_SW, SPR_SPLASH_BOATS_25_DEG_UP_FRONT_SE_NW, }; -static constexpr const uint32_t SplashBoats60DegUpImageId[4] = { +static constexpr uint32_t SplashBoats60DegUpImageId[4] = { SPR_SPLASH_BOATS_60_DEG_UP_SW_NE, SPR_SPLASH_BOATS_60_DEG_UP_NW_SE, SPR_SPLASH_BOATS_60_DEG_UP_NE_SW, SPR_SPLASH_BOATS_60_DEG_UP_SE_NW, }; -static constexpr const uint32_t SplashBoats60DegUpFrontImageId[4] = { +static constexpr uint32_t SplashBoats60DegUpFrontImageId[4] = { SPR_SPLASH_BOATS_60_DEG_UP_FRONT_SW_NE, SPR_SPLASH_BOATS_60_DEG_UP_FRONT_NW_SE, SPR_SPLASH_BOATS_60_DEG_UP_FRONT_NE_SW, SPR_SPLASH_BOATS_60_DEG_UP_FRONT_SE_NW, }; -static constexpr const uint32_t SplashBoatsFlatTo25DegUpImageId[4] = { +static constexpr uint32_t SplashBoatsFlatTo25DegUpImageId[4] = { SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_SW_NE, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_NW_SE, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_NE_SW, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t SplashBoatsFlatTo25DegUpFrontImageId[4] = { +static constexpr uint32_t SplashBoatsFlatTo25DegUpFrontImageId[4] = { SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_SW_NE, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_NW_SE, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_NE_SW, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_SE_NW, }; -static constexpr const uint32_t SplashBoats25DegUpToFlatImageId[4] = { +static constexpr uint32_t SplashBoats25DegUpToFlatImageId[4] = { SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_SW_NE, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_NW_SE, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_NE_SW, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_SE_NW, }; -static constexpr const uint32_t SplashBoats25DegUpToFlatFrontImageId[4] = { +static constexpr uint32_t SplashBoats25DegUpToFlatFrontImageId[4] = { SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_FRONT_SW_NE, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_FRONT_NW_SE, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_FRONT_NE_SW, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_FRONT_SE_NW, }; -static constexpr const uint32_t SplashBoats25DegUpTo60DegUpImageId[4] = { +static constexpr uint32_t SplashBoats25DegUpTo60DegUpImageId[4] = { SPR_SPLASH_BOATS_25_DEG_UP_TO_60_DEG_UP_SW_NE, SPR_SPLASH_BOATS_25_DEG_UP_TO_60_DEG_UP_NW_SE, SPR_SPLASH_BOATS_25_DEG_UP_TO_60_DEG_UP_NE_SW, SPR_SPLASH_BOATS_25_DEG_UP_TO_60_DEG_UP_SE_NW, }; -static constexpr const uint32_t SplashBoats25DegUpTo60DegUpFrontImageId[4] = { +static constexpr uint32_t SplashBoats25DegUpTo60DegUpFrontImageId[4] = { SPR_SPLASH_BOATS_25_DEG_UP_TO_60_DEG_UP_FRONT_SW_NE, SPR_SPLASH_BOATS_25_DEG_UP_TO_60_DEG_UP_FRONT_NW_SE, SPR_SPLASH_BOATS_25_DEG_UP_TO_60_DEG_UP_FRONT_NE_SW, SPR_SPLASH_BOATS_25_DEG_UP_TO_60_DEG_UP_FRONT_SE_NW, }; -static constexpr const uint32_t SplashBoats60DegUpTo25DegUpImageId[4] = { +static constexpr uint32_t SplashBoats60DegUpTo25DegUpImageId[4] = { SPR_SPLASH_BOATS_60_DEG_UP_TO_25_DEG_UP_SW_NE, SPR_SPLASH_BOATS_60_DEG_UP_TO_25_DEG_UP_NW_SE, SPR_SPLASH_BOATS_60_DEG_UP_TO_25_DEG_UP_NE_SW, SPR_SPLASH_BOATS_60_DEG_UP_TO_25_DEG_UP_SE_NW, }; -static constexpr const uint32_t SplashBoats60DegUpTo25DegUpFrontImageId[4] = { +static constexpr uint32_t SplashBoats60DegUpTo25DegUpFrontImageId[4] = { SPR_SPLASH_BOATS_60_DEG_UP_TO_25_DEG_UP_FRONT_SW_NE, SPR_SPLASH_BOATS_60_DEG_UP_TO_25_DEG_UP_FRONT_NW_SE, SPR_SPLASH_BOATS_60_DEG_UP_TO_25_DEG_UP_FRONT_NE_SW, SPR_SPLASH_BOATS_60_DEG_UP_TO_25_DEG_UP_FRONT_SE_NW, }; -static constexpr const uint32_t SplashBoats25DegDownImageId[4] = { +static constexpr uint32_t SplashBoats25DegDownImageId[4] = { SPR_SPLASH_BOATS_25_DEG_DOWN_SW_NE, SPR_SPLASH_BOATS_25_DEG_DOWN_NW_SE, SPR_SPLASH_BOATS_25_DEG_DOWN_NE_SW, SPR_SPLASH_BOATS_25_DEG_DOWN_SE_NW, }; -static constexpr const uint32_t SplashBoats25DegDownFrontImageId[4] = { +static constexpr uint32_t SplashBoats25DegDownFrontImageId[4] = { SPR_SPLASH_BOATS_25_DEG_UP_FRONT_NE_SW, SPR_SPLASH_BOATS_25_DEG_UP_FRONT_SE_NW, SPR_SPLASH_BOATS_25_DEG_UP_FRONT_SW_NE, SPR_SPLASH_BOATS_25_DEG_UP_FRONT_NW_SE, }; -static constexpr const uint32_t SplashBoatsFlatTo25DegDownImageId[4] = { +static constexpr uint32_t SplashBoatsFlatTo25DegDownImageId[4] = { SPR_SPLASH_BOATS_FLAT_TO_25_DEG_DOWN_SW_NE, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_DOWN_NW_SE, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_DOWN_NE_SW, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_DOWN_SE_NW, }; -static constexpr const uint32_t SplashBoatsFlatTo25DegDownFrontImageId[4] = { +static constexpr uint32_t SplashBoatsFlatTo25DegDownFrontImageId[4] = { SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_FRONT_NE_SW, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_FRONT_SE_NW, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_FRONT_SW_NE, SPR_SPLASH_BOATS_25_DEG_UP_TO_FLAT_FRONT_NW_SE, }; -static constexpr const uint32_t SplashBoats25DegDownToFlatImageId[4] = { +static constexpr uint32_t SplashBoats25DegDownToFlatImageId[4] = { SPR_SPLASH_BOATS_25_DEG_DOWN_TO_FLAT_SW_NE, SPR_SPLASH_BOATS_25_DEG_DOWN_TO_FLAT_NW_SE, SPR_SPLASH_BOATS_25_DEG_DOWN_TO_FLAT_NE_SW, SPR_SPLASH_BOATS_25_DEG_DOWN_TO_FLAT_SE_NW, }; -static constexpr const uint32_t SplashBoats25DegDownToFlatFrontImageId[4] = { +static constexpr uint32_t SplashBoats25DegDownToFlatFrontImageId[4] = { SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_NE_SW, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_SE_NW, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_SW_NE, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_NW_SE, }; -static constexpr const SpriteBb RiverRaftsLeftQuarterTurn5_Top[4][5] = { +static constexpr SpriteBb RiverRaftsLeftQuarterTurn5_Top[4][5] = { { SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, @@ -381,7 +381,7 @@ static constexpr const SpriteBb RiverRaftsLeftQuarterTurn5_Top[4][5] = { }, }; -static constexpr const SpriteBb RiverRaftsLeftQuarterTurn5_Side[4][5] = { +static constexpr SpriteBb RiverRaftsLeftQuarterTurn5_Side[4][5] = { { SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, @@ -412,7 +412,7 @@ static constexpr const SpriteBb RiverRaftsLeftQuarterTurn5_Side[4][5] = { }, }; -static constexpr const SpriteBb RiverRaftsRightQuarterTurn5_Top[4][5] = { +static constexpr SpriteBb RiverRaftsRightQuarterTurn5_Top[4][5] = { { SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, @@ -443,7 +443,7 @@ static constexpr const SpriteBb RiverRaftsRightQuarterTurn5_Top[4][5] = { }, }; -static constexpr const SpriteBb RiverRaftsRightQuarterTurn5_Side[4][5] = { +static constexpr SpriteBb RiverRaftsRightQuarterTurn5_Side[4][5] = { { SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, @@ -631,7 +631,7 @@ static void PaintSplashBoatsTrack25DegDown( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 2 } }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { { 0, 27, height }, { 32, 1, 50 } }); - static constexpr const uint8_t specialSupport[] = { 11, 12, 9, 10 }; + static constexpr uint8_t specialSupport[] = { 11, 12, 9, 10 }; WoodenASupportsPaintSetup( session, (direction & 1), specialSupport[direction], height, session.TrackColours[SCHEME_SUPPORTS]); @@ -664,7 +664,7 @@ static void PaintSplashBoatsTrackFlatTo25DegDown( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 2 } }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - static constexpr const uint8_t specialSupport[] = { 7, 8, 5, 6 }; + static constexpr uint8_t specialSupport[] = { 7, 8, 5, 6 }; WoodenASupportsPaintSetup( session, (direction & 1), specialSupport[direction], height, session.TrackColours[SCHEME_SUPPORTS]); @@ -704,7 +704,7 @@ static void PaintSplashBoatsTrack25DegDownToFlat( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 2 } }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { { 0, 27, height }, { 32, 1, 42 } }); - static constexpr const uint8_t specialSupport[] = { 3, 4, 1, 2 }; + static constexpr uint8_t specialSupport[] = { 3, 4, 1, 2 }; WoodenASupportsPaintSetup( session, (direction & 1), specialSupport[direction], height, session.TrackColours[SCHEME_SUPPORTS]); @@ -810,7 +810,7 @@ static void PaintSplashBoatsTrackLeftQuarterTurn5Tiles( if (trackSequence != 1 && trackSequence != 4) { - static constexpr const uint8_t supportTypes[][7] = { + static constexpr uint8_t supportTypes[][7] = { { 0, 0xFF, 5, 3, 0xFF, 5, 1 }, { 1, 0xFF, 2, 4, 0xFF, 2, 0 }, { 0, 0xFF, 3, 5, 0xFF, 3, 1 }, @@ -889,7 +889,7 @@ static void PaintSplashBoatsTrackRightQuarterTurn5Tiles( if (trackSequence != 1 && trackSequence != 4) { - static constexpr const uint8_t supportTypes[][7] = { + static constexpr uint8_t supportTypes[][7] = { { 0, 0xFF, 4, 2, 0xFF, 4, 1 }, { 1, 0xFF, 5, 3, 0xFF, 5, 0 }, { 0, 0xFF, 2, 4, 0xFF, 2, 1 }, @@ -961,7 +961,7 @@ static void PaintSplashBoatsTrackSBendLeft( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4][2] = { + static constexpr uint32_t imageIds[4][4][2] = { { { SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_0 }, { SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_1 }, @@ -991,8 +991,8 @@ static void PaintSplashBoatsTrackSBendLeft( auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][trackSequence][0]); auto frontImageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][trackSequence][1]); int16_t bboy; - static constexpr const int32_t supportTypes1[] = { 5, 2, 3, 4 }; - static constexpr const int32_t supportTypes2[] = { 3, 4, 5, 2 }; + static constexpr int32_t supportTypes1[] = { 5, 2, 3, 4 }; + static constexpr int32_t supportTypes2[] = { 3, 4, 5, 2 }; switch (trackSequence) { @@ -1061,7 +1061,7 @@ static void PaintSplashBoatsTrackSBendRight( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - static constexpr const uint32_t imageIds[4][4][2] = { + static constexpr uint32_t imageIds[4][4][2] = { { { SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_0 }, { SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_1 }, @@ -1091,8 +1091,8 @@ static void PaintSplashBoatsTrackSBendRight( auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][trackSequence][0]); auto frontImageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][trackSequence][1]); int16_t bboy; - static constexpr const int32_t supportTypes1[] = { 4, 5, 2, 3 }; - static constexpr const int32_t supportTypes2[] = { 2, 3, 4, 5 }; + static constexpr int32_t supportTypes1[] = { 4, 5, 2, 3 }; + static constexpr int32_t supportTypes2[] = { 2, 3, 4, 5 }; switch (trackSequence) { diff --git a/src/openrct2/ride/water/SubmarineRide.cpp b/src/openrct2/ride/water/SubmarineRide.cpp index a3e430ee29..0077ea212a 100644 --- a/src/openrct2/ride/water/SubmarineRide.cpp +++ b/src/openrct2/ride/water/SubmarineRide.cpp @@ -159,7 +159,7 @@ static void SubmarineRidePaintTrackLeftQuarterTurn3Tiles( PaintUtilSetGeneralSupportHeight(session, height + 16, 0x20); } -static constexpr const uint8_t submarine_ride_right_quarter_turn_3_tiles_to_left_turn_map[] = { +static constexpr uint8_t submarine_ride_right_quarter_turn_3_tiles_to_left_turn_map[] = { 3, 1, 2, diff --git a/src/openrct2/ride/water/WaterCoaster.cpp b/src/openrct2/ride/water/WaterCoaster.cpp index 2579be8808..ac84b7e0c4 100644 --- a/src/openrct2/ride/water/WaterCoaster.cpp +++ b/src/openrct2/ride/water/WaterCoaster.cpp @@ -211,7 +211,7 @@ static void WaterRCTrackRightQuarterTurn5Tiles25DegUp( session, ride, trackSequence, direction, height, trackElement, JuniorRCChainType::None); } -static constexpr const uint8_t water_rc_left_quarter_turn_5_tiles_to_right_turn_map[] = { +static constexpr uint8_t water_rc_left_quarter_turn_5_tiles_to_right_turn_map[] = { 6, 4, 5, 3, 1, 2, 0, }; @@ -251,7 +251,7 @@ static void WaterRCTrackRightQuarterTurn3Tiles25DegDown( session, ride, trackSequence, direction, height, trackElement, JuniorRCChainType::None); } -static constexpr const uint8_t water_rc_left_quarter_turn_3_tiles_to_right_turn_map[] = { +static constexpr uint8_t water_rc_left_quarter_turn_3_tiles_to_right_turn_map[] = { 3, 1, 2, diff --git a/src/openrct2/ride/water/meta/BoatHire.h b/src/openrct2/ride/water/meta/BoatHire.h index 28ae70de1c..0f810acce4 100644 --- a/src/openrct2/ride/water/meta/BoatHire.h +++ b/src/openrct2/ride/water/meta/BoatHire.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor BoatHireRTD = +constexpr RideTypeDescriptor BoatHireRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_WATER), diff --git a/src/openrct2/ride/water/meta/DinghySlide.h b/src/openrct2/ride/water/meta/DinghySlide.h index ca9e83eac5..f0534981e5 100644 --- a/src/openrct2/ride/water/meta/DinghySlide.h +++ b/src/openrct2/ride/water/meta/DinghySlide.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor DinghySlideRTD = +constexpr RideTypeDescriptor DinghySlideRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_WATER), diff --git a/src/openrct2/ride/water/meta/LogFlume.h b/src/openrct2/ride/water/meta/LogFlume.h index 739b7814a2..46bfe96b19 100644 --- a/src/openrct2/ride/water/meta/LogFlume.h +++ b/src/openrct2/ride/water/meta/LogFlume.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor LogFlumeRTD = +constexpr RideTypeDescriptor LogFlumeRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_WATER), diff --git a/src/openrct2/ride/water/meta/RiverRafts.h b/src/openrct2/ride/water/meta/RiverRafts.h index 0c14f79c6b..a4488dd09c 100644 --- a/src/openrct2/ride/water/meta/RiverRafts.h +++ b/src/openrct2/ride/water/meta/RiverRafts.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor RiverRaftsRTD = +constexpr RideTypeDescriptor RiverRaftsRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_WATER), diff --git a/src/openrct2/ride/water/meta/RiverRapids.h b/src/openrct2/ride/water/meta/RiverRapids.h index 2445c3aa4a..97f9b6d7bd 100644 --- a/src/openrct2/ride/water/meta/RiverRapids.h +++ b/src/openrct2/ride/water/meta/RiverRapids.h @@ -15,7 +15,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor RiverRapidsRTD = +constexpr RideTypeDescriptor RiverRapidsRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_WATER), diff --git a/src/openrct2/ride/water/meta/SplashBoats.h b/src/openrct2/ride/water/meta/SplashBoats.h index 7646ecf623..8b6cdbcd46 100644 --- a/src/openrct2/ride/water/meta/SplashBoats.h +++ b/src/openrct2/ride/water/meta/SplashBoats.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SplashBoatsRTD = +constexpr RideTypeDescriptor SplashBoatsRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_WATER), diff --git a/src/openrct2/ride/water/meta/SubmarineRide.h b/src/openrct2/ride/water/meta/SubmarineRide.h index 1e615400fc..b635d6ee0b 100644 --- a/src/openrct2/ride/water/meta/SubmarineRide.h +++ b/src/openrct2/ride/water/meta/SubmarineRide.h @@ -16,7 +16,7 @@ #include "../../Track.h" // clang-format off -constexpr const RideTypeDescriptor SubmarineRideRTD = +constexpr RideTypeDescriptor SubmarineRideRTD = { SET_FIELD(AlternateType, RIDE_TYPE_NULL), SET_FIELD(Category, RIDE_CATEGORY_WATER), diff --git a/src/openrct2/scenario/ScenarioRepository.cpp b/src/openrct2/scenario/ScenarioRepository.cpp index 6b7a4c78aa..88be26c914 100644 --- a/src/openrct2/scenario/ScenarioRepository.cpp +++ b/src/openrct2/scenario/ScenarioRepository.cpp @@ -117,7 +117,7 @@ static int32_t ScenarioIndexEntryCompareByIndex(const ScenarioIndexEntry& entryA static void ScenarioHighscoreFree(ScenarioHighscoreEntry* highscore) { - SafeDelete(highscore); + delete highscore; } class ScenarioFileIndex final : public FileIndex @@ -173,7 +173,7 @@ protected: private: static std::unique_ptr GetStreamFromRCT2Scenario(const std::string& path) { - if (String::Equals(Path::GetExtension(path), ".sea", true)) + if (String::IEquals(Path::GetExtension(path), ".sea")) { auto data = DecryptSea(fs::u8path(path)); auto ms = std::make_unique(); @@ -196,7 +196,7 @@ private: try { std::string extension = Path::GetExtension(path); - if (String::Equals(extension, ".park", true)) + if (String::IEquals(extension, ".park")) { // OpenRCT2 park bool result = false; @@ -218,7 +218,7 @@ private: return result; } - if (String::Equals(extension, ".sc4", true)) + if (String::IEquals(extension, ".sc4")) { // RCT1 scenario bool result = false; @@ -389,7 +389,7 @@ public: const auto scenarioFilename = Path::GetFileName(scenario.Path); // Note: this is always case insensitive search for cross platform consistency - if (String::Equals(filename, scenarioFilename, true)) + if (String::IEquals(filename, scenarioFilename)) { return &scenario; } @@ -407,7 +407,7 @@ public: continue; // Note: this is always case insensitive search for cross platform consistency - if (String::Equals(name, scenario->InternalName, true)) + if (String::IEquals(name, scenario->InternalName)) { return &_scenarios[i]; } @@ -441,18 +441,18 @@ public: const std::string scenarioExtension = Path::GetExtension(scenarioFileName); // Check if this is an RCTC scenario that corresponds to a known RCT1/2 scenario or vice versa, see #12626 - if (String::Equals(scenarioExtension, ".sea", true)) + if (String::IEquals(scenarioExtension, ".sea")) { // Get scenario using RCT2 style name of RCTC scenario scenario = GetByFilename((scenarioBaseName + ".sc6").c_str()); } - else if (String::Equals(scenarioExtension, ".sc6", true)) + else if (String::IEquals(scenarioExtension, ".sc6")) { // Get scenario using RCTC style name of RCT2 scenario scenario = GetByFilename((scenarioBaseName + ".sea").c_str()); } // gScenarioFileName .Park scenarios is the full file path instead of just , so need to convert - else if (String::Equals(scenarioExtension, ".park", true)) + else if (String::IEquals(scenarioExtension, ".park")) { scenario = GetByFilename((scenarioBaseName + ".park").c_str()); } @@ -496,7 +496,7 @@ private: const auto scenarioFilename = Path::GetFileName(scenario.Path); // Note: this is always case insensitive search for cross platform consistency - if (String::Equals(filename, scenarioFilename, true)) + if (String::IEquals(filename, scenarioFilename)) { return &scenario; } @@ -536,8 +536,7 @@ private: */ void ConvertMegaPark(const std::string& srcPath, const std::string& dstPath) { - auto directory = Path::GetDirectory(dstPath); - Platform::EnsureDirectoryExists(directory.c_str()); + Path::CreateDirectory(Path::GetDirectory(dstPath)); auto mpdat = File::ReadAllBytes(srcPath); @@ -682,7 +681,7 @@ private: bool notFound = true; for (auto& highscore : _highscores) { - if (String::Equals(scBasic.Path, highscore->fileName, true)) + if (String::IEquals(scBasic.Path, highscore->fileName)) { notFound = false; @@ -805,3 +804,19 @@ bool ScenarioRepositoryTryRecordHighscore(const utf8* scenarioFileName, money64 IScenarioRepository* repo = GetScenarioRepository(); return repo->TryRecordHighscore(LocalisationService_GetCurrentLanguage(), scenarioFileName, companyValue, name); } + +void ScenarioTranslate(ScenarioIndexEntry* scenarioEntry) +{ + StringId localisedStringIds[3]; + if (LanguageGetLocalisedScenarioStrings(scenarioEntry->Name, localisedStringIds)) + { + if (localisedStringIds[0] != STR_NONE) + { + String::Set(scenarioEntry->Name, sizeof(scenarioEntry->Name), LanguageGetString(localisedStringIds[0])); + } + if (localisedStringIds[2] != STR_NONE) + { + String::Set(scenarioEntry->Details, sizeof(scenarioEntry->Details), LanguageGetString(localisedStringIds[2])); + } + } +} diff --git a/src/openrct2/scenario/ScenarioSources.cpp b/src/openrct2/scenario/ScenarioSources.cpp index bc0f3e7c78..73c69e8d11 100644 --- a/src/openrct2/scenario/ScenarioSources.cpp +++ b/src/openrct2/scenario/ScenarioSources.cpp @@ -34,7 +34,7 @@ namespace ScenarioSources #pragma region Scenario Data // clang-format off - static constexpr const ScenarioAlias ScenarioAliases[] = + static constexpr ScenarioAlias ScenarioAliases[] = { // UK - US differences: { "Katie's Dreamland", "Katie's World" }, @@ -116,7 +116,7 @@ namespace ScenarioSources }; // RCT - static constexpr const ScenarioTitleDescriptor ScenarioTitlesRCT1[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesRCT1[] = { { SC_FOREST_FRONTIERS, "Forest Frontiers", SCENARIO_CATEGORY_BEGINNER }, { SC_DYNAMITE_DUNES, "Dynamite Dunes", SCENARIO_CATEGORY_BEGINNER }, @@ -143,7 +143,7 @@ namespace ScenarioSources }; // RCT: Added Attractions - static constexpr const ScenarioTitleDescriptor ScenarioTitlesRCT1AA[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesRCT1AA[] = { { SC_WHISPERING_CLIFFS, "Whispering Cliffs", SCENARIO_CATEGORY_BEGINNER }, { SC_THREE_MONKEYS_PARK, "Three Monkeys Park", SCENARIO_CATEGORY_BEGINNER }, @@ -178,7 +178,7 @@ namespace ScenarioSources }; // RCT: Loopy Landscapes - static constexpr const ScenarioTitleDescriptor ScenarioTitlesRCT1LL[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesRCT1LL[] = { { SC_ICEBERG_ISLANDS, "Iceberg Islands", SCENARIO_CATEGORY_BEGINNER }, { SC_VOLCANIA, "Volcania", SCENARIO_CATEGORY_BEGINNER }, @@ -213,7 +213,7 @@ namespace ScenarioSources }; // RCT2 - static constexpr const ScenarioTitleDescriptor ScenarioTitlesRCT2[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesRCT2[] = { { SC_UNIDENTIFIED, "Electric Fields", SCENARIO_CATEGORY_BEGINNER }, { SC_UNIDENTIFIED, "Factory Capers", SCENARIO_CATEGORY_BEGINNER }, @@ -233,7 +233,7 @@ namespace ScenarioSources }; // RCT2: Wacky Worlds - static constexpr const ScenarioTitleDescriptor ScenarioTitlesRCT2WW[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesRCT2WW[] = { { SC_UNIDENTIFIED, "Africa - Victoria Falls", SCENARIO_CATEGORY_BEGINNER }, { SC_UNIDENTIFIED, "Asia - Great Wall of China Tourism Enhancement", SCENARIO_CATEGORY_BEGINNER }, @@ -255,7 +255,7 @@ namespace ScenarioSources }; // RCT2: Time Twister - static constexpr const ScenarioTitleDescriptor ScenarioTitlesRCT2TT[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesRCT2TT[] = { { SC_UNIDENTIFIED, "Dark Age - Robin Hood", SCENARIO_CATEGORY_BEGINNER }, { SC_UNIDENTIFIED, "Prehistoric - After the Asteroid", SCENARIO_CATEGORY_BEGINNER }, @@ -274,7 +274,7 @@ namespace ScenarioSources }; // User Created Expansion Sets - static constexpr const ScenarioTitleDescriptor ScenarioTitlesUCES[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesUCES[] = { { SC_UNIDENTIFIED, "Lighthouse of Alexandria by Katatude for UCES", SCENARIO_CATEGORY_TIME_MACHINE }, { SC_UNIDENTIFIED, "Cleveland's Luna Park", SCENARIO_CATEGORY_TIME_MACHINE }, @@ -297,7 +297,7 @@ namespace ScenarioSources }; // Real parks - static constexpr const ScenarioTitleDescriptor ScenarioTitlesRealParks[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesRealParks[] = { { SC_ALTON_TOWERS, "Alton Towers", SCENARIO_CATEGORY_REAL }, { SC_HEIDE_PARK, "Heide-Park", SCENARIO_CATEGORY_REAL }, @@ -310,7 +310,7 @@ namespace ScenarioSources }; // Other parks - static constexpr const ScenarioTitleDescriptor ScenarioTitlesExtrasParks[] = + static constexpr ScenarioTitleDescriptor ScenarioTitlesExtrasParks[] = { { SC_FORT_ANACHRONISM, "Fort Anachronism", SCENARIO_CATEGORY_DLC }, { SC_PCPLAYER, "PC Player", SCENARIO_CATEGORY_DLC }, @@ -368,7 +368,7 @@ namespace ScenarioSources for (size_t j = 0; j < ScenarioTitlesBySource[i].count; j++) { const ScenarioTitleDescriptor* desc = &ScenarioTitlesBySource[i].titles[j]; - if (String::Equals(name, desc->Title, true)) + if (String::IEquals(name, desc->Title)) { outDesc->title = desc->Title; outDesc->id = desc->Id; diff --git a/src/openrct2/scripting/IconNames.hpp b/src/openrct2/scripting/IconNames.hpp index d26040e5d3..67a6dc4871 100644 --- a/src/openrct2/scripting/IconNames.hpp +++ b/src/openrct2/scripting/IconNames.hpp @@ -114,6 +114,8 @@ namespace OpenRCT2::Scripting { "selection_edge_ne", SPR_G2_SELECTION_EDGE_NE }, { "selection_edge_sw", SPR_G2_SELECTION_EDGE_SW }, { "selection_edge_se", SPR_G2_SELECTION_EDGE_SE }, + { "palette_invisible", SPR_G2_ICON_PALETTE_INVISIBLE }, + { "palette_invisible_pressed", SPR_G2_ICON_PALETTE_INVISIBLE_PRESSED }, }; // Maps legacy G2 icons sprite indices to new sprite indices diff --git a/src/openrct2/scripting/ScriptEngine.cpp b/src/openrct2/scripting/ScriptEngine.cpp index 8d9f9172a0..c064ca486d 100644 --- a/src/openrct2/scripting/ScriptEngine.cpp +++ b/src/openrct2/scripting/ScriptEngine.cpp @@ -39,7 +39,9 @@ # include "bindings/network/ScPlayer.hpp" # include "bindings/network/ScPlayerGroup.hpp" # include "bindings/network/ScSocket.hpp" +# include "bindings/object/ScInstalledObject.hpp" # include "bindings/object/ScObject.hpp" +# include "bindings/object/ScObjectManager.h" # include "bindings/ride/ScRide.hpp" # include "bindings/ride/ScRideStation.hpp" # include "bindings/world/ScClimate.hpp" @@ -403,8 +405,16 @@ void ScriptEngine::Initialise() ScDisposable::Register(ctx); ScMap::Register(ctx); ScNetwork::Register(ctx); + ScObjectManager::Register(ctx); + ScInstalledObject::Register(ctx); ScObject::Register(ctx); + ScSceneryObject::Register(ctx); ScSmallSceneryObject::Register(ctx); + ScLargeSceneryObject::Register(ctx); + ScWallObject::Register(ctx); + ScFootpathAdditionObject::Register(ctx); + ScBannerObject::Register(ctx); + ScSceneryGroupObject::Register(ctx); ScPark::Register(ctx); ScParkMessage::Register(ctx); ScPlayer::Register(ctx); @@ -444,6 +454,7 @@ void ScriptEngine::Initialise() dukglue_register_global(ctx, std::make_shared(ctx), "park"); dukglue_register_global(ctx, std::make_shared(ctx), "profiler"); dukglue_register_global(ctx, std::make_shared(), "scenario"); + dukglue_register_global(ctx, std::make_shared(), "objectManager"); RegisterConstants(); @@ -1091,26 +1102,35 @@ GameActions::Result ScriptEngine::QueryOrExecuteCustomGameAction(const CustomAct auto action = GameActions::Result(); action.Error = GameActions::Status::Unknown; action.ErrorTitle = "Unknown custom action"; + action.ErrorMessage = customAction.GetPluginName() + ": " + actionz; return action; } GameActions::Result ScriptEngine::DukToGameActionResult(const DukValue& d) { auto result = GameActions::Result(); - result.Error = static_cast(AsOrDefault(d["error"])); - result.ErrorTitle = AsOrDefault(d["errorTitle"]); - result.ErrorMessage = AsOrDefault(d["errorMessage"]); - result.Cost = AsOrDefault(d["cost"]); - - auto expenditureType = AsOrDefault(d["expenditureType"]); - if (!expenditureType.empty()) + if (d.type() == DUK_TYPE_OBJECT) { - auto expenditure = StringToExpenditureType(expenditureType); - if (expenditure != ExpenditureType::Count) + result.Error = static_cast(AsOrDefault(d["error"])); + result.ErrorTitle = AsOrDefault(d["errorTitle"]); + result.ErrorMessage = AsOrDefault(d["errorMessage"]); + result.Cost = AsOrDefault(d["cost"]); + auto expenditureType = AsOrDefault(d["expenditureType"]); + if (!expenditureType.empty()) { - result.Expenditure = expenditure; + auto expenditure = StringToExpenditureType(expenditureType); + if (expenditure != ExpenditureType::Count) + { + result.Expenditure = expenditure; + } } } + else + { + result.Error = GameActions::Status::Unknown; + result.ErrorTitle = "Unknown"; + result.ErrorMessage = "Unknown"; + } return result; } @@ -1466,7 +1486,8 @@ void ScriptEngine::RunGameActionHooks(const GameAction& action, GameActions::Res } } -std::unique_ptr ScriptEngine::CreateGameAction(const std::string& actionid, const DukValue& args) +std::unique_ptr ScriptEngine::CreateGameAction( + const std::string& actionid, const DukValue& args, const std::string& pluginName) { auto action = CreateGameActionFromActionId(actionid); if (action != nullptr) @@ -1494,7 +1515,7 @@ std::unique_ptr ScriptEngine::CreateGameAction(const std::string& ac auto jsonz = duk_json_encode(ctx, -1); auto json = std::string(jsonz); duk_pop(ctx); - auto customAction = std::make_unique(actionid, json); + auto customAction = std::make_unique(actionid, json, pluginName); if (customAction->GetPlayer() == -1 && NetworkGetMode() != NETWORK_MODE_NONE) { diff --git a/src/openrct2/scripting/ScriptEngine.h b/src/openrct2/scripting/ScriptEngine.h index ac870caa85..dbc208ec5c 100644 --- a/src/openrct2/scripting/ScriptEngine.h +++ b/src/openrct2/scripting/ScriptEngine.h @@ -47,7 +47,7 @@ namespace OpenRCT2 namespace OpenRCT2::Scripting { - static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 77; + static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 78; // Versions marking breaking changes. static constexpr int32_t API_VERSION_33_PEEP_DEPRECATION = 33; @@ -257,7 +257,8 @@ namespace OpenRCT2::Scripting bool RegisterCustomAction( const std::shared_ptr& plugin, std::string_view action, const DukValue& query, const DukValue& execute); void RunGameActionHooks(const GameAction& action, GameActions::Result& result, bool isExecute); - [[nodiscard]] std::unique_ptr CreateGameAction(const std::string& actionid, const DukValue& args); + [[nodiscard]] std::unique_ptr CreateGameAction( + const std::string& actionid, const DukValue& args, const std::string& pluginName); [[nodiscard]] DukValue GameActionResultToDuk(const GameAction& action, const GameActions::Result& result); void SaveSharedStorage(); diff --git a/src/openrct2/scripting/bindings/game/ScContext.hpp b/src/openrct2/scripting/bindings/game/ScContext.hpp index 73a2009e5f..2080d9bda4 100644 --- a/src/openrct2/scripting/bindings/game/ScContext.hpp +++ b/src/openrct2/scripting/bindings/game/ScContext.hpp @@ -23,7 +23,7 @@ # include "../../ScriptEngine.h" # include "../game/ScConfiguration.hpp" # include "../game/ScDisposable.hpp" -# include "../object/ScObject.hpp" +# include "../object/ScObjectManager.h" # include "../ride/ScTrackSegment.h" # include @@ -160,64 +160,18 @@ namespace OpenRCT2::Scripting } } - static DukValue CreateScObject(duk_context* ctx, ObjectType type, int32_t index) - { - switch (type) - { - case ObjectType::Ride: - return GetObjectAsDukValue(ctx, std::make_shared(type, index)); - case ObjectType::SmallScenery: - return GetObjectAsDukValue(ctx, std::make_shared(type, index)); - default: - return GetObjectAsDukValue(ctx, std::make_shared(type, index)); - } - } - DukValue getObject(const std::string& typez, int32_t index) const { - auto ctx = GetContext()->GetScriptEngine().GetContext(); - auto& objManager = GetContext()->GetObjectManager(); - - auto type = ScObject::StringToObjectType(typez); - if (type) - { - auto obj = objManager.GetLoadedObject(*type, index); - if (obj != nullptr) - { - return CreateScObject(ctx, *type, index); - } - } - else - { - duk_error(ctx, DUK_ERR_ERROR, "Invalid object type."); - } - return ToDuk(ctx, nullptr); + // deprecated function, moved to ObjectManager.getObject. + ScObjectManager objectManager; + return objectManager.getObject(typez, index); } std::vector getAllObjects(const std::string& typez) const { - auto ctx = GetContext()->GetScriptEngine().GetContext(); - auto& objManager = GetContext()->GetObjectManager(); - - std::vector result; - auto type = ScObject::StringToObjectType(typez); - if (type) - { - auto count = object_entry_group_counts[EnumValue(*type)]; - for (int32_t i = 0; i < count; i++) - { - auto obj = objManager.GetLoadedObject(*type, i); - if (obj != nullptr) - { - result.push_back(CreateScObject(ctx, *type, i)); - } - } - } - else - { - duk_error(ctx, DUK_ERR_ERROR, "Invalid object type."); - } - return result; + // deprecated function, moved to ObjectManager.getAllObjects. + ScObjectManager objectManager; + return objectManager.getAllObjects(typez); } DukValue getTrackSegment(track_type_t type) @@ -301,6 +255,19 @@ namespace OpenRCT2::Scripting return 1; } +# ifdef _MSC_VER + // HACK workaround to resolve issue #14853 + // The exception thrown in duk_error was causing a crash when RAII kicked in for this lambda. + // Only ensuring it was not in the same generated method fixed it. + __declspec(noinline) +# endif + std::shared_ptr CreateSubscription(HOOK_TYPE hookType, const DukValue& callback) + { + auto owner = _execInfo.GetCurrentPlugin(); + auto cookie = _hookEngine.Subscribe(hookType, owner, callback); + return std::make_shared([this, hookType, cookie]() { _hookEngine.Unsubscribe(hookType, cookie); }); + } + std::shared_ptr subscribe(const std::string& hook, const DukValue& callback) { auto& scriptEngine = GetContext()->GetScriptEngine(); @@ -328,8 +295,7 @@ namespace OpenRCT2::Scripting duk_error(ctx, DUK_ERR_ERROR, "Hook type not available for this plugin type."); } - auto cookie = _hookEngine.Subscribe(hookType, owner, callback); - return std::make_shared([this, hookType, cookie]() { _hookEngine.Unsubscribe(hookType, cookie); }); + return CreateSubscription(hookType, callback); } void queryAction(const std::string& action, const DukValue& args, const DukValue& callback) @@ -348,10 +314,10 @@ namespace OpenRCT2::Scripting auto ctx = scriptEngine.GetContext(); try { - auto action = scriptEngine.CreateGameAction(actionid, args); + auto plugin = scriptEngine.GetExecInfo().GetCurrentPlugin(); + auto action = scriptEngine.CreateGameAction(actionid, args, plugin->GetMetadata().Name); if (action != nullptr) { - auto plugin = scriptEngine.GetExecInfo().GetCurrentPlugin(); if (isExecute) { action->SetCallback( diff --git a/src/openrct2/scripting/bindings/object/ScInstalledObject.hpp b/src/openrct2/scripting/bindings/object/ScInstalledObject.hpp new file mode 100644 index 0000000000..39b652fade --- /dev/null +++ b/src/openrct2/scripting/bindings/object/ScInstalledObject.hpp @@ -0,0 +1,197 @@ +/***************************************************************************** + * Copyright (c) 2014-2020 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#ifdef ENABLE_SCRIPTING + +# include "../../../Context.h" +# include "../../../common.h" +# include "../../../object/ObjectRepository.h" +# include "../../Duktape.hpp" +# include "../../ScriptEngine.h" + +# include + +namespace OpenRCT2::Scripting +{ + inline std::string_view ObjectTypeToString(uint8_t type) + { + static constexpr std::string_view Types[] = { + "ride", + "small_scenery", + "large_scenery", + "wall", + "banner", + "footpath", + "footpath_addition", + "scenery_group", + "park_entrance", + "water", + "stex", + "terrain_surface", + "terrain_edge", + "station", + "music", + "footpath_surface", + "footpath_railings", + }; + if (type >= std::size(Types)) + return "unknown"; + return Types[type]; + } + + inline std::string_view ObjectSourceGameToString(ObjectSourceGame sourceGame) + { + static constexpr std::string_view values[] = { "custom", "wacky_worlds", "time_twister", "openrct2_official", + "rct1", "added_attractions", "loopy_landscapes", "unknown", + "rct2" }; + if (EnumValue(sourceGame) >= std::size(values)) + return "unknown"; + return values[EnumValue(sourceGame)]; + } + + class ScInstalledObject + { + protected: + size_t _index{}; + + public: + ScInstalledObject(size_t index) + : _index(index) + { + } + + static void Register(duk_context* ctx) + { + dukglue_register_property(ctx, &ScInstalledObject::path_get, nullptr, "path"); + dukglue_register_property(ctx, &ScInstalledObject::generation_get, nullptr, "generation"); + dukglue_register_property(ctx, &ScInstalledObject::identifier_get, nullptr, "identifier"); + dukglue_register_property(ctx, &ScInstalledObject::type_get, nullptr, "type"); + dukglue_register_property(ctx, &ScInstalledObject::sourceGames_get, nullptr, "sourceGames"); + dukglue_register_property(ctx, &ScInstalledObject::legacyIdentifier_get, nullptr, "legacyIdentifier"); + dukglue_register_property(ctx, &ScInstalledObject::authors_get, nullptr, "authors"); + dukglue_register_property(ctx, &ScInstalledObject::name_get, nullptr, "name"); + } + + private: + std::string path_get() const + { + auto installedObject = GetInstalledObject(); + if (installedObject != nullptr) + { + return installedObject->Path; + } + return {}; + } + + std::string generation_get() const + { + auto installedObject = GetInstalledObject(); + if (installedObject != nullptr) + { + if (installedObject->Generation == ObjectGeneration::DAT) + return "dat"; + else + return "json"; + } + return {}; + } + + std::vector sourceGames_get() const + { + std::vector result; + auto installedObject = GetInstalledObject(); + if (installedObject != nullptr) + { + for (const auto& sourceGame : installedObject->Sources) + { + result.push_back(std::string(ObjectSourceGameToString(sourceGame))); + } + } + return result; + } + + std::string type_get() const + { + auto installedObject = GetInstalledObject(); + if (installedObject != nullptr) + { + return std::string(ObjectTypeToString(EnumValue(installedObject->Type))); + } + return {}; + } + + std::string identifier_get() const + { + auto installedObject = GetInstalledObject(); + if (installedObject != nullptr) + { + if (installedObject->Generation == ObjectGeneration::DAT) + { + return ObjectEntryDescriptor(installedObject->ObjectEntry).ToString(); + } + else + { + return installedObject->Identifier; + } + } + return {}; + } + + DukValue legacyIdentifier_get() const + { + auto ctx = GetContext()->GetScriptEngine().GetContext(); + auto installedObject = GetInstalledObject(); + if (installedObject != nullptr) + { + if (!installedObject->ObjectEntry.IsEmpty()) + { + return ToDuk(ctx, installedObject->ObjectEntry.GetName()); + } + } + return ToDuk(ctx, nullptr); + } + + std::vector authors_get() const + { + auto installedObject = GetInstalledObject(); + if (installedObject != nullptr) + { + return installedObject->Authors; + } + return {}; + } + + std::string name_get() const + { + auto installedObject = GetInstalledObject(); + if (installedObject != nullptr) + { + return installedObject->Name; + } + return {}; + } + + const ObjectRepositoryItem* GetInstalledObject() const + { + auto context = GetContext(); + auto& objectRepository = context->GetObjectRepository(); + auto numObjects = objectRepository.GetNumObjects(); + if (_index < numObjects) + { + auto* objects = objectRepository.GetObjects(); + return &objects[_index]; + } + return nullptr; + } + }; +} // namespace OpenRCT2::Scripting + +#endif diff --git a/src/openrct2/scripting/bindings/object/ScObject.hpp b/src/openrct2/scripting/bindings/object/ScObject.hpp index 9a51f7c2e5..bd5a47b86a 100644 --- a/src/openrct2/scripting/bindings/object/ScObject.hpp +++ b/src/openrct2/scripting/bindings/object/ScObject.hpp @@ -15,9 +15,11 @@ # include "../../../common.h" # include "../../../object/ObjectManager.h" # include "../../../object/RideObject.h" +# include "../../../object/SceneryGroupObject.h" # include "../../../object/SmallSceneryObject.h" # include "../../Duktape.hpp" # include "../../ScriptEngine.h" +# include "ScInstalledObject.hpp" # include # include @@ -39,6 +41,7 @@ namespace OpenRCT2::Scripting static void Register(duk_context* ctx) { + dukglue_register_property(ctx, &ScObject::installedObject_get, nullptr, "installedObject"); dukglue_register_property(ctx, &ScObject::type_get, nullptr, "type"); dukglue_register_property(ctx, &ScObject::index_get, nullptr, "index"); dukglue_register_property(ctx, &ScObject::identifier_get, nullptr, "identifier"); @@ -58,36 +61,25 @@ namespace OpenRCT2::Scripting return static_cast(i); } } - return ObjectType::None; - } - - static std::string_view ObjectTypeToString(uint8_t type) - { - static constexpr std::string_view Types[] = { - "ride", - "small_scenery", - "large_scenery", - "wall", - "banner", - "footpath", - "footpath_addition", - "scenery_group", - "park_entrance", - "water", - "stex", - "terrain_surface", - "terrain_edge", - "station", - "music", - "footpath_surface", - "footpath_railings", - }; - if (type >= std::size(Types)) - return "unknown"; - return Types[type]; + return std::nullopt; } private: + std::shared_ptr installedObject_get() const + { + auto obj = GetObject(); + if (obj != nullptr) + { + auto& objectRepository = GetContext()->GetObjectRepository(); + auto installedObject = objectRepository.FindObject(obj->GetDescriptor()); + if (installedObject != nullptr) + { + return std::make_shared(installedObject->Id); + } + } + return {}; + } + std::string type_get() const { return std::string(ObjectTypeToString(EnumValue(_type))); @@ -103,7 +95,14 @@ namespace OpenRCT2::Scripting auto obj = GetObject(); if (obj != nullptr) { - return std::string(obj->GetIdentifier()); + if (obj->GetGeneration() == ObjectGeneration::DAT) + { + return obj->GetDescriptor().ToString(); + } + else + { + return std::string(obj->GetIdentifier()); + } } return {}; } @@ -791,17 +790,53 @@ namespace OpenRCT2::Scripting } }; - class ScSmallSceneryObject : public ScObject + class ScSceneryObject : public ScObject { public: - ScSmallSceneryObject(ObjectType type, int32_t index) + ScSceneryObject(ObjectType type, int32_t index) : ScObject(type, index) { } static void Register(duk_context* ctx) { - dukglue_set_base_class(ctx); + dukglue_set_base_class(ctx); + dukglue_register_property(ctx, &ScSceneryObject::sceneryGroups_get, nullptr, "sceneryGroups"); + } + + private: + std::vector sceneryGroups_get() const + { + std::vector result; + auto obj = GetObject(); + if (obj != nullptr) + { + auto& scgDescriptor = obj->GetPrimarySceneryGroup(); + if (scgDescriptor.HasValue()) + { + result.push_back(scgDescriptor.ToString()); + } + } + return result; + } + + SceneryObject* GetObject() const + { + return static_cast(ScObject::GetObject()); + } + }; + + class ScSmallSceneryObject : public ScSceneryObject + { + public: + ScSmallSceneryObject(ObjectType type, int32_t index) + : ScSceneryObject(type, index) + { + } + + static void Register(duk_context* ctx) + { + dukglue_set_base_class(ctx); dukglue_register_property(ctx, &ScSmallSceneryObject::flags_get, nullptr, "flags"); dukglue_register_property(ctx, &ScSmallSceneryObject::height_get, nullptr, "height"); dukglue_register_property(ctx, &ScSmallSceneryObject::price_get, nullptr, "price"); @@ -865,6 +900,99 @@ namespace OpenRCT2::Scripting return static_cast(ScObject::GetObject()); } }; + + class ScLargeSceneryObject : public ScSceneryObject + { + public: + ScLargeSceneryObject(ObjectType type, int32_t index) + : ScSceneryObject(type, index) + { + } + + static void Register(duk_context* ctx) + { + dukglue_set_base_class(ctx); + } + }; + + class ScWallObject : public ScSceneryObject + { + public: + ScWallObject(ObjectType type, int32_t index) + : ScSceneryObject(type, index) + { + } + + static void Register(duk_context* ctx) + { + dukglue_set_base_class(ctx); + } + }; + + class ScFootpathAdditionObject : public ScSceneryObject + { + public: + ScFootpathAdditionObject(ObjectType type, int32_t index) + : ScSceneryObject(type, index) + { + } + + static void Register(duk_context* ctx) + { + dukglue_set_base_class(ctx); + } + }; + + class ScBannerObject : public ScSceneryObject + { + public: + ScBannerObject(ObjectType type, int32_t index) + : ScSceneryObject(type, index) + { + } + + static void Register(duk_context* ctx) + { + dukglue_set_base_class(ctx); + } + }; + + class ScSceneryGroupObject : public ScObject + { + public: + ScSceneryGroupObject(ObjectType type, int32_t index) + : ScObject(type, index) + { + } + + static void Register(duk_context* ctx) + { + dukglue_set_base_class(ctx); + dukglue_register_property(ctx, &ScSceneryGroupObject::items_get, nullptr, "items"); + } + + private: + std::vector items_get() const + { + std::vector result; + auto obj = GetObject(); + if (obj != nullptr) + { + auto& items = obj->GetItems(); + for (const auto& item : items) + { + result.push_back(item.ToString()); + } + } + return result; + } + + protected: + SceneryGroupObject* GetObject() const + { + return static_cast(ScObject::GetObject()); + } + }; } // namespace OpenRCT2::Scripting #endif diff --git a/src/openrct2/scripting/bindings/object/ScObjectManager.cpp b/src/openrct2/scripting/bindings/object/ScObjectManager.cpp new file mode 100644 index 0000000000..882f46b126 --- /dev/null +++ b/src/openrct2/scripting/bindings/object/ScObjectManager.cpp @@ -0,0 +1,283 @@ +/***************************************************************************** + * Copyright (c) 2014-2023 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#ifdef ENABLE_SCRIPTING + +# include "ScObjectManager.h" + +# include "../../../object/ObjectList.h" +# include "../../../ride/RideData.h" +# include "../../Duktape.hpp" +# include "../../ScriptEngine.h" + +using namespace OpenRCT2; +using namespace OpenRCT2::Scripting; + +void ScObjectManager::Register(duk_context* ctx) +{ + dukglue_register_property(ctx, &ScObjectManager::installedObjects_get, nullptr, "installedObjects"); + dukglue_register_method(ctx, &ScObjectManager::load, "load"); + dukglue_register_method(ctx, &ScObjectManager::unload, "unload"); + dukglue_register_method(ctx, &ScObjectManager::getObject, "getObject"); + dukglue_register_method(ctx, &ScObjectManager::getAllObjects, "getAllObjects"); +} + +std::vector> ScObjectManager::installedObjects_get() const +{ + std::vector> result; + + auto context = GetContext(); + auto& objectManager = context->GetObjectRepository(); + auto count = objectManager.GetNumObjects(); + for (size_t i = 0; i < count; i++) + { + auto installedObject = std::make_shared(i); + result.push_back(installedObject); + } + + return result; +} + +DukValue ScObjectManager::load(const DukValue& p1, const DukValue& p2) +{ + auto context = GetContext(); + auto& scriptEngine = context->GetScriptEngine(); + auto& objectRepository = context->GetObjectRepository(); + auto& objectManager = context->GetObjectManager(); + auto ctx = scriptEngine.GetContext(); + + if (p1.is_array()) + { + // load(identifiers) + std::vector descriptors; + for (const auto& item : p1.as_array()) + { + if (item.type() != DukValue::STRING) + throw DukException() << "Expected string for 'identifier'."; + + const auto& identifier = item.as_string(); + descriptors.push_back(ObjectEntryDescriptor::Parse(identifier)); + } + + duk_push_array(ctx); + duk_uarridx_t index = 0; + for (const auto& descriptor : descriptors) + { + auto obj = objectManager.LoadObject(descriptor); + if (obj != nullptr) + { + MarkAsResearched(obj); + auto objIndex = objectManager.GetLoadedObjectEntryIndex(obj); + auto scLoadedObject = CreateScObject(scriptEngine.GetContext(), obj->GetObjectType(), objIndex); + scLoadedObject.push(); + duk_put_prop_index(ctx, -2, index); + } + else + { + duk_push_null(ctx); + duk_put_prop_index(ctx, -2, index); + } + index++; + } + RefreshResearchedItems(); + return DukValue::take_from_stack(ctx); + } + else + { + // load(identifier, index?) + if (p1.type() != DukValue::STRING) + throw DukException() << "Expected string for 'identifier'."; + + const auto& identifier = p1.as_string(); + auto descriptor = ObjectEntryDescriptor::Parse(identifier); + + auto installedObject = objectRepository.FindObject(descriptor); + if (installedObject != nullptr) + { + if (p2.type() != DukValue::UNDEFINED) + { + if (p2.type() != DukValue::NUMBER) + throw DukException() << "Expected number for 'index'."; + + auto index = static_cast(p2.as_int()); + auto limit = GetObjectTypeLimit(installedObject->Type); + if (index < limit) + { + auto loadedObject = objectManager.GetLoadedObject(installedObject->Type, index); + if (loadedObject != nullptr) + { + objectManager.UnloadObjects({ loadedObject->GetDescriptor() }); + } + auto obj = objectManager.LoadObject(descriptor, static_cast(index)); + if (obj != nullptr) + { + MarkAsResearched(obj); + RefreshResearchedItems(); + auto objIndex = objectManager.GetLoadedObjectEntryIndex(obj); + return CreateScObject(scriptEngine.GetContext(), obj->GetObjectType(), objIndex); + } + } + } + else + { + auto obj = objectManager.LoadObject(descriptor); + if (obj != nullptr) + { + MarkAsResearched(obj); + RefreshResearchedItems(); + auto objIndex = objectManager.GetLoadedObjectEntryIndex(obj); + return CreateScObject(scriptEngine.GetContext(), obj->GetObjectType(), objIndex); + } + } + } + } + return ToDuk(ctx, nullptr); +} + +void ScObjectManager::unload(const DukValue& p1, const DukValue& p2) +{ + auto context = GetContext(); + auto& objectManager = context->GetObjectManager(); + + if (p1.type() == DukValue::STRING) + { + const auto& szP1 = p1.as_string(); + auto objType = ScObject::StringToObjectType(szP1); + if (objType) + { + // unload(type, index) + if (p2.type() != DukValue::NUMBER) + throw DukException() << "'index' is invalid."; + + auto objIndex = p2.as_int(); + auto obj = objectManager.GetLoadedObject(*objType, objIndex); + if (obj != nullptr) + { + objectManager.UnloadObjects({ obj->GetDescriptor() }); + } + } + else + { + // unload(identifier) + objectManager.UnloadObjects({ ObjectEntryDescriptor::Parse(szP1) }); + } + } + else if (p1.is_array()) + { + // unload(identifiers) + auto identifiers = p1.as_array(); + std::vector descriptors; + for (const auto& identifier : identifiers) + { + if (identifier.type() == DukValue::STRING) + { + descriptors.push_back(ObjectEntryDescriptor::Parse(identifier.as_string())); + } + } + objectManager.UnloadObjects(descriptors); + } +} + +DukValue ScObjectManager::getObject(const std::string& typez, int32_t index) const +{ + auto ctx = GetContext()->GetScriptEngine().GetContext(); + auto& objManager = GetContext()->GetObjectManager(); + + auto type = ScObject::StringToObjectType(typez); + if (type) + { + auto obj = objManager.GetLoadedObject(*type, index); + if (obj != nullptr) + { + return CreateScObject(ctx, *type, index); + } + } + else + { + duk_error(ctx, DUK_ERR_ERROR, "Invalid object type."); + } + return ToDuk(ctx, nullptr); +} + +std::vector ScObjectManager::getAllObjects(const std::string& typez) const +{ + auto ctx = GetContext()->GetScriptEngine().GetContext(); + auto& objManager = GetContext()->GetObjectManager(); + + std::vector result; + auto type = ScObject::StringToObjectType(typez); + if (type) + { + auto count = object_entry_group_counts[EnumValue(*type)]; + for (int32_t i = 0; i < count; i++) + { + auto obj = objManager.GetLoadedObject(*type, i); + if (obj != nullptr) + { + result.push_back(CreateScObject(ctx, *type, i)); + } + } + } + else + { + duk_error(ctx, DUK_ERR_ERROR, "Invalid object type."); + } + return result; +} + +void ScObjectManager::MarkAsResearched(const Object* object) +{ + // Defaults selected items to researched (if in-game) + auto objectType = object->GetObjectType(); + auto entryIndex = ObjectManagerGetLoadedObjectEntryIndex(object); + if (objectType == ObjectType::Ride) + { + const auto* rideEntry = GetRideEntryByIndex(entryIndex); + auto rideType = rideEntry->GetFirstNonNullRideType(); + auto category = static_cast(GetRideTypeDescriptor(rideType).Category); + ResearchInsertRideEntry(rideType, entryIndex, category, true); + } + else if (objectType == ObjectType::SceneryGroup) + { + ResearchInsertSceneryGroupEntry(entryIndex, true); + } +} + +void ScObjectManager::RefreshResearchedItems() +{ + // Same thing object selection window and inventions window does + gSilentResearch = true; + ResearchResetCurrentItem(); + gSilentResearch = false; +} + +DukValue ScObjectManager::CreateScObject(duk_context* ctx, ObjectType type, int32_t index) +{ + switch (type) + { + case ObjectType::Ride: + return GetObjectAsDukValue(ctx, std::make_shared(type, index)); + case ObjectType::SmallScenery: + return GetObjectAsDukValue(ctx, std::make_shared(type, index)); + case ObjectType::LargeScenery: + return GetObjectAsDukValue(ctx, std::make_shared(type, index)); + case ObjectType::Walls: + return GetObjectAsDukValue(ctx, std::make_shared(type, index)); + case ObjectType::PathAdditions: + return GetObjectAsDukValue(ctx, std::make_shared(type, index)); + case ObjectType::Banners: + return GetObjectAsDukValue(ctx, std::make_shared(type, index)); + case ObjectType::SceneryGroup: + return GetObjectAsDukValue(ctx, std::make_shared(type, index)); + default: + return GetObjectAsDukValue(ctx, std::make_shared(type, index)); + } +} + +#endif diff --git a/src/openrct2/scripting/bindings/object/ScObjectManager.h b/src/openrct2/scripting/bindings/object/ScObjectManager.h new file mode 100644 index 0000000000..f6ce560602 --- /dev/null +++ b/src/openrct2/scripting/bindings/object/ScObjectManager.h @@ -0,0 +1,43 @@ +/***************************************************************************** + * Copyright (c) 2014-2020 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#ifdef ENABLE_SCRIPTING + +# include "../../Duktape.hpp" +# include "../../ScriptEngine.h" +# include "ScInstalledObject.hpp" +# include "ScObject.hpp" + +# include + +namespace OpenRCT2::Scripting +{ + class ScObjectManager + { + public: + static void Register(duk_context* ctx); + + std::vector> installedObjects_get() const; + + DukValue load(const DukValue& p1, const DukValue& p2); + void unload(const DukValue& p1, const DukValue& p2); + + DukValue getObject(const std::string& typez, int32_t index) const; + std::vector getAllObjects(const std::string& typez) const; + + private: + static void MarkAsResearched(const Object* object); + static void RefreshResearchedItems(); + static DukValue CreateScObject(duk_context* ctx, ObjectType type, int32_t index); + }; +} // namespace OpenRCT2::Scripting + +#endif diff --git a/src/openrct2/scripting/bindings/world/ScTileElement.cpp b/src/openrct2/scripting/bindings/world/ScTileElement.cpp index 44fea35ab7..1fd3c55e88 100644 --- a/src/openrct2/scripting/bindings/world/ScTileElement.cpp +++ b/src/openrct2/scripting/bindings/world/ScTileElement.cpp @@ -1791,7 +1791,7 @@ namespace OpenRCT2::Scripting auto* ctx = scriptEngine.GetContext(); auto* el = _element->AsPath(); if (el != nullptr && el->HasAddition()) - duk_push_int(ctx, el->GetAddition() - 1); + duk_push_int(ctx, el->GetAdditionEntryIndex()); else duk_push_null(ctx); return DukValue::take_from_stack(ctx); @@ -1807,7 +1807,7 @@ namespace OpenRCT2::Scripting auto addition = value.as_int(); if (addition >= 0 && addition <= 254) { - el->SetAddition(addition + 1); + el->SetAdditionEntryIndex(addition); } } else diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 1c9a49da0a..7ff7f7a8fa 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -971,6 +971,62 @@ enum SPR_G2_ARROW_DOWN, SPR_G2_RELOAD, + SPR_G2_ICON_PALETTE_INVISIBLE, + SPR_G2_ICON_PALETTE_INVISIBLE_PRESSED, + + // G2 Palette maps + + SPR_G2_PALETTE_BEGIN, + SPR_G2_PAL_REMAP_DARK_OLIVE_DARK = SPR_G2_PALETTE_BEGIN, + SPR_G2_PAL_REMAP_DARK_OLIVE_LIGHT, + SPR_G2_PAL_REMAP_SATURATED_BROWN_LIGHT, + SPR_G2_PAL_REMAP_BORDEAUX_RED_DARK, + SPR_G2_PAL_REMAP_BORDEAUX_RED_LIGHT, + SPR_G2_PAL_REMAP_GRASS_GREEN_DARK, + SPR_G2_PAL_REMAP_GRASS_GREEN_LIGHT, + SPR_G2_PAL_REMAP_OLIVE_DARK, + SPR_G2_PAL_REMAP_OLIVE_LIGHT, + SPR_G2_PAL_REMAP_SATURATED_GREEN_LIGHT, + SPR_G2_PAL_REMAP_TAN_DARK, + SPR_G2_PAL_REMAP_TAN_LIGHT, + SPR_G2_PAL_REMAP_DULL_PURPLE_LIGHT, + SPR_G2_PAL_REMAP_DULL_GREEN_DARK, + SPR_G2_PAL_REMAP_DULL_GREEN_LIGHT, + SPR_G2_PAL_REMAP_SATURATED_PURPLE_DARK, + SPR_G2_PAL_REMAP_SATURATED_PURPLE_LIGHT, + SPR_G2_PAL_REMAP_ORANGE_LIGHT, + SPR_G2_PAL_REMAP_AQUA_DARK, + SPR_G2_PAL_REMAP_MAGENTA_LIGHT, + SPR_G2_PAL_REMAP_DULL_BROWN_DARK, + SPR_G2_PAL_REMAP_DULL_BROWN_LIGHT, + SPR_G2_PAL_REMAP_INVISIBLE, + SPR_G2_PAL_REMAP_VOID, + SPR_G2_PAL_GLASS_DARK_OLIVE_DARK, + SPR_G2_PAL_GLASS_DARK_OLIVE_LIGHT, + SPR_G2_PAL_GLASS_SATURATED_BROWN_LIGHT, + SPR_G2_PAL_GLASS_BORDEAUX_RED_DARK, + SPR_G2_PAL_GLASS_BORDEAUX_RED_LIGHT, + SPR_G2_PAL_GLASS_GRASS_GREEN_DARK, + SPR_G2_PAL_GLASS_GRASS_GREEN_LIGHT, + SPR_G2_PAL_GLASS_OLIVE_DARK, + SPR_G2_PAL_GLASS_OLIVE_LIGHT, + SPR_G2_PAL_GLASS_SATURATED_GREEN_LIGHT, + SPR_G2_PAL_GLASS_TAN_DARK, + SPR_G2_PAL_GLASS_TAN_LIGHT, + SPR_G2_PAL_GLASS_DULL_PURPLE_LIGHT, + SPR_G2_PAL_GLASS_DULL_GREEN_DARK, + SPR_G2_PAL_GLASS_DULL_GREEN_LIGHT, + SPR_G2_PAL_GLASS_SATURATED_PURPLE_DARK, + SPR_G2_PAL_GLASS_SATURATED_PURPLE_LIGHT, + SPR_G2_PAL_GLASS_ORANGE_LIGHT, + SPR_G2_PAL_GLASS_AQUA_DARK, + SPR_G2_PAL_GLASS_MAGENTA_LIGHT, + SPR_G2_PAL_GLASS_DULL_BROWN_DARK, + SPR_G2_PAL_GLASS_DULL_BROWN_LIGHT, + SPR_G2_PAL_GLASS_INVISIBLE, + SPR_G2_PAL_GLASS_VOID, + SPR_G2_PALETTE_END = SPR_G2_PAL_GLASS_VOID, + // G2 Misc SPR_G2_SURFACE_GLASSY_RECOLOURABLE, @@ -987,6 +1043,7 @@ enum SPR_G2_O_STROKE_UPPER, SPR_G2_O_STROKE_LOWER, + SPR_G2_CYRILLIC_UKRAINIAN_IE_UPPER, SPR_G2_CYRILLIC_BE_UPPER, SPR_G2_CYRILLIC_GHE_UPPER, SPR_G2_CYRILLIC_DE_UPPER, @@ -1033,6 +1090,9 @@ enum SPR_G2_CYRILLIC_E_LOWER, SPR_G2_CYRILLIC_YU_LOWER, SPR_G2_CYRILLIC_YA_LOWER, + SPR_G2_CYRILLIC_UKRAINIAN_IE_LOWER, + SPR_G2_CYRILLIC_GHE_UPTURN_UPPER, + SPR_G2_CYRILLIC_GHE_UPTURN_LOWER, SPR_G2_GERMAN_OPENQUOTES, @@ -1368,61 +1428,7 @@ enum SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL = SPR_G2_ALPINE_LIFT_TRACK_FLAT_DIAGONAL + 4, SPR_G2_ALPINE_END = SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 12, - SPR_G2_ICON_PALETTE_INVISIBLE = SPR_G2_ALPINE_END, - SPR_G2_ICON_PALETTE_INVISIBLE_PRESSED, - - SPR_G2_PALETTE_BEGIN, - SPR_G2_PAL_REMAP_DARK_OLIVE_DARK = SPR_G2_PALETTE_BEGIN, - SPR_G2_PAL_REMAP_DARK_OLIVE_LIGHT, - SPR_G2_PAL_REMAP_SATURATED_BROWN_LIGHT, - SPR_G2_PAL_REMAP_BORDEAUX_RED_DARK, - SPR_G2_PAL_REMAP_BORDEAUX_RED_LIGHT, - SPR_G2_PAL_REMAP_GRASS_GREEN_DARK, - SPR_G2_PAL_REMAP_GRASS_GREEN_LIGHT, - SPR_G2_PAL_REMAP_OLIVE_DARK, - SPR_G2_PAL_REMAP_OLIVE_LIGHT, - SPR_G2_PAL_REMAP_SATURATED_GREEN_LIGHT, - SPR_G2_PAL_REMAP_TAN_DARK, - SPR_G2_PAL_REMAP_TAN_LIGHT, - SPR_G2_PAL_REMAP_DULL_PURPLE_LIGHT, - SPR_G2_PAL_REMAP_DULL_GREEN_DARK, - SPR_G2_PAL_REMAP_DULL_GREEN_LIGHT, - SPR_G2_PAL_REMAP_SATURATED_PURPLE_DARK, - SPR_G2_PAL_REMAP_SATURATED_PURPLE_LIGHT, - SPR_G2_PAL_REMAP_ORANGE_LIGHT, - SPR_G2_PAL_REMAP_AQUA_DARK, - SPR_G2_PAL_REMAP_MAGENTA_LIGHT, - SPR_G2_PAL_REMAP_DULL_BROWN_DARK, - SPR_G2_PAL_REMAP_DULL_BROWN_LIGHT, - SPR_G2_PAL_REMAP_INVISIBLE, - SPR_G2_PAL_REMAP_VOID, - SPR_G2_PAL_GLASS_DARK_OLIVE_DARK, - SPR_G2_PAL_GLASS_DARK_OLIVE_LIGHT, - SPR_G2_PAL_GLASS_SATURATED_BROWN_LIGHT, - SPR_G2_PAL_GLASS_BORDEAUX_RED_DARK, - SPR_G2_PAL_GLASS_BORDEAUX_RED_LIGHT, - SPR_G2_PAL_GLASS_GRASS_GREEN_DARK, - SPR_G2_PAL_GLASS_GRASS_GREEN_LIGHT, - SPR_G2_PAL_GLASS_OLIVE_DARK, - SPR_G2_PAL_GLASS_OLIVE_LIGHT, - SPR_G2_PAL_GLASS_SATURATED_GREEN_LIGHT, - SPR_G2_PAL_GLASS_TAN_DARK, - SPR_G2_PAL_GLASS_TAN_LIGHT, - SPR_G2_PAL_GLASS_DULL_PURPLE_LIGHT, - SPR_G2_PAL_GLASS_DULL_GREEN_DARK, - SPR_G2_PAL_GLASS_DULL_GREEN_LIGHT, - SPR_G2_PAL_GLASS_SATURATED_PURPLE_DARK, - SPR_G2_PAL_GLASS_SATURATED_PURPLE_LIGHT, - SPR_G2_PAL_GLASS_ORANGE_LIGHT, - SPR_G2_PAL_GLASS_AQUA_DARK, - SPR_G2_PAL_GLASS_MAGENTA_LIGHT, - SPR_G2_PAL_GLASS_DULL_BROWN_DARK, - SPR_G2_PAL_GLASS_DULL_BROWN_LIGHT, - SPR_G2_PAL_GLASS_INVISIBLE, - SPR_G2_PAL_GLASS_VOID, - SPR_G2_PALETTE_END = SPR_G2_PAL_GLASS_VOID, - - SPR_G2_END, + SPR_G2_END = SPR_G2_ALPINE_END, SPR_CSG_BEGIN = SPR_G2_END, SPR_CSG_END = SPR_CSG_BEGIN + RCT1::Limits::Num_LL_CSG_Entries, diff --git a/src/openrct2/title/TitleScreen.cpp b/src/openrct2/title/TitleScreen.cpp index 1a3f72b6cc..1fa0a184d8 100644 --- a/src/openrct2/title/TitleScreen.cpp +++ b/src/openrct2/title/TitleScreen.cpp @@ -448,12 +448,9 @@ void DrawOpenRCT2(DrawPixelInfo& dpi, const ScreenCoordsXY& screenCoords) // Write name and version information buffer += gVersionInfoFull; - GfxDrawString(dpi, screenCoords + ScreenCoordsXY(5, 5 - 13), buffer.c_str(), { COLOUR_BLACK }); - // Invalidate screen area + GfxDrawString(dpi, screenCoords + ScreenCoordsXY(5, 5 - 13), buffer.c_str(), { COLOUR_BLACK }); int16_t width = static_cast(GfxGetStringWidth(buffer, FontStyle::Medium)); - GfxSetDirtyBlocks( - { screenCoords, screenCoords + ScreenCoordsXY{ width, 30 } }); // 30 is an arbitrary height to catch both strings // Write platform information buffer.assign("{OUTLINE}{WHITE}"); @@ -461,5 +458,11 @@ void DrawOpenRCT2(DrawPixelInfo& dpi, const ScreenCoordsXY& screenCoords) buffer.append(" ("); buffer.append(OPENRCT2_ARCHITECTURE); buffer.append(")"); + GfxDrawString(dpi, screenCoords + ScreenCoordsXY(5, 5), buffer.c_str(), { COLOUR_BLACK }); + width = std::max(width, static_cast(GfxGetStringWidth(buffer, FontStyle::Medium))); + + // Invalidate screen area + GfxSetDirtyBlocks({ screenCoords - ScreenCoordsXY(0, 13), + screenCoords + ScreenCoordsXY{ width + 5, 30 } }); // 30 is an arbitrary height to catch both strings } diff --git a/src/openrct2/title/TitleSequence.cpp b/src/openrct2/title/TitleSequence.cpp index 864f0bba44..a6812ec23d 100644 --- a/src/openrct2/title/TitleSequence.cpp +++ b/src/openrct2/title/TitleSequence.cpp @@ -307,8 +307,7 @@ namespace OpenRCT2::Title auto scanner = Path::ScanDirectory(pattern, true); while (scanner->Next()) { - const utf8* path = scanner->GetPathRelative(); - saves.push_back(path); + saves.push_back(scanner->GetPathRelative()); } return saves; } @@ -321,7 +320,7 @@ namespace OpenRCT2::Title { auto name = zip->GetFileName(i); auto ext = Path::GetExtension(name); - if (String::Equals(ext, ".sv6", true) || String::Equals(ext, ".sc6", true) || String::Equals(ext, ".park", true)) + if (String::IEquals(ext, ".sv6") || String::IEquals(ext, ".sc6") || String::IEquals(ext, ".park")) { saves.push_back(std::move(name)); } @@ -343,13 +342,13 @@ namespace OpenRCT2::Title if (token[0] != 0) { - if (_stricmp(token, "LOAD") == 0) + if (String::IEquals(token, "LOAD")) { auto saveIndex = SAVE_INDEX_INVALID; const std::string relativePath = parts[1].data(); for (size_t i = 0; i < saves.size(); i++) { - if (String::Equals(relativePath, saves[i], true)) + if (String::IEquals(relativePath, saves[i])) { saveIndex = static_cast(i); break; @@ -357,48 +356,48 @@ namespace OpenRCT2::Title } command = LoadParkCommand{ saveIndex }; } - else if (_stricmp(token, "LOCATION") == 0) + else if (String::IEquals(token, "LOCATION")) { uint8_t locationX = atoi(parts[1].data()) & 0xFF; uint8_t locationY = atoi(parts[2].data()) & 0xFF; command = SetLocationCommand{ locationX, locationY }; } - else if (_stricmp(token, "ROTATE") == 0) + else if (String::IEquals(token, "ROTATE")) { uint8_t rotations = atoi(parts[1].data()) & 0xFF; command = RotateViewCommand{ rotations }; } - else if (_stricmp(token, "ZOOM") == 0) + else if (String::IEquals(token, "ZOOM")) { uint8_t zoom = atoi(parts[1].data()) & 0xFF; command = SetZoomCommand{ zoom }; } - else if (_stricmp(token, "SPEED") == 0) + else if (String::IEquals(token, "SPEED")) { uint8_t speed = std::max(1, std::min(4, atoi(parts[1].data()) & 0xFF)); command = SetSpeedCommand{ speed }; } - else if (_stricmp(token, "FOLLOW") == 0) + else if (String::IEquals(token, "FOLLOW")) { auto entityID = EntityId::FromUnderlying(atoi(parts[1].data()) & 0xFFFF); auto followCommand = FollowEntityCommand{ entityID }; SafeStrCpy(followCommand.Follow.SpriteName, parts[2].data(), USER_STRING_MAX_LENGTH); command = followCommand; } - else if (_stricmp(token, "WAIT") == 0) + else if (String::IEquals(token, "WAIT")) { uint16_t milliseconds = atoi(parts[1].data()) & 0xFFFF; command = WaitCommand{ milliseconds }; } - else if (_stricmp(token, "RESTART") == 0) + else if (String::IEquals(token, "RESTART")) { command = RestartCommand{}; } - else if (_stricmp(token, "END") == 0) + else if (String::IEquals(token, "END")) { command = EndCommand{}; } - else if (_stricmp(token, "LOADSC") == 0) + else if (String::IEquals(token, "LOADSC")) { auto loadScenarioCommand = LoadScenarioCommand{}; SafeStrCpy(loadScenarioCommand.Scenario, parts[1].data(), sizeof(loadScenarioCommand.Scenario)); @@ -447,12 +446,12 @@ namespace OpenRCT2::Title if (!whitespace) { if (part == 0 - && ((cindex == 4 && _strnicmp(parts[0].data(), "LOAD", 4) == 0) - || (cindex == 6 && _strnicmp(parts[0].data(), "LOADSC", 6) == 0))) + && ((cindex == 4 && String::StartsWith(parts[0].data(), "LOAD", true)) + || (cindex == 6 && String::StartsWith(parts[0].data(), "LOADSC", true)))) { load = true; } - else if (part == 0 && cindex == 6 && _strnicmp(parts[0].data(), "FOLLOW", 6) == 0) + else if (part == 0 && cindex == 6 && String::StartsWith(parts[0].data(), "FOLLOW", true)) { sprite = true; } diff --git a/src/openrct2/title/TitleSequenceManager.cpp b/src/openrct2/title/TitleSequenceManager.cpp index 5a4d157d37..18ab3c9ae5 100644 --- a/src/openrct2/title/TitleSequenceManager.cpp +++ b/src/openrct2/title/TitleSequenceManager.cpp @@ -169,7 +169,7 @@ namespace TitleSequenceManager auto filename = Path::GetFileName(path); for (size_t i = 0; i < std::size(PredefinedSequences); i++) { - if (String::Equals(filename, PredefinedSequences[i].Filename, true)) + if (String::IEquals(filename, PredefinedSequences[i].Filename)) { return i; } @@ -186,7 +186,7 @@ namespace TitleSequenceManager { return a.PredefinedIndex < b.PredefinedIndex; } - return _strcmpi(a.Name.c_str(), b.Name.c_str()) < 0; + return String::Compare(a.Name, b.Name, true) < 0; }); } @@ -217,7 +217,7 @@ namespace TitleSequenceManager { TitleSequenceManagerItem item{}; - if (String::Equals(Path::GetExtension(scanPath), u8".txt", true)) + if (String::IEquals(Path::GetExtension(scanPath), u8".txt")) { // If we are given a .txt file, set the path to the containing directory item.Path = Path::GetDirectory(scanPath); @@ -270,7 +270,7 @@ namespace TitleSequenceManager { for (const auto& pseq : TitleSequenceManager::PredefinedSequences) { - if (String::Equals(name, pseq.ConfigId, true)) + if (String::IEquals(name, pseq.ConfigId)) { return true; } @@ -315,7 +315,7 @@ const utf8* TitleSequenceManagerGetConfigID(size_t index) const auto filename = Path::GetFileName(item->Path); for (const auto& pseq : TitleSequenceManager::PredefinedSequences) { - if (String::Equals(filename, pseq.Filename, true)) + if (String::IEquals(filename, pseq.Filename)) { return pseq.ConfigId; } diff --git a/src/openrct2/title/TitleSequenceManager.h b/src/openrct2/title/TitleSequenceManager.h index adb76ce8ed..6ee6b6e9c5 100644 --- a/src/openrct2/title/TitleSequenceManager.h +++ b/src/openrct2/title/TitleSequenceManager.h @@ -33,7 +33,7 @@ namespace TitleSequenceManager void Scan(); } // namespace TitleSequenceManager -constexpr const size_t PREDEFINED_INDEX_CUSTOM = std::numeric_limits::max(); +constexpr size_t PREDEFINED_INDEX_CUSTOM = std::numeric_limits::max(); size_t TitleSequenceManagerGetCount(); const utf8* TitleSequenceManagerGetName(size_t index); diff --git a/src/openrct2/util/Util.cpp b/src/openrct2/util/Util.cpp index 72828aa2e2..833913f432 100644 --- a/src/openrct2/util/Util.cpp +++ b/src/openrct2/util/Util.cpp @@ -186,7 +186,7 @@ static int32_t BitCountPopcnt(uint32_t source) #elif defined(OpenRCT2_CPUID_MSVC_X86) return _mm_popcnt_u32(source); #else - openrct2_assert(false, "bitcount_popcnt() called, without support compiled in"); + Guard::Fail("bitcount_popcnt() called, without support compiled in"); return INT_MAX; #endif } @@ -194,7 +194,7 @@ static int32_t BitCountPopcnt(uint32_t source) static int32_t BitCountLut(uint32_t source) { // https://graphics.stanford.edu/~seander/bithacks.html - static constexpr const uint8_t BitsSetTable256[256] = { + static constexpr uint8_t BitsSetTable256[256] = { #define B2(n) n, (n) + 1, (n) + 1, (n) + 2 #define B4(n) B2(n), B2((n) + 1), B2((n) + 1), B2((n) + 2) #define B6(n) B4(n), B4((n) + 1), B4((n) + 1), B4((n) + 2) @@ -204,12 +204,7 @@ static int32_t BitCountLut(uint32_t source) + BitsSetTable256[source >> 24]; } -static int32_t (*BitCountFn)(uint32_t); - -void BitCountInit() -{ - BitCountFn = BitCountPopcntAvailable() ? BitCountPopcnt : BitCountLut; -} +static const auto BitCountFn = BitCountPopcntAvailable() ? BitCountPopcnt : BitCountLut; int32_t BitCount(uint32_t source) { diff --git a/src/openrct2/util/Util.h b/src/openrct2/util/Util.h index 5ec8b7e6fb..03ea13c960 100644 --- a/src/openrct2/util/Util.h +++ b/src/openrct2/util/Util.h @@ -28,7 +28,6 @@ bool AVX2Available(); int32_t UtilBitScanForward(int32_t source); int32_t UtilBitScanForward(int64_t source); -void BitCountInit(); int32_t BitCount(uint32_t source); int32_t StrLogicalCmp(char const* a, char const* b); char* SafeStrCpy(char* destination, const char* source, size_t num); @@ -69,3 +68,13 @@ template constexpr auto EnumValue(TEnum enumerator) noexcept { return static_cast>(enumerator); } + +constexpr uint8_t HiByte(uint16_t value) +{ + return static_cast(value >> 8); +} + +constexpr uint8_t LoByte(uint16_t value) +{ + return static_cast(value & 0xFFU); +} diff --git a/src/openrct2/windows/Intent.cpp b/src/openrct2/windows/Intent.cpp index 614113ba6f..5fa865c573 100644 --- a/src/openrct2/windows/Intent.cpp +++ b/src/openrct2/windows/Intent.cpp @@ -106,7 +106,7 @@ void* Intent::GetPointerExtra(uint32_t key) const } auto data = _Data.at(key); - openrct2_assert(data.type == IntentData::DataType::Pointer, "Actual type doesn't match requested type"); + Guard::Assert(data.type == IntentData::DataType::Pointer, "Actual type doesn't match requested type"); return static_cast(data.pointerVal); } @@ -118,7 +118,7 @@ uint32_t Intent::GetUIntExtra(uint32_t key) const } auto data = _Data.at(key); - openrct2_assert(data.type == IntentData::DataType::Int, "Actual type doesn't match requested type"); + Guard::Assert(data.type == IntentData::DataType::Int, "Actual type doesn't match requested type"); return data.intVal.unsignedInt; } @@ -130,7 +130,7 @@ int32_t Intent::GetSIntExtra(uint32_t key) const } auto data = _Data.at(key); - openrct2_assert(data.type == IntentData::DataType::Int, "Actual type doesn't match requested type"); + Guard::Assert(data.type == IntentData::DataType::Int, "Actual type doesn't match requested type"); return data.intVal.signedInt; } @@ -142,7 +142,7 @@ std::string Intent::GetStringExtra(uint32_t key) const } auto data = _Data.at(key); - openrct2_assert(data.type == IntentData::DataType::String, "Actual type doesn't match requested type"); + Guard::Assert(data.type == IntentData::DataType::String, "Actual type doesn't match requested type"); return data.stringVal; } @@ -154,6 +154,6 @@ close_callback Intent::GetCloseCallbackExtra(uint32_t key) const } auto data = _Data.at(key); - openrct2_assert(data.type == IntentData::DataType::CloseCallback, "Actual type doesn't match requested type"); + Guard::Assert(data.type == IntentData::DataType::CloseCallback, "Actual type doesn't match requested type"); return data.closeCallbackVal; } diff --git a/src/openrct2/windows/Intent.h b/src/openrct2/windows/Intent.h index 9cf4326cff..b0360f0ff2 100644 --- a/src/openrct2/windows/Intent.h +++ b/src/openrct2/windows/Intent.h @@ -47,6 +47,7 @@ enum IntentAction INTENT_ACTION_TRACK_DESIGN_RESTORE_PROVISIONAL, INTENT_ACTION_SET_MAP_TOOLTIP, INTENT_ACTION_NEW_SCENERY, + INTENT_ACTION_TILE_MODIFY, INTENT_ACTION_NULL = 255, }; diff --git a/src/openrct2/windows/_legacy.cpp b/src/openrct2/windows/_legacy.cpp index 2b977c85b6..9e0d109e4e 100644 --- a/src/openrct2/windows/_legacy.cpp +++ b/src/openrct2/windows/_legacy.cpp @@ -60,9 +60,9 @@ money64 PlaceProvisionalTrackPiece( _unkF440C5 = { trackPos, static_cast(trackDirection) }; _currentTrackSelectionFlags |= TRACK_SELECTION_FLAG_TRACK; - ViewportSetVisibility(3); + ViewportSetVisibility(ViewportVisibility::UndergroundViewOff); if (_currentTrackSlopeEnd != 0) - ViewportSetVisibility(2); + ViewportSetVisibility(ViewportVisibility::TrackHeights); // Invalidate previous track piece (we may not be changing height!) VirtualFloorInvalidate(); @@ -88,7 +88,7 @@ money64 PlaceProvisionalTrackPiece( int16_t z_begin, z_end; const auto& ted = GetTrackElementDescriptor(trackType); const TrackCoordinates& coords = ted.Coordinates; - if (!ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_NO_TRACK)) + if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_TRACK)) { z_begin = coords.z_begin; z_end = coords.z_end; @@ -102,9 +102,11 @@ money64 PlaceProvisionalTrackPiece( _currentTrackSelectionFlags |= TRACK_SELECTION_FLAG_TRACK; const auto resultData = res.GetData(); - ViewportSetVisibility((resultData.GroundFlags & ELEMENT_IS_UNDERGROUND) ? 1 : 3); + const auto visiblity = (resultData.GroundFlags & ELEMENT_IS_UNDERGROUND) ? ViewportVisibility::UndergroundViewOn + : ViewportVisibility::UndergroundViewOff; + ViewportSetVisibility(visiblity); if (_currentTrackSlopeEnd != 0) - ViewportSetVisibility(2); + ViewportSetVisibility(ViewportVisibility::TrackHeights); // Invalidate previous track piece (we may not be changing height!) VirtualFloorInvalidate(); diff --git a/src/openrct2/world/Banner.cpp b/src/openrct2/world/Banner.cpp index 1d0c053247..ace65eefa5 100644 --- a/src/openrct2/world/Banner.cpp +++ b/src/openrct2/world/Banner.cpp @@ -198,7 +198,7 @@ WallElement* BannerGetScrollingWallTileElement(BannerIndex bannerIndex) */ RideId BannerGetClosestRideIndex(const CoordsXYZ& mapPos) { - static constexpr const std::array NeighbourCheckOrder = { + static constexpr std::array NeighbourCheckOrder = { CoordsXY{ COORDS_XY_STEP, 0 }, CoordsXY{ -COORDS_XY_STEP, 0 }, CoordsXY{ 0, COORDS_XY_STEP }, diff --git a/src/openrct2/world/Climate.cpp b/src/openrct2/world/Climate.cpp index 5d61d449cb..d2371f2dcf 100644 --- a/src/openrct2/world/Climate.cpp +++ b/src/openrct2/world/Climate.cpp @@ -477,7 +477,7 @@ constexpr auto R = WeatherType::Rain; constexpr auto H = WeatherType::HeavyRain; constexpr auto T = WeatherType::Thunder; -static constexpr const WeatherTransition ClimateTransitionsCoolAndWet[] = { +static constexpr WeatherTransition ClimateTransitionsCoolAndWet[] = { { 8, 18, { S, P, P, P, P, P, C, C, C, C, C, C, C, R, R, R, H, H, S, S, S, S, S } }, { 10, 21, { P, P, P, P, P, C, C, C, C, C, C, C, C, C, R, R, R, H, H, H, T, S, S } }, { 14, 17, { S, S, S, P, P, P, P, P, P, C, C, C, C, R, R, R, H, S, S, S, S, S, S } }, @@ -487,7 +487,7 @@ static constexpr const WeatherTransition ClimateTransitionsCoolAndWet[] = { { 16, 19, { S, S, S, P, P, P, P, P, C, C, C, C, C, C, R, R, H, H, T, S, S, S, S } }, { 13, 16, { S, S, P, P, P, P, C, C, C, C, C, C, R, R, H, T, S, S, S, S, S, S, S } }, }; -static constexpr const WeatherTransition ClimateTransitionsWarm[] = { +static constexpr WeatherTransition ClimateTransitionsWarm[] = { { 12, 21, { S, S, S, S, S, P, P, P, P, P, P, P, P, C, C, C, C, C, C, C, H, S, S } }, { 13, 22, { S, S, S, S, S, P, P, P, P, P, P, C, C, C, C, C, C, C, C, C, R, T, S } }, { 16, 17, { S, S, S, S, S, S, P, P, P, P, P, P, C, C, C, C, R, S, S, S, S, S, S } }, @@ -497,7 +497,7 @@ static constexpr const WeatherTransition ClimateTransitionsWarm[] = { { 19, 17, { S, S, S, S, S, P, P, P, P, P, C, C, C, C, C, C, R, S, S, S, S, S, S } }, { 16, 17, { S, S, P, P, P, P, P, C, C, C, C, C, C, C, C, C, H, S, S, S, S, S, S } }, }; -static constexpr const WeatherTransition ClimateTransitionsHotAndDry[] = { +static constexpr WeatherTransition ClimateTransitionsHotAndDry[] = { { 12, 15, { S, S, S, S, P, P, P, P, P, P, P, P, C, C, R, S, S, S, S, S, S, S, S } }, { 14, 12, { S, S, S, S, S, P, P, P, P, P, C, C, S, S, S, S, S, S, S, S, S, S, S } }, { 16, 11, { S, S, S, S, S, S, P, P, P, P, C, S, S, S, S, S, S, S, S, S, S, S, S } }, @@ -507,7 +507,7 @@ static constexpr const WeatherTransition ClimateTransitionsHotAndDry[] = { { 21, 12, { S, S, S, S, S, S, S, P, P, P, C, T, S, S, S, S, S, S, S, S, S, S, S } }, { 16, 13, { S, S, S, S, S, S, S, S, P, P, P, C, R, S, S, S, S, S, S, S, S, S, S } }, }; -static constexpr const WeatherTransition ClimateTransitionsCold[] = { +static constexpr WeatherTransition ClimateTransitionsCold[] = { { 4, 18, { S, S, S, S, P, P, P, P, P, C, C, C, C, C, C, C, R, H, S, S, S, S, S } }, { 5, 21, { S, S, S, S, P, P, P, P, P, C, C, C, C, C, C, C, C, C, R, H, T, S, S } }, { 7, 17, { S, S, S, S, P, P, P, P, P, P, P, C, C, C, C, R, H, S, S, S, S, S, S } }, diff --git a/src/openrct2/world/Entrance.h b/src/openrct2/world/Entrance.h index 1c09d4fde0..5e5734e800 100644 --- a/src/openrct2/world/Entrance.h +++ b/src/openrct2/world/Entrance.h @@ -25,9 +25,9 @@ enum namespace EntranceSequence { - constexpr const uint8_t Centre = 0; - constexpr const uint8_t Left = 1; - constexpr const uint8_t Right = 2; + constexpr uint8_t Centre = 0; + constexpr uint8_t Left = 1; + constexpr uint8_t Right = 2; }; // namespace EntranceSequence constexpr const uint8_t ParkEntranceHeight = 12 * COORDS_Z_STEP; diff --git a/src/openrct2/world/Footpath.cpp b/src/openrct2/world/Footpath.cpp index a38966c0d9..4de77d1397 100644 --- a/src/openrct2/world/Footpath.cpp +++ b/src/openrct2/world/Footpath.cpp @@ -22,13 +22,13 @@ #include "../localisation/Localisation.h" #include "../management/Finance.h" #include "../network/network.h" -#include "../object/FootpathItemEntry.h" #include "../object/FootpathObject.h" #include "../object/FootpathRailingsObject.h" #include "../object/FootpathSurfaceObject.h" #include "../object/ObjectEntryManager.h" #include "../object/ObjectList.h" #include "../object/ObjectManager.h" +#include "../object/PathAdditionEntry.h" #include "../paint/VirtualFloor.h" #include "../ride/RideData.h" #include "../ride/Station.h" @@ -83,14 +83,14 @@ const std::array DirectionOffsets = { }; // rct2: 0x0097B974 -static constexpr const uint16_t EntranceDirections[] = { +static constexpr uint16_t EntranceDirections[] = { (4), 0, 0, 0, 0, 0, 0, 0, // ENTRANCE_TYPE_RIDE_ENTRANCE, (4), 0, 0, 0, 0, 0, 0, 0, // ENTRANCE_TYPE_RIDE_EXIT, (4 | 1), 0, 0, 0, 0, 0, 0, 0, // ENTRANCE_TYPE_PARK_ENTRANCE }; /** rct2: 0x0098D7F0 */ -static constexpr const uint8_t connected_path_count[] = { +static constexpr uint8_t connected_path_count[] = { 0, // 0b0000 1, // 0b0001 1, // 0b0010 @@ -119,15 +119,16 @@ static bool entrance_has_direction(const EntranceElement& entranceElement, int32 return entranceElement.GetDirections() & (1 << (direction & 3)); } -TileElement* MapGetFootpathElement(const CoordsXYZ& coords) +PathElement* MapGetFootpathElement(const CoordsXYZ& coords) { TileElement* tileElement = MapGetFirstElementAt(coords); do { if (tileElement == nullptr) break; - if (tileElement->GetType() == TileElementType::Path && tileElement->GetBaseZ() == coords.z) - return tileElement; + auto* pathElement = tileElement->AsPath(); + if (pathElement != nullptr && pathElement->GetBaseZ() == coords.z) + return pathElement; } while (!(tileElement++)->IsLastForTile()); return nullptr; @@ -160,11 +161,11 @@ money64 FootpathProvisionalSet( if (gFootpathGroundFlags & ELEMENT_IS_UNDERGROUND) { - ViewportSetVisibility(1); + ViewportSetVisibility(ViewportVisibility::UndergroundViewOn); } else { - ViewportSetVisibility(3); + ViewportSetVisibility(ViewportVisibility::UndergroundViewOff); } } @@ -1628,14 +1629,15 @@ uint8_t PathElement::GetAddition() const ObjectEntryIndex PathElement::GetAdditionEntryIndex() const { + // `Additions` is set to 0 when there is no addition, so the value 1 corresponds with path addition slot 0, etc. return GetAddition() - 1; } -const PathBitEntry* PathElement::GetAdditionEntry() const +const PathAdditionEntry* PathElement::GetAdditionEntry() const { if (!HasAddition()) return nullptr; - return OpenRCT2::ObjectManager::GetObjectEntry(GetAdditionEntryIndex()); + return OpenRCT2::ObjectManager::GetObjectEntry(GetAdditionEntryIndex()); } void PathElement::SetAddition(uint8_t newAddition) @@ -1643,6 +1645,12 @@ void PathElement::SetAddition(uint8_t newAddition) Additions = newAddition; } +void PathElement::SetAdditionEntryIndex(ObjectEntryIndex entryIndex) +{ + // `Additions` is set to 0 when there is no addition, so the value 1 corresponds with path addition slot 0, etc. + Additions = entryIndex + 1; +} + bool PathElement::AdditionIsGhost() const { return (Flags2 & FOOTPATH_ELEMENT_FLAGS2_ADDITION_IS_GHOST) != 0; diff --git a/src/openrct2/world/Footpath.h b/src/openrct2/world/Footpath.h index 03d935d364..4d03a29a5a 100644 --- a/src/openrct2/world/Footpath.h +++ b/src/openrct2/world/Footpath.h @@ -17,6 +17,7 @@ class FootpathObject; class FootpathSurfaceObject; class FootpathRailingsObject; +struct PathElement; enum { @@ -184,7 +185,7 @@ extern const std::array DirectionOffsets; extern const std::array BinUseOffsets; extern const std::array BenchUseOffsets; -TileElement* MapGetFootpathElement(const CoordsXYZ& coords); +PathElement* MapGetFootpathElement(const CoordsXYZ& coords); void FootpathInterruptPeeps(const CoordsXYZ& footpathPos); money64 FootpathProvisionalSet( ObjectEntryIndex type, ObjectEntryIndex railingsType, const CoordsXYZ& footpathLoc, int32_t slope, diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index 2ec90a7311..15d557c4d7 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -14,14 +14,14 @@ #include -constexpr const int16_t LOCATION_NULL = -32768; +constexpr int16_t LOCATION_NULL = -32768; -constexpr const int32_t COORDS_XY_STEP = 32; -constexpr const int32_t COORDS_XY_HALF_TILE = (COORDS_XY_STEP / 2); -constexpr const int32_t COORDS_Z_STEP = 8; -constexpr const int32_t COORDS_Z_PER_TINY_Z = 16; +constexpr int32_t COORDS_XY_STEP = 32; +constexpr int32_t COORDS_XY_HALF_TILE = (COORDS_XY_STEP / 2); +constexpr int32_t COORDS_Z_STEP = 8; +constexpr int32_t COORDS_Z_PER_TINY_Z = 16; -constexpr const auto NumOrthogonalDirections = 4; +constexpr auto NumOrthogonalDirections = 4; constexpr int32_t COORDS_NULL = 0xFFFF8000; @@ -65,7 +65,7 @@ struct ScreenCoordsXY { } - constexpr const ScreenCoordsXY operator-(const ScreenCoordsXY& rhs) const + constexpr ScreenCoordsXY operator-(const ScreenCoordsXY& rhs) const { return { x - rhs.x, y - rhs.y }; } @@ -84,17 +84,17 @@ struct ScreenCoordsXY return *this; } - constexpr const ScreenCoordsXY operator+(const ScreenCoordsXY& rhs) const + constexpr ScreenCoordsXY operator+(const ScreenCoordsXY& rhs) const { return { x + rhs.x, y + rhs.y }; } - constexpr const ScreenCoordsXY operator+(const ScreenSize& rhs) const + constexpr ScreenCoordsXY operator+(const ScreenSize& rhs) const { return { x + rhs.width, y + rhs.height }; } - constexpr const ScreenCoordsXY operator-(const ScreenSize& rhs) const + constexpr ScreenCoordsXY operator-(const ScreenSize& rhs) const { return { x - rhs.width, y - rhs.height }; } @@ -164,12 +164,12 @@ struct CoordsXY return x <= rhs.x && y <= rhs.y; } - constexpr const CoordsXY operator+(const CoordsXY& rhs) const + constexpr CoordsXY operator+(const CoordsXY& rhs) const { return { x + rhs.x, y + rhs.y }; } - constexpr const CoordsXY operator-(const CoordsXY& rhs) const + constexpr CoordsXY operator-(const CoordsXY& rhs) const { return { x - rhs.x, y - rhs.y }; } @@ -179,7 +179,7 @@ struct CoordsXY return { x * rhs, y * rhs }; } - constexpr const CoordsXY operator/(const int32_t rhs) const + constexpr CoordsXY operator/(const int32_t rhs) const { return { x / rhs, y / rhs }; } @@ -260,12 +260,12 @@ struct CoordsXYZ : public CoordsXY { } - constexpr const CoordsXYZ operator+(const CoordsXYZ& rhs) const + constexpr CoordsXYZ operator+(const CoordsXYZ& rhs) const { return { x + rhs.x, y + rhs.y, z + rhs.z }; } - constexpr const CoordsXYZ operator-(const CoordsXYZ& rhs) const + constexpr CoordsXYZ operator-(const CoordsXYZ& rhs) const { return { x - rhs.x, y - rhs.y, z - rhs.z }; } @@ -338,7 +338,7 @@ struct TileCoordsXY { } - constexpr const TileCoordsXY operator+(const TileCoordsXY& rhs) const + constexpr TileCoordsXY operator+(const TileCoordsXY& rhs) const { return { x + rhs.x, y + rhs.y }; } @@ -640,22 +640,22 @@ struct CoordsXYZD : public CoordsXYZ return *this; } - constexpr const CoordsXYZD operator+(const CoordsXY& rhs) const + constexpr CoordsXYZD operator+(const CoordsXY& rhs) const { return { x + rhs.x, y + rhs.y, z, direction }; } - constexpr const CoordsXYZD operator+(const CoordsXYZ& rhs) const + constexpr CoordsXYZD operator+(const CoordsXYZ& rhs) const { return { x + rhs.x, y + rhs.y, z + rhs.z, direction }; } - constexpr const CoordsXYZD operator-(const CoordsXY& rhs) const + constexpr CoordsXYZD operator-(const CoordsXY& rhs) const { return { x - rhs.x, y - rhs.y, z, direction }; } - constexpr const CoordsXYZD operator-(const CoordsXYZ& rhs) const + constexpr CoordsXYZD operator-(const CoordsXYZ& rhs) const { return { x - rhs.x, y - rhs.y, z - rhs.z, direction }; } diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index ebc35ee974..3882cbd1e6 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -860,93 +860,6 @@ bool MapIsLocationOwnedOrHasRights(const CoordsXY& loc) return false; } -// 0x00981A1E -// Table of pre-calculated surface slopes (32) when raising the land tile for a given selection (5) -// 0x1F = new slope -// 0x20 = base height increases -const uint8_t tile_element_raise_styles[9][32] = { - { - 0x01, 0x1B, 0x03, 0x1B, 0x05, 0x21, 0x07, 0x21, 0x09, 0x1B, 0x0B, 0x1B, 0x0D, 0x21, 0x20, 0x0F, - 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x23, 0x18, 0x19, 0x1A, 0x3B, 0x1C, 0x29, 0x24, 0x1F, - }, // MAP_SELECT_TYPE_CORNER_0 - // (absolute rotation) - { - 0x02, 0x03, 0x17, 0x17, 0x06, 0x07, 0x17, 0x17, 0x0A, 0x0B, 0x22, 0x22, 0x0E, 0x20, 0x22, 0x0F, - 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x37, 0x18, 0x19, 0x1A, 0x23, 0x1C, 0x28, 0x26, 0x1F, - }, // MAP_SELECT_TYPE_CORNER_1 - { - 0x04, 0x05, 0x06, 0x07, 0x1E, 0x24, 0x1E, 0x24, 0x0C, 0x0D, 0x0E, 0x20, 0x1E, 0x24, 0x1E, 0x0F, - 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x26, 0x18, 0x19, 0x1A, 0x21, 0x1C, 0x2C, 0x3E, 0x1F, - }, // MAP_SELECT_TYPE_CORNER_2 - { - 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x20, 0x1D, 0x1D, 0x28, 0x28, 0x1D, 0x1D, 0x28, 0x0F, - 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x22, 0x18, 0x19, 0x1A, 0x29, 0x1C, 0x3D, 0x2C, 0x1F, - }, // MAP_SELECT_TYPE_CORNER_3 - { - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x20, 0x20, 0x20, 0x21, 0x20, 0x28, 0x24, 0x20, - }, // MAP_SELECT_TYPE_FULL - { - 0x0C, 0x0D, 0x0E, 0x20, 0x0C, 0x0D, 0x0E, 0x20, 0x0C, 0x0D, 0x0E, 0x20, 0x2C, 0x2C, 0x2C, 0x2C, - 0x0C, 0x0D, 0x0E, 0x20, 0x0C, 0x0C, 0x0E, 0x22, 0x0C, 0x0D, 0x0E, 0x21, 0x2C, 0x2C, 0x2C, 0x2C, - }, // MAP_SELECT_TYPE_EDGE_0 - { - 0x09, 0x09, 0x0B, 0x0B, 0x0D, 0x0D, 0x20, 0x20, 0x09, 0x29, 0x0B, 0x29, 0x0D, 0x29, 0x20, 0x29, - 0x09, 0x09, 0x0B, 0x0B, 0x0D, 0x0D, 0x24, 0x22, 0x09, 0x29, 0x0B, 0x29, 0x0D, 0x29, 0x24, 0x29, - }, // MAP_SELECT_TYPE_EDGE_1 - { - 0x03, 0x03, 0x03, 0x23, 0x07, 0x07, 0x07, 0x23, 0x0B, 0x0B, 0x0B, 0x23, 0x20, 0x20, 0x20, 0x23, - 0x03, 0x03, 0x03, 0x23, 0x07, 0x07, 0x07, 0x23, 0x0B, 0x0B, 0x0B, 0x23, 0x20, 0x28, 0x24, 0x23, - }, // MAP_SELECT_TYPE_EDGE_2 - { - 0x06, 0x07, 0x06, 0x07, 0x06, 0x07, 0x26, 0x26, 0x0E, 0x20, 0x0E, 0x20, 0x0E, 0x20, 0x26, 0x26, - 0x06, 0x07, 0x06, 0x07, 0x06, 0x07, 0x26, 0x26, 0x0E, 0x20, 0x0E, 0x21, 0x0E, 0x28, 0x26, 0x26, - }, // MAP_SELECT_TYPE_EDGE_3 -}; - -// 0x00981ABE -// Basically the inverse of the table above. -// 0x1F = new slope -// 0x20 = base height increases -const uint8_t tile_element_lower_styles[9][32] = { - { - 0x2E, 0x00, 0x2E, 0x02, 0x3E, 0x04, 0x3E, 0x06, 0x2E, 0x08, 0x2E, 0x0A, 0x3E, 0x0C, 0x3E, 0x0F, - 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x06, 0x18, 0x19, 0x1A, 0x0B, 0x1C, 0x0C, 0x3E, 0x1F, - }, // MAP_SELECT_TYPE_CORNER_0 - { - 0x2D, 0x2D, 0x00, 0x01, 0x2D, 0x2D, 0x04, 0x05, 0x3D, 0x3D, 0x08, 0x09, 0x3D, 0x3D, 0x0C, 0x0F, - 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x07, 0x18, 0x19, 0x1A, 0x09, 0x1C, 0x3D, 0x0C, 0x1F, - }, // MAP_SELECT_TYPE_CORNER_1 - { - 0x2B, 0x3B, 0x2B, 0x3B, 0x00, 0x01, 0x02, 0x03, 0x2B, 0x3B, 0x2B, 0x3B, 0x08, 0x09, 0x0A, 0x0F, - 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x03, 0x18, 0x19, 0x1A, 0x3B, 0x1C, 0x09, 0x0E, 0x1F, - }, // MAP_SELECT_TYPE_CORNER_2 - { - 0x27, 0x27, 0x37, 0x37, 0x27, 0x27, 0x37, 0x37, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x0F, - 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x37, 0x18, 0x19, 0x1A, 0x03, 0x1C, 0x0D, 0x06, 0x1F, - }, // MAP_SELECT_TYPE_CORNER_3 - { - 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x0B, 0x00, 0x0D, 0x0E, 0x00, - }, // MAP_SELECT_TYPE_FULL - { - 0x23, 0x23, 0x23, 0x23, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, - 0x23, 0x23, 0x23, 0x23, 0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03, 0x00, 0x0D, 0x0E, 0x03, - }, // MAP_SELECT_TYPE_EDGE_0 - { - 0x26, 0x00, 0x26, 0x02, 0x26, 0x04, 0x26, 0x06, 0x00, 0x00, 0x02, 0x02, 0x04, 0x04, 0x06, 0x06, - 0x26, 0x00, 0x26, 0x02, 0x26, 0x04, 0x26, 0x06, 0x00, 0x00, 0x02, 0x0B, 0x04, 0x0D, 0x06, 0x06, - }, // MAP_SELECT_TYPE_EDGE_1 - { - 0x2C, 0x00, 0x00, 0x00, 0x2C, 0x04, 0x04, 0x04, 0x2C, 0x08, 0x08, 0x08, 0x2C, 0x0C, 0x0C, 0x0C, - 0x2C, 0x00, 0x00, 0x00, 0x2C, 0x04, 0x04, 0x07, 0x2C, 0x08, 0x08, 0x0B, 0x2C, 0x0C, 0x0C, 0x0C, - }, // MAP_SELECT_TYPE_EDGE_2 - { - 0x29, 0x29, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x29, 0x29, 0x08, 0x09, 0x08, 0x09, 0x08, 0x09, - 0x29, 0x29, 0x00, 0x01, 0x00, 0x01, 0x00, 0x07, 0x29, 0x29, 0x08, 0x09, 0x08, 0x09, 0x0E, 0x09, - }, // MAP_SELECT_TYPE_EDGE_3 -}; - int32_t MapGetCornerHeight(int32_t z, int32_t slope, int32_t direction) { switch (direction) diff --git a/src/openrct2/world/Map.h b/src/openrct2/world/Map.h index 6867108061..654ca3ce77 100644 --- a/src/openrct2/world/Map.h +++ b/src/openrct2/world/Map.h @@ -26,20 +26,20 @@ constexpr uint8_t MAXIMUM_WATER_HEIGHT = 254; #define MINIMUM_MAP_SIZE_PRACTICAL (MINIMUM_MAP_SIZE_TECHNICAL - 2) #define MAXIMUM_MAP_SIZE_PRACTICAL (MAXIMUM_MAP_SIZE_TECHNICAL - 2) constexpr const int32_t MAXIMUM_MAP_SIZE_BIG = COORDS_XY_STEP * MAXIMUM_MAP_SIZE_TECHNICAL; -constexpr const int32_t MAXIMUM_TILE_START_XY = MAXIMUM_MAP_SIZE_BIG - COORDS_XY_STEP; +constexpr int32_t MAXIMUM_TILE_START_XY = MAXIMUM_MAP_SIZE_BIG - COORDS_XY_STEP; constexpr const int32_t LAND_HEIGHT_STEP = 2 * COORDS_Z_STEP; constexpr const int32_t WATER_HEIGHT_STEP = 2 * COORDS_Z_STEP; constexpr const int32_t MINIMUM_LAND_HEIGHT_BIG = MINIMUM_LAND_HEIGHT * COORDS_Z_STEP; -constexpr const TileCoordsXY DEFAULT_MAP_SIZE = { 150, 150 }; +constexpr TileCoordsXY DEFAULT_MAP_SIZE = { 150, 150 }; // How high construction has to be off the ground when the player owns construction rights, in tile coords. -constexpr const uint8_t ConstructionRightsClearanceSmall = 3; +constexpr uint8_t ConstructionRightsClearanceSmall = 3; // Same as previous, but in big coords. constexpr const uint8_t ConstructionRightsClearanceBig = 3 * COORDS_Z_STEP; #define MAP_MINIMUM_X_Y (-MAXIMUM_MAP_SIZE_TECHNICAL) -constexpr const uint32_t MAX_TILE_ELEMENTS_WITH_SPARE_ROOM = 0x1000000; -constexpr const uint32_t MAX_TILE_ELEMENTS = MAX_TILE_ELEMENTS_WITH_SPARE_ROOM - 512; +constexpr uint32_t MAX_TILE_ELEMENTS_WITH_SPARE_ROOM = 0x1000000; +constexpr uint32_t MAX_TILE_ELEMENTS = MAX_TILE_ELEMENTS_WITH_SPARE_ROOM - 512; #define MAX_TILE_TILE_ELEMENT_POINTERS (MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL) #define TILE_UNDEFINED_TILE_ELEMENT NULL @@ -146,10 +146,6 @@ extern uint32_t gLandRemainingConstructionSales; extern bool gMapLandRightsUpdateSuccess; -constexpr auto SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT = 0x20; -extern const uint8_t tile_element_lower_styles[9][32]; -extern const uint8_t tile_element_raise_styles[9][32]; - void ReorganiseTileElements(); const std::vector& GetTileElements(); void SetTileElements(std::vector&& tileElements); diff --git a/src/openrct2/world/MapAnimation.cpp b/src/openrct2/world/MapAnimation.cpp index c467fb10e7..b521d9148c 100644 --- a/src/openrct2/world/MapAnimation.cpp +++ b/src/openrct2/world/MapAnimation.cpp @@ -572,7 +572,7 @@ static bool MapAnimationInvalidateWall(const CoordsXYZ& loc) * * rct2: 0x009819DC */ -static constexpr const map_animation_invalidate_event_handler _animatedObjectEventHandlers[MAP_ANIMATION_TYPE_COUNT] = { +static constexpr map_animation_invalidate_event_handler _animatedObjectEventHandlers[MAP_ANIMATION_TYPE_COUNT] = { MapAnimationInvalidateRideEntrance, MapAnimationInvalidateQueueBanner, MapAnimationInvalidateSmallScenery, MapAnimationInvalidateParkEntrance, MapAnimationInvalidateTrackWaterfall, MapAnimationInvalidateTrackRapids, MapAnimationInvalidateTrackOnRidePhoto, MapAnimationInvalidateTrackWhirlpool, MapAnimationInvalidateTrackSpinningTunnel, @@ -610,92 +610,95 @@ void MapAnimationAutoCreate() TileElementIteratorBegin(&it); while (TileElementIteratorNext(&it)) { - auto el = it.element; - auto loc = CoordsXYZ{ TileCoordsXY(it.x, it.y).ToCoordsXY(), el->GetBaseZ() }; - switch (el->GetType()) + MapAnimationAutoCreateAtTileElement(TileCoordsXY(it.x, it.y), it.element); + } +} + +void MapAnimationAutoCreateAtTileElement(TileCoordsXY coords, TileElement* el) +{ + auto loc = CoordsXYZ{ coords.ToCoordsXY(), el->GetBaseZ() }; + switch (el->GetType()) + { + case TileElementType::Banner: + MapAnimationCreate(MAP_ANIMATION_TYPE_BANNER, loc); + break; + case TileElementType::Wall: { - case TileElementType::Banner: - MapAnimationCreate(MAP_ANIMATION_TYPE_BANNER, loc); - break; - case TileElementType::Wall: + auto wallEl = el->AsWall(); + auto* entry = wallEl->GetEntry(); + if (entry != nullptr && ((entry->flags2 & WALL_SCENERY_2_ANIMATED) || entry->scrolling_mode != SCROLLING_MODE_NONE)) { - auto wallEl = el->AsWall(); - auto* entry = wallEl->GetEntry(); - if (entry != nullptr - && ((entry->flags2 & WALL_SCENERY_2_ANIMATED) || entry->scrolling_mode != SCROLLING_MODE_NONE)) - { - MapAnimationCreate(MAP_ANIMATION_TYPE_WALL, loc); - } - break; + MapAnimationCreate(MAP_ANIMATION_TYPE_WALL, loc); } - case TileElementType::SmallScenery: + break; + } + case TileElementType::SmallScenery: + { + auto sceneryEl = el->AsSmallScenery(); + auto* sceneryEntry = sceneryEl->GetEntry(); + if (sceneryEntry != nullptr && sceneryEntry->HasFlag(SMALL_SCENERY_FLAG_ANIMATED)) { - auto sceneryEl = el->AsSmallScenery(); - auto* sceneryEntry = sceneryEl->GetEntry(); - if (sceneryEntry != nullptr && sceneryEntry->HasFlag(SMALL_SCENERY_FLAG_ANIMATED)) - { - MapAnimationCreate(MAP_ANIMATION_TYPE_SMALL_SCENERY, loc); - } - break; + MapAnimationCreate(MAP_ANIMATION_TYPE_SMALL_SCENERY, loc); } - case TileElementType::LargeScenery: + break; + } + case TileElementType::LargeScenery: + { + auto sceneryEl = el->AsLargeScenery(); + auto entry = sceneryEl->GetEntry(); + if (entry != nullptr && (entry->flags & LARGE_SCENERY_FLAG_ANIMATED)) { - auto sceneryEl = el->AsLargeScenery(); - auto entry = sceneryEl->GetEntry(); - if (entry != nullptr && (entry->flags & LARGE_SCENERY_FLAG_ANIMATED)) - { - MapAnimationCreate(MAP_ANIMATION_TYPE_LARGE_SCENERY, loc); - } - break; + MapAnimationCreate(MAP_ANIMATION_TYPE_LARGE_SCENERY, loc); } - case TileElementType::Path: + break; + } + case TileElementType::Path: + { + auto path = el->AsPath(); + if (path->HasQueueBanner()) { - auto path = el->AsPath(); - if (path->HasQueueBanner()) - { - MapAnimationCreate(MAP_ANIMATION_TYPE_QUEUE_BANNER, loc); - } - break; + MapAnimationCreate(MAP_ANIMATION_TYPE_QUEUE_BANNER, loc); } - case TileElementType::Entrance: + break; + } + case TileElementType::Entrance: + { + auto entrance = el->AsEntrance(); + switch (entrance->GetEntranceType()) { - auto entrance = el->AsEntrance(); - switch (entrance->GetEntranceType()) - { - case ENTRANCE_TYPE_PARK_ENTRANCE: - if (entrance->GetSequenceIndex() == 0) - { - MapAnimationCreate(MAP_ANIMATION_TYPE_PARK_ENTRANCE, loc); - } - break; - case ENTRANCE_TYPE_RIDE_ENTRANCE: - MapAnimationCreate(MAP_ANIMATION_TYPE_RIDE_ENTRANCE, loc); - break; - } - break; + case ENTRANCE_TYPE_PARK_ENTRANCE: + if (entrance->GetSequenceIndex() == 0) + { + MapAnimationCreate(MAP_ANIMATION_TYPE_PARK_ENTRANCE, loc); + } + break; + case ENTRANCE_TYPE_RIDE_ENTRANCE: + MapAnimationCreate(MAP_ANIMATION_TYPE_RIDE_ENTRANCE, loc); + break; } - case TileElementType::Track: + break; + } + case TileElementType::Track: + { + auto track = el->AsTrack(); + switch (track->GetTrackType()) { - auto track = el->AsTrack(); - switch (track->GetTrackType()) - { - case TrackElemType::Waterfall: - MapAnimationCreate(MAP_ANIMATION_TYPE_TRACK_WATERFALL, loc); - break; - case TrackElemType::Rapids: - MapAnimationCreate(MAP_ANIMATION_TYPE_TRACK_RAPIDS, loc); - break; - case TrackElemType::Whirlpool: - MapAnimationCreate(MAP_ANIMATION_TYPE_TRACK_WHIRLPOOL, loc); - break; - case TrackElemType::SpinningTunnel: - MapAnimationCreate(MAP_ANIMATION_TYPE_TRACK_SPINNINGTUNNEL, loc); - break; - } - break; + case TrackElemType::Waterfall: + MapAnimationCreate(MAP_ANIMATION_TYPE_TRACK_WATERFALL, loc); + break; + case TrackElemType::Rapids: + MapAnimationCreate(MAP_ANIMATION_TYPE_TRACK_RAPIDS, loc); + break; + case TrackElemType::Whirlpool: + MapAnimationCreate(MAP_ANIMATION_TYPE_TRACK_WHIRLPOOL, loc); + break; + case TrackElemType::SpinningTunnel: + MapAnimationCreate(MAP_ANIMATION_TYPE_TRACK_SPINNINGTUNNEL, loc); + break; } - case TileElementType::Surface: - break; + break; } + case TileElementType::Surface: + break; } } diff --git a/src/openrct2/world/MapAnimation.h b/src/openrct2/world/MapAnimation.h index ada1270d68..5aa77e9290 100644 --- a/src/openrct2/world/MapAnimation.h +++ b/src/openrct2/world/MapAnimation.h @@ -14,6 +14,8 @@ #include #include +struct TileElement; + struct MapAnimation { uint8_t type{}; @@ -43,3 +45,4 @@ void MapAnimationCreate(int32_t type, const CoordsXYZ& loc); void MapAnimationInvalidateAll(); const std::vector& GetMapAnimations(); void MapAnimationAutoCreate(); +void MapAnimationAutoCreateAtTileElement(TileCoordsXY coords, TileElement* el); diff --git a/src/openrct2/world/MapGen.cpp b/src/openrct2/world/MapGen.cpp index 56acdf186c..5a74d19e6c 100644 --- a/src/openrct2/world/MapGen.cpp +++ b/src/openrct2/world/MapGen.cpp @@ -86,7 +86,7 @@ static constexpr const char* SnowTrees[] = { #pragma endregion // Randomly chosen base terrains. We rarely want a whole map made out of chequerboard or rock. -static constexpr const std::string_view BaseTerrain[] = { +static constexpr std::string_view BaseTerrain[] = { "rct2.terrain_surface.grass", "rct2.terrain_surface.sand", "rct2.terrain_surface.sand_brown", "rct2.terrain_surface.dirt", "rct2.terrain_surface.ice", }; @@ -370,7 +370,7 @@ static void MapGenPlaceTrees() neighbourPos.y = std::clamp(neighbourPos.y, COORDS_XY_STEP, COORDS_XY_STEP * (gMapSize.y - 1)); const auto neighboutSurface = MapGetSurfaceElementAt(neighbourPos); - if (neighboutSurface->GetWaterHeight() > 0) + if (neighboutSurface != nullptr && neighboutSurface->GetWaterHeight() > 0) { float distance = std::sqrt(offsetX * offsetX + offsetY * offsetY); oasisScore += 0.5f / (maxOasisDistance * distance); @@ -794,8 +794,8 @@ static void MapGenSmoothHeightmap(std::vector& src, int32_t strength) void MapGenGenerateFromHeightmap(MapGenSettings* settings) { - openrct2_assert(!_heightMapData.mono_bitmap.empty(), "No height map loaded"); - openrct2_assert(settings->simplex_high != settings->simplex_low, "Low and high setting cannot be the same"); + Guard::Assert(!_heightMapData.mono_bitmap.empty(), "No height map loaded"); + Guard::Assert(settings->simplex_high != settings->simplex_low, "Low and high setting cannot be the same"); // Make a copy of the original height map that we can edit auto dest = _heightMapData.mono_bitmap; @@ -835,8 +835,8 @@ void MapGenGenerateFromHeightmap(MapGenSettings* settings) } } - openrct2_assert(maxValue > minValue, "Input range is invalid"); - openrct2_assert(settings->simplex_high > settings->simplex_low, "Output range is invalid"); + Guard::Assert(maxValue > minValue, "Input range is invalid"); + Guard::Assert(settings->simplex_high > settings->simplex_low, "Output range is invalid"); const uint8_t rangeIn = maxValue - minValue; const uint8_t rangeOut = settings->simplex_high - settings->simplex_low; diff --git a/src/openrct2/world/Park.h b/src/openrct2/world/Park.h index 10b9b2686c..de375d2282 100644 --- a/src/openrct2/world/Park.h +++ b/src/openrct2/world/Park.h @@ -14,11 +14,11 @@ constexpr auto MAX_ENTRANCE_FEE = 999.00_GBP; -constexpr const uint8_t ParkRatingHistoryUndefined = std::numeric_limits::max(); -constexpr const uint32_t GuestsInParkHistoryUndefined = std::numeric_limits::max(); -constexpr const uint8_t ParkNameMaxLength = 128; -constexpr const uint8_t ScenarioNameMaxLength = 128; -constexpr const uint16_t ScenarioDetailsNameMaxLength = 256; +constexpr uint8_t ParkRatingHistoryUndefined = std::numeric_limits::max(); +constexpr uint32_t GuestsInParkHistoryUndefined = std::numeric_limits::max(); +constexpr uint8_t ParkNameMaxLength = 128; +constexpr uint8_t ScenarioNameMaxLength = 128; +constexpr uint16_t ScenarioDetailsNameMaxLength = 256; enum : uint32_t { diff --git a/src/openrct2/world/Scenery.cpp b/src/openrct2/world/Scenery.cpp index 3c42d31931..44db7b49fd 100644 --- a/src/openrct2/world/Scenery.cpp +++ b/src/openrct2/world/Scenery.cpp @@ -24,11 +24,11 @@ #include "../localisation/Localisation.h" #include "../network/network.h" #include "../object/BannerSceneryEntry.h" -#include "../object/FootpathItemEntry.h" #include "../object/LargeSceneryEntry.h" #include "../object/ObjectEntryManager.h" #include "../object/ObjectList.h" #include "../object/ObjectManager.h" +#include "../object/PathAdditionEntry.h" #include "../object/SceneryGroupEntry.h" #include "../object/SmallSceneryEntry.h" #include "../object/WallSceneryEntry.h" @@ -153,11 +153,11 @@ void SceneryUpdateTile(const CoordsXY& sceneryPos) auto* pathAddEntry = tileElement->AsPath()->GetAdditionEntry(); if (pathAddEntry != nullptr) { - if (pathAddEntry->flags & PATH_BIT_FLAG_JUMPING_FOUNTAIN_WATER) + if (pathAddEntry->flags & PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER) { JumpingFountain::StartAnimation(JumpingFountainType::Water, sceneryPos, tileElement); } - else if (pathAddEntry->flags & PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW) + else if (pathAddEntry->flags & PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW) { JumpingFountain::StartAnimation(JumpingFountainType::Snow, sceneryPos, tileElement); } @@ -358,7 +358,7 @@ static bool IsSceneryEntryValid(const ScenerySelection& item) case SCENERY_TYPE_SMALL: return OpenRCT2::ObjectManager::GetObjectEntry(item.EntryIndex) != nullptr; case SCENERY_TYPE_PATH_ITEM: - return OpenRCT2::ObjectManager::GetObjectEntry(item.EntryIndex) != nullptr; + return OpenRCT2::ObjectManager::GetObjectEntry(item.EntryIndex) != nullptr; case SCENERY_TYPE_WALL: return OpenRCT2::ObjectManager::GetObjectEntry(item.EntryIndex) != nullptr; case SCENERY_TYPE_LARGE: @@ -440,7 +440,7 @@ ObjectType GetObjectTypeFromSceneryType(uint8_t type) case SCENERY_TYPE_SMALL: return ObjectType::SmallScenery; case SCENERY_TYPE_PATH_ITEM: - return ObjectType::PathBits; + return ObjectType::PathAdditions; case SCENERY_TYPE_WALL: return ObjectType::Walls; case SCENERY_TYPE_LARGE: @@ -458,7 +458,7 @@ uint8_t GetSceneryTypeFromObjectType(ObjectType type) { case ObjectType::SmallScenery: return SCENERY_TYPE_SMALL; - case ObjectType::PathBits: + case ObjectType::PathAdditions: return SCENERY_TYPE_PATH_ITEM; case ObjectType::Walls: return SCENERY_TYPE_WALL; diff --git a/src/openrct2/world/SurfaceData.cpp b/src/openrct2/world/SurfaceData.cpp new file mode 100644 index 0000000000..dbea729d80 --- /dev/null +++ b/src/openrct2/world/SurfaceData.cpp @@ -0,0 +1,694 @@ +#include "SurfaceData.h" + +#include "Surface.h" + +// 0x00981A1E +// Table of pre-calculated surface slopes (32) when raising the land tile for a given selection (5) +// 0x1F = new slope +// 0x20 = base height increases +constexpr uint8_t TileElementRaiseStyles[9][32] = { + // MAP_SELECT_TYPE_CORNER_0 + { TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_CORNER_1 + { TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_CORNER_2 + { TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_CORNER_3 + { TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_FULL + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT }, + // MAP_SELECT_TYPE_EDGE_0 + { TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_EDGE_1 + { TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_EDGE_2 + { TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP }, + // MAP_SELECT_TYPE_EDGE_3 + { TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP }, + +}; + +// 0x00981ABE +// Basically the inverse of the table above. +// 0x1F = new slope +// 0x20 = base height increases +constexpr uint8_t TileElementLowerStyles[9][32] = { + // MAP_SELECT_TYPE_CORNER_0 + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_CORNER_1 + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_CORNER_2 + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_CORNER_3 + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP + | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP + | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP + | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_FULL + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + 0, + 0, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0 }, + // MAP_SELECT_TYPE_EDGE_0 + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP }, + // MAP_SELECT_TYPE_EDGE_1 + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + 0, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + 0, + 0, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + 0, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + 0, + 0, + TILE_ELEMENT_SLOPE_E_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP }, + // MAP_SELECT_TYPE_EDGE_2 + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0, + 0, + 0, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0, + 0, + 0, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, + // MAP_SELECT_TYPE_EDGE_3 + { SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP, + 0, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT | TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_E_CORNER_UP | TILE_ELEMENT_SLOPE_S_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP, + TILE_ELEMENT_SLOPE_N_CORNER_UP | TILE_ELEMENT_SLOPE_W_CORNER_UP }, +}; + +uint8_t LowerSurfaceCornerFlags(size_t SelectedCorner, size_t CurrentSlope) +{ + return TileElementLowerStyles[SelectedCorner][CurrentSlope]; +} + +uint8_t RaiseSurfaceCornerFlags(size_t SelectedCorner, size_t CurrentSlope) +{ + return TileElementRaiseStyles[SelectedCorner][CurrentSlope]; +} diff --git a/src/openrct2/world/SurfaceData.h b/src/openrct2/world/SurfaceData.h new file mode 100644 index 0000000000..8aefd77c63 --- /dev/null +++ b/src/openrct2/world/SurfaceData.h @@ -0,0 +1,9 @@ +#pragma once + +#include +#include + +constexpr auto SURFACE_STYLE_FLAG_RAISE_OR_LOWER_BASE_HEIGHT = 0x20; + +uint8_t LowerSurfaceCornerFlags(size_t SelectedCorner, size_t CurrentSlope); +uint8_t RaiseSurfaceCornerFlags(size_t SelectedCorner, size_t CurrentSlope); diff --git a/src/openrct2/world/TileElement.h b/src/openrct2/world/TileElement.h index fb852d15ac..f11cd55b5b 100644 --- a/src/openrct2/world/TileElement.h +++ b/src/openrct2/world/TileElement.h @@ -22,7 +22,7 @@ struct CoordsXY; struct LargeSceneryEntry; struct SmallSceneryEntry; struct WallSceneryEntry; -struct PathBitEntry; +struct PathAdditionEntry; struct BannerSceneryEntry; struct FootpathEntry; class LargeSceneryObject; @@ -33,8 +33,8 @@ class FootpathSurfaceObject; class FootpathRailingsObject; using track_type_t = uint16_t; -constexpr const uint8_t MAX_ELEMENT_HEIGHT = 255; -constexpr const uint8_t OWNER_MASK = 0b00001111; +constexpr uint8_t MAX_ELEMENT_HEIGHT = 255; +constexpr uint8_t OWNER_MASK = 0b00001111; #pragma pack(push, 1) @@ -309,8 +309,9 @@ public: bool HasAddition() const; uint8_t GetAddition() const; ObjectEntryIndex GetAdditionEntryIndex() const; - const PathBitEntry* GetAdditionEntry() const; + const PathAdditionEntry* GetAdditionEntry() const; void SetAddition(uint8_t newAddition); + void SetAdditionEntryIndex(ObjectEntryIndex entryIndex); bool AdditionIsGhost() const; void SetAdditionIsGhost(bool isGhost); diff --git a/src/openrct2/world/TileInspector.cpp b/src/openrct2/world/TileInspector.cpp index 440ffbd492..9e3d7bb35c 100644 --- a/src/openrct2/world/TileInspector.cpp +++ b/src/openrct2/world/TileInspector.cpp @@ -23,6 +23,7 @@ #include "../ride/TrackData.h" #include "../windows/Intent.h" #include "../windows/TileInspectorGlobals.h" +#include "../world/MapAnimation.h" #include "Banner.h" #include "Footpath.h" #include "Location.hpp" @@ -36,7 +37,7 @@ TileCoordsXY windowTileInspectorTile; int32_t windowTileInspectorElementCount = 0; -int32_t windowTileInspectorSelectedIndex; +int32_t windowTileInspectorSelectedIndex = -1; using namespace OpenRCT2::TrackMetaData; namespace OpenRCT2::TileInspector @@ -75,15 +76,11 @@ namespace OpenRCT2::TileInspector return true; } - static WindowBase* GetTileInspectorWithPos(const CoordsXY& loc) + static bool IsTileSelected(const CoordsXY& loc) { - // Return the tile inspector window for everyone who has the tile selected + // Return true for everyone who has the window open and tile selected auto* window = WindowFindByClass(WindowClass::TileInspector); - if (window != nullptr && loc == windowTileInspectorTile.ToCoordsXY()) - { - return window; - } - return nullptr; + return window != nullptr && loc == windowTileInspectorTile.ToCoordsXY(); } static int32_t NumLargeScenerySequences(const CoordsXY& loc, const LargeSceneryElement* const largeScenery) @@ -163,23 +160,16 @@ namespace OpenRCT2::TileInspector } TileElementRemove(tileElement); - MapInvalidateTileFull(loc); - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) + if (IsTileSelected(loc)) { // Update the window windowTileInspectorElementCount--; - if (windowTileInspectorSelectedIndex > elementIndex) + if (windowTileInspectorSelectedIndex >= elementIndex) { windowTileInspectorSelectedIndex--; } - else if (windowTileInspectorSelectedIndex == elementIndex) - { - windowTileInspectorSelectedIndex = -1; - } - - inspector->Invalidate(); } } @@ -194,17 +184,14 @@ namespace OpenRCT2::TileInspector { return GameActions::Result(GameActions::Status::Unknown, STR_NONE, STR_NONE); } - MapInvalidateTileFull(loc); - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) + if (IsTileSelected(loc)) { // If one of them was selected, update selected list item if (windowTileInspectorSelectedIndex == first) windowTileInspectorSelectedIndex = second; else if (windowTileInspectorSelectedIndex == second) windowTileInspectorSelectedIndex = first; - - inspector->Invalidate(); } } @@ -284,13 +271,6 @@ namespace OpenRCT2::TileInspector case TileElementType::LargeScenery: break; } - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -310,16 +290,10 @@ namespace OpenRCT2::TileInspector bool currentlyInvisible = tileElement->IsInvisible(); tileElement->SetInvisible(!currentlyInvisible); - MapInvalidateTileFull(loc); - if (loc == windowTileInspectorTile.ToCoordsXY()) - { - WindowInvalidateByClass(WindowClass::TileInspector); - } - return GameActions::Result(); } - GameActions::Result PasteElementAt(const CoordsXY& loc, TileElement element, bool isExecuting) + GameActions::Result PasteElementAt(const CoordsXY& loc, TileElement element, Banner banner, bool isExecuting) { // Make sure there is enough space for the new element if (!MapCheckCapacityAndReorganise(loc)) @@ -329,28 +303,31 @@ namespace OpenRCT2::TileInspector auto tileLoc = TileCoordsXY(loc); - auto bannerIndex = element.GetBannerIndex(); - if (bannerIndex != BannerIndex::GetNull() && GetBanner(bannerIndex) == nullptr) - { - return GameActions::Result(GameActions::Status::Unknown, STR_NONE, STR_NONE); - } - if (isExecuting) { - // Check if the element to be pasted refers to a banner index - if (bannerIndex != BannerIndex::GetNull()) + // Check if the element to be pasted has a banner + if (element.GetBannerIndex() != BannerIndex::GetNull()) { - // The element to be pasted refers to a banner index - make a copy of it + // The element to be pasted has a banner - make a copy of it from the banner provided auto newBanner = CreateBanner(); if (newBanner == nullptr) { LOG_ERROR("No free banners available"); return GameActions::Result(GameActions::Status::Unknown, STR_TOO_MANY_BANNERS_IN_GAME, STR_NONE); } + auto newId = newBanner->id; // Copy the banners style - *newBanner = *GetBanner(bannerIndex); + *newBanner = banner; // Reset the location to the paste location newBanner->position = tileLoc; + newBanner->id = newId; + + // If the linked ride has been destroyed since copying, unlink the pasted banner + if (newBanner->flags & BANNER_FLAG_LINKED_TO_RIDE && GetRide(newBanner->ride_index) == nullptr) + { + newBanner->flags &= ~BANNER_FLAG_LINKED_TO_RIDE; + newBanner->ride_index = RideId::GetNull(); + } // Use the new banner index element.SetBannerIndex(newBanner->id); @@ -364,9 +341,9 @@ namespace OpenRCT2::TileInspector *pastedElement = element; pastedElement->SetLastForTile(lastForTile); - MapInvalidateTileFull(loc); + MapAnimationAutoCreateAtTileElement(tileLoc, pastedElement); - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) + if (IsTileSelected(loc)) { windowTileInspectorElementCount++; @@ -376,8 +353,6 @@ namespace OpenRCT2::TileInspector windowTileInspectorSelectedIndex = newIndex; else if (windowTileInspectorSelectedIndex >= newIndex) windowTileInspectorSelectedIndex++; - - inspector->Invalidate(); } } @@ -428,14 +403,10 @@ namespace OpenRCT2::TileInspector } } - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) + if (IsTileSelected(loc)) { // Deselect tile for clients who had it selected windowTileInspectorSelectedIndex = -1; - - inspector->Invalidate(); } } @@ -503,13 +474,6 @@ namespace OpenRCT2::TileInspector tileElement->BaseHeight += heightOffset; tileElement->ClearanceHeight += heightOffset; - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -529,13 +493,6 @@ namespace OpenRCT2::TileInspector surfaceelement->SetParkFences(0); else ParkUpdateFences(loc); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -582,13 +539,6 @@ namespace OpenRCT2::TileInspector } surfaceElement->SetSlope(newSlope); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -606,13 +556,6 @@ namespace OpenRCT2::TileInspector { uint8_t newSlope = surfaceElement->GetSlope() ^ TILE_ELEMENT_SLOPE_DOUBLE_HEIGHT; surfaceElement->SetSlope(newSlope); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -627,13 +570,6 @@ namespace OpenRCT2::TileInspector if (isExecuting) { pathElement->AsPath()->SetSloped(sloped); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -649,13 +585,6 @@ namespace OpenRCT2::TileInspector if (isExecuting) { pathElement->AsPath()->SetJunctionRailings(hasJunctionRailings); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -670,13 +599,6 @@ namespace OpenRCT2::TileInspector if (isExecuting) { pathElement->AsPath()->SetIsBroken(broken); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -692,13 +614,6 @@ namespace OpenRCT2::TileInspector { uint8_t newEdges = pathElement->AsPath()->GetEdgesAndCorners() ^ (1 << edgeIndex); pathElement->AsPath()->SetEdgesAndCorners(newEdges); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -728,11 +643,6 @@ namespace OpenRCT2::TileInspector station.Exit = { loc, entranceElement->BaseHeight, entranceElement->GetDirection() }; break; } - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -748,13 +658,6 @@ namespace OpenRCT2::TileInspector { // Set new slope value wallElement->AsWall()->SetSlope(slopeValue); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -771,13 +674,6 @@ namespace OpenRCT2::TileInspector { uint8_t animationFrame = wallElement->AsWall()->GetAnimationFrame(); wallElement->AsWall()->SetAnimationFrame(animationFrame + animationFrameOffset); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -837,9 +733,7 @@ namespace OpenRCT2::TileInspector // track_remove returns here on failure, not sure when this would ever be hit. Only thing I can think of is // for when you decrease the map size. - openrct2_assert(MapGetSurfaceElementAt(elem) != nullptr, "No surface at %d,%d", elem.x >> 5, elem.y >> 5); - - MapInvalidateTileFull(elem); + Guard::Assert(MapGetSurfaceElementAt(elem) != nullptr, "No surface at %d,%d", elem.x >> 5, elem.y >> 5); // Keep? // invalidate_test_results(ride); @@ -847,11 +741,6 @@ namespace OpenRCT2::TileInspector tileElement->BaseHeight += offset; tileElement->ClearanceHeight += offset; } - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -921,9 +810,7 @@ namespace OpenRCT2::TileInspector // track_remove returns here on failure, not sure when this would ever be hit. Only thing I can think of is // for when you decrease the map size. - openrct2_assert(MapGetSurfaceElementAt(elem) != nullptr, "No surface at %d,%d", elem.x >> 5, elem.y >> 5); - - MapInvalidateTileFull(elem); + Guard::Assert(MapGetSurfaceElementAt(elem) != nullptr, "No surface at %d,%d", elem.x >> 5, elem.y >> 5); // Keep? // invalidate_test_results(ride); @@ -933,11 +820,6 @@ namespace OpenRCT2::TileInspector tileElement->AsTrack()->SetHasChain(setChain); } } - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -952,13 +834,6 @@ namespace OpenRCT2::TileInspector if (isExecuting) { trackElement->AsTrack()->SetBrakeClosed(isClosed); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -974,13 +849,6 @@ namespace OpenRCT2::TileInspector if (isExecuting) { trackElement->AsTrack()->SetIsIndestructible(isIndestructible); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -1000,13 +868,6 @@ namespace OpenRCT2::TileInspector // Update collision tileElement->SetOccupiedQuadrants(1 << ((quarterIndex + 2) & 3)); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -1024,13 +885,6 @@ namespace OpenRCT2::TileInspector auto occupiedQuadrants = tileElement->GetOccupiedQuadrants(); occupiedQuadrants ^= 1 << quarterIndex; tileElement->SetOccupiedQuadrants(occupiedQuadrants); - - MapInvalidateTileFull(loc); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); @@ -1047,27 +901,20 @@ namespace OpenRCT2::TileInspector uint8_t edges = bannerElement->AsBanner()->GetAllowedEdges(); edges ^= (1 << edgeIndex); bannerElement->AsBanner()->SetAllowedEdges(edges); - - if (auto* inspector = GetTileInspectorWithPos(loc); inspector != nullptr) - { - inspector->Invalidate(); - } } return GameActions::Result(); } - // NOTE: The pointer is exclusively used to determine the current selection, - // do not access the data, points to potentially invalid memory. - static const TileElement* _highlightedElement = nullptr; - - void SetSelectedElement(const TileElement* elem) + TileElement* GetSelectedElement() { - _highlightedElement = elem; - } - - bool IsElementSelected(const TileElement* elem) - { - return _highlightedElement == elem; + if (windowTileInspectorSelectedIndex == -1) + { + return nullptr; + } + Guard::Assert( + windowTileInspectorSelectedIndex >= 0 && windowTileInspectorSelectedIndex < windowTileInspectorElementCount, + "Selected list item out of range"); + return MapGetNthElementAt(windowTileInspectorTile.ToCoordsXY(), windowTileInspectorSelectedIndex); } } // namespace OpenRCT2::TileInspector diff --git a/src/openrct2/world/TileInspector.h b/src/openrct2/world/TileInspector.h index 5e9d210616..e1a5b44998 100644 --- a/src/openrct2/world/TileInspector.h +++ b/src/openrct2/world/TileInspector.h @@ -19,15 +19,14 @@ namespace GameActions namespace OpenRCT2::TileInspector { - void SetSelectedElement(const TileElement* elem); - bool IsElementSelected(const TileElement* elem); + TileElement* GetSelectedElement(); GameActions::Result InsertCorruptElementAt(const CoordsXY& loc, int16_t elementIndex, bool isExecuting); GameActions::Result RemoveElementAt(const CoordsXY& loc, int16_t elementIndex, bool isExecuting); GameActions::Result SwapElementsAt(const CoordsXY& loc, int16_t first, int16_t second, bool isExecuting); GameActions::Result RotateElementAt(const CoordsXY& loc, int32_t elementIndex, bool isExecuting); GameActions::Result ToggleInvisibilityOfElementAt(const CoordsXY& loc, int32_t elementIndex, bool isExecuting); - GameActions::Result PasteElementAt(const CoordsXY& loc, TileElement element, bool isExecuting); + GameActions::Result PasteElementAt(const CoordsXY& loc, TileElement element, Banner banner, bool isExecuting); GameActions::Result SortElementsAt(const CoordsXY& loc, bool isExecuting); GameActions::Result AnyBaseHeightOffset(const CoordsXY& loc, int16_t elementIndex, int8_t heightOffset, bool isExecuting); GameActions::Result SurfaceShowParkFences(const CoordsXY& loc, bool showFences, bool isExecuting); diff --git a/src/openrct2/world/Wall.h b/src/openrct2/world/Wall.h index be893f3517..2776793ae7 100644 --- a/src/openrct2/world/Wall.h +++ b/src/openrct2/world/Wall.h @@ -34,7 +34,7 @@ enum EDGE_SLOPE }; /** rct2: 0x009A3FEC */ -constexpr const uint8_t LandSlopeToWallSlope[][NumOrthogonalDirections] = { +constexpr uint8_t LandSlopeToWallSlope[][NumOrthogonalDirections] = { // Top right Bottom right Bottom left Top left { 0, 0, 0, 0 }, { 0, EDGE_SLOPE_UPWARDS, EDGE_SLOPE_DOWNWARDS, 0 }, diff --git a/test/tests/LanguagePackTest.cpp b/test/tests/LanguagePackTest.cpp index 5cc668eafd..3d0d8a4b97 100644 --- a/test/tests/LanguagePackTest.cpp +++ b/test/tests/LanguagePackTest.cpp @@ -47,12 +47,9 @@ TEST_F(LanguagePackTest, language_pack_simple) ASSERT_STREQ(lang->GetString(2), "Spiral Roller Coaster"); ASSERT_EQ(lang->GetScenarioOverrideStringId("Arid Heights", 0), 0x7000); ASSERT_STREQ(lang->GetString(0x7000), "Arid Heights scenario string"); - ASSERT_EQ(lang->GetObjectOverrideStringId("CONDORRD", 0), 0x6000); - ASSERT_STREQ(lang->GetString(0x6000), "my test ride"); // Test some negatives too ASSERT_EQ(lang->GetString(1000), nullptr); ASSERT_EQ(lang->GetScenarioOverrideStringId("No such park", 0), STR_NONE); - ASSERT_EQ(lang->GetObjectOverrideStringId(" ", 0), STR_NONE); } TEST_F(LanguagePackTest, language_pack_multibyte) @@ -65,8 +62,6 @@ TEST_F(LanguagePackTest, language_pack_multibyte) ASSERT_EQ(lang->GetScenarioOverrideStringId("Forest Frontiers", 2), 0x7002); ASSERT_STREQ(lang->GetString(0x7000), "Forest Frontiers"); ASSERT_STREQ(lang->GetString(0x7002), u8"在隱藏於森林深處的清空範圍中, 建造一個很受歡迎的樂園"); - ASSERT_EQ(lang->GetObjectOverrideStringId("CONDORRD", 0), 0x6000); - ASSERT_STREQ(lang->GetString(0x6000), u8"神鷹暢遊"); } const utf8* LanguagePackTest::LanguageEnGB = "# STR_XXXX part is read and XXXX becomes the string id number.\n" diff --git a/test/tests/MultiLaunch.cpp b/test/tests/MultiLaunch.cpp index fc1146bca3..ed0af996eb 100644 --- a/test/tests/MultiLaunch.cpp +++ b/test/tests/MultiLaunch.cpp @@ -34,7 +34,6 @@ TEST(MultiLaunchTest, all) gOpenRCT2Headless = true; gOpenRCT2NoGraphics = true; - Platform::CoreInit(); for (int i = 0; i < 3; i++) { auto context = CreateContext(); diff --git a/test/tests/Pathfinding.cpp b/test/tests/Pathfinding.cpp index 32aa2c93f5..b956ead827 100644 --- a/test/tests/Pathfinding.cpp +++ b/test/tests/Pathfinding.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -29,8 +30,6 @@ class PathfindingTestBase : public testing::Test public: static void SetUpTestCase() { - Platform::CoreInit(); - gOpenRCT2Headless = true; gOpenRCT2NoGraphics = true; _context = CreateContext(); @@ -59,7 +58,7 @@ protected: for (auto& ride : GetRideManager()) { auto thisName = ride.GetName(); - if (!_strnicmp(thisName.c_str(), name, sizeof(thisName))) + if (String::StartsWith(thisName, u8string{ name }, true)) { return &ride; } diff --git a/test/tests/PlayTests.cpp b/test/tests/PlayTests.cpp index 43c147d540..238e89b839 100644 --- a/test/tests/PlayTests.cpp +++ b/test/tests/PlayTests.cpp @@ -41,7 +41,6 @@ static std::unique_ptr localStartGame(const std::string& parkPath) { gOpenRCT2Headless = true; gOpenRCT2NoGraphics = true; - Platform::CoreInit(); auto context = CreateContext(); if (!context->Initialise()) diff --git a/test/tests/ReplayTests.cpp b/test/tests/ReplayTests.cpp index 72b7737205..4d450480b4 100644 --- a/test/tests/ReplayTests.cpp +++ b/test/tests/ReplayTests.cpp @@ -57,7 +57,7 @@ static std::vector GetReplayFiles() while (scanner->Next()) { ReplayTestData test; - test.name = sanitizeTestName(scanner->GetFileInfo()->Name); + test.name = sanitizeTestName(scanner->GetFileInfo().Name); test.filePath = scanner->GetPath(); res.push_back(std::move(test)); } @@ -73,7 +73,6 @@ TEST_P(ReplayTests, RunReplay) { gOpenRCT2Headless = true; gOpenRCT2NoGraphics = true; - Platform::CoreInit(); auto testData = GetParam(); auto replayFile = testData.filePath; diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp index d6cb11bd96..9ec03030a2 100644 --- a/test/tests/RideRatings.cpp +++ b/test/tests/RideRatings.cpp @@ -65,7 +65,6 @@ protected: gOpenRCT2Headless = true; gOpenRCT2NoGraphics = true; - Platform::CoreInit(); auto context = CreateContext(); bool initialised = context->Initialise(); ASSERT_TRUE(initialised); @@ -99,3 +98,8 @@ TEST_F(RideRatings, BigMap) { TestRatings("BigMapTest.sv6", 100); } + +TEST_F(RideRatings, EverythingPark) +{ + TestRatings("EverythingPark.park", 529); +} diff --git a/test/tests/S6ImportExportTests.cpp b/test/tests/S6ImportExportTests.cpp index 58436b15fd..5cd4541094 100644 --- a/test/tests/S6ImportExportTests.cpp +++ b/test/tests/S6ImportExportTests.cpp @@ -187,8 +187,6 @@ TEST(S6ImportExportBasic, all) gOpenRCT2Headless = true; gOpenRCT2NoGraphics = true; - Platform::CoreInit(); - MemoryStream importBuffer; MemoryStream exportBuffer; MemoryStream snapshotStream; @@ -233,8 +231,6 @@ TEST(S6ImportExportAdvanceTicks, all) gOpenRCT2Headless = true; gOpenRCT2NoGraphics = true; - Platform::CoreInit(); - MemoryStream importBuffer; MemoryStream exportBuffer; MemoryStream snapshotStream; diff --git a/test/tests/StringTest.cpp b/test/tests/StringTest.cpp index fd14d93052..03e8c2e3a0 100644 --- a/test/tests/StringTest.cpp +++ b/test/tests/StringTest.cpp @@ -170,6 +170,58 @@ TEST_F(StringTest, StrLogicalCmp) EXPECT_LT(StrLogicalCmp("!", "a"), 0); } +TEST_F(StringTest, IEqualsU8String) +{ + EXPECT_TRUE(String::IEquals(u8string{ u8"" }, u8string{ u8"" })); + EXPECT_TRUE(String::IEquals(u8string{ u8"Test" }, u8string{ u8"Test" })); + EXPECT_TRUE(String::IEquals(u8string{ u8"TesT" }, u8string{ u8"Test" })); + EXPECT_TRUE(String::IEquals(u8string{ u8"TEsT" }, u8string{ u8"Test" })); + + EXPECT_FALSE(String::IEquals(u8string{ u8"Test" }, u8string{ u8"Message" })); + EXPECT_FALSE(String::IEquals(u8string{ u8"Test" }, u8string{ u8"TestMessage" })); + EXPECT_FALSE(String::IEquals(u8string{ u8"" }, u8string{ u8"Test" })); + EXPECT_FALSE(String::IEquals(u8string{ u8"Test" }, u8string{ u8"" })); +} + +TEST_F(StringTest, IEqualsU8StringView) +{ + EXPECT_TRUE(String::IEquals(u8string_view{ u8"" }, u8string_view{ u8"" })); + EXPECT_TRUE(String::IEquals(u8string_view{ u8"Test" }, u8string_view{ u8"Test" })); + EXPECT_TRUE(String::IEquals(u8string_view{ u8"TesT" }, u8string_view{ u8"Test" })); + EXPECT_TRUE(String::IEquals(u8string_view{ u8"TEsT" }, u8string_view{ u8"Test" })); + + EXPECT_FALSE(String::IEquals(u8string_view{ u8"Test" }, u8string_view{ u8"Message" })); + EXPECT_FALSE(String::IEquals(u8string_view{ u8"Test" }, u8string_view{ u8"TestMessage" })); + EXPECT_FALSE(String::IEquals(u8string_view{ u8"" }, u8string_view{ u8"Test" })); + EXPECT_FALSE(String::IEquals(u8string_view{ u8"Test" }, u8string_view{ u8"" })); +} + +TEST_F(StringTest, EqualsU8String) +{ + EXPECT_TRUE(String::Equals(u8string{ u8"" }, u8string{ u8"" })); + EXPECT_TRUE(String::Equals(u8string{ u8"Test" }, u8string{ u8"Test" })); + + EXPECT_FALSE(String::Equals(u8string{ u8"TesT" }, u8string{ u8"Test" })); + EXPECT_FALSE(String::Equals(u8string{ u8"TEsT" }, u8string{ u8"Test" })); + EXPECT_FALSE(String::Equals(u8string{ u8"Test" }, u8string{ u8"Message" })); + EXPECT_FALSE(String::Equals(u8string{ u8"Test" }, u8string{ u8"TestMessage" })); + EXPECT_FALSE(String::Equals(u8string{ u8"" }, u8string{ u8"Test" })); + EXPECT_FALSE(String::Equals(u8string{ u8"Test" }, u8string{ u8"" })); +} + +TEST_F(StringTest, EqualsU8StringView) +{ + EXPECT_TRUE(String::Equals(u8string_view{ u8"" }, u8string_view{ u8"" })); + EXPECT_TRUE(String::Equals(u8string_view{ u8"Test" }, u8string_view{ u8"Test" })); + + EXPECT_FALSE(String::Equals(u8string_view{ u8"TesT" }, u8string_view{ u8"Test" })); + EXPECT_FALSE(String::Equals(u8string_view{ u8"TEsT" }, u8string_view{ u8"Test" })); + EXPECT_FALSE(String::Equals(u8string_view{ u8"Test" }, u8string_view{ u8"Message" })); + EXPECT_FALSE(String::Equals(u8string_view{ u8"Test" }, u8string_view{ u8"TestMessage" })); + EXPECT_FALSE(String::Equals(u8string_view{ u8"" }, u8string_view{ u8"Test" })); + EXPECT_FALSE(String::Equals(u8string_view{ u8"Test" }, u8string_view{ u8"" })); +} + class CodepointViewTest : public testing::Test { }; diff --git a/test/tests/TileElements.cpp b/test/tests/TileElements.cpp index a88f2e0062..fb04735167 100644 --- a/test/tests/TileElements.cpp +++ b/test/tests/TileElements.cpp @@ -59,7 +59,7 @@ uint8_t TileElementWantsFootpathConnection::_gScreenFlags; TEST_F(TileElementWantsFootpathConnection, FlatPath) { // Flat paths want to connect to other paths in any direction - const TileElement* const pathElement = MapGetFootpathElement(TileCoordsXYZ{ 19, 18, 14 }.ToCoordsXYZ()); + const auto* pathElement = MapGetFootpathElement(TileCoordsXYZ{ 19, 18, 14 }.ToCoordsXYZ()); ASSERT_NE(pathElement, nullptr); EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 18, 14, 0 }, nullptr)); EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 18, 14, 1 }, nullptr)); @@ -71,7 +71,7 @@ TEST_F(TileElementWantsFootpathConnection, FlatPath) TEST_F(TileElementWantsFootpathConnection, SlopedPath) { // Sloped paths only want to connect in two directions, of which is one at a higher offset - const TileElement* const slopedPathElement = MapGetFootpathElement(TileCoordsXYZ{ 18, 18, 14 }.ToCoordsXYZ()); + const auto* slopedPathElement = MapGetFootpathElement(TileCoordsXYZ{ 18, 18, 14 }.ToCoordsXYZ()); ASSERT_NE(slopedPathElement, nullptr); ASSERT_TRUE(slopedPathElement->AsPath()->IsSloped()); // Bottom and top of sloped path want a path connection @@ -152,14 +152,15 @@ TEST_F(TileElementWantsFootpathConnection, MapEdge) { // Paths at the map edge should have edge flags turned on when placed in scenario editor // This tile is a single, unconnected footpath on the map edge - on load, GetEdges() returns 0 - TileElement* pathElement = MapGetFootpathElement(TileCoordsXYZ{ 1, 4, 14 }.ToCoordsXYZ()); + auto* pathElement = MapGetFootpathElement(TileCoordsXYZ{ 1, 4, 14 }.ToCoordsXYZ()); // Enable flag to simulate enabling the scenario editor gScreenFlags |= SCREEN_FLAGS_SCENARIO_EDITOR; // Calculate the connected edges and set the appropriate edge flags - FootpathConnectEdges({ 16, 64 }, pathElement, 0); - auto edges = pathElement->AsPath()->GetEdges(); + // FIXME: The footpath functions should only take PathElement and not TileElement. + FootpathConnectEdges({ 16, 64 }, pathElement->as(), 0); + auto edges = pathElement->GetEdges(); // The tiles alongside in the Y direction are both on the map edge so should be marked as an edge EXPECT_TRUE(edges & (1 << 1)); diff --git a/test/tests/testdata/parks/EverythingPark.park b/test/tests/testdata/parks/EverythingPark.park new file mode 100644 index 0000000000..bcecee11c3 Binary files /dev/null and b/test/tests/testdata/parks/EverythingPark.park differ diff --git a/test/tests/testdata/ratings/EverythingPark.park.txt b/test/tests/testdata/ratings/EverythingPark.park.txt new file mode 100644 index 0000000000..812c92259e --- /dev/null +++ b/test/tests/testdata/ratings/EverythingPark.park.txt @@ -0,0 +1,529 @@ +RIDE_TYPE_MERRY_GO_ROUND: (105, 60, 75) +RIDE_TYPE_LOOPING_ROLLER_COASTER: (646, 612, 271) +RIDE_TYPE_FOOD_STALL: (-1, 702, 346) +RIDE_TYPE_DRINK_STALL: (-1, 886, 620) +RIDE_TYPE_TOILETS: (-1, 245, 251) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 157, 250) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_TWIST: (173, 157, 250) +RIDE_TYPE_JUNIOR_ROLLER_COASTER: (479, 583, 384) +RIDE_TYPE_SINGLE_RAIL_ROLLER_COASTER: (746, 768, 369) +RIDE_TYPE_MAZE: (155, 90, 0) +RIDE_TYPE_SWINGING_SHIP: (207, 245, 251) +RIDE_TYPE_BOAT_HIRE: (213, 80, 90) +RIDE_TYPE_ENTERPRISE: (372, 647, 764) +RIDE_TYPE_TOP_SPIN: (200, 480, 574) +RIDE_TYPE_HAUNTED_HOUSE: (341, 153, 10) +RIDE_TYPE_FOOD_STALL: (-1, 678, 684) +RIDE_TYPE_FOOD_STALL: (-1, 248, 131) +RIDE_TYPE_FOOD_STALL: (-1, 113, 67) +RIDE_TYPE_FOOD_STALL: (-1, 947, 763) +RIDE_TYPE_FOOD_STALL: (-1, 968, 559) +RIDE_TYPE_FOOD_STALL: (-1, 242, 118) +RIDE_TYPE_FOOD_STALL: (-1, 60, 75) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 157, 250) +RIDE_TYPE_FOOD_STALL: (-1, 80, 35) +RIDE_TYPE_FOOD_STALL: (-1, 647, 764) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 50, 55) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 254, 41) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 30, 0) +RIDE_TYPE_FIRST_AID: (-1, 62, 34) +RIDE_TYPE_CASH_MACHINE: (-1, 350, 300) +RIDE_TYPE_TOILETS: (-1, 157, 250) +RIDE_TYPE_TOILETS: (-1, 153, 10) +RIDE_TYPE_TOILETS: (-1, 850, 809) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (622, 763, 369) +RIDE_TYPE_HEARTLINE_TWISTER_COASTER: (546, 918, 606) +RIDE_TYPE_MERRY_GO_ROUND: (119, 61, 75) +RIDE_TYPE_DODGEMS: (270, 80, 35) +RIDE_TYPE_DODGEMS: (271, 80, 35) +RIDE_TYPE_DODGEMS: (273, 80, 35) +RIDE_TYPE_TOP_SPIN: (206, 480, 574) +RIDE_TYPE_TOP_SPIN: (206, 480, 574) +RIDE_TYPE_MOTION_SIMULATOR: (290, 350, 300) +RIDE_TYPE_MOTION_SIMULATOR: (290, 350, 300) +RIDE_TYPE_3D_CINEMA: (350, 240, 140) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_WOODEN_WILD_MOUSE: (727, 873, 495) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_CROOKED_HOUSE: (215, 62, 34) +RIDE_TYPE_CROOKED_HOUSE: (215, 62, 34) +RIDE_TYPE_CROOKED_HOUSE: (340, 62, 34) +RIDE_TYPE_CROOKED_HOUSE: (215, 62, 34) +RIDE_TYPE_MAGIC_CARPET: (335, 340, 440) +RIDE_TYPE_TWISTER_ROLLER_COASTER: (672, 939, 477) +RIDE_TYPE_CLASSIC_WOODEN_ROLLER_COASTER: (634, 747, 408) +RIDE_TYPE_WOODEN_ROLLER_COASTER: (680, 706, 387) +RIDE_TYPE_ENTERPRISE: (382, 647, 764) +RIDE_TYPE_GIGA_COASTER: (1030, 898, 444) +RIDE_TYPE_SUBMARINE_RIDE: (256, 180, 140) +RIDE_TYPE_OBSERVATION_TOWER: (428, 0, 117) +RIDE_TYPE_SWINGING_INVERTER_SHIP: (351, 468, 472) +RIDE_TYPE_SWINGING_INVERTER_SHIP: (352, 468, 472) +RIDE_TYPE_HAUNTED_HOUSE: (341, 153, 10) +RIDE_TYPE_SPACE_RINGS: (161, 210, 650) +RIDE_TYPE_MINI_GOLF: (342, 90, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_FIRST_AID: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_FIRST_AID: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_ROTO_DROP: (507, 1078, 1078) +RIDE_TYPE_TOP_SPIN: (202, 480, 574) +RIDE_TYPE_TOP_SPIN: (204, 480, 574) +RIDE_TYPE_LAUNCHED_FREEFALL: (380, 982, 577) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (417, 456, 182) +RIDE_TYPE_GO_KARTS: (518, 262, 49) +RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER: (687, 822, 833) +RIDE_TYPE_HYBRID_COASTER: (799, 786, 363) +RIDE_TYPE_SINGLE_RAIL_ROLLER_COASTER: (734, 613, 283) +RIDE_TYPE_MINIATURE_RAILWAY: (165, 12, 1) +RIDE_TYPE_MONORAIL: (138, 9, 1) +RIDE_TYPE_MONORAIL: (136, 7, 1) +RIDE_TYPE_MONORAIL: (137, 8, 2) +RIDE_TYPE_SUSPENDED_MONORAIL: (146, 21, 5) +RIDE_TYPE_CHAIRLIFT: (234, 71, 52) +RIDE_TYPE_MONORAIL_CYCLES: (95, 14, 0) +RIDE_TYPE_LIFT: (181, 35, 46) +RIDE_TYPE_SPIRAL_SLIDE: (151, 140, 90) +RIDE_TYPE_SPIRAL_SLIDE: (153, 140, 90) +RIDE_TYPE_SPIRAL_SLIDE: (153, 140, 90) +RIDE_TYPE_SPIRAL_SLIDE: (153, 140, 90) +RIDE_TYPE_SPIRAL_SLIDE: (153, 140, 90) +RIDE_TYPE_SPIRAL_SLIDE: (151, 140, 90) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_FIRST_AID: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_MERRY_GO_ROUND: (106, 60, 75) +RIDE_TYPE_CIRCUS: (210, 30, 0) +RIDE_TYPE_INVERTED_ROLLER_COASTER: (602, 799, 635) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_FIRST_AID: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_BOBSLEIGH_COASTER: (590, 650, 487) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_FIRST_AID: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_CAR_RIDE: (377, 58, 4) +RIDE_TYPE_SPACE_RINGS: (275, 333, 751) +RIDE_TYPE_SPACE_RINGS: (165, 210, 650) +RIDE_TYPE_MINI_SUSPENDED_COASTER: (509, 635, 448) +RIDE_TYPE_HYPER_TWISTER: (849, 761, 379) +RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER: (785, 826, 375) +RIDE_TYPE_REVERSE_FREEFALL_COASTER: (164, 241, 184) +RIDE_TYPE_MINI_ROLLER_COASTER: (549, 760, 497) +RIDE_TYPE_MONSTER_TRUCKS: (411, 69, 6) +RIDE_TYPE_WOODEN_ROLLER_COASTER: (648, 885, 503) +RIDE_TYPE_VIRGINIA_REEL: (655, 684, 674) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_FIRST_AID: (-1, 0, 0) +RIDE_TYPE_LOG_FLUME: (529, 293, 141) +RIDE_TYPE_SPLASH_BOATS: (795, 503, 229) +RIDE_TYPE_MERRY_GO_ROUND: (106, 60, 75) +RIDE_TYPE_DINGHY_SLIDE: (550, 647, 410) +RIDE_TYPE_RIVER_RAPIDS: (362, 144, 83) +RIDE_TYPE_RIVER_RAFTS: (217, 45, 43) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_FIRST_AID: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (28, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_CAR_RIDE: (29, 29, 1) +RIDE_TYPE_GO_KARTS: (397, 253, 42) +RIDE_TYPE_GO_KARTS: (400, 253, 42) +RIDE_TYPE_GO_KARTS: (397, 253, 42) +RIDE_TYPE_GO_KARTS: (397, 253, 42) +RIDE_TYPE_FLYING_SAUCERS: (393, 85, 39) +RIDE_TYPE_FLYING_SAUCERS: (394, 85, 39) +RIDE_TYPE_FLYING_SAUCERS: (394, 85, 39) +RIDE_TYPE_FLYING_SAUCERS: (624, 111, 42) +RIDE_TYPE_FLYING_SAUCERS: (394, 85, 39) +RIDE_TYPE_MINI_HELICOPTERS: (302, 48, 1) +RIDE_TYPE_BOAT_HIRE: (259, 89, 100) +RIDE_TYPE_BOAT_HIRE: (208, 80, 90) +RIDE_TYPE_BOAT_HIRE: (208, 80, 90) +RIDE_TYPE_BOAT_HIRE: (329, 126, 118) +RIDE_TYPE_BOAT_HIRE: (329, 126, 118) +RIDE_TYPE_BOAT_HIRE: (214, 80, 91) +RIDE_TYPE_BOAT_HIRE: (256, 89, 100) +RIDE_TYPE_BOAT_HIRE: (216, 81, 90) +RIDE_TYPE_BOAT_HIRE: (208, 80, 90) +RIDE_TYPE_BOAT_HIRE: (208, 80, 90) +RIDE_TYPE_BOAT_HIRE: (223, 81, 90) +RIDE_TYPE_WOODEN_WILD_MOUSE: (63, 77, 43) +RIDE_TYPE_WOODEN_WILD_MOUSE: (63, 78, 43) +RIDE_TYPE_STEEL_WILD_MOUSE: (123, 145, 86) +RIDE_TYPE_STEEL_WILD_MOUSE: (125, 145, 86) +RIDE_TYPE_REVERSER_ROLLER_COASTER: (482, 439, 340) +RIDE_TYPE_REVERSER_ROLLER_COASTER: (482, 440, 340) +RIDE_TYPE_WOODEN_ROLLER_COASTER: (12, 11, 7) +RIDE_TYPE_WOODEN_ROLLER_COASTER: (12, 11, 7) +RIDE_TYPE_WOODEN_ROLLER_COASTER: (12, 10, 7) +RIDE_TYPE_WOODEN_ROLLER_COASTER: (12, 11, 7) +RIDE_TYPE_WOODEN_ROLLER_COASTER: (12, 11, 7) +RIDE_TYPE_WOODEN_ROLLER_COASTER: (12, 11, 7) +RIDE_TYPE_CLASSIC_WOODEN_ROLLER_COASTER: (10, 385, 8) +RIDE_TYPE_LAY_DOWN_ROLLER_COASTER: (166, 1630, 1072) +RIDE_TYPE_LAY_DOWN_ROLLER_COASTER: (169, 1612, 1064) +RIDE_TYPE_MINI_ROLLER_COASTER: (39, 37, 28) +RIDE_TYPE_MINI_ROLLER_COASTER: (39, 37, 28) +RIDE_TYPE_MINI_ROLLER_COASTER: (38, 37, 28) +RIDE_TYPE_MINI_ROLLER_COASTER: (38, 37, 28) +RIDE_TYPE_MINI_ROLLER_COASTER: (39, 37, 28) +RIDE_TYPE_MINI_ROLLER_COASTER: (38, 37, 28) +RIDE_TYPE_MINI_ROLLER_COASTER: (38, 37, 28) +RIDE_TYPE_STEEPLECHASE: (20, 18, 13) +RIDE_TYPE_STEEPLECHASE: (20, 18, 13) +RIDE_TYPE_STEEPLECHASE: (20, 18, 13) +RIDE_TYPE_STEEPLECHASE: (20, 18, 13) +RIDE_TYPE_STEEPLECHASE: (20, 18, 13) +RIDE_TYPE_STEEPLECHASE: (20, 18, 13) +RIDE_TYPE_MINI_SUSPENDED_COASTER: (21, 21, 19) +RIDE_TYPE_MINI_SUSPENDED_COASTER: (21, 21, 19) +RIDE_TYPE_MINI_SUSPENDED_COASTER: (21, 21, 19) +RIDE_TYPE_MINI_SUSPENDED_COASTER: (21, 21, 19) +RIDE_TYPE_MINI_SUSPENDED_COASTER: (21, 21, 19) +RIDE_TYPE_MINI_SUSPENDED_COASTER: (22, 25, 21) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (415, 432, 161) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (415, 431, 160) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (415, 431, 160) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (415, 432, 161) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (415, 432, 161) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (415, 432, 161) +RIDE_TYPE_SPINNING_WILD_MOUSE: (599, 716, 549) +RIDE_TYPE_TWISTER_ROLLER_COASTER: (575, 790, 439) +RIDE_TYPE_TWISTER_ROLLER_COASTER: (539, 623, 272) +RIDE_TYPE_TWISTER_ROLLER_COASTER: (532, 562, 254) +RIDE_TYPE_TWISTER_ROLLER_COASTER: (537, 640, 279) +RIDE_TYPE_INVERTED_HAIRPIN_COASTER: (671, 828, 481) +RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (24, 22, 25) +RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (24, 22, 25) +RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (24, 22, 25) +RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (24, 22, 25) +RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (26, 22, 26) +RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (24, 22, 25) +RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (24, 22, 25) +RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (24, 22, 25) +RIDE_TYPE_JUNIOR_ROLLER_COASTER: (343, 512, 329) +RIDE_TYPE_JUNIOR_ROLLER_COASTER: (344, 512, 329) +RIDE_TYPE_JUNIOR_ROLLER_COASTER: (380, 533, 330) +RIDE_TYPE_JUNIOR_ROLLER_COASTER: (343, 512, 329) +RIDE_TYPE_COMPACT_INVERTED_COASTER: (46, 44, 45) +RIDE_TYPE_COMPACT_INVERTED_COASTER: (47, 48, 48) +RIDE_TYPE_COMPACT_INVERTED_COASTER: (48, 49, 48) +RIDE_TYPE_COMPACT_INVERTED_COASTER: (47, 49, 48) +RIDE_TYPE_COMPACT_INVERTED_COASTER: (53, 58, 53) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER: (58, 1412, 1165) +RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER: (785, 863, 666) +RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER: (58, 1412, 1165) +RIDE_TYPE_BOBSLEIGH_COASTER: (44, 47, 36) +RIDE_TYPE_BOBSLEIGH_COASTER: (44, 47, 36) +RIDE_TYPE_BOBSLEIGH_COASTER: (44, 47, 36) +RIDE_TYPE_BOBSLEIGH_COASTER: (43, 47, 36) +RIDE_TYPE_SPIRAL_ROLLER_COASTER: (24, 6, 4) +RIDE_TYPE_SPIRAL_ROLLER_COASTER: (24, 6, 4) +RIDE_TYPE_SPIRAL_ROLLER_COASTER: (24, 6, 4) +RIDE_TYPE_STAND_UP_ROLLER_COASTER: (77, 97, 86) +RIDE_TYPE_STAND_UP_ROLLER_COASTER: (77, 97, 86) +RIDE_TYPE_STAND_UP_ROLLER_COASTER: (77, 97, 86) +RIDE_TYPE_WATER_COASTER: (44, 44, 33) +RIDE_TYPE_WATER_COASTER: (44, 44, 32) +RIDE_TYPE_WATER_COASTER: (44, 44, 32) +RIDE_TYPE_WATER_COASTER: (44, 44, 32) +RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER: (388, 1108, 462) +RIDE_TYPE_CLASSIC_MINI_ROLLER_COASTER: (174, 265, 166) +RIDE_TYPE_CLASSIC_MINI_ROLLER_COASTER: (175, 263, 165) +RIDE_TYPE_CLASSIC_MINI_ROLLER_COASTER: (177, 260, 166) +RIDE_TYPE_GIGA_COASTER: (460, 1219, 505) +RIDE_TYPE_MAZE: (139, 52, 0) +RIDE_TYPE_SUBMARINE_RIDE: (247, 180, 140) +RIDE_TYPE_SUBMARINE_RIDE: (247, 180, 140) +RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER: (53, 61, 40) +RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER: (53, 61, 40) +RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER: (53, 61, 40) +RIDE_TYPE_FLYING_ROLLER_COASTER: (31, 282, 473) +RIDE_TYPE_FLYING_ROLLER_COASTER: (31, 282, 473) +RIDE_TYPE_FLYING_ROLLER_COASTER: (31, 282, 473) +RIDE_TYPE_HYPER_TWISTER: (29, 7, 4) +RIDE_TYPE_HYPER_TWISTER: (28, 7, 4) +RIDE_TYPE_HYPERCOASTER: (24, 8, 3) +RIDE_TYPE_HYPERCOASTER: (24, 8, 3) +RIDE_TYPE_HEARTLINE_TWISTER_COASTER: (423, 565, 393) +RIDE_TYPE_HEARTLINE_TWISTER_COASTER: (423, 568, 395) +RIDE_TYPE_REVERSE_FREEFALL_COASTER: (594, 811, 568) +RIDE_TYPE_REVERSE_FREEFALL_COASTER: (594, 811, 568) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_FIRST_AID: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_SIDE_FRICTION_ROLLER_COASTER: (486, 681, 370) +RIDE_TYPE_LOOPING_ROLLER_COASTER: (22, 8, 3) +RIDE_TYPE_LOOPING_ROLLER_COASTER: (22, 8, 3) +RIDE_TYPE_LOOPING_ROLLER_COASTER: (485, 628, 252) +RIDE_TYPE_INVERTED_IMPULSE_COASTER: (715, 826, 555) +RIDE_TYPE_INVERTED_IMPULSE_COASTER: (706, 814, 555) +RIDE_TYPE_MINE_TRAIN_COASTER: (601, 752, 454) +RIDE_TYPE_MINE_RIDE: (523, 451, 352) +RIDE_TYPE_ALPINE_ROLLER_COASTER: (170, 141, 65) +RIDE_TYPE_OBSERVATION_TOWER: (354, 0, 97) +RIDE_TYPE_OBSERVATION_TOWER: (313, 0, 74) +RIDE_TYPE_GHOST_TRAIN: (132, 24, 8) +RIDE_TYPE_GHOST_TRAIN: (132, 24, 8) +RIDE_TYPE_LOG_FLUME: (446, 265, 125) +RIDE_TYPE_RIVER_RAFTS: (225, 45, 43) +RIDE_TYPE_RIVER_RAPIDS: (354, 181, 114) +RIDE_TYPE_MAZE: (150, 90, 0) +RIDE_TYPE_MAZE: (150, 90, 0) +RIDE_TYPE_MAZE: (150, 90, 0) +RIDE_TYPE_MAZE: (150, 90, 0) +RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (482, 510, 220) +RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER: (528, 730, 443) +RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER: (532, 727, 436) +RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER: (530, 812, 472) +RIDE_TYPE_MINIATURE_RAILWAY: (154, 12, 1) +RIDE_TYPE_MINIATURE_RAILWAY: (154, 12, 1) +RIDE_TYPE_MINIATURE_RAILWAY: (149, 12, 1) +RIDE_TYPE_MINIATURE_RAILWAY: (151, 12, 1) +RIDE_TYPE_MINIATURE_RAILWAY: (157, 12, 1) +RIDE_TYPE_MINIATURE_RAILWAY: (154, 12, 1) +RIDE_TYPE_MINIATURE_RAILWAY: (150, 12, 1) +RIDE_TYPE_MINIATURE_RAILWAY: (149, 12, 1) +RIDE_TYPE_SUSPENDED_MONORAIL: (137, 19, 5) +RIDE_TYPE_SUSPENDED_MONORAIL: (137, 19, 5) +RIDE_TYPE_LIFT: (176, 35, 51) +RIDE_TYPE_LIFT: (208, 35, 51) +RIDE_TYPE_CHAIRLIFT: (99, 35, 26) +RIDE_TYPE_TWISTER_ROLLER_COASTER: (701, 623, 407) +RIDE_TYPE_MOTION_SIMULATOR: (290, 350, 300) +RIDE_TYPE_MOTION_SIMULATOR: (325, 410, 330) +RIDE_TYPE_3D_CINEMA: (350, 240, 140) +RIDE_TYPE_3D_CINEMA: (400, 265, 155) +RIDE_TYPE_3D_CINEMA: (420, 260, 148) +RIDE_TYPE_TOP_SPIN: (200, 480, 574) +RIDE_TYPE_TOP_SPIN: (300, 575, 664) +RIDE_TYPE_TOP_SPIN: (320, 680, 794) +RIDE_TYPE_LAUNCHED_FREEFALL: (339, 713, 487) +RIDE_TYPE_LAUNCHED_FREEFALL: (550, 729, 759) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_FERRIS_WHEEL: (85, 50, 55) +RIDE_TYPE_SPIRAL_ROLLER_COASTER: (581, 467, 249) +RIDE_TYPE_SPIRAL_SLIDE: (190, 160, 115) +RIDE_TYPE_SPIRAL_SLIDE: (150, 140, 90) +RIDE_TYPE_GIGA_COASTER: (637, 447, 239) +RIDE_TYPE_ROTO_DROP: (306, 350, 350) +RIDE_TYPE_CLASSIC_MINI_ROLLER_COASTER: (50, 42, 30) +RIDE_TYPE_GIGA_COASTER: (171, 1624, 980) +RIDE_TYPE_CHAIRLIFT: (0, 11, 25) +RIDE_TYPE_COMPACT_INVERTED_COASTER: (-1, 1042, 811) +RIDE_TYPE_MERRY_GO_ROUND: (185, 140, 155) +RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER: (-1, 0, 0) +RIDE_TYPE_SHOP: (-1, 0, 0) +RIDE_TYPE_GO_KARTS: (422, 255, 42) +RIDE_TYPE_TOILETS: (-1, 0, 0) +RIDE_TYPE_CASH_MACHINE: (-1, 0, 0) +RIDE_TYPE_DRINK_STALL: (-1, 0, 0) +RIDE_TYPE_FOOD_STALL: (-1, 0, 0) +RIDE_TYPE_BOAT_HIRE: (201, 80, 90) +RIDE_TYPE_INVERTED_HAIRPIN_COASTER: (703, 936, 520) +RIDE_TYPE_HAUNTED_HOUSE: (-1, 0, 0) +RIDE_TYPE_WOODEN_WILD_MOUSE: (5, 5, 3) +RIDE_TYPE_CAR_RIDE: (329, 59, 10) +RIDE_TYPE_MINIATURE_RAILWAY: (154, 12, 1) \ No newline at end of file