@battle-racing/br-common-lib 6.2.0-rc.7 → 6.2.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/all-tutorial-steps.js +3 -0
- package/dist/domains/command/Command.schema.d.ts +162 -0
- package/dist/domains/flow/Flow.schema.d.ts +81 -0
- package/dist/domains/hardware/screen/ScreenTutorial.schema.d.ts +81 -0
- package/dist/domains/hardware/screen/ScreenTutorial.schema.js +3 -3
- package/dist/domains/powerUp/PowerUp.schema.d.ts +243 -0
- package/dist/domains/tutorial/Tutorial.schema.d.ts +148 -0
- package/dist/domains/tutorial/Tutorial.schema.js +55 -1
- package/dist/domains/tutorial/Tutorial.types.d.ts +5 -1
- package/dist/domains/tutorial/TutorialConfig.schema.d.ts +243 -0
- package/package.json +1 -1
- package/src/data/all-tutorial-steps.ts +3 -0
- package/src/domains/hardware/screen/ScreenTutorial.schema.ts +3 -3
- package/src/domains/tutorial/Tutorial.schema.ts +59 -0
- package/src/domains/tutorial/Tutorial.types.ts +9 -0
|
@@ -751,16 +751,97 @@ export declare const powerUpCommandSchema: z.ZodIntersection<z.ZodUnion<readonly
|
|
|
751
751
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
752
752
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
753
753
|
step: z.ZodLiteral<"PowerUpWaiting">;
|
|
754
|
+
hud: z.ZodObject<{
|
|
755
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
756
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
757
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
758
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
759
|
+
}, z.core.$strip>>>;
|
|
760
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
761
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
762
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
763
|
+
}, z.core.$strip>>>;
|
|
764
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
765
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
766
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
767
|
+
}, z.core.$strip>>>;
|
|
768
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
769
|
+
readonly BATTLE_GOD: "Battle God";
|
|
770
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
771
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
772
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
773
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
774
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
775
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
776
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
777
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
778
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
779
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
780
|
+
}, z.core.$strip>;
|
|
754
781
|
}, z.core.$strip>, z.ZodObject<{
|
|
755
782
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
756
783
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
757
784
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
758
785
|
step: z.ZodLiteral<"PowerUpRoulette">;
|
|
786
|
+
hud: z.ZodObject<{
|
|
787
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
788
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
789
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
790
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
791
|
+
}, z.core.$strip>>>;
|
|
792
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
793
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
794
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
795
|
+
}, z.core.$strip>>>;
|
|
796
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
797
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
798
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
799
|
+
}, z.core.$strip>>>;
|
|
800
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
801
|
+
readonly BATTLE_GOD: "Battle God";
|
|
802
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
803
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
804
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
805
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
806
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
807
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
808
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
809
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
810
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
811
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
812
|
+
}, z.core.$strip>;
|
|
759
813
|
}, z.core.$strip>, z.ZodObject<{
|
|
760
814
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
761
815
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
762
816
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
763
817
|
step: z.ZodLiteral<"PowerUpNitroReady">;
|
|
818
|
+
hud: z.ZodObject<{
|
|
819
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
820
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
821
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
822
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
823
|
+
}, z.core.$strip>>>;
|
|
824
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
825
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
826
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
827
|
+
}, z.core.$strip>>>;
|
|
828
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
829
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
830
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
831
|
+
}, z.core.$strip>>>;
|
|
832
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
833
|
+
readonly BATTLE_GOD: "Battle God";
|
|
834
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
835
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
836
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
837
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
838
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
839
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
840
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
841
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
842
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
843
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
844
|
+
}, z.core.$strip>;
|
|
764
845
|
}, z.core.$strip>, z.ZodObject<{
|
|
765
846
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
766
847
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1674,16 +1755,97 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
1674
1755
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
1675
1756
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
1676
1757
|
step: z.ZodLiteral<"PowerUpWaiting">;
|
|
1758
|
+
hud: z.ZodObject<{
|
|
1759
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1760
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1761
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
1762
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
1763
|
+
}, z.core.$strip>>>;
|
|
1764
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1765
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
1766
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
1767
|
+
}, z.core.$strip>>>;
|
|
1768
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1769
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1770
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1771
|
+
}, z.core.$strip>>>;
|
|
1772
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1773
|
+
readonly BATTLE_GOD: "Battle God";
|
|
1774
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
1775
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
1776
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
1777
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
1778
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
1779
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
1780
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
1781
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
1782
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
1783
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1784
|
+
}, z.core.$strip>;
|
|
1677
1785
|
}, z.core.$strip>, z.ZodObject<{
|
|
1678
1786
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
1679
1787
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
1680
1788
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
1681
1789
|
step: z.ZodLiteral<"PowerUpRoulette">;
|
|
1790
|
+
hud: z.ZodObject<{
|
|
1791
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1792
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1793
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
1794
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
1795
|
+
}, z.core.$strip>>>;
|
|
1796
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1797
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
1798
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
1799
|
+
}, z.core.$strip>>>;
|
|
1800
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1801
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1802
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1803
|
+
}, z.core.$strip>>>;
|
|
1804
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1805
|
+
readonly BATTLE_GOD: "Battle God";
|
|
1806
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
1807
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
1808
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
1809
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
1810
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
1811
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
1812
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
1813
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
1814
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
1815
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1816
|
+
}, z.core.$strip>;
|
|
1682
1817
|
}, z.core.$strip>, z.ZodObject<{
|
|
1683
1818
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
1684
1819
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
1685
1820
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
1686
1821
|
step: z.ZodLiteral<"PowerUpNitroReady">;
|
|
1822
|
+
hud: z.ZodObject<{
|
|
1823
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1824
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1825
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
1826
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
1827
|
+
}, z.core.$strip>>>;
|
|
1828
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1829
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
1830
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
1831
|
+
}, z.core.$strip>>>;
|
|
1832
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1833
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1834
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1835
|
+
}, z.core.$strip>>>;
|
|
1836
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1837
|
+
readonly BATTLE_GOD: "Battle God";
|
|
1838
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
1839
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
1840
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
1841
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
1842
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
1843
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
1844
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
1845
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
1846
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
1847
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1848
|
+
}, z.core.$strip>;
|
|
1687
1849
|
}, z.core.$strip>, z.ZodObject<{
|
|
1688
1850
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
1689
1851
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2577,16 +2739,97 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
2577
2739
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
2578
2740
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
2579
2741
|
step: z.ZodLiteral<"PowerUpWaiting">;
|
|
2742
|
+
hud: z.ZodObject<{
|
|
2743
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
2744
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2745
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
2746
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
2747
|
+
}, z.core.$strip>>>;
|
|
2748
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2749
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
2750
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
2751
|
+
}, z.core.$strip>>>;
|
|
2752
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2753
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2754
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2755
|
+
}, z.core.$strip>>>;
|
|
2756
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2757
|
+
readonly BATTLE_GOD: "Battle God";
|
|
2758
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
2759
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
2760
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
2761
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
2762
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
2763
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
2764
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
2765
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
2766
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
2767
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2768
|
+
}, z.core.$strip>;
|
|
2580
2769
|
}, z.core.$strip>, z.ZodObject<{
|
|
2581
2770
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
2582
2771
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
2583
2772
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
2584
2773
|
step: z.ZodLiteral<"PowerUpRoulette">;
|
|
2774
|
+
hud: z.ZodObject<{
|
|
2775
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
2776
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2777
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
2778
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
2779
|
+
}, z.core.$strip>>>;
|
|
2780
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2781
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
2782
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
2783
|
+
}, z.core.$strip>>>;
|
|
2784
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2785
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2786
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2787
|
+
}, z.core.$strip>>>;
|
|
2788
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2789
|
+
readonly BATTLE_GOD: "Battle God";
|
|
2790
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
2791
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
2792
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
2793
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
2794
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
2795
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
2796
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
2797
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
2798
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
2799
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2800
|
+
}, z.core.$strip>;
|
|
2585
2801
|
}, z.core.$strip>, z.ZodObject<{
|
|
2586
2802
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
2587
2803
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
2588
2804
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
2589
2805
|
step: z.ZodLiteral<"PowerUpNitroReady">;
|
|
2806
|
+
hud: z.ZodObject<{
|
|
2807
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
2808
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2809
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
2810
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
2811
|
+
}, z.core.$strip>>>;
|
|
2812
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2813
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
2814
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
2815
|
+
}, z.core.$strip>>>;
|
|
2816
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2817
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2818
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2819
|
+
}, z.core.$strip>>>;
|
|
2820
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2821
|
+
readonly BATTLE_GOD: "Battle God";
|
|
2822
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
2823
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
2824
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
2825
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
2826
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
2827
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
2828
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
2829
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
2830
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
2831
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2832
|
+
}, z.core.$strip>;
|
|
2590
2833
|
}, z.core.$strip>, z.ZodObject<{
|
|
2591
2834
|
tutorialSessionId: z.ZodOptional<z.ZodString>;
|
|
2592
2835
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -162,3 +162,151 @@ export declare const tutorialInputSignalSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
162
162
|
right: "right";
|
|
163
163
|
}>;
|
|
164
164
|
}, z.core.$strip>], "type">;
|
|
165
|
+
export declare const tutorialConfigurationSchema: z.ZodObject<{
|
|
166
|
+
laps: z.ZodDefault<z.ZodNumber>;
|
|
167
|
+
coins: z.ZodDefault<z.ZodNumber>;
|
|
168
|
+
time: z.ZodDefault<z.ZodNumber>;
|
|
169
|
+
speedConfig: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const tutorialParticipantSchema: z.ZodObject<{
|
|
172
|
+
deviceId: z.ZodString;
|
|
173
|
+
playerId: z.ZodOptional<z.ZodString>;
|
|
174
|
+
status: z.ZodEnum<{
|
|
175
|
+
COMPLETED: "COMPLETED";
|
|
176
|
+
PENDING: "PENDING";
|
|
177
|
+
CANCELLED: "CANCELLED";
|
|
178
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
179
|
+
SKIPPED: "SKIPPED";
|
|
180
|
+
}>;
|
|
181
|
+
currentPhaseId: z.ZodEnum<{
|
|
182
|
+
starting_point: "starting_point";
|
|
183
|
+
controls_and_hud: "controls_and_hud";
|
|
184
|
+
power_up: "power_up";
|
|
185
|
+
lap_completion: "lap_completion";
|
|
186
|
+
}>;
|
|
187
|
+
currentStep: z.ZodEnum<{
|
|
188
|
+
Countdown: "Countdown";
|
|
189
|
+
Welcome: "Welcome";
|
|
190
|
+
PersonalItems: "PersonalItems";
|
|
191
|
+
SeatBelt: "SeatBelt";
|
|
192
|
+
Pedal: "Pedal";
|
|
193
|
+
DriveToControls: "DriveToControls";
|
|
194
|
+
WheelControls0Of2: "WheelControls0Of2";
|
|
195
|
+
WheelControls1Of2: "WheelControls1Of2";
|
|
196
|
+
WheelControlsCompleted: "WheelControlsCompleted";
|
|
197
|
+
HudOverview: "HudOverview";
|
|
198
|
+
HudPosition: "HudPosition";
|
|
199
|
+
HudLaps: "HudLaps";
|
|
200
|
+
HudTimeLeft: "HudTimeLeft";
|
|
201
|
+
HudCoins: "HudCoins";
|
|
202
|
+
PowerUpWaiting: "PowerUpWaiting";
|
|
203
|
+
PowerUpRoulette: "PowerUpRoulette";
|
|
204
|
+
PowerUpNitroReady: "PowerUpNitroReady";
|
|
205
|
+
PowerUpReturnToHud: "PowerUpReturnToHud";
|
|
206
|
+
TutorialCompleted: "TutorialCompleted";
|
|
207
|
+
}>;
|
|
208
|
+
revision: z.ZodNumber;
|
|
209
|
+
presentationRevision: z.ZodNumber;
|
|
210
|
+
latestCheckpointId: z.ZodOptional<z.ZodString>;
|
|
211
|
+
latestCheckpointProgress: z.ZodOptional<z.ZodNumber>;
|
|
212
|
+
coins: z.ZodDefault<z.ZodNumber>;
|
|
213
|
+
currentLap: z.ZodDefault<z.ZodNumber>;
|
|
214
|
+
totalLaps: z.ZodDefault<z.ZodNumber>;
|
|
215
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
216
|
+
current: z.ZodNumber;
|
|
217
|
+
total: z.ZodNumber;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
totalDurationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
220
|
+
startedAtISO: z.ZodOptional<z.ZodString>;
|
|
221
|
+
updatedAtISO: z.ZodString;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
export declare const tutorialSessionSchema: z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
gameTurnId: z.ZodOptional<z.ZodString>;
|
|
226
|
+
gameId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
227
|
+
status: z.ZodEnum<{
|
|
228
|
+
COMPLETED: "COMPLETED";
|
|
229
|
+
PENDING: "PENDING";
|
|
230
|
+
CANCELLED: "CANCELLED";
|
|
231
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
232
|
+
SKIPPED: "SKIPPED";
|
|
233
|
+
}>;
|
|
234
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
235
|
+
deviceId: z.ZodString;
|
|
236
|
+
playerId: z.ZodOptional<z.ZodString>;
|
|
237
|
+
status: z.ZodEnum<{
|
|
238
|
+
COMPLETED: "COMPLETED";
|
|
239
|
+
PENDING: "PENDING";
|
|
240
|
+
CANCELLED: "CANCELLED";
|
|
241
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
242
|
+
SKIPPED: "SKIPPED";
|
|
243
|
+
}>;
|
|
244
|
+
currentPhaseId: z.ZodEnum<{
|
|
245
|
+
starting_point: "starting_point";
|
|
246
|
+
controls_and_hud: "controls_and_hud";
|
|
247
|
+
power_up: "power_up";
|
|
248
|
+
lap_completion: "lap_completion";
|
|
249
|
+
}>;
|
|
250
|
+
currentStep: z.ZodEnum<{
|
|
251
|
+
Countdown: "Countdown";
|
|
252
|
+
Welcome: "Welcome";
|
|
253
|
+
PersonalItems: "PersonalItems";
|
|
254
|
+
SeatBelt: "SeatBelt";
|
|
255
|
+
Pedal: "Pedal";
|
|
256
|
+
DriveToControls: "DriveToControls";
|
|
257
|
+
WheelControls0Of2: "WheelControls0Of2";
|
|
258
|
+
WheelControls1Of2: "WheelControls1Of2";
|
|
259
|
+
WheelControlsCompleted: "WheelControlsCompleted";
|
|
260
|
+
HudOverview: "HudOverview";
|
|
261
|
+
HudPosition: "HudPosition";
|
|
262
|
+
HudLaps: "HudLaps";
|
|
263
|
+
HudTimeLeft: "HudTimeLeft";
|
|
264
|
+
HudCoins: "HudCoins";
|
|
265
|
+
PowerUpWaiting: "PowerUpWaiting";
|
|
266
|
+
PowerUpRoulette: "PowerUpRoulette";
|
|
267
|
+
PowerUpNitroReady: "PowerUpNitroReady";
|
|
268
|
+
PowerUpReturnToHud: "PowerUpReturnToHud";
|
|
269
|
+
TutorialCompleted: "TutorialCompleted";
|
|
270
|
+
}>;
|
|
271
|
+
revision: z.ZodNumber;
|
|
272
|
+
presentationRevision: z.ZodNumber;
|
|
273
|
+
latestCheckpointId: z.ZodOptional<z.ZodString>;
|
|
274
|
+
latestCheckpointProgress: z.ZodOptional<z.ZodNumber>;
|
|
275
|
+
coins: z.ZodDefault<z.ZodNumber>;
|
|
276
|
+
currentLap: z.ZodDefault<z.ZodNumber>;
|
|
277
|
+
totalLaps: z.ZodDefault<z.ZodNumber>;
|
|
278
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
current: z.ZodNumber;
|
|
280
|
+
total: z.ZodNumber;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
totalDurationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
283
|
+
startedAtISO: z.ZodOptional<z.ZodString>;
|
|
284
|
+
updatedAtISO: z.ZodString;
|
|
285
|
+
}, z.core.$strip>>;
|
|
286
|
+
createdAtISO: z.ZodString;
|
|
287
|
+
updatedAtISO: z.ZodString;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
export declare const startOperatorTutorialSchema: z.ZodObject<{
|
|
290
|
+
gameId: z.ZodNumber;
|
|
291
|
+
gameType: z.ZodEnum<{
|
|
292
|
+
Race: "Race";
|
|
293
|
+
Battle: "Battle";
|
|
294
|
+
}>;
|
|
295
|
+
tutorialConfigId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
296
|
+
params: z.ZodObject<{
|
|
297
|
+
laps: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
lives: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
coins: z.ZodNumber;
|
|
300
|
+
kartsGuids: z.ZodArray<z.ZodString>;
|
|
301
|
+
powerUpsIds: z.ZodArray<z.ZodString>;
|
|
302
|
+
time: z.ZodNumber;
|
|
303
|
+
speedConfig: z.ZodNumber;
|
|
304
|
+
playerKartMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
tutorialParams: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
laps: z.ZodDefault<z.ZodNumber>;
|
|
308
|
+
coins: z.ZodDefault<z.ZodNumber>;
|
|
309
|
+
time: z.ZodDefault<z.ZodNumber>;
|
|
310
|
+
speedConfig: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
}, z.core.$strip>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tutorialInputSignalSchema = exports.tutorialSteeringWheelButtonPressedSchema = exports.tutorialKartEventBaseSchema = exports.tutorialInputSignalTypeSchema = exports.tutorialKartSnapshotSchema = exports.tutorialCheckpointTargetSchema = exports.tutorialSteeringWheelButtonSchema = exports.tutorialListenEventOnSchema = exports.tutorialPhaseIdSchema = exports.tutorialStatusSchema = exports.tutorialScreenStepSchema = void 0;
|
|
3
|
+
exports.startOperatorTutorialSchema = exports.tutorialSessionSchema = exports.tutorialParticipantSchema = exports.tutorialConfigurationSchema = exports.tutorialInputSignalSchema = exports.tutorialSteeringWheelButtonPressedSchema = exports.tutorialKartEventBaseSchema = exports.tutorialInputSignalTypeSchema = exports.tutorialKartSnapshotSchema = exports.tutorialCheckpointTargetSchema = exports.tutorialSteeringWheelButtonSchema = exports.tutorialListenEventOnSchema = exports.tutorialPhaseIdSchema = exports.tutorialStatusSchema = exports.tutorialScreenStepSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const ScreenTutorial_schema_1 = require("../hardware/screen/ScreenTutorial.schema");
|
|
6
6
|
const Tutorial_const_1 = require("./Tutorial.const");
|
|
@@ -82,3 +82,57 @@ exports.tutorialSteeringWheelButtonPressedSchema = exports.tutorialKartEventBase
|
|
|
82
82
|
button: exports.tutorialSteeringWheelButtonSchema,
|
|
83
83
|
});
|
|
84
84
|
exports.tutorialInputSignalSchema = zod_1.z.discriminatedUnion('type', [exports.tutorialSteeringWheelButtonPressedSchema]);
|
|
85
|
+
exports.tutorialConfigurationSchema = zod_1.z.object({
|
|
86
|
+
laps: zod_1.z.number().int().min(1).default(1),
|
|
87
|
+
coins: zod_1.z.number().int().min(0).max(254).default(0),
|
|
88
|
+
time: zod_1.z.number().int().min(30).max(1200).default(180),
|
|
89
|
+
speedConfig: zod_1.z.number().int().min(20).max(100).optional(),
|
|
90
|
+
});
|
|
91
|
+
exports.tutorialParticipantSchema = zod_1.z.object({
|
|
92
|
+
deviceId: zod_1.z.string().min(1),
|
|
93
|
+
playerId: zod_1.z.string().optional(),
|
|
94
|
+
status: exports.tutorialStatusSchema,
|
|
95
|
+
currentPhaseId: exports.tutorialPhaseIdSchema,
|
|
96
|
+
currentStep: exports.tutorialScreenStepSchema,
|
|
97
|
+
revision: zod_1.z.number().int().nonnegative(),
|
|
98
|
+
presentationRevision: zod_1.z.number().int().nonnegative(),
|
|
99
|
+
latestCheckpointId: zod_1.z.string().optional(),
|
|
100
|
+
latestCheckpointProgress: zod_1.z.number().optional(),
|
|
101
|
+
coins: zod_1.z.number().int().default(0),
|
|
102
|
+
currentLap: zod_1.z.number().int().default(1),
|
|
103
|
+
totalLaps: zod_1.z.number().int().default(1),
|
|
104
|
+
position: zod_1.z
|
|
105
|
+
.object({
|
|
106
|
+
current: zod_1.z.number().int(),
|
|
107
|
+
total: zod_1.z.number().int(),
|
|
108
|
+
})
|
|
109
|
+
.optional(),
|
|
110
|
+
totalDurationSeconds: zod_1.z.number().int().default(180),
|
|
111
|
+
startedAtISO: zod_1.z.string().optional(),
|
|
112
|
+
updatedAtISO: zod_1.z.string(),
|
|
113
|
+
});
|
|
114
|
+
exports.tutorialSessionSchema = zod_1.z.object({
|
|
115
|
+
id: zod_1.z.string().min(1),
|
|
116
|
+
gameTurnId: zod_1.z.string().optional(),
|
|
117
|
+
gameId: zod_1.z.union([zod_1.z.string(), zod_1.z.number()]).optional(),
|
|
118
|
+
status: exports.tutorialStatusSchema,
|
|
119
|
+
participants: zod_1.z.array(exports.tutorialParticipantSchema),
|
|
120
|
+
createdAtISO: zod_1.z.string(),
|
|
121
|
+
updatedAtISO: zod_1.z.string(),
|
|
122
|
+
});
|
|
123
|
+
exports.startOperatorTutorialSchema = zod_1.z.object({
|
|
124
|
+
gameId: zod_1.z.number().int(),
|
|
125
|
+
gameType: zod_1.z.enum(['Race', 'Battle']),
|
|
126
|
+
tutorialConfigId: zod_1.z.string().optional().default('BR_TUTORIAL_DEFAULT'),
|
|
127
|
+
params: zod_1.z.object({
|
|
128
|
+
laps: zod_1.z.number().int().optional(),
|
|
129
|
+
lives: zod_1.z.number().int().optional(),
|
|
130
|
+
coins: zod_1.z.number().int().min(0).max(254),
|
|
131
|
+
kartsGuids: zod_1.z.array(zod_1.z.string()).min(1),
|
|
132
|
+
powerUpsIds: zod_1.z.array(zod_1.z.string()).min(1),
|
|
133
|
+
time: zod_1.z.number().int().min(30).max(1200),
|
|
134
|
+
speedConfig: zod_1.z.number().int().min(20).max(100),
|
|
135
|
+
playerKartMap: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
136
|
+
}),
|
|
137
|
+
tutorialParams: exports.tutorialConfigurationSchema.optional(),
|
|
138
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { tutorialInputSignalSchema, tutorialInputSignalTypeSchema, tutorialKartSnapshotSchema, tutorialListenEventOnSchema, tutorialCheckpointTargetSchema, tutorialPhaseIdSchema, tutorialScreenStepSchema, tutorialStatusSchema, tutorialSteeringWheelButtonPressedSchema, tutorialSteeringWheelButtonSchema } from './Tutorial.schema';
|
|
2
|
+
import { tutorialInputSignalSchema, tutorialInputSignalTypeSchema, tutorialKartSnapshotSchema, tutorialListenEventOnSchema, tutorialCheckpointTargetSchema, tutorialPhaseIdSchema, tutorialScreenStepSchema, tutorialStatusSchema, tutorialSteeringWheelButtonPressedSchema, tutorialSteeringWheelButtonSchema, tutorialConfigurationSchema, tutorialParticipantSchema, tutorialSessionSchema, startOperatorTutorialSchema } from './Tutorial.schema';
|
|
3
3
|
export type TutorialScreenStep = z.infer<typeof tutorialScreenStepSchema>;
|
|
4
4
|
export type TutorialStatus = z.infer<typeof tutorialStatusSchema>;
|
|
5
5
|
export type TutorialPhaseId = z.infer<typeof tutorialPhaseIdSchema>;
|
|
@@ -10,3 +10,7 @@ export type TutorialKartSnapshot = z.infer<typeof tutorialKartSnapshotSchema>;
|
|
|
10
10
|
export type TutorialInputSignalType = z.infer<typeof tutorialInputSignalTypeSchema>;
|
|
11
11
|
export type TutorialSteeringWheelButtonPressed = z.infer<typeof tutorialSteeringWheelButtonPressedSchema>;
|
|
12
12
|
export type TutorialInputSignal = z.infer<typeof tutorialInputSignalSchema>;
|
|
13
|
+
export type TutorialConfiguration = z.infer<typeof tutorialConfigurationSchema>;
|
|
14
|
+
export type TutorialParticipant = z.infer<typeof tutorialParticipantSchema>;
|
|
15
|
+
export type TutorialSession = z.infer<typeof tutorialSessionSchema>;
|
|
16
|
+
export type StartOperatorTutorial = z.infer<typeof startOperatorTutorialSchema>;
|