@battle-racing/br-common-lib 3.0.0 → 3.1.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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@battle-racing/br-common-lib",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Common library for all Battle Racing Repositorios",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -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 gane track should be "TEST"
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
  }