@mtgame/core 0.0.58 → 0.0.60
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 +27 -5
- 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/localization/team-user-role.js +9 -2
- package/esm2015/localization/volleyball-game-log-types.js +3 -3
- package/esm2015/models/football-statistic.js +4 -1
- package/esm2015/models/hockey-statistic.js +4 -1
- package/esm2015/models/team-user.js +12 -3
- package/esm5/localization/team-user-role.js +9 -2
- package/esm5/localization/volleyball-game-log-types.js +3 -3
- package/esm5/models/football-statistic.js +4 -1
- package/esm5/models/hockey-statistic.js +4 -1
- package/esm5/models/team-user.js +12 -3
- package/fesm2015/mtgame-core.js +27 -5
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +27 -5
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/team-user-role.d.ts +8 -1
- package/models/team-user.d.ts +8 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2077,14 +2077,23 @@
|
|
|
2077
2077
|
TeamUserRole[TeamUserRole["member"] = 1] = "member";
|
|
2078
2078
|
TeamUserRole[TeamUserRole["moderator"] = 2] = "moderator";
|
|
2079
2079
|
TeamUserRole[TeamUserRole["admin"] = 3] = "admin";
|
|
2080
|
+
TeamUserRole[TeamUserRole["coach"] = 4] = "coach";
|
|
2081
|
+
TeamUserRole[TeamUserRole["head_coach"] = 5] = "head_coach";
|
|
2082
|
+
TeamUserRole[TeamUserRole["playing_coach"] = 6] = "playing_coach";
|
|
2083
|
+
TeamUserRole[TeamUserRole["manager"] = 7] = "manager";
|
|
2084
|
+
TeamUserRole[TeamUserRole["head_manager"] = 8] = "head_manager";
|
|
2085
|
+
TeamUserRole[TeamUserRole["captain"] = 9] = "captain";
|
|
2086
|
+
TeamUserRole[TeamUserRole["assistant"] = 10] = "assistant";
|
|
2080
2087
|
})(exports.TeamUserRole || (exports.TeamUserRole = {}));
|
|
2081
2088
|
var TeamUser = /** @class */ (function (_super) {
|
|
2082
2089
|
__extends(TeamUser, _super);
|
|
2083
2090
|
function TeamUser() {
|
|
2084
2091
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2085
2092
|
}
|
|
2086
|
-
TeamUser.toFront = function (data) {
|
|
2087
|
-
|
|
2093
|
+
TeamUser.toFront = function (data) {
|
|
2094
|
+
};
|
|
2095
|
+
TeamUser.toBack = function (teamPlayer) {
|
|
2096
|
+
};
|
|
2088
2097
|
__decorate([
|
|
2089
2098
|
ToFrontHook
|
|
2090
2099
|
], TeamUser, "toFront", null);
|
|
@@ -3031,6 +3040,9 @@
|
|
|
3031
3040
|
});
|
|
3032
3041
|
Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
|
|
3033
3042
|
get: function () {
|
|
3043
|
+
if (!this.gameTime) {
|
|
3044
|
+
return '00:00';
|
|
3045
|
+
}
|
|
3034
3046
|
var minutes = Math.floor(this.gameTime / 60);
|
|
3035
3047
|
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
3036
3048
|
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
@@ -3530,6 +3542,9 @@
|
|
|
3530
3542
|
}
|
|
3531
3543
|
Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
|
|
3532
3544
|
get: function () {
|
|
3545
|
+
if (!this.gameTime) {
|
|
3546
|
+
return '00:00';
|
|
3547
|
+
}
|
|
3533
3548
|
var minutes = Math.floor(this.gameTime / 60);
|
|
3534
3549
|
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
3535
3550
|
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
@@ -7465,9 +7480,16 @@
|
|
|
7465
7480
|
|
|
7466
7481
|
var _a$5;
|
|
7467
7482
|
var TeamUserRoleLocalization = (_a$5 = {},
|
|
7468
|
-
_a$5[exports.TeamUserRole.moderator] = 'Модератор',
|
|
7469
7483
|
_a$5[exports.TeamUserRole.member] = 'Пользователь',
|
|
7484
|
+
_a$5[exports.TeamUserRole.moderator] = 'Модератор',
|
|
7470
7485
|
_a$5[exports.TeamUserRole.admin] = 'Владелец',
|
|
7486
|
+
_a$5[exports.TeamUserRole.coach] = 'Тренер',
|
|
7487
|
+
_a$5[exports.TeamUserRole.head_coach] = 'Главный тренер',
|
|
7488
|
+
_a$5[exports.TeamUserRole.playing_coach] = 'Играющий тренер',
|
|
7489
|
+
_a$5[exports.TeamUserRole.manager] = 'Менеджер',
|
|
7490
|
+
_a$5[exports.TeamUserRole.head_manager] = 'Генеральный менеджер',
|
|
7491
|
+
_a$5[exports.TeamUserRole.captain] = 'Капитан',
|
|
7492
|
+
_a$5[exports.TeamUserRole.assistant] = 'Ассистент',
|
|
7471
7493
|
_a$5);
|
|
7472
7494
|
|
|
7473
7495
|
var _a$6, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -7540,10 +7562,10 @@
|
|
|
7540
7562
|
_a$7[exports.VolleyballGameLogType.serve_hit] = 'Подача',
|
|
7541
7563
|
_a$7[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
|
|
7542
7564
|
_a$7[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
|
|
7543
|
-
_a$7[exports.VolleyballGameLogType.attack_shot] = '
|
|
7565
|
+
_a$7[exports.VolleyballGameLogType.attack_shot] = 'Атака',
|
|
7544
7566
|
_a$7[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
|
|
7545
7567
|
_a$7[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
|
|
7546
|
-
_a$7[exports.VolleyballGameLogType.block_rebound] = '
|
|
7568
|
+
_a$7[exports.VolleyballGameLogType.block_rebound] = 'Блок',
|
|
7547
7569
|
_a$7[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
|
|
7548
7570
|
_a$7[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
|
|
7549
7571
|
_a$7[exports.VolleyballGameLogType.receive] = 'Прием',
|