@battle-racing/br-common-lib 1.2.7 → 1.2.9
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-status.d.ts +9 -0
- package/dist/constants/hardware/flag-status.js +12 -0
- package/dist/constants/hardware/index.d.ts +1 -0
- package/dist/constants/hardware/index.js +1 -0
- package/dist/types/hardware/flag/FlagStatus.d.ts +3 -1
- package/dist/types/socket/serverToClient/SocketGameTrackServerToClientEventParams.d.ts +2 -1
- package/package.json +1 -1
- package/src/constants/hardware/flag-status.ts +9 -0
- package/src/constants/hardware/index.ts +1 -0
- package/src/types/hardware/flag/FlagStatus.ts +4 -8
- package/src/types/socket/serverToClient/SocketGameTrackServerToClientEventParams.ts +3 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const FLAG_STATUS: {
|
|
2
|
+
readonly STANDBY: "Standby";
|
|
3
|
+
readonly DEACTIVATED: "Deactivated";
|
|
4
|
+
readonly ACTIVATED: "Activated";
|
|
5
|
+
readonly HIT: "Hit";
|
|
6
|
+
readonly SHOWING_IMAGE: "Showing Image";
|
|
7
|
+
readonly SHOWING_ANIMATION: "Showing Animation";
|
|
8
|
+
readonly UNKNOWN: "Unknown";
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FLAG_STATUS = void 0;
|
|
4
|
+
exports.FLAG_STATUS = {
|
|
5
|
+
STANDBY: 'Standby',
|
|
6
|
+
DEACTIVATED: 'Deactivated',
|
|
7
|
+
ACTIVATED: 'Activated',
|
|
8
|
+
HIT: 'Hit',
|
|
9
|
+
SHOWING_IMAGE: 'Showing Image',
|
|
10
|
+
SHOWING_ANIMATION: 'Showing Animation',
|
|
11
|
+
UNKNOWN: 'Unknown',
|
|
12
|
+
};
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./flag-status"), exports);
|
|
17
18
|
__exportStar(require("./lights-effect"), exports);
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { FLAG_STATUS } from '../../../constants';
|
|
2
|
+
import type { ObjectValues } from '../../utils';
|
|
3
|
+
export type FlagStatus = ObjectValues<typeof FLAG_STATUS>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GameTrack } from '../../gameTrack';
|
|
2
|
-
import type { ShowLightsColorParams, ShowLightsEffectParams } from '../../hardware';
|
|
2
|
+
import type { PlaySoundOptions, ShowLightsColorParams, ShowLightsEffectParams } from '../../hardware';
|
|
3
3
|
import type { Response } from '../../response';
|
|
4
4
|
export interface SocketGameTrackEventsParams {
|
|
5
5
|
'game-track:init:response': Response<GameTrack>;
|
|
@@ -9,5 +9,6 @@ export interface SocketGameTrackEventParams {
|
|
|
9
9
|
'game-track:emergency:deactivate': undefined;
|
|
10
10
|
'game-track:lights:showEffect': ShowLightsEffectParams;
|
|
11
11
|
'game-track:lights:showColor': ShowLightsColorParams;
|
|
12
|
+
'game-track:sound:play': PlaySoundOptions;
|
|
12
13
|
}
|
|
13
14
|
export type SocketGameTrackServerToClientEventsParams = SocketGameTrackEventsParams & SocketGameTrackEventParams;
|
package/package.json
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
| 'Hit'
|
|
6
|
-
| 'Showing Image'
|
|
7
|
-
| 'Showing Animation'
|
|
8
|
-
| 'Unknown';
|
|
1
|
+
import { FLAG_STATUS } from '../../../constants';
|
|
2
|
+
import type { ObjectValues } from '../../utils';
|
|
3
|
+
|
|
4
|
+
export type FlagStatus = ObjectValues<typeof FLAG_STATUS>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GameTrack } from '../../gameTrack';
|
|
2
|
-
import type { ShowLightsColorParams, ShowLightsEffectParams } from '../../hardware';
|
|
2
|
+
import type { PlaySoundOptions, ShowLightsColorParams, ShowLightsEffectParams } from '../../hardware';
|
|
3
3
|
import type { Response } from '../../response';
|
|
4
4
|
|
|
5
5
|
export interface SocketGameTrackEventsParams {
|
|
@@ -13,6 +13,8 @@ export interface SocketGameTrackEventParams {
|
|
|
13
13
|
|
|
14
14
|
'game-track:lights:showEffect': ShowLightsEffectParams;
|
|
15
15
|
'game-track:lights:showColor': ShowLightsColorParams;
|
|
16
|
+
|
|
17
|
+
'game-track:sound:play': PlaySoundOptions;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export type SocketGameTrackServerToClientEventsParams = SocketGameTrackEventsParams & SocketGameTrackEventParams;
|