@mtgame/core 0.1.151 → 0.1.154
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 +166 -132
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/game.js +21 -3
- package/esm2015/models/hockey-game-log.js +4 -1
- package/esm2015/models/hockey-game-statistic.js +7 -2
- package/esm2015/models/hockey-statistic.js +6 -1
- package/fesm2015/mtgame-core.js +147 -116
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/game.d.ts +7 -2
- package/models/hockey-game-log.d.ts +4 -1
- package/models/hockey-game-statistic.d.ts +5 -0
- package/models/hockey-statistic.d.ts +5 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/models/game.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ import { TournamentGroup } from './tournament-group';
|
|
|
13
13
|
import { File } from './file';
|
|
14
14
|
import { RugbyGameConfig } from './rugby-game-config';
|
|
15
15
|
import { WaterpoloGameConfig } from './waterpolo-game-config';
|
|
16
|
-
import { TeamAdditionalData } from './tournament-team';
|
|
17
16
|
export declare enum GameStatuses {
|
|
18
17
|
open = 1,
|
|
19
18
|
in_progress = 2,
|
|
@@ -28,11 +27,17 @@ export declare enum GameResultTypes {
|
|
|
28
27
|
competitor_team_technical_defeat = 4,
|
|
29
28
|
draw = 5
|
|
30
29
|
}
|
|
30
|
+
export declare class GameTeamAdditionalData {
|
|
31
|
+
nickname: string;
|
|
32
|
+
color: string;
|
|
33
|
+
static toFront(data: any): any;
|
|
34
|
+
static toBack(data: any): any;
|
|
35
|
+
}
|
|
31
36
|
export declare class TournamentTeamShort extends BaseModel {
|
|
32
37
|
id: number;
|
|
33
38
|
name: string;
|
|
34
39
|
logo: File;
|
|
35
|
-
additionalData:
|
|
40
|
+
additionalData: GameTeamAdditionalData;
|
|
36
41
|
static toFront(data: any): any;
|
|
37
42
|
static toBack(data: any): any;
|
|
38
43
|
}
|
|
@@ -27,7 +27,10 @@ export declare enum HockeyGameLogTypes {
|
|
|
27
27
|
after_game_shootout_attempt = 23,
|
|
28
28
|
after_game_shootout_goal = 24,
|
|
29
29
|
after_game_shootout_save = 25,
|
|
30
|
-
shootout_save = 26
|
|
30
|
+
shootout_save = 26,
|
|
31
|
+
steal = 27,
|
|
32
|
+
loss = 28,
|
|
33
|
+
sharp_poss = 29
|
|
31
34
|
}
|
|
32
35
|
export declare enum HockeyAdvantageTypes {
|
|
33
36
|
power_play = 1,
|
|
@@ -35,6 +35,11 @@ export declare class HockeyGameStatistic extends BaseModel implements GameStatis
|
|
|
35
35
|
penaltyMinutes: number;
|
|
36
36
|
gameTime: number;
|
|
37
37
|
plusMinus: number;
|
|
38
|
+
steals: number;
|
|
39
|
+
losses: number;
|
|
40
|
+
sharpPasses: number;
|
|
41
|
+
drawnFouls: number;
|
|
42
|
+
efficiency: number;
|
|
38
43
|
updatedAt: Date;
|
|
39
44
|
get id(): number;
|
|
40
45
|
get shotsOnGoal(): number;
|
|
@@ -76,6 +76,11 @@ export declare class HockeyStatistic extends BaseModel implements BaseStatistic
|
|
|
76
76
|
penaltyMinutes: number;
|
|
77
77
|
gameTime: number;
|
|
78
78
|
plusMinus: number;
|
|
79
|
+
steals: number;
|
|
80
|
+
losses: number;
|
|
81
|
+
sharpPasses: number;
|
|
82
|
+
drawnFouls: number;
|
|
83
|
+
efficiency: number;
|
|
79
84
|
newbie: boolean;
|
|
80
85
|
rank: number;
|
|
81
86
|
get assists(): number;
|