@mtgame/core 1.0.49 → 1.0.51
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 +8 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/volleyball-game-config.js +9 -2
- package/fesm2015/mtgame-core.js +8 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/volleyball-game-config.d.ts +3 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2114,6 +2114,7 @@
|
|
|
2114
2114
|
(function (VolleyballGameTypes) {
|
|
2115
2115
|
VolleyballGameTypes[VolleyballGameTypes["best_of_five"] = 1] = "best_of_five";
|
|
2116
2116
|
VolleyballGameTypes[VolleyballGameTypes["best_of_three"] = 2] = "best_of_three";
|
|
2117
|
+
VolleyballGameTypes[VolleyballGameTypes["to_sets_count"] = 3] = "to_sets_count";
|
|
2117
2118
|
})(exports.VolleyballGameTypes || (exports.VolleyballGameTypes = {}));
|
|
2118
2119
|
exports.VolleyballGameConfig = /** @class */ (function (_super) {
|
|
2119
2120
|
__extends(VolleyballGameConfig, _super);
|
|
@@ -2122,7 +2123,12 @@
|
|
|
2122
2123
|
}
|
|
2123
2124
|
Object.defineProperty(VolleyballGameConfig.prototype, "setsCount", {
|
|
2124
2125
|
get: function () {
|
|
2125
|
-
|
|
2126
|
+
if (this.gameType === exports.VolleyballGameTypes.to_sets_count) {
|
|
2127
|
+
return this.periodsCount ? this.periodsCount : 3;
|
|
2128
|
+
}
|
|
2129
|
+
else {
|
|
2130
|
+
return this.gameType === exports.VolleyballGameTypes.best_of_three ? 3 : 5;
|
|
2131
|
+
}
|
|
2126
2132
|
},
|
|
2127
2133
|
enumerable: false,
|
|
2128
2134
|
configurable: true
|
|
@@ -2144,6 +2150,7 @@
|
|
|
2144
2150
|
ModelInstance({
|
|
2145
2151
|
mappingFields: {
|
|
2146
2152
|
game_type: 'gameType',
|
|
2153
|
+
periods_count: 'periodsCount',
|
|
2147
2154
|
timeout_count: 'timeoutCount',
|
|
2148
2155
|
timeout_time: 'timeoutTime',
|
|
2149
2156
|
substitute_count: 'substituteCount',
|