@mtgame/core 1.0.50 → 1.0.52
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 +7 -2
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/volleyball-game-config.js +8 -3
- package/fesm2015/mtgame-core.js +7 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/volleyball-game-config.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2123,8 +2123,12 @@
|
|
|
2123
2123
|
}
|
|
2124
2124
|
Object.defineProperty(VolleyballGameConfig.prototype, "setsCount", {
|
|
2125
2125
|
get: function () {
|
|
2126
|
-
|
|
2127
|
-
|
|
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
|
+
}
|
|
2128
2132
|
},
|
|
2129
2133
|
enumerable: false,
|
|
2130
2134
|
configurable: true
|
|
@@ -2154,6 +2158,7 @@
|
|
|
2154
2158
|
score_in_last_set: 'scoreInLastSet',
|
|
2155
2159
|
statistic_type: 'statisticType',
|
|
2156
2160
|
libero_user_ids: 'liberoUserIds',
|
|
2161
|
+
max_game_players: 'maxGamePlayers',
|
|
2157
2162
|
},
|
|
2158
2163
|
relation: {
|
|
2159
2164
|
gameType: enumField(exports.VolleyballGameTypes),
|