@battle-racing/br-common-lib 3.1.0 → 3.3.0
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/constants/hardware/flag-media-name.d.ts +9 -0
- package/dist/constants/hardware/flag-media-name.js +10 -0
- package/dist/types/hardware/KartHardwareState.d.ts +11 -2
- package/package.json +1 -1
- package/src/constants/hardware/flag-media-name.ts +11 -0
- package/src/types/hardware/KartHardwareState.ts +11 -2
|
@@ -34,6 +34,7 @@ export declare const FLAG_MEDIA_NAME: {
|
|
|
34
34
|
LIKE: string;
|
|
35
35
|
RANDOM_EFFECT: string;
|
|
36
36
|
HELMET_BLACK_BACKGROUND: string;
|
|
37
|
+
ELECTROCUTED: string;
|
|
37
38
|
THUNDER_EXPLOSION: string;
|
|
38
39
|
SHIELD_BLUE_TO_PINK: string;
|
|
39
40
|
FALLING_OIL_DROP: string;
|
|
@@ -51,4 +52,12 @@ export declare const FLAG_MEDIA_NAME: {
|
|
|
51
52
|
DANGER_RED_AND_WHITE_RED: string;
|
|
52
53
|
REPAIR_TOOLS: string;
|
|
53
54
|
BR_CHANGE_COLOR: string;
|
|
55
|
+
STATIC_HELMET: string;
|
|
56
|
+
STATIC_LIGHTNING: string;
|
|
57
|
+
STATIC_SHIELD: string;
|
|
58
|
+
STATIC_OIL_DROP: string;
|
|
59
|
+
STATIC_EXHAUST: string;
|
|
60
|
+
STATIC_FIREBALL: string;
|
|
61
|
+
STATIC_BEATING_HEART: string;
|
|
62
|
+
STATIC_SPEED_PAD: string;
|
|
54
63
|
};
|
|
@@ -39,6 +39,7 @@ exports.FLAG_MEDIA_NAME = {
|
|
|
39
39
|
// Flag Power-Ups
|
|
40
40
|
RANDOM_EFFECT: 'random_effect',
|
|
41
41
|
HELMET_BLACK_BACKGROUND: 'helmet_black_background',
|
|
42
|
+
ELECTROCUTED: 'electrocuted',
|
|
42
43
|
THUNDER_EXPLOSION: 'thunder_explosion',
|
|
43
44
|
SHIELD_BLUE_TO_PINK: 'shield_blue_to_pink',
|
|
44
45
|
FALLING_OIL_DROP: 'falling_oil_drop',
|
|
@@ -58,4 +59,13 @@ exports.FLAG_MEDIA_NAME = {
|
|
|
58
59
|
REPAIR_TOOLS: 'repair_tools',
|
|
59
60
|
// Logos
|
|
60
61
|
BR_CHANGE_COLOR: 'br_change_color',
|
|
62
|
+
// Static Power-Ups
|
|
63
|
+
STATIC_HELMET: 'static_helmet',
|
|
64
|
+
STATIC_LIGHTNING: 'static_lightning',
|
|
65
|
+
STATIC_SHIELD: 'static_shield',
|
|
66
|
+
STATIC_OIL_DROP: 'static_oil_drop',
|
|
67
|
+
STATIC_EXHAUST: 'static_exhaust',
|
|
68
|
+
STATIC_FIREBALL: 'static_fireball',
|
|
69
|
+
STATIC_BEATING_HEART: 'static_beating_heart',
|
|
70
|
+
STATIC_SPEED_PAD: 'static_speed_pad',
|
|
61
71
|
};
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
+
import { CheckpointType } from '../checkpoint';
|
|
1
2
|
import type { FlagStatus } from './flag';
|
|
2
3
|
import type { RGBStatus } from './rgb';
|
|
3
4
|
import type { ScreenStatus } from './screen';
|
|
4
5
|
import type { SpeedStatus } from './speed';
|
|
5
6
|
export type KartHardwareState = {
|
|
6
|
-
speed:
|
|
7
|
+
speed: {
|
|
8
|
+
status: SpeedStatus;
|
|
9
|
+
current: number;
|
|
10
|
+
configured: number;
|
|
11
|
+
} | null;
|
|
7
12
|
rgb: RGBStatus | null;
|
|
8
|
-
flag:
|
|
13
|
+
flag: {
|
|
14
|
+
status: FlagStatus;
|
|
15
|
+
checkpointType: CheckpointType | null;
|
|
16
|
+
checkpointAddress: number | null;
|
|
17
|
+
} | null;
|
|
9
18
|
screen: ScreenStatus | null;
|
|
10
19
|
isConnectedToServer: boolean;
|
|
11
20
|
isSteeringWheelPressed: boolean;
|
package/package.json
CHANGED
|
@@ -38,6 +38,7 @@ export const FLAG_MEDIA_NAME = {
|
|
|
38
38
|
// Flag Power-Ups
|
|
39
39
|
RANDOM_EFFECT: 'random_effect',
|
|
40
40
|
HELMET_BLACK_BACKGROUND: 'helmet_black_background',
|
|
41
|
+
ELECTROCUTED: 'electrocuted',
|
|
41
42
|
THUNDER_EXPLOSION: 'thunder_explosion',
|
|
42
43
|
SHIELD_BLUE_TO_PINK: 'shield_blue_to_pink',
|
|
43
44
|
FALLING_OIL_DROP: 'falling_oil_drop',
|
|
@@ -59,4 +60,14 @@ export const FLAG_MEDIA_NAME = {
|
|
|
59
60
|
|
|
60
61
|
// Logos
|
|
61
62
|
BR_CHANGE_COLOR: 'br_change_color',
|
|
63
|
+
|
|
64
|
+
// Static Power-Ups
|
|
65
|
+
STATIC_HELMET: 'static_helmet',
|
|
66
|
+
STATIC_LIGHTNING: 'static_lightning',
|
|
67
|
+
STATIC_SHIELD: 'static_shield',
|
|
68
|
+
STATIC_OIL_DROP: 'static_oil_drop',
|
|
69
|
+
STATIC_EXHAUST: 'static_exhaust',
|
|
70
|
+
STATIC_FIREBALL: 'static_fireball',
|
|
71
|
+
STATIC_BEATING_HEART: 'static_beating_heart',
|
|
72
|
+
STATIC_SPEED_PAD: 'static_speed_pad',
|
|
62
73
|
};
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
import { CheckpointType } from '../checkpoint';
|
|
1
2
|
import type { FlagStatus } from './flag';
|
|
2
3
|
import type { RGBStatus } from './rgb';
|
|
3
4
|
import type { ScreenStatus } from './screen';
|
|
4
5
|
import type { SpeedStatus } from './speed';
|
|
5
6
|
|
|
6
7
|
export type KartHardwareState = {
|
|
7
|
-
speed:
|
|
8
|
+
speed: {
|
|
9
|
+
status: SpeedStatus;
|
|
10
|
+
current: number;
|
|
11
|
+
configured: number;
|
|
12
|
+
} | null;
|
|
8
13
|
rgb: RGBStatus | null;
|
|
9
|
-
flag:
|
|
14
|
+
flag: {
|
|
15
|
+
status: FlagStatus;
|
|
16
|
+
checkpointType: CheckpointType | null;
|
|
17
|
+
checkpointAddress: number | null;
|
|
18
|
+
} | null;
|
|
10
19
|
screen: ScreenStatus | null;
|
|
11
20
|
isConnectedToServer: boolean;
|
|
12
21
|
isSteeringWheelPressed: boolean;
|