@battle-racing/br-common-lib 6.2.1-rc.0 → 6.2.1-rc.2
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 +44 -4
- package/dist/domains/command/Command.schema.d.ts +100 -3
- package/dist/domains/command/Command.schema.js +1 -1
- package/dist/domains/damage/Damage.schema.d.ts +5 -0
- package/dist/domains/flow/Flow.schema.d.ts +45 -1
- package/dist/domains/hardware/KartHardwareState.schema.d.ts +4 -1
- package/dist/domains/hardware/KartHardwareState.schema.js +2 -1
- package/dist/domains/hardware/ModuleStatus.schema.d.ts +5 -0
- package/dist/domains/hardware/rgb/RGB.const.d.ts +4 -0
- package/dist/domains/hardware/rgb/RGB.const.js +5 -1
- package/dist/domains/hardware/rgb/RGB.schema.d.ts +21 -0
- package/dist/domains/hardware/rgb/RGB.schema.js +8 -1
- package/dist/domains/hardware/rgb/RGB.types.d.ts +3 -1
- package/dist/domains/hardware/screen/ScreenDebug.schema.d.ts +4 -1
- package/dist/domains/hardware/screen/ScreenTutorial.schema.d.ts +27 -0
- package/dist/domains/hardware/screen/ScreenTutorial.schema.js +3 -1
- package/dist/domains/hardware/sound/Sound.const.d.ts +4 -0
- package/dist/domains/hardware/sound/Sound.const.js +5 -1
- package/dist/domains/hardware/sound/Sound.schema.d.ts +9 -0
- package/dist/domains/hardware/sound/Sound.schema.js +1 -0
- package/dist/domains/kart/Kart.schema.d.ts +4 -1
- package/dist/domains/powerUp/PowerUp.schema.d.ts +135 -3
- package/dist/domains/sounds/Sounds.const.d.ts +5 -0
- package/dist/domains/sounds/Sounds.const.js +5 -0
- package/dist/domains/sounds/Sounds.schema.d.ts +5 -0
- package/dist/domains/tutorial/Tutorial.const.d.ts +1 -0
- package/dist/domains/tutorial/Tutorial.const.js +1 -0
- package/dist/domains/tutorial/Tutorial.schema.d.ts +10 -0
- package/dist/domains/tutorial/Tutorial.schema.js +9 -2
- package/dist/domains/tutorial/Tutorial.types.d.ts +2 -1
- package/dist/domains/tutorial/TutorialConfig.schema.d.ts +224 -3
- package/dist/domains/tutorial/TutorialConfig.schema.js +7 -1
- package/package.json +1 -1
- package/src/data/all-tutorial-steps.ts +46 -4
- package/src/domains/command/Command.schema.ts +1 -1
- package/src/domains/hardware/KartHardwareState.schema.ts +3 -2
- package/src/domains/hardware/rgb/RGB.const.ts +5 -0
- package/src/domains/hardware/rgb/RGB.schema.ts +10 -1
- package/src/domains/hardware/rgb/RGB.types.ts +4 -0
- package/src/domains/hardware/screen/ScreenTutorial.schema.ts +3 -1
- package/src/domains/hardware/sound/Sound.const.ts +5 -0
- package/src/domains/hardware/sound/Sound.schema.ts +2 -1
- package/src/domains/sounds/Sounds.const.ts +5 -0
- package/src/domains/tutorial/Tutorial.const.ts +1 -0
- package/src/domains/tutorial/Tutorial.schema.ts +9 -1
- package/src/domains/tutorial/Tutorial.types.ts +2 -0
- package/src/domains/tutorial/TutorialConfig.schema.ts +7 -0
|
@@ -240,6 +240,10 @@ export declare const powerUpCommandSchema: z.ZodIntersection<z.ZodUnion<readonly
|
|
|
240
240
|
}>;
|
|
241
241
|
brightness: z.ZodNumber;
|
|
242
242
|
effectTime: z.ZodNumber;
|
|
243
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
244
|
+
readonly FRONT: "front";
|
|
245
|
+
readonly BACK: "back";
|
|
246
|
+
}>>>;
|
|
243
247
|
}, z.core.$strip>;
|
|
244
248
|
}, z.core.$strip>, z.ZodObject<{
|
|
245
249
|
module: z.ZodLiteral<"rgb">;
|
|
@@ -265,6 +269,10 @@ export declare const powerUpCommandSchema: z.ZodIntersection<z.ZodUnion<readonly
|
|
|
265
269
|
readonly EMERGENCY_EFFECT: "Emergency Effect";
|
|
266
270
|
readonly WAIT_EFFECT: "Wait Effect";
|
|
267
271
|
}>;
|
|
272
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
273
|
+
readonly FRONT: "front";
|
|
274
|
+
readonly BACK: "back";
|
|
275
|
+
}>>>;
|
|
268
276
|
}, z.core.$strip>;
|
|
269
277
|
}, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
270
278
|
module: z.ZodLiteral<"speed">;
|
|
@@ -879,6 +887,33 @@ export declare const powerUpCommandSchema: z.ZodIntersection<z.ZodUnion<readonly
|
|
|
879
887
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
880
888
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
881
889
|
step: z.ZodLiteral<"TutorialCompleted">;
|
|
890
|
+
hud: z.ZodOptional<z.ZodObject<{
|
|
891
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
892
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
893
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
894
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
895
|
+
}, z.core.$strip>>>;
|
|
896
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
897
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
898
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
899
|
+
}, z.core.$strip>>>;
|
|
900
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
901
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
902
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
903
|
+
}, z.core.$strip>>>;
|
|
904
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
905
|
+
readonly BATTLE_GOD: "Battle God";
|
|
906
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
907
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
908
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
909
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
910
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
911
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
912
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
913
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
914
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
915
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
916
|
+
}, z.core.$strip>>;
|
|
882
917
|
}, z.core.$strip>], "step">;
|
|
883
918
|
}, z.core.$strip>, z.ZodObject<{
|
|
884
919
|
module: z.ZodLiteral<"screen">;
|
|
@@ -944,10 +979,19 @@ export declare const powerUpCommandSchema: z.ZodIntersection<z.ZodUnion<readonly
|
|
|
944
979
|
readonly SYSTEM_STARTED: "system_started.mp3";
|
|
945
980
|
readonly WARNING_ALERT_THIS_IS_NOT_A_TEST: "warning_alert_this_is_not_a_test.mp3";
|
|
946
981
|
readonly WINNER_LAUGH: "winner_laugh.mp3";
|
|
982
|
+
readonly TUTORIAL_COUNTDOWN: "tutorial/3,2,1 GO.mp3";
|
|
947
983
|
readonly TUTORIAL_WELCOME: "tutorial/welcome_to_battle_racing.mp3";
|
|
984
|
+
readonly TUTORIAL_SECURE_BELONGINGS: "tutorial/secure_belongins.mp3";
|
|
985
|
+
readonly TUTORIAL_BUCKLE_UP: "tutorial/buckle_up.mp3";
|
|
948
986
|
readonly TUTORIAL_GAS_PEDAL: "tutorial/gas_pedal.mp3";
|
|
987
|
+
readonly TUTORIAL_BUTTON_PRESS: "tutorial/button_press.mp3";
|
|
988
|
+
readonly TUTORIAL_FINAL: "tutorial/final_tutorial.mp3";
|
|
949
989
|
}>;
|
|
950
|
-
|
|
990
|
+
channel: z.ZodOptional<z.ZodEnum<{
|
|
991
|
+
readonly MAIN: "main";
|
|
992
|
+
readonly EFFECT: "effect";
|
|
993
|
+
}>>;
|
|
994
|
+
durationMs: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"infinite">]>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>]>>;
|
|
951
995
|
}, z.core.$strip>;
|
|
952
996
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
953
997
|
module: z.ZodLiteral<"emergency">;
|
|
@@ -1244,6 +1288,10 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
1244
1288
|
}>;
|
|
1245
1289
|
brightness: z.ZodNumber;
|
|
1246
1290
|
effectTime: z.ZodNumber;
|
|
1291
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1292
|
+
readonly FRONT: "front";
|
|
1293
|
+
readonly BACK: "back";
|
|
1294
|
+
}>>>;
|
|
1247
1295
|
}, z.core.$strip>;
|
|
1248
1296
|
}, z.core.$strip>, z.ZodObject<{
|
|
1249
1297
|
module: z.ZodLiteral<"rgb">;
|
|
@@ -1269,6 +1317,10 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
1269
1317
|
readonly EMERGENCY_EFFECT: "Emergency Effect";
|
|
1270
1318
|
readonly WAIT_EFFECT: "Wait Effect";
|
|
1271
1319
|
}>;
|
|
1320
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1321
|
+
readonly FRONT: "front";
|
|
1322
|
+
readonly BACK: "back";
|
|
1323
|
+
}>>>;
|
|
1272
1324
|
}, z.core.$strip>;
|
|
1273
1325
|
}, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
1274
1326
|
module: z.ZodLiteral<"speed">;
|
|
@@ -1883,6 +1935,33 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
1883
1935
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
1884
1936
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
1885
1937
|
step: z.ZodLiteral<"TutorialCompleted">;
|
|
1938
|
+
hud: z.ZodOptional<z.ZodObject<{
|
|
1939
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1940
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1941
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
1942
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
1943
|
+
}, z.core.$strip>>>;
|
|
1944
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1945
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
1946
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
1947
|
+
}, z.core.$strip>>>;
|
|
1948
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
1949
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1950
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1951
|
+
}, z.core.$strip>>>;
|
|
1952
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1953
|
+
readonly BATTLE_GOD: "Battle God";
|
|
1954
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
1955
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
1956
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
1957
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
1958
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
1959
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
1960
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
1961
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
1962
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
1963
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1964
|
+
}, z.core.$strip>>;
|
|
1886
1965
|
}, z.core.$strip>], "step">;
|
|
1887
1966
|
}, z.core.$strip>, z.ZodObject<{
|
|
1888
1967
|
module: z.ZodLiteral<"screen">;
|
|
@@ -1948,10 +2027,19 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
1948
2027
|
readonly SYSTEM_STARTED: "system_started.mp3";
|
|
1949
2028
|
readonly WARNING_ALERT_THIS_IS_NOT_A_TEST: "warning_alert_this_is_not_a_test.mp3";
|
|
1950
2029
|
readonly WINNER_LAUGH: "winner_laugh.mp3";
|
|
2030
|
+
readonly TUTORIAL_COUNTDOWN: "tutorial/3,2,1 GO.mp3";
|
|
1951
2031
|
readonly TUTORIAL_WELCOME: "tutorial/welcome_to_battle_racing.mp3";
|
|
2032
|
+
readonly TUTORIAL_SECURE_BELONGINGS: "tutorial/secure_belongins.mp3";
|
|
2033
|
+
readonly TUTORIAL_BUCKLE_UP: "tutorial/buckle_up.mp3";
|
|
1952
2034
|
readonly TUTORIAL_GAS_PEDAL: "tutorial/gas_pedal.mp3";
|
|
2035
|
+
readonly TUTORIAL_BUTTON_PRESS: "tutorial/button_press.mp3";
|
|
2036
|
+
readonly TUTORIAL_FINAL: "tutorial/final_tutorial.mp3";
|
|
1953
2037
|
}>;
|
|
1954
|
-
|
|
2038
|
+
channel: z.ZodOptional<z.ZodEnum<{
|
|
2039
|
+
readonly MAIN: "main";
|
|
2040
|
+
readonly EFFECT: "effect";
|
|
2041
|
+
}>>;
|
|
2042
|
+
durationMs: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"infinite">]>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>]>>;
|
|
1955
2043
|
}, z.core.$strip>;
|
|
1956
2044
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
1957
2045
|
module: z.ZodLiteral<"emergency">;
|
|
@@ -2228,6 +2316,10 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
2228
2316
|
}>;
|
|
2229
2317
|
brightness: z.ZodNumber;
|
|
2230
2318
|
effectTime: z.ZodNumber;
|
|
2319
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2320
|
+
readonly FRONT: "front";
|
|
2321
|
+
readonly BACK: "back";
|
|
2322
|
+
}>>>;
|
|
2231
2323
|
}, z.core.$strip>;
|
|
2232
2324
|
}, z.core.$strip>, z.ZodObject<{
|
|
2233
2325
|
module: z.ZodLiteral<"rgb">;
|
|
@@ -2253,6 +2345,10 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
2253
2345
|
readonly EMERGENCY_EFFECT: "Emergency Effect";
|
|
2254
2346
|
readonly WAIT_EFFECT: "Wait Effect";
|
|
2255
2347
|
}>;
|
|
2348
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2349
|
+
readonly FRONT: "front";
|
|
2350
|
+
readonly BACK: "back";
|
|
2351
|
+
}>>>;
|
|
2256
2352
|
}, z.core.$strip>;
|
|
2257
2353
|
}, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
2258
2354
|
module: z.ZodLiteral<"speed">;
|
|
@@ -2867,6 +2963,33 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
2867
2963
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
2868
2964
|
presentationRevision: z.ZodOptional<z.ZodNumber>;
|
|
2869
2965
|
step: z.ZodLiteral<"TutorialCompleted">;
|
|
2966
|
+
hud: z.ZodOptional<z.ZodObject<{
|
|
2967
|
+
coins: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
2968
|
+
position: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2969
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
2970
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
2971
|
+
}, z.core.$strip>>>;
|
|
2972
|
+
laps: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2973
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
2974
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
2975
|
+
}, z.core.$strip>>>;
|
|
2976
|
+
gameTimeLeft: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
2977
|
+
minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2978
|
+
seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2979
|
+
}, z.core.$strip>>>;
|
|
2980
|
+
powerUp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2981
|
+
readonly BATTLE_GOD: "Battle God";
|
|
2982
|
+
readonly BATTLE_STAR: "Battle Star";
|
|
2983
|
+
readonly BATTLE_SHOT: "Battle Shot";
|
|
2984
|
+
readonly BATTLE_NITRO: "Battle Nitro";
|
|
2985
|
+
readonly BATTLE_PULSE: "Battle Pulse";
|
|
2986
|
+
readonly BATTLE_TRAP: "Battle Trap";
|
|
2987
|
+
readonly BATTLE_SHIELD: "Battle Shield";
|
|
2988
|
+
readonly BATTLE_TURBO: "Battle Turbo";
|
|
2989
|
+
readonly BATTLE_BLUE_SHOT: "Battle Blue Shot";
|
|
2990
|
+
}>, z.ZodLiteral<"Clear PowerUp">]>>>;
|
|
2991
|
+
powerUpAnimationTimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2992
|
+
}, z.core.$strip>>;
|
|
2870
2993
|
}, z.core.$strip>], "step">;
|
|
2871
2994
|
}, z.core.$strip>, z.ZodObject<{
|
|
2872
2995
|
module: z.ZodLiteral<"screen">;
|
|
@@ -2932,10 +3055,19 @@ export declare const powerUpSchema: z.ZodObject<{
|
|
|
2932
3055
|
readonly SYSTEM_STARTED: "system_started.mp3";
|
|
2933
3056
|
readonly WARNING_ALERT_THIS_IS_NOT_A_TEST: "warning_alert_this_is_not_a_test.mp3";
|
|
2934
3057
|
readonly WINNER_LAUGH: "winner_laugh.mp3";
|
|
3058
|
+
readonly TUTORIAL_COUNTDOWN: "tutorial/3,2,1 GO.mp3";
|
|
2935
3059
|
readonly TUTORIAL_WELCOME: "tutorial/welcome_to_battle_racing.mp3";
|
|
3060
|
+
readonly TUTORIAL_SECURE_BELONGINGS: "tutorial/secure_belongins.mp3";
|
|
3061
|
+
readonly TUTORIAL_BUCKLE_UP: "tutorial/buckle_up.mp3";
|
|
2936
3062
|
readonly TUTORIAL_GAS_PEDAL: "tutorial/gas_pedal.mp3";
|
|
3063
|
+
readonly TUTORIAL_BUTTON_PRESS: "tutorial/button_press.mp3";
|
|
3064
|
+
readonly TUTORIAL_FINAL: "tutorial/final_tutorial.mp3";
|
|
2937
3065
|
}>;
|
|
2938
|
-
|
|
3066
|
+
channel: z.ZodOptional<z.ZodEnum<{
|
|
3067
|
+
readonly MAIN: "main";
|
|
3068
|
+
readonly EFFECT: "effect";
|
|
3069
|
+
}>>;
|
|
3070
|
+
durationMs: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"infinite">]>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>]>>;
|
|
2939
3071
|
}, z.core.$strip>;
|
|
2940
3072
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
2941
3073
|
module: z.ZodLiteral<"emergency">;
|
|
@@ -22,6 +22,11 @@ export declare const SOUND_NAME: {
|
|
|
22
22
|
readonly SYSTEM_STARTED: "system_started.mp3";
|
|
23
23
|
readonly WARNING_ALERT_THIS_IS_NOT_A_TEST: "warning_alert_this_is_not_a_test.mp3";
|
|
24
24
|
readonly WINNER_LAUGH: "winner_laugh.mp3";
|
|
25
|
+
readonly TUTORIAL_COUNTDOWN: "tutorial/3,2,1 GO.mp3";
|
|
25
26
|
readonly TUTORIAL_WELCOME: "tutorial/welcome_to_battle_racing.mp3";
|
|
27
|
+
readonly TUTORIAL_SECURE_BELONGINGS: "tutorial/secure_belongins.mp3";
|
|
28
|
+
readonly TUTORIAL_BUCKLE_UP: "tutorial/buckle_up.mp3";
|
|
26
29
|
readonly TUTORIAL_GAS_PEDAL: "tutorial/gas_pedal.mp3";
|
|
30
|
+
readonly TUTORIAL_BUTTON_PRESS: "tutorial/button_press.mp3";
|
|
31
|
+
readonly TUTORIAL_FINAL: "tutorial/final_tutorial.mp3";
|
|
27
32
|
};
|
|
@@ -25,6 +25,11 @@ exports.SOUND_NAME = {
|
|
|
25
25
|
SYSTEM_STARTED: 'system_started.mp3',
|
|
26
26
|
WARNING_ALERT_THIS_IS_NOT_A_TEST: 'warning_alert_this_is_not_a_test.mp3',
|
|
27
27
|
WINNER_LAUGH: 'winner_laugh.mp3',
|
|
28
|
+
TUTORIAL_COUNTDOWN: 'tutorial/3,2,1 GO.mp3',
|
|
28
29
|
TUTORIAL_WELCOME: 'tutorial/welcome_to_battle_racing.mp3',
|
|
30
|
+
TUTORIAL_SECURE_BELONGINGS: 'tutorial/secure_belongins.mp3',
|
|
31
|
+
TUTORIAL_BUCKLE_UP: 'tutorial/buckle_up.mp3',
|
|
29
32
|
TUTORIAL_GAS_PEDAL: 'tutorial/gas_pedal.mp3',
|
|
33
|
+
TUTORIAL_BUTTON_PRESS: 'tutorial/button_press.mp3',
|
|
34
|
+
TUTORIAL_FINAL: 'tutorial/final_tutorial.mp3',
|
|
30
35
|
};
|
|
@@ -23,6 +23,11 @@ export declare const soundNameSchema: z.ZodEnum<{
|
|
|
23
23
|
readonly SYSTEM_STARTED: "system_started.mp3";
|
|
24
24
|
readonly WARNING_ALERT_THIS_IS_NOT_A_TEST: "warning_alert_this_is_not_a_test.mp3";
|
|
25
25
|
readonly WINNER_LAUGH: "winner_laugh.mp3";
|
|
26
|
+
readonly TUTORIAL_COUNTDOWN: "tutorial/3,2,1 GO.mp3";
|
|
26
27
|
readonly TUTORIAL_WELCOME: "tutorial/welcome_to_battle_racing.mp3";
|
|
28
|
+
readonly TUTORIAL_SECURE_BELONGINGS: "tutorial/secure_belongins.mp3";
|
|
29
|
+
readonly TUTORIAL_BUCKLE_UP: "tutorial/buckle_up.mp3";
|
|
27
30
|
readonly TUTORIAL_GAS_PEDAL: "tutorial/gas_pedal.mp3";
|
|
31
|
+
readonly TUTORIAL_BUTTON_PRESS: "tutorial/button_press.mp3";
|
|
32
|
+
readonly TUTORIAL_FINAL: "tutorial/final_tutorial.mp3";
|
|
28
33
|
}>;
|
|
@@ -35,6 +35,7 @@ export declare const tutorialPhaseIdSchema: z.ZodEnum<{
|
|
|
35
35
|
}>;
|
|
36
36
|
export declare const tutorialListenEventOnSchema: z.ZodEnum<{
|
|
37
37
|
timeout: "timeout";
|
|
38
|
+
operator: "operator";
|
|
38
39
|
wheelButton: "wheelButton";
|
|
39
40
|
checkpoint: "checkpoint";
|
|
40
41
|
}>;
|
|
@@ -180,6 +181,7 @@ export declare const tutorialParticipantSchema: z.ZodObject<{
|
|
|
180
181
|
IN_PROGRESS: "IN_PROGRESS";
|
|
181
182
|
SKIPPED: "SKIPPED";
|
|
182
183
|
}>;
|
|
184
|
+
skipOrder: z.ZodOptional<z.ZodNumber>;
|
|
183
185
|
currentPhaseId: z.ZodEnum<{
|
|
184
186
|
starting_point: "starting_point";
|
|
185
187
|
controls_and_hud: "controls_and_hud";
|
|
@@ -213,6 +215,8 @@ export declare const tutorialParticipantSchema: z.ZodObject<{
|
|
|
213
215
|
latestCheckpointProgress: z.ZodOptional<z.ZodNumber>;
|
|
214
216
|
coins: z.ZodDefault<z.ZodNumber>;
|
|
215
217
|
currentLap: z.ZodDefault<z.ZodNumber>;
|
|
218
|
+
totalProgress: z.ZodDefault<z.ZodNumber>;
|
|
219
|
+
latestCheckpointTimeISO: z.ZodOptional<z.ZodISODateTime>;
|
|
216
220
|
totalLaps: z.ZodDefault<z.ZodNumber>;
|
|
217
221
|
position: z.ZodOptional<z.ZodObject<{
|
|
218
222
|
current: z.ZodNumber;
|
|
@@ -247,6 +251,7 @@ export declare const tutorialSessionSchema: z.ZodObject<{
|
|
|
247
251
|
IN_PROGRESS: "IN_PROGRESS";
|
|
248
252
|
SKIPPED: "SKIPPED";
|
|
249
253
|
}>;
|
|
254
|
+
skipOrder: z.ZodOptional<z.ZodNumber>;
|
|
250
255
|
currentPhaseId: z.ZodEnum<{
|
|
251
256
|
starting_point: "starting_point";
|
|
252
257
|
controls_and_hud: "controls_and_hud";
|
|
@@ -280,6 +285,8 @@ export declare const tutorialSessionSchema: z.ZodObject<{
|
|
|
280
285
|
latestCheckpointProgress: z.ZodOptional<z.ZodNumber>;
|
|
281
286
|
coins: z.ZodDefault<z.ZodNumber>;
|
|
282
287
|
currentLap: z.ZodDefault<z.ZodNumber>;
|
|
288
|
+
totalProgress: z.ZodDefault<z.ZodNumber>;
|
|
289
|
+
latestCheckpointTimeISO: z.ZodOptional<z.ZodISODateTime>;
|
|
283
290
|
totalLaps: z.ZodDefault<z.ZodNumber>;
|
|
284
291
|
position: z.ZodOptional<z.ZodObject<{
|
|
285
292
|
current: z.ZodNumber;
|
|
@@ -324,3 +331,6 @@ export declare const startBattleTutorialSchema: z.ZodObject<{
|
|
|
324
331
|
speedConfig: z.ZodOptional<z.ZodNumber>;
|
|
325
332
|
}, z.core.$strip>>;
|
|
326
333
|
}, z.core.$strip>;
|
|
334
|
+
export declare const skipTutorialKartSchema: z.ZodObject<{
|
|
335
|
+
tutorialSessionId: z.ZodString;
|
|
336
|
+
}, z.core.$strip>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.startBattleTutorialSchema = exports.startRaceTutorialSchema = exports.tutorialSessionSchema = exports.tutorialParticipantSchema = exports.tutorialConfigurationSchema = exports.tutorialInputSignalSchema = exports.tutorialSteeringWheelButtonPressedSchema = exports.tutorialKartEventBaseSchema = exports.tutorialInputSignalTypeSchema = exports.tutorialKartSnapshotSchema = exports.tutorialCheckpointTargetSchema = exports.tutorialInputButtonSchema = exports.tutorialSteeringWheelButtonSchema = exports.tutorialListenEventOnSchema = exports.tutorialPhaseIdSchema = exports.tutorialStatusSchema = exports.tutorialScreenStepSchema = void 0;
|
|
3
|
+
exports.skipTutorialKartSchema = exports.startBattleTutorialSchema = exports.startRaceTutorialSchema = exports.tutorialSessionSchema = exports.tutorialParticipantSchema = exports.tutorialConfigurationSchema = exports.tutorialInputSignalSchema = exports.tutorialSteeringWheelButtonPressedSchema = exports.tutorialKartEventBaseSchema = exports.tutorialInputSignalTypeSchema = exports.tutorialKartSnapshotSchema = exports.tutorialCheckpointTargetSchema = exports.tutorialInputButtonSchema = exports.tutorialSteeringWheelButtonSchema = exports.tutorialListenEventOnSchema = exports.tutorialPhaseIdSchema = exports.tutorialStatusSchema = exports.tutorialScreenStepSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const Battle_schema_1 = require("../game/battle/Battle.schema");
|
|
6
6
|
const Game_schema_1 = require("../game/Game.schema");
|
|
@@ -43,6 +43,7 @@ exports.tutorialPhaseIdSchema = zod_1.z.enum([
|
|
|
43
43
|
]);
|
|
44
44
|
exports.tutorialListenEventOnSchema = zod_1.z.enum([
|
|
45
45
|
Tutorial_const_1.TUTORIAL_LISTEN_EVENT_ON.TIMEOUT,
|
|
46
|
+
Tutorial_const_1.TUTORIAL_LISTEN_EVENT_ON.OPERATOR,
|
|
46
47
|
Tutorial_const_1.TUTORIAL_LISTEN_EVENT_ON.WHEEL_BUTTON,
|
|
47
48
|
Tutorial_const_1.TUTORIAL_LISTEN_EVENT_ON.CHECKPOINT,
|
|
48
49
|
]);
|
|
@@ -99,6 +100,7 @@ exports.tutorialParticipantSchema = zod_1.z.object({
|
|
|
99
100
|
kartGuid: zod_1.z.string().min(1),
|
|
100
101
|
playerId: zod_1.z.string().optional(),
|
|
101
102
|
status: exports.tutorialStatusSchema,
|
|
103
|
+
skipOrder: zod_1.z.number().int().positive().optional(),
|
|
102
104
|
currentPhaseId: exports.tutorialPhaseIdSchema,
|
|
103
105
|
currentStep: exports.tutorialScreenStepSchema,
|
|
104
106
|
revision: zod_1.z.number().int().nonnegative(),
|
|
@@ -106,7 +108,9 @@ exports.tutorialParticipantSchema = zod_1.z.object({
|
|
|
106
108
|
latestCheckpointId: zod_1.z.string().optional(),
|
|
107
109
|
latestCheckpointProgress: zod_1.z.number().optional(),
|
|
108
110
|
coins: zod_1.z.number().int().default(0),
|
|
109
|
-
currentLap: zod_1.z.number().int().default(
|
|
111
|
+
currentLap: zod_1.z.number().int().default(0),
|
|
112
|
+
totalProgress: zod_1.z.number().default(0),
|
|
113
|
+
latestCheckpointTimeISO: zod_1.z.iso.datetime().optional(),
|
|
110
114
|
totalLaps: zod_1.z.number().int().default(1),
|
|
111
115
|
position: zod_1.z
|
|
112
116
|
.object({
|
|
@@ -134,3 +138,6 @@ const startTutorialOptionsSchema = zod_1.z.object({
|
|
|
134
138
|
});
|
|
135
139
|
exports.startRaceTutorialSchema = Race_schema_1.startRaceSchema.extend(startTutorialOptionsSchema.shape);
|
|
136
140
|
exports.startBattleTutorialSchema = Battle_schema_1.startBattleSchema.extend(startTutorialOptionsSchema.shape);
|
|
141
|
+
exports.skipTutorialKartSchema = zod_1.z.object({
|
|
142
|
+
tutorialSessionId: zod_1.z.string().min(1),
|
|
143
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { tutorialInputSignalSchema, tutorialInputSignalTypeSchema, tutorialKartSnapshotSchema, tutorialListenEventOnSchema, tutorialCheckpointTargetSchema, tutorialPhaseIdSchema, tutorialScreenStepSchema, tutorialStatusSchema, tutorialSteeringWheelButtonPressedSchema, tutorialSteeringWheelButtonSchema, tutorialInputButtonSchema, tutorialConfigurationSchema, tutorialParticipantSchema, tutorialSessionSchema, startRaceTutorialSchema, startBattleTutorialSchema } from './Tutorial.schema';
|
|
2
|
+
import { tutorialInputSignalSchema, tutorialInputSignalTypeSchema, tutorialKartSnapshotSchema, tutorialListenEventOnSchema, tutorialCheckpointTargetSchema, tutorialPhaseIdSchema, tutorialScreenStepSchema, tutorialStatusSchema, tutorialSteeringWheelButtonPressedSchema, tutorialSteeringWheelButtonSchema, tutorialInputButtonSchema, tutorialConfigurationSchema, tutorialParticipantSchema, tutorialSessionSchema, startRaceTutorialSchema, startBattleTutorialSchema, skipTutorialKartSchema } 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>;
|
|
@@ -16,3 +16,4 @@ export type TutorialParticipant = z.infer<typeof tutorialParticipantSchema>;
|
|
|
16
16
|
export type TutorialSession = z.infer<typeof tutorialSessionSchema>;
|
|
17
17
|
export type StartRaceTutorial = z.infer<typeof startRaceTutorialSchema>;
|
|
18
18
|
export type StartBattleTutorial = z.infer<typeof startBattleTutorialSchema>;
|
|
19
|
+
export type SkipTutorialKart = z.infer<typeof skipTutorialKartSchema>;
|