@mtgame/core 0.2.69 → 0.2.70
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/bundles/mtgame-core.umd.js +61 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/game.js +16 -1
- package/esm2015/models/wrestball-game-config.js +42 -0
- package/esm2015/mtgame-core.js +2 -1
- package/fesm2015/mtgame-core.js +53 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/game.d.ts +4 -0
- package/models/wrestball-game-config.d.ts +21 -0
- package/mtgame-core.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/models/game.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { File } from './file';
|
|
|
14
14
|
import { RugbyGameConfig } from './rugby-game-config';
|
|
15
15
|
import { WaterpoloGameConfig } from './waterpolo-game-config';
|
|
16
16
|
import { Sport } from './sport';
|
|
17
|
+
import { WrestballGameConfig } from './wrestball-game-config';
|
|
17
18
|
export declare enum GameStatuses {
|
|
18
19
|
open = 1,
|
|
19
20
|
in_progress = 2,
|
|
@@ -50,6 +51,7 @@ export declare class Game extends BaseModel {
|
|
|
50
51
|
private _handballGameConfig;
|
|
51
52
|
private _rugbyGameConfig;
|
|
52
53
|
private _waterpoloGameConfig;
|
|
54
|
+
private _wrestballGameConfig;
|
|
53
55
|
id: number;
|
|
54
56
|
status: GameStatuses;
|
|
55
57
|
team: Team;
|
|
@@ -96,6 +98,8 @@ export declare class Game extends BaseModel {
|
|
|
96
98
|
set rugbyGameConfig(value: RugbyGameConfig);
|
|
97
99
|
get waterpoloGameConfig(): WaterpoloGameConfig;
|
|
98
100
|
set waterpoloGameConfig(value: WaterpoloGameConfig);
|
|
101
|
+
get wrestballGameConfig(): WrestballGameConfig;
|
|
102
|
+
set wrestballGameConfig(value: WrestballGameConfig);
|
|
99
103
|
get scoreByPeriodList(): {
|
|
100
104
|
period: number;
|
|
101
105
|
teamScore: number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { WrestballStatisticTypes, GameTimeTypes, OvertimeTypes, TimerTypes } from './tournament';
|
|
3
|
+
export declare class WrestballGameConfig extends BaseModel {
|
|
4
|
+
periodsCount: number;
|
|
5
|
+
periodTime: number;
|
|
6
|
+
gameUpToScore: number;
|
|
7
|
+
overtimeType: OvertimeTypes;
|
|
8
|
+
overtimeTime: number;
|
|
9
|
+
overtimeScore: number;
|
|
10
|
+
maxGamePlayers: number;
|
|
11
|
+
timeoutCount: number;
|
|
12
|
+
overtimeTimeoutCount: number;
|
|
13
|
+
timeoutTime: number;
|
|
14
|
+
statisticType: WrestballStatisticTypes;
|
|
15
|
+
shotClockEnabled: boolean;
|
|
16
|
+
gameTimeType: GameTimeTypes;
|
|
17
|
+
timerType: TimerTypes;
|
|
18
|
+
wrestlerScrumsCount: number;
|
|
19
|
+
static toFront(data: any): any;
|
|
20
|
+
static toBack(data: any): any;
|
|
21
|
+
}
|
package/mtgame-core.d.ts
CHANGED