@battle-racing/br-common-lib 2.3.1 → 2.4.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/base-hardware-status.d.ts +6 -0
- package/dist/constants/hardware/base-hardware-status.js +9 -0
- package/dist/constants/hardware/flag-status.d.ts +3 -2
- package/dist/constants/hardware/flag-status.js +2 -3
- package/dist/constants/hardware/index.d.ts +2 -0
- package/dist/constants/hardware/index.js +2 -0
- package/dist/constants/hardware/rgb-status.d.ts +8 -0
- package/dist/constants/hardware/rgb-status.js +11 -0
- package/dist/constants/hardware/speed-status.d.ts +9 -0
- package/dist/constants/hardware/speed-status.js +10 -0
- package/dist/types/hardware/KartHardwareState.d.ts +10 -0
- package/dist/types/hardware/KartHardwareState.js +2 -0
- package/dist/types/hardware/index.d.ts +1 -0
- package/dist/types/hardware/index.js +1 -0
- package/dist/types/hardware/rgb/RGBStatus.d.ts +3 -1
- package/dist/types/hardware/screen/ScreenDebugViewInput.d.ts +4 -0
- package/dist/types/hardware/screen/ScreenDebugViewInput.js +2 -0
- package/dist/types/hardware/screen/index.d.ts +1 -0
- package/dist/types/hardware/screen/index.js +1 -0
- package/dist/types/hardware/speed/SpeedStatus.d.ts +3 -1
- package/package.json +1 -1
- package/src/constants/hardware/base-hardware-status.ts +6 -0
- package/src/constants/hardware/flag-status.ts +3 -3
- package/src/constants/hardware/index.ts +2 -1
- package/src/constants/hardware/rgb-status.ts +8 -0
- package/src/constants/hardware/speed-status.ts +8 -0
- package/src/types/hardware/KartHardwareState.ts +11 -0
- package/src/types/hardware/index.ts +1 -0
- package/src/types/hardware/rgb/RGBStatus.ts +4 -1
- package/src/types/hardware/screen/ScreenDebugViewInput.ts +5 -0
- package/src/types/hardware/screen/index.ts +1 -0
- package/src/types/hardware/speed/SpeedStatus.ts +4 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare const FLAG_STATUS: {
|
|
2
2
|
readonly STANDBY: "Standby";
|
|
3
|
-
readonly DEACTIVATED: "Deactivated";
|
|
4
|
-
readonly ACTIVATED: "Activated";
|
|
5
3
|
readonly HIT: "Hit";
|
|
6
4
|
readonly SHOWING_IMAGE: "Showing Image";
|
|
7
5
|
readonly SHOWING_ANIMATION: "Showing Animation";
|
|
6
|
+
readonly ACTIVATED: "Activated";
|
|
7
|
+
readonly DEACTIVATED: "Deactivated";
|
|
8
8
|
readonly UNKNOWN: "Unknown";
|
|
9
|
+
readonly ERROR: "Error";
|
|
9
10
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FLAG_STATUS = void 0;
|
|
4
|
+
const base_hardware_status_1 = require("./base-hardware-status");
|
|
4
5
|
exports.FLAG_STATUS = {
|
|
6
|
+
...base_hardware_status_1.BASE_HARDWARE_STATUS,
|
|
5
7
|
STANDBY: 'Standby',
|
|
6
|
-
DEACTIVATED: 'Deactivated',
|
|
7
|
-
ACTIVATED: 'Activated',
|
|
8
8
|
HIT: 'Hit',
|
|
9
9
|
SHOWING_IMAGE: 'Showing Image',
|
|
10
10
|
SHOWING_ANIMATION: 'Showing Animation',
|
|
11
|
-
UNKNOWN: 'Unknown',
|
|
12
11
|
};
|
|
@@ -14,7 +14,9 @@ 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("./base-hardware-status"), exports);
|
|
17
18
|
__exportStar(require("./damage"), exports);
|
|
18
19
|
__exportStar(require("./flag-media-name"), exports);
|
|
19
20
|
__exportStar(require("./flag-status"), exports);
|
|
20
21
|
__exportStar(require("./lights-effect"), exports);
|
|
22
|
+
__exportStar(require("./speed-status"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const RGB_STATUS: {
|
|
2
|
+
readonly SHOWING_COLOR: "Showing Color";
|
|
3
|
+
readonly NOT_CONFIGURED: "Not Configured";
|
|
4
|
+
readonly CONFIGURING_RGB: "Configuring RGB";
|
|
5
|
+
readonly SHOWING_EFFECT: "Showing Effect";
|
|
6
|
+
readonly UNKNOWN: "Unknown";
|
|
7
|
+
readonly ERROR: "Error";
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RGB_STATUS = void 0;
|
|
4
|
+
exports.RGB_STATUS = {
|
|
5
|
+
SHOWING_COLOR: 'Showing Color',
|
|
6
|
+
NOT_CONFIGURED: 'Not Configured',
|
|
7
|
+
CONFIGURING_RGB: 'Configuring RGB',
|
|
8
|
+
SHOWING_EFFECT: 'Showing Effect',
|
|
9
|
+
UNKNOWN: 'Unknown',
|
|
10
|
+
ERROR: 'Error',
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SPEED_STATUS: {
|
|
2
|
+
readonly STANDBY: "Standby";
|
|
3
|
+
readonly CHANGING_SPEED: "Changing Speed";
|
|
4
|
+
readonly IN_EMERGENCY: "In Emergency";
|
|
5
|
+
readonly ACTIVATED: "Activated";
|
|
6
|
+
readonly DEACTIVATED: "Deactivated";
|
|
7
|
+
readonly UNKNOWN: "Unknown";
|
|
8
|
+
readonly ERROR: "Error";
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SPEED_STATUS = void 0;
|
|
4
|
+
const base_hardware_status_1 = require("./base-hardware-status");
|
|
5
|
+
exports.SPEED_STATUS = {
|
|
6
|
+
...base_hardware_status_1.BASE_HARDWARE_STATUS,
|
|
7
|
+
STANDBY: 'Standby',
|
|
8
|
+
CHANGING_SPEED: 'Changing Speed',
|
|
9
|
+
IN_EMERGENCY: 'In Emergency',
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FlagStatus } from './flag';
|
|
2
|
+
import type { RGBStatus } from './rgb';
|
|
3
|
+
import type { SpeedStatus } from './speed';
|
|
4
|
+
export type KartHardwareState = {
|
|
5
|
+
speed: SpeedStatus | null;
|
|
6
|
+
rgb: RGBStatus | null;
|
|
7
|
+
flag: FlagStatus | null;
|
|
8
|
+
isConnectedToServer: boolean;
|
|
9
|
+
isSteeringWheelPressed: boolean;
|
|
10
|
+
};
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./diskThrower"), exports);
|
|
|
21
21
|
__exportStar(require("./emergency"), exports);
|
|
22
22
|
__exportStar(require("./flag"), exports);
|
|
23
23
|
__exportStar(require("./KartEffect"), exports);
|
|
24
|
+
__exportStar(require("./KartHardwareState"), exports);
|
|
24
25
|
__exportStar(require("./lights"), exports);
|
|
25
26
|
__exportStar(require("./ModuleName"), exports);
|
|
26
27
|
__exportStar(require("./ModuleStatus"), exports);
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { RGB_STATUS } from '../../../constants/hardware/rgb-status';
|
|
2
|
+
import type { ObjectValues } from '../../utils';
|
|
3
|
+
export type RGBStatus = ObjectValues<typeof RGB_STATUS>;
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ScreenBattleViewConfig"), exports);
|
|
18
18
|
__exportStar(require("./ScreenCountdownParams"), exports);
|
|
19
|
+
__exportStar(require("./ScreenDebugViewInput"), exports);
|
|
19
20
|
__exportStar(require("./ScreenFinishViewInput"), exports);
|
|
20
21
|
__exportStar(require("./ScreenGameTimeLeft"), exports);
|
|
21
22
|
__exportStar(require("./ScreenHomeViewInput"), exports);
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { SPEED_STATUS } from '../../../constants/hardware';
|
|
2
|
+
import { ObjectValues } from '../../utils';
|
|
3
|
+
export type SpeedStatus = ObjectValues<typeof SPEED_STATUS>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { BASE_HARDWARE_STATUS } from './base-hardware-status';
|
|
2
|
+
|
|
1
3
|
export const FLAG_STATUS = {
|
|
4
|
+
...BASE_HARDWARE_STATUS,
|
|
2
5
|
STANDBY: 'Standby',
|
|
3
|
-
DEACTIVATED: 'Deactivated',
|
|
4
|
-
ACTIVATED: 'Activated',
|
|
5
6
|
HIT: 'Hit',
|
|
6
7
|
SHOWING_IMAGE: 'Showing Image',
|
|
7
8
|
SHOWING_ANIMATION: 'Showing Animation',
|
|
8
|
-
UNKNOWN: 'Unknown',
|
|
9
9
|
} as const;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FlagStatus } from './flag';
|
|
2
|
+
import type { RGBStatus } from './rgb';
|
|
3
|
+
import type { SpeedStatus } from './speed';
|
|
4
|
+
|
|
5
|
+
export type KartHardwareState = {
|
|
6
|
+
speed: SpeedStatus | null;
|
|
7
|
+
rgb: RGBStatus | null;
|
|
8
|
+
flag: FlagStatus | null;
|
|
9
|
+
isConnectedToServer: boolean;
|
|
10
|
+
isSteeringWheelPressed: boolean;
|
|
11
|
+
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { RGB_STATUS } from '../../../constants/hardware/rgb-status';
|
|
2
|
+
import type { ObjectValues } from '../../utils';
|
|
3
|
+
|
|
4
|
+
export type RGBStatus = ObjectValues<typeof RGB_STATUS >;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { SPEED_STATUS } from '../../../constants/hardware';
|
|
2
|
+
import { ObjectValues } from '../../utils';
|
|
3
|
+
|
|
4
|
+
export type SpeedStatus = ObjectValues<typeof SPEED_STATUS>;
|