@mtgame/core 1.0.20 → 1.0.21
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 +18 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/sport.js +19 -1
- package/fesm2015/mtgame-core.js +18 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/sport.d.ts +15 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -833,6 +833,18 @@
|
|
|
833
833
|
SportTypes[SportTypes["wrestball"] = 24] = "wrestball";
|
|
834
834
|
SportTypes[SportTypes["wrestball_classic"] = 25] = "wrestball_classic";
|
|
835
835
|
SportTypes[SportTypes["winline_basket"] = 26] = "winline_basket";
|
|
836
|
+
SportTypes[SportTypes["dota_root"] = 27] = "dota_root";
|
|
837
|
+
SportTypes[SportTypes["dota"] = 28] = "dota";
|
|
838
|
+
SportTypes[SportTypes["cs_root"] = 29] = "cs_root";
|
|
839
|
+
SportTypes[SportTypes["cs"] = 30] = "cs";
|
|
840
|
+
SportTypes[SportTypes["other"] = 31] = "other";
|
|
841
|
+
SportTypes[SportTypes["chess"] = 32] = "chess";
|
|
842
|
+
SportTypes[SportTypes["table_tennis"] = 33] = "table_tennis";
|
|
843
|
+
SportTypes[SportTypes["billiard"] = 34] = "billiard";
|
|
844
|
+
SportTypes[SportTypes["darts"] = 35] = "darts";
|
|
845
|
+
SportTypes[SportTypes["badminton"] = 36] = "badminton";
|
|
846
|
+
SportTypes[SportTypes["padel_tennis"] = 37] = "padel_tennis";
|
|
847
|
+
SportTypes[SportTypes["cyber_sport"] = 38] = "cyber_sport";
|
|
836
848
|
})(exports.SportTypes || (exports.SportTypes = {}));
|
|
837
849
|
exports.Sport = /** @class */ (function (_super) {
|
|
838
850
|
__extends(Sport, _super);
|
|
@@ -914,6 +926,12 @@
|
|
|
914
926
|
Sport.prototype.isWrestball = function () {
|
|
915
927
|
return this.id === exports.SportTypes.wrestball || this.parentId === exports.SportTypes.wrestball;
|
|
916
928
|
};
|
|
929
|
+
Sport.prototype.isOther = function () {
|
|
930
|
+
return this.id === exports.SportTypes.other || this.parentId === exports.SportTypes.other;
|
|
931
|
+
};
|
|
932
|
+
Sport.prototype.isIndividualSport = function () {
|
|
933
|
+
return this.isOther() && this.id !== exports.SportTypes.badminton;
|
|
934
|
+
};
|
|
917
935
|
Sport.toFront = function (data) {
|
|
918
936
|
return null;
|
|
919
937
|
};
|