raspberry_games_server_game_logic 1.8.248 → 1.8.249

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.
@@ -1447,11 +1447,11 @@ export declare namespace games.jass.logic.data.models.table.history {
1447
1447
  export declare namespace games.jass.logic.data.models.table.history {
1448
1448
  class RoundHistory {
1449
1449
  constructor(round: number, items: Array<games.jass.logic.data.models.table.history.RoundHistoryItem>, committed: Nullable<Array<string>>, contractState: Nullable<games.jass.logic.data.models.player.state.RoundContractState>, winners: Nullable<Array<string>>, createdAt: any/* kotlinx.datetime.Instant */);
1450
- get roundNumber(): number;
1450
+ get round(): number;
1451
1451
  get items(): Array<games.jass.logic.data.models.table.history.RoundHistoryItem>;
1452
- get roundCommitted(): Nullable<Array<string>>;
1453
- get roundContractState(): Nullable<games.jass.logic.data.models.player.state.RoundContractState>;
1454
- get roundWinners(): Nullable<Array<string>>;
1452
+ get committed(): Nullable<Array<string>>;
1453
+ get contractState(): Nullable<games.jass.logic.data.models.player.state.RoundContractState>;
1454
+ get winners(): Nullable<Array<string>>;
1455
1455
  get createdAt(): any/* kotlinx.datetime.Instant */;
1456
1456
  isFailedRoundForPlayer(playerId: string): boolean;
1457
1457
  get contractStateName(): Nullable<string>;
@@ -57,6 +57,12 @@ if (typeof Math.clz32 === 'undefined') {
57
57
  };
58
58
  }(Math.log, Math.LN2);
59
59
  }
60
+ if (typeof String.prototype.startsWith === 'undefined') {
61
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
62
+ position = position || 0;
63
+ return this.lastIndexOf(searchString, position) === position;
64
+ }});
65
+ }
60
66
  if (typeof String.prototype.endsWith === 'undefined') {
61
67
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
62
68
  var subjectString = this.toString();
@@ -68,12 +74,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
68
74
  return lastIndex !== -1 && lastIndex === position;
69
75
  }});
70
76
  }
71
- if (typeof String.prototype.startsWith === 'undefined') {
72
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
73
- position = position || 0;
74
- return this.lastIndexOf(searchString, position) === position;
75
- }});
76
- }
77
77
  //endregion
78
78
  (function (factory) {
79
79
  if (typeof define === 'function' && define.amd)