@battle-racing/br-common-lib 3.0.0 → 3.2.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.
|
@@ -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,6 +1,9 @@
|
|
|
1
1
|
import type { ColorName } from '../color';
|
|
2
|
+
import type { DamageEffectName } from '../damage';
|
|
2
3
|
import type { GameType } from '../game';
|
|
3
4
|
import type { GameTrack } from '../gameTrack';
|
|
5
|
+
import type { KartHardwareState } from '../hardware';
|
|
6
|
+
import type { PowerUpName } from '../powerUp';
|
|
4
7
|
import type { KartShield } from './KartShield';
|
|
5
8
|
import type { KartStatus } from './KartStatus';
|
|
6
9
|
interface KartGame {
|
|
@@ -26,5 +29,8 @@ export interface Kart {
|
|
|
26
29
|
* In testing Mode, the kart should be listening to the hardware status
|
|
27
30
|
*/
|
|
28
31
|
isSubscribedToHardwareStatus: boolean;
|
|
32
|
+
hardwareState?: KartHardwareState | null;
|
|
33
|
+
currentPowerUp?: PowerUpName | null;
|
|
34
|
+
currentDamage?: DamageEffectName | null;
|
|
29
35
|
}
|
|
30
36
|
export {};
|
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
|
};
|
package/src/types/kart/Kart.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { ColorName } from '../color';
|
|
2
|
+
import type { DamageEffectName } from '../damage';
|
|
2
3
|
import type { GameType } from '../game';
|
|
3
4
|
import type { GameTrack } from '../gameTrack';
|
|
5
|
+
import type { KartHardwareState } from '../hardware';
|
|
6
|
+
import type { PowerUpName } from '../powerUp';
|
|
4
7
|
import type { KartShield } from './KartShield';
|
|
5
8
|
import type { KartStatus } from './KartStatus';
|
|
6
9
|
|
|
@@ -19,7 +22,7 @@ export interface Kart {
|
|
|
19
22
|
isConnected: boolean;
|
|
20
23
|
status: KartStatus;
|
|
21
24
|
shield: KartShield;
|
|
22
|
-
// If a Kart is not assigned to a game, the default
|
|
25
|
+
// If a Kart is not assigned to a game, the default game track should be "TEST"
|
|
23
26
|
gameTrackId: GameTrack['id'];
|
|
24
27
|
color: ColorName;
|
|
25
28
|
number: number;
|
|
@@ -29,4 +32,7 @@ export interface Kart {
|
|
|
29
32
|
* In testing Mode, the kart should be listening to the hardware status
|
|
30
33
|
*/
|
|
31
34
|
isSubscribedToHardwareStatus: boolean;
|
|
35
|
+
hardwareState?: KartHardwareState | null;
|
|
36
|
+
currentPowerUp?: PowerUpName | null;
|
|
37
|
+
currentDamage?: DamageEffectName | null;
|
|
32
38
|
}
|