@mtgame/core 0.1.125 → 0.1.127
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 +248 -208
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/rugby-foul-game-stage.js +14 -0
- package/esm2015/localization/rugby-foul-sanction.js +4 -1
- package/esm2015/models/rugby-foul-type.js +20 -2
- package/esm2015/models/rugby-game-log.js +6 -2
- package/esm2015/models/rugby-statistic.js +2 -2
- package/fesm2015/mtgame-core.js +41 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/public-api.d.ts +1 -0
- package/localization/rugby-foul-game-stage.d.ts +12 -0
- package/localization/rugby-foul-sanction.d.ts +3 -0
- package/models/rugby-foul-type.d.ts +17 -1
- package/models/rugby-game-log.d.ts +2 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export * from './handball-game-log-types';
|
|
|
7
7
|
export * from './waterpolo-game-log-types';
|
|
8
8
|
export * from './overtime-types';
|
|
9
9
|
export * from './rugby-foul-sanction';
|
|
10
|
+
export * from './rugby-foul-game-stage';
|
|
10
11
|
export * from './rugby-game-log-types';
|
|
11
12
|
export * from './team-event-type';
|
|
12
13
|
export * from './team-user-role';
|
|
@@ -5,12 +5,28 @@ export declare enum RugbyFoulSanctions {
|
|
|
5
5
|
free_kick = 3,
|
|
6
6
|
penalty_shot = 4,
|
|
7
7
|
yellow_card = 5,
|
|
8
|
-
red_card = 6
|
|
8
|
+
red_card = 6,
|
|
9
|
+
start_kick = 7,
|
|
10
|
+
twenty_two_meters_kick = 8,
|
|
11
|
+
conversion_cancel = 9
|
|
12
|
+
}
|
|
13
|
+
export declare enum RugbyFoulGameStage {
|
|
14
|
+
start_kick = 1,
|
|
15
|
+
open_game = 2,
|
|
16
|
+
tackle = 3,
|
|
17
|
+
ruck_or_maul = 4,
|
|
18
|
+
scrum = 5,
|
|
19
|
+
out_and_lineout = 6,
|
|
20
|
+
scoring_field = 7,
|
|
21
|
+
kick_on_goal = 8,
|
|
22
|
+
free_kick = 9,
|
|
23
|
+
team = 10
|
|
9
24
|
}
|
|
10
25
|
export declare class RugbyFoulType extends BaseModel {
|
|
11
26
|
id: number;
|
|
12
27
|
name: string;
|
|
13
28
|
sanction: RugbyFoulSanctions[];
|
|
29
|
+
gameStage: RugbyFoulGameStage;
|
|
14
30
|
static toFront(data: any): any;
|
|
15
31
|
static toBack(data: any): any;
|
|
16
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
2
|
import { GameLogBase } from './game-log-base';
|
|
3
3
|
import { GameUser } from './game-user';
|
|
4
|
-
import { RugbyFoulSanctions, RugbyFoulType } from './rugby-foul-type';
|
|
4
|
+
import { RugbyFoulGameStage, RugbyFoulSanctions, RugbyFoulType } from './rugby-foul-type';
|
|
5
5
|
export declare enum RugbyGameLogTypes {
|
|
6
6
|
enter_game = 1,
|
|
7
7
|
exit_game = 2,
|
|
@@ -72,6 +72,7 @@ export declare class RugbyGameLog extends BaseModel implements GameLogBase {
|
|
|
72
72
|
isHighlight: boolean;
|
|
73
73
|
foulType: RugbyFoulType;
|
|
74
74
|
foulSanction: RugbyFoulSanctions;
|
|
75
|
+
foulGameStage: RugbyFoulGameStage;
|
|
75
76
|
compare(model: RugbyGameLog): number;
|
|
76
77
|
get timeFormatted(): string;
|
|
77
78
|
isScoreType(): boolean;
|