@mtgame/core 0.2.69 → 0.2.71
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 +112 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/game.js +16 -1
- package/esm2015/models/sport.js +6 -1
- package/esm2015/models/team.js +4 -1
- package/esm2015/models/tournament.js +6 -1
- package/esm2015/models/user.js +4 -1
- package/esm2015/models/wrestball-game-config.js +43 -0
- package/esm2015/models/wrestball-profile.js +33 -0
- package/esm2015/mtgame-core.js +3 -1
- package/fesm2015/mtgame-core.js +99 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/game.d.ts +4 -0
- package/models/sport.d.ts +4 -1
- package/models/tournament.d.ts +5 -1
- package/models/user.d.ts +2 -0
- package/models/wrestball-game-config.d.ts +22 -0
- package/models/wrestball-profile.d.ts +12 -0
- package/mtgame-core.d.ts +2 -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;
|
package/models/sport.d.ts
CHANGED
|
@@ -22,7 +22,9 @@ export declare enum SportTypes {
|
|
|
22
22
|
classic_waterpolo = 20,
|
|
23
23
|
mini_waterpolo = 21,
|
|
24
24
|
media_basket = 22,
|
|
25
|
-
moneyball_basket = 23
|
|
25
|
+
moneyball_basket = 23,
|
|
26
|
+
wrestball = 24,
|
|
27
|
+
wrestball_classic = 25
|
|
26
28
|
}
|
|
27
29
|
export declare class Sport extends BaseModel {
|
|
28
30
|
id: number;
|
|
@@ -52,6 +54,7 @@ export declare class Sport extends BaseModel {
|
|
|
52
54
|
isWaterpolo(): boolean;
|
|
53
55
|
isClassicWaterpolo(): boolean;
|
|
54
56
|
isMiniWaterpolo(): boolean;
|
|
57
|
+
isWrestball(): boolean;
|
|
55
58
|
static toFront(data: any): any;
|
|
56
59
|
static toBack(sport: Sport): any;
|
|
57
60
|
}
|
package/models/tournament.d.ts
CHANGED
|
@@ -54,7 +54,8 @@ export declare enum OvertimeTypes {
|
|
|
54
54
|
to_first_goal_and_bullitts = 6,
|
|
55
55
|
bullitts = 7,
|
|
56
56
|
penalties = 8,
|
|
57
|
-
time_and_penalties = 9
|
|
57
|
+
time_and_penalties = 9,
|
|
58
|
+
time_and_first_goal = 10
|
|
58
59
|
}
|
|
59
60
|
export declare enum TimerTypes {
|
|
60
61
|
backward = 1,
|
|
@@ -88,6 +89,7 @@ export declare class TournamentSettings extends BaseModel {
|
|
|
88
89
|
volleyballStatisticType: VolleyballStatisticTypes;
|
|
89
90
|
rugbyStatisticType: RugbyStatisticTypes;
|
|
90
91
|
waterpoloStatisticType: WaterpoloStatisticTypes;
|
|
92
|
+
wrestballStatisticType: WrestballStatisticTypes;
|
|
91
93
|
shotClockEnabled: boolean;
|
|
92
94
|
gameTimeType: GameTimeTypes;
|
|
93
95
|
withResultTable: boolean;
|
|
@@ -101,6 +103,8 @@ export declare class TournamentSettings extends BaseModel {
|
|
|
101
103
|
matchPenaltyTime: number;
|
|
102
104
|
timerType: TimerTypes;
|
|
103
105
|
hideOnLeagueMainPage: boolean;
|
|
106
|
+
wrestlerScrumsCount: number;
|
|
107
|
+
wrestlersCount: number;
|
|
104
108
|
get genderTitle(): string;
|
|
105
109
|
static toFront(data: any): any;
|
|
106
110
|
static toBack(data: any): any;
|
package/models/user.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { FootballProfile } from './football-profile';
|
|
|
9
9
|
import { HandballProfile } from './handball-profile';
|
|
10
10
|
import { RugbyProfile } from './rugby-profile';
|
|
11
11
|
import { WaterpoloProfile } from './waterpolo-profile';
|
|
12
|
+
import { WrestballProfile } from './wrestball-profile';
|
|
12
13
|
export declare enum UserGender {
|
|
13
14
|
male = 1,
|
|
14
15
|
female = 2
|
|
@@ -29,6 +30,7 @@ export declare class User extends BaseModel {
|
|
|
29
30
|
handballProfile: HandballProfile;
|
|
30
31
|
rugbyProfile: RugbyProfile;
|
|
31
32
|
waterpoloProfile: WaterpoloProfile;
|
|
33
|
+
wrestballProfile: WrestballProfile;
|
|
32
34
|
photo: File;
|
|
33
35
|
wizards: string[];
|
|
34
36
|
city: City;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
wrestlersCount: number;
|
|
20
|
+
static toFront(data: any): any;
|
|
21
|
+
static toBack(data: any): any;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare enum WrestballWorkHand {
|
|
3
|
+
left = 1,
|
|
4
|
+
right = 2
|
|
5
|
+
}
|
|
6
|
+
export declare class WrestballProfile extends BaseModel {
|
|
7
|
+
id: number;
|
|
8
|
+
userId: number;
|
|
9
|
+
workHand: WrestballWorkHand;
|
|
10
|
+
static toFront(value: any): any;
|
|
11
|
+
static toBack(value: any): any;
|
|
12
|
+
}
|
package/mtgame-core.d.ts
CHANGED