@mtgame/core 0.1.41 → 0.1.43
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/api/game-base-api.d.ts +1 -0
- package/api/rugby-game-api.d.ts +3 -0
- package/bundles/mtgame-core.umd.js +210 -100
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/game-base-api.js +10 -2
- package/esm2015/api/rugby-game-api.js +16 -2
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/rugby-foul-sanction.js +10 -0
- package/esm2015/localization/rugby-game-log-types.js +6 -1
- package/esm2015/models/public-api.js +2 -1
- package/esm2015/models/rugby-foul-type.js +35 -0
- package/esm2015/models/rugby-game-config.js +8 -2
- package/esm2015/models/rugby-game-log.js +34 -24
- package/esm2015/models/rugby-game-statistic.js +7 -1
- package/esm2015/models/rugby-game-team-statistic.js +1 -1
- package/esm2015/models/rugby-statistic.js +1 -1
- package/esm2015/models/tournament-team.js +6 -2
- package/esm5/api/game-base-api.js +12 -2
- package/esm5/api/rugby-game-api.js +20 -2
- package/esm5/localization/public-api.js +2 -1
- package/esm5/localization/rugby-foul-sanction.js +11 -0
- package/esm5/localization/rugby-game-log-types.js +6 -1
- package/esm5/models/public-api.js +2 -1
- package/esm5/models/rugby-foul-type.js +40 -0
- package/esm5/models/rugby-game-config.js +12 -2
- package/esm5/models/rugby-game-log.js +34 -24
- package/esm5/models/rugby-game-statistic.js +7 -1
- package/esm5/models/rugby-game-team-statistic.js +1 -1
- package/esm5/models/rugby-statistic.js +1 -1
- package/esm5/models/tournament-team.js +6 -2
- package/fesm2015/mtgame-core.js +118 -26
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +210 -102
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/public-api.d.ts +1 -0
- package/localization/rugby-foul-sanction.d.ts +9 -0
- package/localization/rugby-game-log-types.d.ts +5 -0
- package/models/public-api.d.ts +1 -0
- package/models/rugby-foul-type.d.ts +16 -0
- package/models/rugby-game-config.d.ts +1 -0
- package/models/rugby-game-log.d.ts +29 -21
- package/models/rugby-game-statistic.d.ts +8 -1
- package/models/rugby-game-team-statistic.d.ts +2 -1
- package/models/rugby-statistic.d.ts +7 -2
- package/models/tournament-team.d.ts +4 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export * from './hockey-penalty-types';
|
|
|
4
4
|
export * from './football-game-log-types';
|
|
5
5
|
export * from './handball-game-log-types';
|
|
6
6
|
export * from './overtime-types';
|
|
7
|
+
export * from './rugby-foul-sanction';
|
|
7
8
|
export * from './rugby-game-log-types';
|
|
8
9
|
export * from './team-event-type';
|
|
9
10
|
export * from './team-user-role';
|
package/models/public-api.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export * from './notification-settings';
|
|
|
47
47
|
export * from './organization';
|
|
48
48
|
export * from './playoff';
|
|
49
49
|
export * from './poll';
|
|
50
|
+
export * from './rugby-foul-type';
|
|
50
51
|
export * from './rugby-game-config';
|
|
51
52
|
export * from './rugby-game-log';
|
|
52
53
|
export * from './rugby-game-statistic';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare enum RugbyFoulSanctions {
|
|
3
|
+
scrum = 1,
|
|
4
|
+
lineout = 2,
|
|
5
|
+
free_kick = 3,
|
|
6
|
+
penalty_shot = 4,
|
|
7
|
+
yellow_card = 5,
|
|
8
|
+
red_card = 6
|
|
9
|
+
}
|
|
10
|
+
export declare class RugbyFoulType extends BaseModel {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
sanction: RugbyFoulSanctions[];
|
|
14
|
+
static toFront(data: any): any;
|
|
15
|
+
static toBack(data: any): any;
|
|
16
|
+
}
|
|
@@ -1,6 +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
5
|
export declare enum RugbyGameLogTypes {
|
|
5
6
|
enter_game = 1,
|
|
6
7
|
exit_game = 2,
|
|
@@ -14,26 +15,31 @@ export declare enum RugbyGameLogTypes {
|
|
|
14
15
|
drop_goal = 10,
|
|
15
16
|
drop_goal_miss = 11,
|
|
16
17
|
free_kick = 12,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
foul = 13,
|
|
19
|
+
yellow_card = 14,
|
|
20
|
+
red_card = 15,
|
|
21
|
+
offload = 16,
|
|
22
|
+
tackle = 17,
|
|
23
|
+
out = 18,
|
|
24
|
+
handling_error = 19,
|
|
25
|
+
carries_other_gainline = 20,
|
|
26
|
+
bleeding_injury = 21,
|
|
27
|
+
head_injury = 22,
|
|
28
|
+
end_game_penalty_miss = 23,
|
|
29
|
+
end_game_penalty_goal = 24,
|
|
30
|
+
timeout = 25,
|
|
31
|
+
scrum_won = 26,
|
|
32
|
+
scrum_lose = 27,
|
|
33
|
+
scrum_won_free = 28,
|
|
34
|
+
lineout_success = 29,
|
|
35
|
+
lineout_loss = 30,
|
|
36
|
+
lineout_steal = 31,
|
|
37
|
+
quick_throw = 32,
|
|
38
|
+
ruck_won = 33,
|
|
39
|
+
ruck_lose = 34,
|
|
40
|
+
maul_won = 35,
|
|
41
|
+
maul_lose = 36,
|
|
42
|
+
team_foul = 37
|
|
37
43
|
}
|
|
38
44
|
export declare const RUGBY_GAME_LOG_TYPE_POINTS: {
|
|
39
45
|
4: number;
|
|
@@ -46,6 +52,7 @@ export declare const RUGBY_TEAM_LOG_TYPES: RugbyGameLogTypes[];
|
|
|
46
52
|
export declare class RugbyGameLog extends BaseModel implements GameLogBase {
|
|
47
53
|
id: number;
|
|
48
54
|
uniqueId: string;
|
|
55
|
+
group: string;
|
|
49
56
|
gameId: number;
|
|
50
57
|
gameUserId: number;
|
|
51
58
|
gameUser: GameUser;
|
|
@@ -58,7 +65,8 @@ export declare class RugbyGameLog extends BaseModel implements GameLogBase {
|
|
|
58
65
|
teamScore: number;
|
|
59
66
|
competitorTeamScore: number;
|
|
60
67
|
isHighlight: boolean;
|
|
61
|
-
|
|
68
|
+
foulType: RugbyFoulType;
|
|
69
|
+
foulSanction: RugbyFoulSanctions;
|
|
62
70
|
compare(model: RugbyGameLog): number;
|
|
63
71
|
get timeFormatted(): string;
|
|
64
72
|
isScoreType(): boolean;
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
|
-
|
|
2
|
+
import { GameStatisticBase } from './game-statistic-base';
|
|
3
|
+
export declare class RugbyGameStatistic extends BaseModel implements GameStatisticBase {
|
|
3
4
|
gameUserId: number;
|
|
4
5
|
points: number;
|
|
5
6
|
tries: number;
|
|
6
7
|
penaltyTries: number;
|
|
8
|
+
conversionShots: number;
|
|
7
9
|
conversionGoals: number;
|
|
8
10
|
conversionMisses: number;
|
|
11
|
+
conversionGoalsPercent: number;
|
|
9
12
|
drawingBall: number;
|
|
10
13
|
penaltyMisses: number;
|
|
11
14
|
penaltyGoals: number;
|
|
15
|
+
penaltyShots: number;
|
|
16
|
+
penaltyGoalsPercent: number;
|
|
12
17
|
dropGoals: number;
|
|
13
18
|
dropGoalMisses: number;
|
|
19
|
+
dropGoalShots: number;
|
|
20
|
+
dropGoalsPercent: number;
|
|
14
21
|
freeKicks: number;
|
|
15
22
|
yellowCards: number;
|
|
16
23
|
redCards: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
2
|
import { RugbyStatistic } from './rugby-statistic';
|
|
3
|
-
|
|
3
|
+
import { GameTeamStatisticBase } from './game-team-statistic-base';
|
|
4
|
+
export declare class RugbyGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
|
|
4
5
|
team: RugbyStatistic;
|
|
5
6
|
competitorTeam: RugbyStatistic;
|
|
6
7
|
static toFront(data: any): any;
|
|
@@ -4,17 +4,22 @@ import { Team } from './team';
|
|
|
4
4
|
import { TeamUser } from './team-user';
|
|
5
5
|
import { User } from './user';
|
|
6
6
|
import { TournamentTeam } from './tournament-team';
|
|
7
|
-
|
|
7
|
+
import { BaseStatistic, WinLoseType } from './base-statistic';
|
|
8
|
+
import { LeaguePlayer } from './league-player';
|
|
9
|
+
export declare class RugbyStatistic extends BaseModel implements BaseStatistic {
|
|
10
|
+
leaguePlayer: LeaguePlayer;
|
|
8
11
|
tournamentTeamUser: TournamentTeamUser;
|
|
9
12
|
team: Team;
|
|
10
13
|
teamUser: TeamUser;
|
|
11
14
|
user: User;
|
|
12
15
|
tournamentTeam: TournamentTeam;
|
|
13
16
|
month: Date;
|
|
14
|
-
winLose:
|
|
17
|
+
winLose: WinLoseType;
|
|
15
18
|
gamesCount: number;
|
|
16
19
|
wonGamesCount: number;
|
|
20
|
+
tournamentTeamPoints: number;
|
|
17
21
|
newbie: boolean;
|
|
22
|
+
rank: number;
|
|
18
23
|
points: number;
|
|
19
24
|
tries: number;
|
|
20
25
|
penaltyTries: number;
|
|
@@ -32,6 +32,10 @@ export declare class TournamentTeam extends BaseModel {
|
|
|
32
32
|
winOvertimeGamesCount: number;
|
|
33
33
|
loseOvertimeGamesCount: number;
|
|
34
34
|
lastFiveGames: Game[];
|
|
35
|
+
triesScored: number;
|
|
36
|
+
triesMissed: number;
|
|
37
|
+
attackBonuses: number;
|
|
38
|
+
defenseBonuses: number;
|
|
35
39
|
get gamesWonPercent(): number;
|
|
36
40
|
static toFront(data: any): any;
|
|
37
41
|
static toBack(data: any): any;
|