@mtgame/core 0.2.71 → 0.2.73
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/public-api.d.ts +1 -0
- package/api/wrestball-game-api.d.ts +16 -0
- package/bundles/mtgame-core.umd.js +369 -22
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/wrestball-game-api.js +49 -0
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/wrestball-game-log.js +128 -0
- package/esm2015/models/wrestball-game-statistic.js +100 -0
- package/esm2015/models/wrestball-game-team-statistic.js +27 -0
- package/esm2015/mtgame-core.js +1 -3
- package/fesm2015/mtgame-core.js +282 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/public-api.d.ts +6 -0
- package/models/wrestball-game-log.d.ts +64 -0
- package/models/wrestball-game-statistic.d.ts +52 -0
- package/models/wrestball-game-team-statistic.d.ts +9 -0
- package/mtgame-core.d.ts +0 -2
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/models/public-api.d.ts
CHANGED
|
@@ -113,3 +113,9 @@ export * from './waterpolo-game-statistic';
|
|
|
113
113
|
export * from './waterpolo-game-team-statistic';
|
|
114
114
|
export * from './waterpolo-profile';
|
|
115
115
|
export * from './waterpolo-statistic';
|
|
116
|
+
export * from './wrestball-game-config';
|
|
117
|
+
export * from './wrestball-game-log';
|
|
118
|
+
export * from './wrestball-game-statistic';
|
|
119
|
+
export * from './wrestball-game-team-statistic';
|
|
120
|
+
export * from './wrestball-profile';
|
|
121
|
+
export * from './wrestball-statistic';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { GameUser } from './game-user';
|
|
3
|
+
import { GameLogBase } from './game-log-base';
|
|
4
|
+
export declare enum WrestballGameLogTypes {
|
|
5
|
+
enter_game = 1,
|
|
6
|
+
exit_game = 2,
|
|
7
|
+
remove_game = 3,
|
|
8
|
+
one_point_made = 4,
|
|
9
|
+
one_point_attempt = 5,
|
|
10
|
+
two_point_made = 6,
|
|
11
|
+
two_point_attempt = 7,
|
|
12
|
+
three_point_made = 8,
|
|
13
|
+
three_point_attempt = 9,
|
|
14
|
+
free_throw_made = 10,
|
|
15
|
+
free_throw_attempt = 11,
|
|
16
|
+
assist = 12,
|
|
17
|
+
block = 13,
|
|
18
|
+
rebound = 14,
|
|
19
|
+
offensive_rebound = 15,
|
|
20
|
+
defensive_rebound = 16,
|
|
21
|
+
team_rebound = 17,
|
|
22
|
+
steal = 18,
|
|
23
|
+
turnover = 19,
|
|
24
|
+
personal_foul = 20,
|
|
25
|
+
timeout = 21,
|
|
26
|
+
wrestler_scrum = 22,
|
|
27
|
+
wrestler_scrum_won = 23,
|
|
28
|
+
wrestler_scrum_lost = 24,
|
|
29
|
+
wrestler_scrum_tie = 25,
|
|
30
|
+
scrum = 26,
|
|
31
|
+
scrum_won = 27,
|
|
32
|
+
scrum_lost = 28,
|
|
33
|
+
scrum_tie = 29,
|
|
34
|
+
yellow_card = 30,
|
|
35
|
+
red_card = 31
|
|
36
|
+
}
|
|
37
|
+
export declare class WrestballGameLog extends BaseModel implements GameLogBase {
|
|
38
|
+
id: number;
|
|
39
|
+
uniqueId: string;
|
|
40
|
+
gameId: number;
|
|
41
|
+
gameUserId: number;
|
|
42
|
+
gameUser: GameUser;
|
|
43
|
+
teamId: number;
|
|
44
|
+
logType: WrestballGameLogTypes;
|
|
45
|
+
datetime: Date;
|
|
46
|
+
time: number;
|
|
47
|
+
period: number;
|
|
48
|
+
active: boolean;
|
|
49
|
+
teamScore: number;
|
|
50
|
+
competitorTeamScore: number;
|
|
51
|
+
isHighlight: boolean;
|
|
52
|
+
foulOnGameUserId: number;
|
|
53
|
+
foulOnGameUser: GameUser;
|
|
54
|
+
isCoach: boolean;
|
|
55
|
+
isBench: boolean;
|
|
56
|
+
isPointsType(): boolean;
|
|
57
|
+
isReboundType(): boolean;
|
|
58
|
+
isFoulType(): boolean;
|
|
59
|
+
getScore(): any;
|
|
60
|
+
compare(model: WrestballGameLog): number;
|
|
61
|
+
get timeFormatted(): string;
|
|
62
|
+
static toFront(value: any): any;
|
|
63
|
+
static toBack(value: any): any;
|
|
64
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { GameStatisticBase } from './game-statistic-base';
|
|
3
|
+
export declare class WrestballGameStatistic extends BaseModel implements GameStatisticBase {
|
|
4
|
+
gameUserId: number;
|
|
5
|
+
points: number;
|
|
6
|
+
freeThrowsMade: number;
|
|
7
|
+
twoPointsMade: number;
|
|
8
|
+
threePointsMade: number;
|
|
9
|
+
onePointsMade: number;
|
|
10
|
+
twoPointAttempts: number;
|
|
11
|
+
threePointAttempts: number;
|
|
12
|
+
freeThrowAttempts: number;
|
|
13
|
+
onePointAttempts: number;
|
|
14
|
+
assists: number;
|
|
15
|
+
blocks: number;
|
|
16
|
+
rebounds: number;
|
|
17
|
+
offensiveRebounds: number;
|
|
18
|
+
defensiveRebounds: number;
|
|
19
|
+
steals: number;
|
|
20
|
+
turnovers: number;
|
|
21
|
+
personalFouls: number;
|
|
22
|
+
technicalFouls: number;
|
|
23
|
+
unsportsmanlikeFouls: number;
|
|
24
|
+
disqualificationFouls: number;
|
|
25
|
+
drawnFouls: number;
|
|
26
|
+
wrestlerScrumsWon: number;
|
|
27
|
+
wrestlerScrumsLost: number;
|
|
28
|
+
wrestlerScrumsTie: number;
|
|
29
|
+
wrestlerScrumPoints: number;
|
|
30
|
+
scrumsWon: number;
|
|
31
|
+
scrumsLost: number;
|
|
32
|
+
scrumsTie: number;
|
|
33
|
+
scrumPoints: number;
|
|
34
|
+
yellowCards: number;
|
|
35
|
+
redCards: number;
|
|
36
|
+
updatedAt: Date;
|
|
37
|
+
get id(): number;
|
|
38
|
+
static toFront(data: any): any;
|
|
39
|
+
static toBack(data: any): any;
|
|
40
|
+
get totalFouls(): number;
|
|
41
|
+
set onePointPercent(v: number);
|
|
42
|
+
get onePointPercent(): number;
|
|
43
|
+
set twoPointPercent(v: number);
|
|
44
|
+
get twoPointPercent(): number;
|
|
45
|
+
set threePointPercent(v: number);
|
|
46
|
+
get threePointPercent(): number;
|
|
47
|
+
set freeThrowPercent(v: number);
|
|
48
|
+
get freeThrowPercent(): number;
|
|
49
|
+
get totalRebounds(): number;
|
|
50
|
+
get wrestlerScrums(): number;
|
|
51
|
+
get scrums(): number;
|
|
52
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { WrestballStatistic } from './wrestball-statistic';
|
|
3
|
+
import { GameTeamStatisticBase } from './game-team-statistic-base';
|
|
4
|
+
export declare class WrestballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
|
|
5
|
+
team: WrestballStatistic;
|
|
6
|
+
competitorTeam: WrestballStatistic;
|
|
7
|
+
static toFront(data: any): any;
|
|
8
|
+
static toBack(data: any): any;
|
|
9
|
+
}
|
package/mtgame-core.d.ts
CHANGED