@mtgame/core 0.1.115 → 0.1.117
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 +98 -11
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/waterpolo-game-log-types.js +1 -2
- package/esm2015/models/waterpolo-game-config.js +2 -1
- package/esm2015/models/waterpolo-game-log.js +13 -3
- package/esm2015/models/waterpolo-game-statistic.js +54 -8
- package/esm2015/models/waterpolo-statistic.js +25 -2
- package/fesm2015/mtgame-core.js +90 -11
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/waterpolo-game-log-types.d.ts +0 -1
- package/models/waterpolo-game-config.d.ts +1 -0
- package/models/waterpolo-game-log.d.ts +11 -2
- package/models/waterpolo-game-statistic.d.ts +24 -1
- package/models/waterpolo-statistic.d.ts +24 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -1718,6 +1718,7 @@ WaterpoloGameConfig = __decorate([
|
|
|
1718
1718
|
timeout_time: 'timeoutTime',
|
|
1719
1719
|
game_time_type: 'gameTimeType',
|
|
1720
1720
|
substitute_manage_enabled: 'substituteManageEnabled',
|
|
1721
|
+
shot_clock_enabled: 'shotClockEnabled',
|
|
1721
1722
|
},
|
|
1722
1723
|
relation: {
|
|
1723
1724
|
overtimeType: enumField(OvertimeTypes),
|
|
@@ -4905,13 +4906,36 @@ WaterpoloStatistic = __decorate([
|
|
|
4905
4906
|
penalty_minutes: 'penaltyMinutes',
|
|
4906
4907
|
game_time: 'gameTime',
|
|
4907
4908
|
plus_minus: 'plusMinus',
|
|
4908
|
-
free_kicks: 'freeKicks',
|
|
4909
4909
|
yellow_cards: 'yellowCards',
|
|
4910
4910
|
red_cards: 'redCards',
|
|
4911
4911
|
fouls: 'fouls',
|
|
4912
4912
|
losses: 'losses',
|
|
4913
4913
|
steals: 'steals',
|
|
4914
4914
|
drawn_fouls: 'drawnFouls',
|
|
4915
|
+
pp_free_kick_goals: 'ppFreeKickGoals',
|
|
4916
|
+
pp_free_kick_on_goals: 'ppFreeKickOnGoals',
|
|
4917
|
+
pp_free_kick_misses: 'ppFreeKickMisses',
|
|
4918
|
+
sh_free_kick_goals: 'shFreeKickGoals',
|
|
4919
|
+
sh_free_kick_on_goals: 'shFreeKickOnGoals',
|
|
4920
|
+
sh_free_kick_misses: 'shFreeKickMisses',
|
|
4921
|
+
ev_free_kick_goals: 'evFreeKickGoals',
|
|
4922
|
+
ev_free_kick_on_goals: 'evFreeKickOnGoals',
|
|
4923
|
+
ev_free_kick_misses: 'evFreeKickMisses',
|
|
4924
|
+
free_kick_passes: 'freeKickPasses',
|
|
4925
|
+
free_kick_selfs: 'freeKickSelfs',
|
|
4926
|
+
pp_corner_goals: 'ppCornerGoals',
|
|
4927
|
+
pp_corner_on_goals: 'ppCornerOnGoals',
|
|
4928
|
+
pp_corner_misses: 'ppCornerMisses',
|
|
4929
|
+
sh_corner_goals: 'shCornerGoals',
|
|
4930
|
+
sh_corner_on_goals: 'shCornerOnGoals',
|
|
4931
|
+
sh_corner_misses: 'shCornerMisses',
|
|
4932
|
+
ev_corner_goals: 'evCornerGoals',
|
|
4933
|
+
ev_corner_on_goals: 'evCornerOnGoals',
|
|
4934
|
+
ev_corner_misses: 'evCornerMisses',
|
|
4935
|
+
corner_passes: 'cornerPasses',
|
|
4936
|
+
corner_selfs: 'cornerSelfs',
|
|
4937
|
+
total_corners: 'totalCorners',
|
|
4938
|
+
total_free_kicks: 'totalFreeKicks',
|
|
4915
4939
|
newbie: 'newbie',
|
|
4916
4940
|
rank: 'rank',
|
|
4917
4941
|
},
|
|
@@ -8096,7 +8120,7 @@ var WaterpoloGameLogTypes;
|
|
|
8096
8120
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_goal"] = 8] = "shootout_goal";
|
|
8097
8121
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["assist"] = 9] = "assist";
|
|
8098
8122
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["block_shot"] = 10] = "block_shot";
|
|
8099
|
-
WaterpoloGameLogTypes[WaterpoloGameLogTypes["
|
|
8123
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_on_goal"] = 11] = "free_kick_on_goal";
|
|
8100
8124
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["minor_penalty"] = 12] = "minor_penalty";
|
|
8101
8125
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["major_penalty"] = 13] = "major_penalty";
|
|
8102
8126
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["match_penalty"] = 14] = "match_penalty";
|
|
@@ -8116,6 +8140,15 @@ var WaterpoloGameLogTypes;
|
|
|
8116
8140
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_save"] = 28] = "shootout_save";
|
|
8117
8141
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["loss"] = 29] = "loss";
|
|
8118
8142
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["steal"] = 30] = "steal";
|
|
8143
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_miss"] = 31] = "free_kick_miss";
|
|
8144
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_goal"] = 32] = "free_kick_goal";
|
|
8145
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_pass"] = 33] = "free_kick_pass";
|
|
8146
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_self"] = 34] = "free_kick_self";
|
|
8147
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_on_goal"] = 35] = "corner_on_goal";
|
|
8148
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_miss"] = 36] = "corner_miss";
|
|
8149
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_goal"] = 37] = "corner_goal";
|
|
8150
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_pass"] = 38] = "corner_pass";
|
|
8151
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_self"] = 39] = "corner_self";
|
|
8119
8152
|
})(WaterpoloGameLogTypes || (WaterpoloGameLogTypes = {}));
|
|
8120
8153
|
var WaterpoloAdvantageTypes;
|
|
8121
8154
|
(function (WaterpoloAdvantageTypes) {
|
|
@@ -8152,7 +8185,8 @@ let WaterpoloGameLog = class WaterpoloGameLog extends BaseModel {
|
|
|
8152
8185
|
return `${minutes < 10 ? '0' : ''}${minutes}:${seconds < 10 ? '0' : ''}${seconds}`;
|
|
8153
8186
|
}
|
|
8154
8187
|
isScoreType() {
|
|
8155
|
-
return [WaterpoloGameLogTypes.goal, WaterpoloGameLogTypes.shootout_goal, WaterpoloGameLogTypes.after_game_shootout_goal
|
|
8188
|
+
return [WaterpoloGameLogTypes.goal, WaterpoloGameLogTypes.shootout_goal, WaterpoloGameLogTypes.after_game_shootout_goal,
|
|
8189
|
+
WaterpoloGameLogTypes.free_kick_goal, WaterpoloGameLogTypes.corner_goal].indexOf(this.logType) > -1;
|
|
8156
8190
|
}
|
|
8157
8191
|
isPenaltyType() {
|
|
8158
8192
|
return [
|
|
@@ -8211,22 +8245,33 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
8211
8245
|
return this.gameUserId;
|
|
8212
8246
|
}
|
|
8213
8247
|
get shotsOnGoal() {
|
|
8214
|
-
return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0)
|
|
8248
|
+
return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
|
|
8249
|
+
(this.evCornerOnGoals || 0) + (this.ppCornerOnGoals || 0) + (this.shCornerOnGoals || 0) +
|
|
8250
|
+
(this.evFreeKickOnGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.shFreeKickOnGoals || 0);
|
|
8215
8251
|
}
|
|
8216
8252
|
get shotsBlocked() {
|
|
8217
8253
|
return (this.evShotsBlocked || 0) + (this.ppShotsBlocked || 0) + (this.shShotsBlocked || 0);
|
|
8218
8254
|
}
|
|
8219
8255
|
get shotMisses() {
|
|
8220
|
-
return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0)
|
|
8256
|
+
return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0) +
|
|
8257
|
+
(this.evCornerMisses || 0) + (this.ppCornerMisses || 0) + (this.shCornerMisses || 0) +
|
|
8258
|
+
(this.evFreeKickMisses || 0) + (this.ppFreeKickMisses || 0) + (this.shFreeKickMisses || 0);
|
|
8221
8259
|
}
|
|
8222
8260
|
get ppShots() {
|
|
8223
|
-
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0)
|
|
8261
|
+
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
|
|
8262
|
+
(this.ppCornerMisses || 0) + (this.ppCornerOnGoals || 0) +
|
|
8263
|
+
(this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0);
|
|
8224
8264
|
}
|
|
8225
8265
|
get evShots() {
|
|
8226
|
-
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0)
|
|
8266
|
+
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0) +
|
|
8267
|
+
(this.evCornerMisses || 0) + (this.evCornerOnGoals || 0) +
|
|
8268
|
+
(this.evFreeKickMisses || 0) + (this.evFreeKickOnGoals || 0);
|
|
8227
8269
|
}
|
|
8228
8270
|
get shShots() {
|
|
8229
|
-
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0)
|
|
8271
|
+
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0) +
|
|
8272
|
+
(this.shCornerMisses || 0) + (this.shCornerOnGoals || 0) +
|
|
8273
|
+
(this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0);
|
|
8274
|
+
;
|
|
8230
8275
|
}
|
|
8231
8276
|
get shots() {
|
|
8232
8277
|
return this.ppShots + this.evShots + this.shShots + (this.shootoutAttempts || 0);
|
|
@@ -8235,7 +8280,9 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
8235
8280
|
return this.shots + (this.shootoutAttempts || 0);
|
|
8236
8281
|
}
|
|
8237
8282
|
get goals() {
|
|
8238
|
-
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0)
|
|
8283
|
+
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0) +
|
|
8284
|
+
(this.ppFreeKickGoals || 0) + (this.shFreeKickGoals || 0) + (this.evFreeKickGoals || 0) +
|
|
8285
|
+
(this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
|
|
8239
8286
|
}
|
|
8240
8287
|
get totalGoals() {
|
|
8241
8288
|
return this.goals + (this.shootoutGoals || 0);
|
|
@@ -8294,6 +8341,18 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
8294
8341
|
get goalpass() {
|
|
8295
8342
|
return (this.totalGoals || 0) + (this.assists || 0);
|
|
8296
8343
|
}
|
|
8344
|
+
get totalFreeKicks() {
|
|
8345
|
+
return (this.freeKickPasses || 0) + (this.freeKickSelfs || 0) +
|
|
8346
|
+
(this.ppFreeKickGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.ppFreeKickMisses || 0) +
|
|
8347
|
+
(this.evFreeKickGoals || 0) + (this.evFreeKickOnGoals || 0) + (this.evFreeKickMisses || 0) +
|
|
8348
|
+
(this.shFreeKickGoals || 0) + (this.shFreeKickOnGoals || 0) + (this.shFreeKickMisses || 0);
|
|
8349
|
+
}
|
|
8350
|
+
get totalCorners() {
|
|
8351
|
+
return (this.cornerPasses || 0) + (this.cornerSelfs || 0) +
|
|
8352
|
+
(this.ppCornerGoals || 0) + (this.ppCornerOnGoals || 0) + (this.ppCornerMisses || 0) +
|
|
8353
|
+
(this.evCornerGoals || 0) + (this.evCornerOnGoals || 0) + (this.evCornerMisses || 0) +
|
|
8354
|
+
(this.shCornerGoals || 0) + (this.shCornerOnGoals || 0) + (this.shCornerMisses || 0);
|
|
8355
|
+
}
|
|
8297
8356
|
static toFront(data) { }
|
|
8298
8357
|
static toBack(data) { }
|
|
8299
8358
|
};
|
|
@@ -8341,13 +8400,34 @@ WaterpoloGameStatistic = __decorate([
|
|
|
8341
8400
|
penalty_minutes: 'penaltyMinutes',
|
|
8342
8401
|
game_time: 'gameTime',
|
|
8343
8402
|
plus_minus: 'plusMinus',
|
|
8344
|
-
free_kicks: 'freeKicks',
|
|
8345
8403
|
yellow_cards: 'yellowCards',
|
|
8346
8404
|
red_cards: 'redCards',
|
|
8347
8405
|
fouls: 'fouls',
|
|
8348
8406
|
losses: 'losses',
|
|
8349
8407
|
steals: 'steals',
|
|
8350
8408
|
drawn_fouls: 'drawnFouls',
|
|
8409
|
+
pp_free_kick_goals: 'ppFreeKickGoals',
|
|
8410
|
+
pp_free_kick_on_goals: 'ppFreeKickOnGoals',
|
|
8411
|
+
pp_free_kick_misses: 'ppFreeKickMisses',
|
|
8412
|
+
sh_free_kick_goals: 'shFreeKickGoals',
|
|
8413
|
+
sh_free_kick_on_goals: 'shFreeKickOnGoals',
|
|
8414
|
+
sh_free_kick_misses: 'shFreeKickMisses',
|
|
8415
|
+
ev_free_kick_goals: 'evFreeKickGoals',
|
|
8416
|
+
ev_free_kick_on_goals: 'evFreeKickOnGoals',
|
|
8417
|
+
ev_free_kick_misses: 'evFreeKickMisses',
|
|
8418
|
+
free_kick_passes: 'freeKickPasses',
|
|
8419
|
+
free_kick_selfs: 'freeKickSelfs',
|
|
8420
|
+
pp_corner_goals: 'ppCornerGoals',
|
|
8421
|
+
pp_corner_on_goals: 'ppCornerOnGoals',
|
|
8422
|
+
pp_corner_misses: 'ppCornerMisses',
|
|
8423
|
+
sh_corner_goals: 'shCornerGoals',
|
|
8424
|
+
sh_corner_on_goals: 'shCornerOnGoals',
|
|
8425
|
+
sh_corner_misses: 'shCornerMisses',
|
|
8426
|
+
ev_corner_goals: 'evCornerGoals',
|
|
8427
|
+
ev_corner_on_goals: 'evCornerOnGoals',
|
|
8428
|
+
ev_corner_misses: 'evCornerMisses',
|
|
8429
|
+
corner_passes: 'cornerPasses',
|
|
8430
|
+
corner_selfs: 'cornerSelfs'
|
|
8351
8431
|
},
|
|
8352
8432
|
relation: {
|
|
8353
8433
|
updatedAt: DateTimeField,
|
|
@@ -8649,7 +8729,6 @@ const WaterpoloGameLogTypeLocalization = {
|
|
|
8649
8729
|
[WaterpoloGameLogTypes.penalty_end]: 'Конец штрафного времени',
|
|
8650
8730
|
[WaterpoloGameLogTypes.yellow_card]: 'Желтая карточка',
|
|
8651
8731
|
[WaterpoloGameLogTypes.red_card]: 'Красная карточка',
|
|
8652
|
-
[WaterpoloGameLogTypes.free_kick]: 'Свободный удар',
|
|
8653
8732
|
[WaterpoloGameLogTypes.loss]: 'Потеря',
|
|
8654
8733
|
[WaterpoloGameLogTypes.steal]: 'Перехват'
|
|
8655
8734
|
};
|