@mtgame/core 0.2.36 → 0.2.37
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 +25 -2
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/basketball-game-log-types.js +3 -1
- package/esm2015/models/basketball-game-log.js +9 -3
- package/esm2015/models/game.js +12 -1
- package/fesm2015/mtgame-core.js +21 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/basketball-game-log-types.d.ts +2 -0
- package/models/basketball-game-log.d.ts +5 -3
- package/models/game.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -30,7 +30,9 @@ export declare enum BasketballGameLogTypes {
|
|
|
30
30
|
four_point_made = 26,
|
|
31
31
|
dunk_attempt = 27,
|
|
32
32
|
dunk_made = 28,
|
|
33
|
-
shootout = 29
|
|
33
|
+
shootout = 29,
|
|
34
|
+
shootout_won = 30,
|
|
35
|
+
shootout_lost = 31
|
|
34
36
|
}
|
|
35
37
|
export declare enum BasketballSubLogTypes {
|
|
36
38
|
jump_shot = 1,
|
|
@@ -114,11 +116,11 @@ export declare class BasketballGameLog extends BaseModel implements GameLogBase
|
|
|
114
116
|
group: string;
|
|
115
117
|
marked: boolean;
|
|
116
118
|
coords: [number, number];
|
|
117
|
-
|
|
119
|
+
shootoutPoints: number;
|
|
118
120
|
isPointsType(): boolean;
|
|
119
121
|
isReboundType(): boolean;
|
|
120
122
|
isFoulType(): boolean;
|
|
121
|
-
getScore():
|
|
123
|
+
getScore(): any;
|
|
122
124
|
compare(model: BasketballGameLog): number;
|
|
123
125
|
get timeFormatted(): string;
|
|
124
126
|
static toFront(value: any): any;
|
package/models/game.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ 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 { Sport } from './sport';
|
|
16
17
|
export declare enum GameStatuses {
|
|
17
18
|
open = 1,
|
|
18
19
|
in_progress = 2,
|
|
@@ -105,6 +106,7 @@ export declare class Game extends BaseModel {
|
|
|
105
106
|
get isCompetitorTeamWon(): boolean;
|
|
106
107
|
get teamWinnerId(): number;
|
|
107
108
|
get teamLoserId(): number;
|
|
109
|
+
get sport(): Sport;
|
|
108
110
|
static toFront(data: any): any;
|
|
109
111
|
static toBack(data: any): any;
|
|
110
112
|
}
|